/*
 * Apple-Inspired Calculator Redesign
 * ====================================
 * Comprehensive UX/UI upgrade for all 13 calculators.
 * Layered on top of the existing style.css via specificity —
 * no PHP templates are modified by this file.
 *
 * Design language: iOS / Apple HIG
 *   – SF Pro-feel typography with Plus Jakarta Sans
 *   – Segmented controls (unit toggles)
 *   – Spring-animated selection chips
 *   – Frosted-glass hero card
 *   – Cinematic result reveal
 *   – Micro-interactions on every interactive element
 */

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS — extend the existing :root
   ═══════════════════════════════════════════════════════ */
:root {
  /* Apple blue system */
  --ios-blue:        #007AFF;
  --ios-blue-light:  #409CFF;
  --ios-blue-dark:   #0056CC;

  /* Surface system */
  --glass-bg:        rgba(255, 255, 255, 0.82);
  --glass-border:    rgba(255, 255, 255, 0.6);
  --glass-shadow:    0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 122, 255, 0.06);

  /* Segmented control */
  --seg-bg:          rgba(118, 118, 128, 0.12);
  --seg-thumb:       #ffffff;
  --seg-thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.14), 0 1px 2px rgba(0, 0, 0, 0.1);

  /* Form */
  --input-bg:        #F8FAFC;
  --input-border:    rgba(0, 0, 0, 0.08);
  --input-focus-bg:  #FFFFFF;

  /* Chip buttons */
  --chip-bg:         #F4F5F7;
  --chip-active-bg:  #E8F3FF;
  --chip-active-border: rgba(0, 122, 255, 0.4);

  /* Result cards */
  --result-card-bg:  #FFFFFF;

  /* Motion */
  --spring:          cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:     cubic-bezier(0.65, 0, 0.35, 1);

  /* Spacing */
  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION — frosted glass, generous breathing room
   ═══════════════════════════════════════════════════════ */

