  :root {
    --bg: #ffffff;
    --bg-2: #f6f9fd;
    --surface: #ffffff;
    --surface-2: #f1f5fb;
    --border: rgba(15, 42, 92, 0.08);
    --border-strong: rgba(15, 42, 92, 0.16);
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #94a3b8;

    --accent: #2563eb;
    --accent-soft: #60a5fa;
    --accent-deep: #1d4ed8;
    --accent-glow: rgba(37, 99, 235, 0.18);
    --success: #16a34a;
    --gold: #d97706;

    --grad-accent: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    --grad-subtle: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
    --grad-mesh: radial-gradient(at 20% 10%, rgba(37, 99, 235, 0.10) 0px, transparent 50%),
                 radial-gradient(at 85% 65%, rgba(96, 165, 250, 0.10) 0px, transparent 50%),
                 radial-gradient(at 50% 100%, rgba(29, 78, 216, 0.05) 0px, transparent 50%);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;

    --shadow-md: 0 1px 2px rgba(15, 42, 92, 0.04), 0 8px 24px rgba(15, 42, 92, 0.08);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

  body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    font-feature-settings: "ss01", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--grad-mesh);
    pointer-events: none;
    z-index: 0;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
  }

  /* NAV */
  .nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
  }
  .logo {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 10px;
    color: var(--text);
  }
  .logo-mark {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: var(--grad-accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Geist', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 12px var(--accent-glow);
  }
  .nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 400; }
  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--text); }
  @media (max-width: 720px) { .nav-links { display: none; } }

  .nav-cta {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.04);
    color: var(--accent);
    border: 1px solid var(--border-strong);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
  }
  .nav-cta:hover { background: rgba(37, 99, 235, 0.08); }

  /* HERO */
  .hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 60px;
    position: relative;
    z-index: 1;
  }

  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px;
    padding: 6px 14px 6px 10px;
    margin-bottom: 32px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 400;
    backdrop-filter: blur(8px);
    animation: slideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    animation: pulse 2s ease-in-out infinite;
  }
  .hero-badge .arrow { opacity: 0.4; margin-left: 4px; }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }

  .hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.0;
    letter-spacing: -0.045em;
    margin-bottom: 28px;
    max-width: 900px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  }
  .hero h1 em {
    font-style: italic;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-sub {
    max-width: 580px;
    font-size: 19px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.55;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  }

  .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--grad-accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 8px 24px var(--accent-glow);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }
  .hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.32);
  }
  .hero-cta svg { transition: transform 0.2s; }
  .hero-cta:hover svg { transform: translateX(3px); }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  }
  @media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
  .hero-stats div strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 36px;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 4px;
  }
  .hero-stats div span {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
  }

  /* AD SLOTS */
  .ad-slot {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }
  .ad-box {
    min-height: 100px;
    background: var(--bg-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    padding: 20px;
  }

  /* CALCULATOR SECTION */
  .calc-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }

  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
  }
  .section-label::before {
    content: "";
    width: 20px; height: 1px;
    background: var(--accent);
  }

  .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }
  .section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 560px;
  }

  .tabs {
    display: flex; flex-wrap: nowrap; gap: 4px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tabs::-webkit-scrollbar { display: none; }

  .tab {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 10px 18px;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px;
  }
  .tab:hover { color: var(--text); }
  .tab.active {
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(15, 42, 92, 0.08), 0 1px 2px rgba(15, 42, 92, 0.04);
  }
  .tab .tab-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--text-dim);
    transition: background 0.2s;
  }
  .tab.active .tab-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

  .calc-panel {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: none;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .calc-panel.active { display: block; }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  @media (max-width: 860px) {
    .calc-grid { grid-template-columns: 1fr; gap: 32px; }
    .calc-panel { padding: 28px; border-radius: var(--radius); }
  }

  .calc-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .calc-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
    line-height: 1.6;
  }

  .field { margin-bottom: 16px; }
  .field label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
  }
  .field input, .field select {
    width: 100%;
    padding: 13px 14px;
    font-family: 'Geist', sans-serif;
    font-size: 15px;
    font-weight: 400;
    border: 1px solid var(--border-strong);
    background: #ffffff;
    color: var(--text);
    outline: none;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .field input::placeholder { color: var(--text-dim); }
  .field input:hover, .field select:hover {
    border-color: rgba(15, 42, 92, 0.28);
  }
  .field input:focus, .field select:focus {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
  .field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
  }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  @media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

  .btn {
    font-family: 'Geist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 24px;
    background: var(--grad-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.3s, filter 0.2s;
    box-shadow: 0 4px 12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    width: 100%;
    margin-top: 8px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28); filter: brightness(1.05); }
  .btn:active { transform: translateY(0); filter: brightness(0.98); }

  /* RESULTS */
  .result-panel {
    background: linear-gradient(180deg, #f6f9fd 0%, #eaf1fb 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    min-height: 380px;
  }
  .result-panel::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    pointer-events: none;
  }
  .result-panel > * { position: relative; z-index: 1; }

  .result-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-weight: 500;
  }
  .result-big {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 6px;
    word-break: break-word;
  }
  .result-big .ksh {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 8px;
    letter-spacing: 0;
  }
  .result-sub {
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 28px;
  }

  .breakdown {
    border-top: 1px solid var(--border);
    padding-top: 18px;
  }
  .breakdown-row {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 10px 0;
    font-size: 14px;
    animation: fadeIn 0.3s ease both;
  }
  .breakdown-row .label { color: var(--text-muted); }
  .breakdown-row .value {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--text);
  }
  .breakdown-row.highlight {
    margin-top: 14px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: var(--radius-sm);
  }
  .breakdown-row.highlight .label {
    color: var(--accent-deep);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
  }
  .breakdown-row.highlight .value {
    color: var(--text);
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: -0.02em;
  }

  .placeholder-msg {
    color: var(--text-dim);
    padding: 60px 0;
    text-align: center;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
  }
  .placeholder-msg .arrow {
    display: block;
    margin-top: 12px;
    font-size: 24px;
    opacity: 0.4;
  }

  .note {
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex; gap: 10px;
  }
  .note-icon {
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 600;
  }

  /* INFO */
  .info-section {
    max-width: 1200px;
    margin: 120px auto 40px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
  }
  .info-header { margin-bottom: 48px; }
  .info-header h2 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 800px;
  }
  .info-header h2 em {
    font-style: italic;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

  .info-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 42, 92, 0.03);
  }
  .info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-subtle);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .info-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 32px rgba(15, 42, 92, 0.08);
  }
  .info-card:hover::before { opacity: 1; }
  .info-card > * { position: relative; z-index: 1; }

  .info-card .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04));
    border: 1px solid rgba(37, 99, 235, 0.18);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
  }
  .info-card h3 {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }
  .info-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
  }

  /* FOOTER */
  footer {
    padding: 60px 24px 32px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
    background: #0f172a;
    color: #cbd5e1;
  }
  .foot-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
  }
  @media (max-width: 720px) { .foot-inner { grid-template-columns: 1fr; gap: 32px; } }
  .foot-inner h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 500;
  }
  .foot-inner p, .foot-inner a {
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    line-height: 1.6;
    transition: color 0.2s;
  }
  .foot-inner a:hover { color: #60a5fa; }
  .foot-inner .logo { color: #ffffff; }
  .foot-bottom {
    max-width: 1200px;
    margin: 48px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 12px;
    color: #64748b;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  }

  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-2); }
  ::-webkit-scrollbar-thumb { background: rgba(15, 42, 92, 0.15); border-radius: 10px; border: 2px solid var(--bg-2); }
  ::-webkit-scrollbar-thumb:hover { background: rgba(15, 42, 92, 0.25); }

  ::selection { background: var(--accent); color: #fff; }

  /* ============================================================
     MOBILE RESPONSIVE PASS
     Breakpoints: 768 (tablet), 600 (large phone), 420 (small phone)
     ============================================================ */

  /* Prevent iOS from zooming when focusing inputs (requires 16px+ font) */
  @media (max-width: 768px) {
    .field input, .field select { font-size: 16px; }
  }

  /* ----- Tablet & below (≤768px) ----- */
  @media (max-width: 768px) {
    .nav-inner { padding: 12px 16px; }
    .logo { font-size: 19px; }
    .logo-mark { width: 26px; height: 26px; font-size: 10px; }

    .hero { padding: 48px 16px 40px; }
    .hero h1 { font-size: clamp(40px, 10vw, 64px); margin-bottom: 20px; }
    .hero-sub { font-size: 16px; margin-bottom: 32px; }
    .hero-stats { margin-top: 48px; padding-top: 24px; gap: 20px 16px; }
    .hero-stats div strong { font-size: 28px; }
    .hero-stats div span { font-size: 12px; }

    .ad-slot { padding: 0 16px; }

    .calc-wrap { padding: 0 16px; margin: 32px auto; }
    .section-desc { font-size: 15px; margin-bottom: 28px; }

    /* Tabs: let them scroll horizontally, snug padding */
    .tabs {
      width: 100%;
      padding: 4px;
      gap: 2px;
      margin-bottom: 16px;
    }
    .tab { padding: 9px 14px; font-size: 12.5px; }

    /* Calc panel: looser vertical rhythm, tighter horizontal */
    .calc-panel { padding: 24px 18px; border-radius: 16px; }
    .calc-grid { gap: 28px; }
    .calc-title { font-size: 28px; }
    .calc-desc { font-size: 14px; margin-bottom: 22px; }

    .field { margin-bottom: 14px; }
    .field input, .field select { padding: 12px 14px; }

    .note { padding: 11px 13px; font-size: 12.5px; }

    .btn { padding: 14px 20px; font-size: 14px; }

    /* Result panel: prevent big number overflow */
    .result-panel { padding: 26px 22px; min-height: 320px; }
    .result-big { font-size: clamp(36px, 11vw, 48px); }
    .result-big .ksh { font-size: 14px; margin-right: 6px; }
    .result-label { font-size: 11px; }
    .result-sub { font-size: 12px; margin-bottom: 22px; }
    .breakdown-row { font-size: 13px; padding: 9px 0; }
    .breakdown-row.highlight { padding: 14px; }
    .breakdown-row.highlight .value { font-size: 20px; }

    .info-section { margin: 80px auto 32px; padding: 0 16px; }
    .info-header { margin-bottom: 32px; }
    .info-card { padding: 24px; }
    .info-card h3 { font-size: 22px; }

    footer { padding: 48px 16px 24px; margin-top: 64px; }
    .foot-bottom { flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 32px; }
  }

  /* ----- Large phone (≤600px) ----- */
  @media (max-width: 600px) {
    .nav-cta { padding: 7px 12px; font-size: 12.5px; }
    /* If it gets too cramped, drop the CTA and rely on the big hero CTA instead */
    @media (max-width: 420px) { .nav-cta { display: none; } }

    .hero { padding: 36px 16px 32px; }
    .hero-badge { font-size: 12px; padding: 5px 12px 5px 9px; margin-bottom: 24px; }
    .hero-badge .arrow { display: none; }
    .hero h1 {
      font-size: clamp(36px, 11vw, 52px);
      letter-spacing: -0.035em;
      line-height: 1.02;
    }
    /* Break <br> is fine but ensure no overflow */
    .hero-sub { font-size: 15.5px; max-width: 100%; }
    .hero-cta { padding: 13px 22px; font-size: 14.5px; }

    .calc-title { font-size: 26px; }

    /* Tab labels shrink */
    .tab { padding: 9px 12px; font-size: 12px; gap: 6px; }
    .tab .tab-dot { width: 4px; height: 4px; }

    /* Info heading gets tighter */
    .info-header h2 { font-size: clamp(30px, 8vw, 42px); }
  }

  /* ----- Small phone (≤420px) ----- */
  @media (max-width: 420px) {
    .nav-inner { padding: 10px 14px; gap: 10px; }
    .logo { font-size: 17px; gap: 8px; }
    .logo-mark { width: 24px; height: 24px; font-size: 9px; border-radius: 7px; }

    .hero { padding: 28px 14px 28px; }
    .hero h1 { font-size: clamp(32px, 12vw, 44px); margin-bottom: 16px; }
    .hero-sub { font-size: 15px; margin-bottom: 24px; }

    .hero-stats {
      grid-template-columns: repeat(2, 1fr);
      gap: 16px 12px;
      margin-top: 36px;
      padding-top: 20px;
    }
    .hero-stats div strong { font-size: 24px; }
    .hero-stats div span { font-size: 11.5px; }

    .ad-slot { padding: 0 14px; margin: 16px auto; }
    .ad-box { min-height: 80px; font-size: 10px; padding: 16px; }

    .calc-wrap { padding: 0 14px; margin: 24px auto; }
    .section-title { font-size: clamp(26px, 7vw, 34px); }
    .section-desc { font-size: 14px; margin-bottom: 20px; }

    .calc-panel { padding: 20px 16px; border-radius: 14px; }
    .calc-title { font-size: 23px; }
    .calc-desc { font-size: 13.5px; line-height: 1.55; }

    .field label { font-size: 11.5px; }

    .result-panel { padding: 22px 18px; min-height: 280px; }
    .result-big { font-size: clamp(32px, 12vw, 40px); }
    .breakdown-row { font-size: 12.5px; }
    .breakdown-row.highlight .value { font-size: 18px; }

    .info-section { margin: 60px auto 24px; padding: 0 14px; }
    .info-card { padding: 22px 20px; }
    .info-card .icon { width: 36px; height: 36px; margin-bottom: 16px; }
    .info-card h3 { font-size: 20px; }
    .info-card p { font-size: 13.5px; }

    footer { padding: 40px 14px 20px; }
    .foot-inner { gap: 28px; }
    .foot-inner h4 { margin-bottom: 12px; }
  }

  /* ----- Landscape on short screens ----- */
  @media (max-height: 500px) and (orientation: landscape) {
    .hero { padding: 32px 24px 28px; }
    .hero-stats { margin-top: 28px; padding-top: 20px; }
  }

  /* Make sure long numbers never break layout */
  .result-big { overflow-wrap: anywhere; }
  .breakdown-row .value { overflow-wrap: anywhere; text-align: right; padding-left: 12px; }

  /* Honour reduced motion preferences */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 98px;
  height: 48px;
  background-color: #ffffff;
  /* The blue from your screenshot */
  border-radius: 12px;
  /* Gives it that smooth app-icon curve */
  padding: 8px;
  /* Space around the logo inside the blue box */
  object-fit: contain;
}