.calc-hero-section {
  background:
    radial-gradient(ellipse 120% 80% at 60% -20%, rgba(0, 122, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at -10% 80%, rgba(0, 180, 216, 0.05) 0%, transparent 50%),
    linear-gradient(160deg, #EEF6FF 0%, #F5FAFF 50%, #EAF5FA 100%);
  padding: 32px 0 48px;
}

.hero {
  background:
    radial-gradient(ellipse 100% 70% at 70% -10%, rgba(0, 122, 255, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at -5% 90%, rgba(0, 196, 216, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, #EBF4FF 0%, #F0FAFF 50%, #E5F3F8 100%);
}

/* ═══════════════════════════════════════════════════════
   CALCULATOR CARD — glass morphism elevation
   ═══════════════════════════════════════════════════════ */

.calc-hero-card,
.calc-card,
.calc-card--hero {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.07),
    0 32px 80px rgba(0, 122, 255, 0.05);
  border: none;
  border-radius: 24px;
}

.calc-hero-info {
  background: linear-gradient(160deg, rgba(240, 248, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════
   BADGE — SF-style pill
   ═══════════════════════════════════════════════════════ */

.calc-hero-badge,
.hero-badge {
  background: rgba(0, 122, 255, 0.09);
  border: 1px solid rgba(0, 122, 255, 0.18);
  color: var(--ios-blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════
   FORM LABELS
   ═══════════════════════════════════════════════════════ */

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3C3C43;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════
   TEXT INPUTS — iOS-style inset surface
   ═══════════════════════════════════════════════════════ */

.form-input {
  background: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #1C1C1E;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.form-input::placeholder {
  color: rgba(60, 60, 67, 0.36);
  font-weight: 400;
}

.form-input:focus {
  background: var(--input-focus-bg);
  border-color: var(--ios-blue);
  box-shadow:
    0 0 0 4px rgba(0, 122, 255, 0.1),
    0 1px 4px rgba(0, 0, 0, 0.04);
  outline: none;
}

.form-input.error {
  border-color: #FF3B30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
  background: #FFFAFA;
}

.input-unit {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(60, 60, 67, 0.5);
  right: 14px;
}

/* ═══════════════════════════════════════════════════════
   SEGMENTED CONTROL — exact iOS UISegmentedControl clone
   ═══════════════════════════════════════════════════════ */

.unit-toggle {
  display: flex;
  background: var(--seg-bg);
  border-radius: 10px;
  padding: 2px;
  border: none;
  gap: 2px;
  position: relative;
}

.unit-toggle button {
  flex: 1;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #3C3C43;
  cursor: pointer;
  transition:
    background 0.25s var(--spring),
    color 0.2s ease,
    transform 0.15s var(--spring),
    box-shadow 0.25s var(--spring);
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.unit-toggle button.active {
  background: var(--seg-thumb);
  color: #1C1C1E;
  box-shadow: var(--seg-thumb-shadow);
  transform: scale(1.0);
}

.unit-toggle button:not(.active):hover {
  color: #1C1C1E;
  background: rgba(255, 255, 255, 0.4);
}

.unit-toggle button:active {
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   OPTION CHIPS — Apple HIG selection chips with spring
   ═══════════════════════════════════════════════════════ */

.btn-group {
  gap: 8px;
}

.btn-option {
  background: var(--chip-bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3C3C43;
  cursor: pointer;
  transition:
    background 0.2s var(--spring),
    border-color 0.2s var(--spring),
    color 0.2s ease,
    transform 0.18s var(--spring),
    box-shadow 0.2s var(--spring);
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.btn-option .btn-main {
  font-weight: 600;
  font-size: 0.875rem;
  color: inherit;
}

.btn-option .btn-sub {
  font-size: 0.75rem;
  color: rgba(60, 60, 67, 0.5);
  font-weight: 400;
  margin-top: 1px;
}

.btn-option:hover:not(.active) {
  background: rgba(0, 122, 255, 0.06);
  border-color: rgba(0, 122, 255, 0.15);
  color: #1C1C1E;
}

.btn-option.active {
  background: var(--chip-active-bg);
  border-color: var(--chip-active-border);
  color: var(--ios-blue);
  box-shadow:
    0 0 0 3px rgba(0, 122, 255, 0.08),
    0 1px 4px rgba(0, 122, 255, 0.12);
  transform: scale(1.015);
}

.btn-option.active .btn-main { color: var(--ios-blue); }
.btn-option.active .btn-sub  { color: rgba(0, 122, 255, 0.7); }

.btn-option:active {
  transform: scale(0.96) !important;
  transition-duration: 0.08s !important;
}

/* Gender options — larger comfortable touch target */
.btn-option--gender {
  padding: 12px 20px;
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════
   CALCULATE BUTTON — Apple-grade CTA
   ═══════════════════════════════════════════════════════ */

.btn-calculate {
  background: var(--ios-blue);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  border-radius: 14px;
  padding: 17px 32px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 16px rgba(0, 122, 255, 0.4),
    0 1px 4px rgba(0, 122, 255, 0.3);
  transition:
    transform 0.18s var(--spring),
    box-shadow 0.2s ease,
    background-color 0.15s ease;
  margin-top: 28px;
  cursor: pointer;
}

.btn-calculate:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 24px rgba(0, 122, 255, 0.45),
    0 2px 8px rgba(0, 122, 255, 0.25);
}

.btn-calculate:active {
  transform: scale(0.98) translateY(0);
  box-shadow:
    0 0 0 rgba(255, 255, 255, 0) inset,
    0 2px 8px rgba(0, 122, 255, 0.3);
  transition-duration: 0.08s;
}

/* Loading state — shown by JS during calculation */
.btn-calculate.loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn-calculate.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  margin-left: 10px;
  vertical-align: middle;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════
   PRIVACY NOTE
   ═══════════════════════════════════════════════════════ */

.privacy-note {
  font-size: 0.8rem;
  color: rgba(60, 60, 67, 0.45);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════════════════
   ADVANCED TOGGLE — iOS-style disclosure row
   ═══════════════════════════════════════════════════════ */

.advanced-toggle {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  transition: opacity 0.15s ease;
}

.advanced-toggle:hover {
  opacity: 0.75;
}

.advanced-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ios-blue);
  gap: 8px;
}

.advanced-toggle-label svg {
  opacity: 0.7;
}

.advanced-toggle-arrow {
  color: rgba(0, 122, 255, 0.6);
  font-size: 1rem;
  transition: transform 0.25s var(--spring);
}

.advanced-toggle.open .advanced-toggle-arrow {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════
   LIQUID INTAKE GRID — refined item cards
   ═══════════════════════════════════════════════════════ */

.liquid-grid {
  gap: 10px;
}

.liquid-item {
  background: #F8FAFC;
  border: 1.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.liquid-item:focus-within {
  border-color: var(--ios-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.08);
}

.liquid-item-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1C1C1E;
}

.liquid-item-size {
  font-size: 0.71rem;
  color: rgba(60, 60, 67, 0.5);
}

.liquid-count {
  width: 44px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
  padding: 5px 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1C1C1E;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.liquid-count:focus {
  border-color: var(--ios-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
  outline: none;
}

/* ═══════════════════════════════════════════════════════
   RESULTS PANEL — cinematic reveal
   ═══════════════════════════════════════════════════════ */

.results-panel {
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  animation: results-reveal 0.5s var(--ease-out) both;
}

.results-panel.show {
  display: block;
}

@keyframes results-reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Results title */
.results-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(60, 60, 67, 0.6);
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.results-title::before,
.results-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.08), transparent);
}

/* Result cards grid */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

/* Individual result card */
.result-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ios-blue), var(--ios-blue-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.results-panel.show .result-card::before {
  opacity: 1;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 122, 255, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-value {
  font-size: 2.125rem;
  font-weight: 800;
  color: #1C1C1E;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}

/* Override primary color on result values */
[data-result="oz"]     .result-value,
[data-result="liters"] .result-value,
[data-result="glasses"].result-value,
.result-card .result-value[data-result] {
  color: var(--ios-blue);
}

.result-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(60, 60, 67, 0.55);
  letter-spacing: 0.01em;
  text-transform: none;
}

.result-label {
  font-size: 0.8rem;
  color: rgba(60, 60, 67, 0.55);
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════
   WATER BOTTLE ANIMATION — elevated
   ═══════════════════════════════════════════════════════ */

.water-visual {
  margin-bottom: 20px;
}

.water-bottle-svg {
  filter: drop-shadow(0 4px 12px rgba(0, 122, 255, 0.15));
}

.glasses-row {
  gap: 10px;
  margin-top: 14px;
}

.glass-icon {
  font-size: 1.375rem;
  opacity: 0.2;
  transition: opacity 0.3s ease, transform 0.35s var(--spring);
}

.glass-icon.filled {
  opacity: 1;
  transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════
   HIGHLIGHT BOX (result note) — refined card
   ═══════════════════════════════════════════════════════ */

.highlight-box {
  background: rgba(0, 122, 255, 0.04);
  border-left: 3px solid var(--ios-blue);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 20px 0 0;
}

.highlight-box p {
  font-size: 0.8375rem;
  color: #3C3C43;
  margin: 0;
  line-height: 1.6;
}

.highlight-box strong {
  color: #1C1C1E;
}

/* ═══════════════════════════════════════════════════════
   BREAKDOWN TABLE — clean stripes
   ═══════════════════════════════════════════════════════ */

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border-radius: 12px;
  overflow: hidden;
}

.breakdown-table th {
  background: rgba(0, 122, 255, 0.06);
  padding: 11px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1C1C1E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.breakdown-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  color: #3C3C43;
  font-size: 0.875rem;
}

.breakdown-table tr:last-child td { border-bottom: none; }
.breakdown-table tr:nth-child(even) td { background: rgba(0, 0, 0, 0.015); }

/* ═══════════════════════════════════════════════════════
   SECTION TITLE divider — SF-style
   ═══════════════════════════════════════════════════════ */

.calc-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ios-blue);
  margin-bottom: 18px;
}

.calc-section-title::after {
  background: rgba(0, 122, 255, 0.12);
  height: 1px;
}

/* ═══════════════════════════════════════════════════════
   CONTENT SECTIONS — refined typography
   ═══════════════════════════════════════════════════════ */

.content-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  color: #1C1C1E;
  font-weight: 700;
}

.content-section h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.015em;
  color: #1C1C1E;
  font-weight: 600;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #3C3C43;
}

.content-section--alt {
  background: #F8FAFD;
}

/* ═══════════════════════════════════════════════════════
   DATA TABLES — refined stripes
   ═══════════════════════════════════════════════════════ */

.table-wrap {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.data-table th {
  background: #F4F7FB;
  padding: 13px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1C1C1E;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.9rem;
  color: #3C3C43;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(0, 122, 255, 0.025); }

/* ═══════════════════════════════════════════════════════
   FAQ — iOS disclosure list style
   ═══════════════════════════════════════════════════════ */

.faq-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 2px 12px rgba(0, 0, 0, 0.04);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  padding: 18px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1C1C1E;
  cursor: pointer;
  transition: background 0.15s ease;
  list-style: none;
  gap: 16px;
}

.faq-question:hover { background: rgba(0, 0, 0, 0.02); }

.faq-icon {
  color: var(--ios-blue);
  font-size: 1.25rem;
  font-weight: 300;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 122, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0rem;
  transition: transform 0.25s var(--spring), background 0.2s ease;
}

details[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(0, 122, 255, 0.15);
}

.faq-answer {
  padding: 0 20px 18px 20px;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #3C3C43;
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════
   INFO CARDS — premium glass cards
   ═══════════════════════════════════════════════════════ */

.info-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 24px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.25s var(--spring),
    box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-card-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1C1C1E;
  margin-top: 0 !important; /* fix existing mt-32 bug on all cards */
}

.info-card p {
  font-size: 0.875rem;
  color: #6C6C70;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   CALC LINK CARDS — horizontal pill navigation
   ═══════════════════════════════════════════════════════ */

.calc-link-card {
  border-radius: 12px;
  padding: 12px 16px;
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  font-size: 0.875rem;
  font-weight: 500;
  color: #3C3C43;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--spring),
    box-shadow 0.2s ease;
}

.calc-link-card:hover {
  border-color: rgba(0, 122, 255, 0.3);
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.1);
}

.calc-links-section {
  background: #F4F7FC;
  padding: 44px 0;
}

.calc-links-section h2 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(60, 60, 67, 0.5);
  margin-bottom: 20px;
}

.calc-links-section h2::after {
  background: rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO (about / contact / corporate)
   ═══════════════════════════════════════════════════════ */

.page-hero {
  background:
    radial-gradient(ellipse 100% 60% at 70% -10%, rgba(0, 122, 255, 0.06) 0%, transparent 55%),
    linear-gradient(160deg, #EEF6FF 0%, #F5FAFF 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB — subdued iOS-style
   ═══════════════════════════════════════════════════════ */

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(60, 60, 67, 0.55);
}

.breadcrumb a {
  color: var(--ios-blue);
  font-weight: 500;
}

.breadcrumb-sep {
  color: rgba(60, 60, 67, 0.3);
}

/* ═══════════════════════════════════════════════════════
   HEADER — enhanced glass sticky
   ═══════════════════════════════════════════════════════ */

.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.08);
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #3C3C43;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ios-blue);
  background: rgba(0, 122, 255, 0.06);
}

.nav-home-btn {
  background: var(--ios-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3) !important;
  transition: box-shadow 0.2s ease, transform 0.15s var(--spring) !important;
}

.nav-home-btn:hover {
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.logo-text {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -0.01em;
}

.logo-text span {
  color: rgba(60, 60, 67, 0.45);
  font-size: 0.72rem;
}

.logo-icon {
  background: linear-gradient(140deg, var(--ios-blue) 0%, var(--ios-blue-light) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════
   FOOTER — polished dark surface
   ═══════════════════════════════════════════════════════ */

.site-footer {
  background: #1C1C1E;
}

.footer-links a {
  transition: color 0.15s ease;
}

.footer-col-title {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════
   INLINE ERROR MESSAGES
   ═══════════════════════════════════════════════════════ */

.inline-error {
  font-size: 0.8rem;
  color: #FF3B30;
  font-weight: 500;
  display: none;
  margin-top: 5px;
  align-items: center;
  gap: 5px;
  animation: shake 0.3s var(--spring);
}

.inline-error.show { display: flex; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════════════════
   RESULT COUNTER ANIMATION — numbers count up
   ═══════════════════════════════════════════════════════ */

.result-value {
  transition: opacity 0.15s ease, transform 0.3s var(--spring);
}

.result-value.counting {
  opacity: 0.6;
  transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   MOBILE RESPONSIVE REFINEMENTS
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  .calc-hero-section { padding: 12px 0 28px; }

  .calc-hero-card {
    border-radius: 18px;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.6) inset,
      0 4px 20px rgba(0, 0, 0, 0.08);
  }

  .calc-hero-form { padding: 18px 18px 24px; }

  .results-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  .result-card { padding: 16px 12px; border-radius: 14px; }
  .result-value { font-size: 1.75rem; }

  .btn-option { border-radius: 10px; }
  .btn-calculate { border-radius: 12px; padding: 16px 24px; font-size: 1rem; }

  .faq-list { border-radius: 14px; }
  .faq-question { padding: 16px 16px; }
  .faq-answer { padding: 0 16px 14px; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .result-value { font-size: 2.25rem; }
  .result-card { padding: 18px 16px; }
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL — staggered entrance for cards
   ═══════════════════════════════════════════════════════ */

.animate-in {
  animation: card-reveal 0.5s var(--ease-out) both;
}

@keyframes card-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card:nth-child(1) { animation-delay: 0.05s; }
.info-card:nth-child(2) { animation-delay: 0.10s; }
.info-card:nth-child(3) { animation-delay: 0.15s; }
.info-card:nth-child(4) { animation-delay: 0.20s; }

/* ═══════════════════════════════════════════════════════
   TRUST CHIPS — mini social proof pills in info panel
   ═══════════════════════════════════════════════════════ */

.calc-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(60, 60, 67, 0.55);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 100px;
  padding: 3px 9px;
  letter-spacing: 0.01em;
}

/* Hide trust chips on mobile where info panel is compact */
@media (max-width: 767px) {
  .calc-trust-chips { display: none; }
}

/* ═══════════════════════════════════════════════════════
   FRONT PAGE HERO — extra polish
   ═══════════════════════════════════════════════════════ */

.hero h1 {
  color: #1C1C1E;
  letter-spacing: -0.03em;
}

.hero p {
  color: #3C3C43;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Hero calc card gets an extra lift */
.calc-card--hero {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.8) inset,
    0 4px 8px rgba(0, 0, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.09),
    0 40px 100px rgba(0, 122, 255, 0.06);
}

/* ═══════════════════════════════════════════════════════
   CONTENT HEADER — centred section intros
   ═══════════════════════════════════════════════════════ */

.content-header h2 {
  color: #1C1C1E;
  letter-spacing: -0.025em;
}

.content-header p {
  color: #6C6C70;
  font-size: 1.0625rem;
  line-height: 1.7;
}
