:root {
    --navy: #0f1f35;
    --navy-mid: #1a2f4a;
    --mint: #2ECC8B;
    --mint-light: #e8faf2;
    --mint-mid: #b8f0d8;
    --red: #F44336;
    --orange: #f39c12;
    --text: #1a2332;
    --text-muted: #6b7d93;
    --border: #e8edf3;
    --white: #ffffff;
    --bg: #f7f9fc;
    --radius-pill: 100px;
    --radius-card: 24px;
    --shadow-soft: 0 4px 24px rgba(15,31,53,0.08);
    --shadow-card: 0 8px 40px rgba(15,31,53,0.12);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  /* SVG icons use `stroke="currentColor"`, so default them to muted text. */
  svg { color: var(--navy); }

  a {
    color: var(--mint);
    font-weight: 600;
  }

  h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
  }

  /* ─── NAV ─── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .nav-logo img {
    padding-right: 8px;
  }

  .nav-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
  }

  .nav-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.3px;
  }

  .nav-links {
    flex: 1;
    position: relative;
    justify-content: center;
    padding-right: 120px; /* Reserve space for absolute language selector on desktop. */
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    overflow: visible; /* Native <select> dropdown should not be clipped. */
  }

  .nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--navy); }

  .nav-links li.nav-lang-item {
    display: flex;
    align-items: center;
    width: 100px;
    overflow: visible;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    z-index: 2; /* Stay above adjacent nav flex items if layouts tighten. */
  }

  .nav-lang-toggle {
    width: 100%;
    height: 39px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.65);
    border-radius: var(--radius-pill);
    padding: 3px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    overflow: hidden; /* Ensure pill corners clip correctly. */
    box-sizing: border-box;
  }

  .nav-lang-pill {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    align-self: stretch;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .nav-lang-pill::-moz-focus-inner {
    border: 0;
    padding: 0;
  }

  .nav-lang-pill:first-child {
    border-top-left-radius: 999px;
    border-bottom-left-radius: 999px;
  }

  .nav-lang-pill:last-child {
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
  }

  button.nav-lang-pill.nav-lang-pill--active {
    background-color: var(--navy);
    color: var(--white);
    border-radius: 999px;
    border-top-right-radius: 999px;
    border-bottom-left-radius: 999px;
    border-bottom-right-radius: 999px;
    border-top-left-radius: 999px;
  }

  .nav-lang-pill:hover:not(.nav-lang-pill--active) {
    background: rgba(15,31,53,0.04);
  }

  .nav-lang-pill:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 204, 139, 0.18);
  }

  /* Don't show the focus ring on the currently selected language pill. */
  button.nav-lang-pill.nav-lang-pill--active:focus {
    box-shadow: none;
  }

  .nav-lang-select {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.65);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    /* Keep the label/value area visually aligned. */
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.15s;
    width: 96px;
    text-align: center;
    /* Helps keep the selected value centered for some browsers. */
    text-align-last: center;
    position: relative;
    z-index: 1001; /* Ensure select UI is above the fixed nav backdrop. */
  }

  /* Custom Language button/dropdown (button-like UI, matching nav styling). */
  .nav-lang-button {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.65);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Required: text <-> chevron gap */
    width: 100%;
    white-space: nowrap;
  }

  .nav-lang-button:hover {
    color: var(--navy);
    border-color: var(--navy-mid);
  }

  .nav-lang-button:focus {
    outline: none;
    border-color: var(--mint-mid);
    box-shadow: 0 0 0 4px rgba(46, 204, 139, 0.18);
  }

  .nav-lang-chevron {
    color: var(--navy);
    flex-shrink: 0;
  }

  .nav-lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1002; /* Ensure dropdown is above the fixed nav backdrop. */
    width: 100%;
    list-style: none;
    padding: 6px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.94);
    box-shadow: var(--shadow-soft);
    margin: 0;
  }

  .nav-lang-option {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    transition: background 0.15s, color 0.15s;
  }

  .nav-lang-option:hover,
  .nav-lang-option:focus-visible {
    background: rgba(46, 204, 139, 0.12);
    color: var(--navy);
  }

  .nav-lang-option--active {
    background: rgba(46, 204, 139, 0.16);
    color: var(--navy);
    font-weight: 600;
  }

  .nav-lang-item.open .nav-lang-button[aria-expanded="true"] {
    border-color: var(--navy-mid);
    color: var(--navy);
  }

  .nav-lang-select:hover {
    color: var(--navy);
    border-color: var(--navy-mid);
  }

  .nav-lang-select:focus {
    outline: none;
    border-color: var(--mint-mid);
    box-shadow: 0 0 0 4px rgba(46, 204, 139, 0.18);
  }

  .nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: var(--radius-pill);
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.15s !important;
  }

  .nav-cta:hover {
    background: var(--navy-mid) !important;
    transform: translateY(-1px);
  }

  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
  }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    padding-top: 68px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding-left: 7%;
    padding-right: 5%;
    background: var(--white);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(46,204,139,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint-light);
    border: 1px solid var(--mint-mid);
    color: #1a8a5a;
    padding: 6px 14px 6px 6px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.6s 0.1s forwards;
  }

  .hero-badge-dot {
    width: 22px;
    height: 22px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }

  .hero-title {
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
  }

  .hero-title em {
    font-style: normal;
    color: var(--mint);
  }

  .hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.6s 0.3s forwards;
  }

  .hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s forwards;
  }

  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white);
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(15,31,53,0.25);
  }

  .btn-primary svg {
    color: var(--white);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(15,31,53,0.3);
  }

  .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-muted);
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
  }

  .btn-secondary:hover { color: var(--navy); }

  .hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    opacity: 0;
    animation: fadeUp 0.6s 0.5s forwards;
  }

  .hero-trust-avatars {
    display: flex;
  }

  .hero-trust-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: var(--mint-light);
  }

  .hero-trust-avatars span:first-child { margin-left: 0; }

  .hero-trust-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
  }

  .hero-trust-text strong {
    color: var(--text);
    font-weight: 600;
  }

  /* ─── PHONE MOCKUP ─── */
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeLeft 0.8s 0.3s forwards;
  }

  .phone-wrapper {
    position: relative;
    width: 280px;
  }

  .phone-frame {
    width: 280px;
    background: var(--navy);
    border-radius: 44px;
    padding: 14px;
    box-shadow: 0 32px 80px rgba(15,31,53,0.35), 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
  }

  .phone-screen {
    background-color: var(--navy);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Same aspect as phone-screen-intora-en.png (462×1024) at every breakpoint */
    aspect-ratio: 462 / 1024;
    height: auto;
  }

  .phone-screen > :not(.phone-screen-image) { display: none; }
  .phone-screen-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
    user-select: none;
  }

  /* Phone notch */
  .phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: var(--navy);
    border-radius: 0 0 16px 16px;
    z-index: 5;
  }

  .phone-header {
    background: var(--navy);
    padding: 28px 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .phone-header-logo {
    display: flex;
    align-items: center;
  }

  .phone-header-logo img {
    height: 22px;
    width: auto;
  }

  .phone-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Keep the avatar icon size consistent with the design preview. */
  .phone-avatar svg {
    width: 20px;
    height: 20px;
  }

  .phone-chips {
    display: flex;
    gap: 7px;
    padding: 10px 12px 0;
    overflow: hidden;
    background: white;
  }

  .phone-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--mint-light);
    border: 1.5px solid var(--mint);
    border-radius: 20px;
    padding: 4px 8px 4px 6px;
    font-size: 10px;
    font-weight: 600;
    color: var(--mint);
    white-space: nowrap;
  }

  span.phone-chip-icon {
    height: 14px;
  }

  .phone-chip-check {
    width: 13px;
    height: 13px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    font-weight: 700;
  }

  .phone-filters {
    display: flex;
    gap: 7px;
    padding: 7px 12px;
    background: white;
  }

  .phone-filter {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 9px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .phone-section-label {
    padding: 8px 12px 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f4f8;
  }

  .phone-results-badge {
    background-color: var(--text-muted);
    color: white;
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
  }

  .phone-list {
    background: white;
    margin: 0 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

  .phone-food-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
  }

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

  .phone-food-icon {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .phone-food-name {
    display: flex;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    /* Keep a fixed label column so the dots align vertically */
    width: 60px !important;
    min-width: 60px;
    max-width: 60px;
    flex: 0 0 60px !important;
    overflow: hidden;
    text-align: left;
  }

  .phone-intol-dots {
    display: flex;
    gap: 3px;
    align-items: center;
    flex: 0 0 73px; /* 4 dots * 16px + 3 gaps * 3px */
    min-width: 73px;
  }

  .phone-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    color: white;
  }

  .phone-dot svg {
    display: block;
    stroke: #fff !important;
    fill: none;
  }

  /* Keep red dot icons visible on the red background. */
  .phone-dot.red svg {
    stroke: #fff !important;
    color: var(--white);
  }

  .phone-dot.red svg path {
    stroke: #fff !important;
    color: var(--white);
  }

  .phone-dot.green { background-color: rgba(23, 155, 100, 1); }
  .phone-dot.red { background: var(--red); }
  .phone-dot.gray { background: #cdd5de; }

  .phone-bookmark {
    color: #cdd5de;
    margin-left: 4px;
    width: 12px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .phone-bookmark svg {
    display: block;
    width: 12px;
    height: 18px;
  }

  .phone-bookmark svg path {
    height: 12px;
  }

  .phone-bookmark.saved { color: var(--mint); }

  .phone-nav-bar {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    background: var(--navy);
    padding: 10px 20px 16px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-radius: 0 0 32px 32px;
  }

  .phone-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
    transition: all 0.2s;
  }

  /* Allow the phone nav icon SVGs to follow the parent container color. */
  .phone-nav-icon svg { color: inherit; }

  .phone-nav-icon.active {
    background: rgba(46,204,139,0.2);
    color: var(--mint);
  }

  /* Muted color for active SVG icons (matches browser preview update). */
  .phone-nav-icon.active svg {
    color: var(--text-muted);
  }

  /* Floating cards */
  .float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 12px 16px;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
  }

  .float-card-1 {
    top: 40px;
    right: -80px;
    width: 160px;
    animation-delay: 0s;
  }

  .float-card-2 {
    bottom: 100px;
    left: -80px;
    width: 170px;
    animation-delay: 2s;
  }

  .float-card-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }

  .float-card-value {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .float-card-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 1px 8px;
    border-radius: 20px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  .float-card-badge.green { background-color: rgba(243, 156, 18, 0.43); color: var(--red); }
  .float-card-badge.red {
    background-color: var(--red);
    color: var(--white);
    display: flex;
    height: 21px;
  }

  .float-bar {
    height: 5px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 6px;
    overflow: hidden;
  }

  .float-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--mint);
    width: 30%;
  }

  .float-bar-fill.high { background: var(--red); width: 90%; }

  /* Override Floating Card 2 styles to match the previewed values. */
  .float-card-2 .float-card-badge.red { background-color: rgba(255, 152, 0, 1); }
  .float-card-2 .float-bar-fill { width: 95px; background-color: rgba(255, 152, 0, 1); }

  /* ─── INTOLERANCES STRIP ─── */
  .intolerances-section {
    background: var(--bg);
    padding: 80px 5%;
    overflow: hidden;
  }

  .section-eyebrow {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
  }

  .section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--navy);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 14px;
  }

  .section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 52px;
    line-height: 1.6;
  }

  .intol-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    /* Enable container queries so we can wrap based on available grid width. */
    container-type: inline-size;
  }

  /*
    If the grid container can't fit the 4-card row, switch to a 2x2 layout.
    This keeps the behavior responsive even when viewport breakpoints don't match.
  */
  @container (max-width: 960px) {
    .intol-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
    }
  }

  .intol-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    width: 100%;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    cursor: default;
    min-width: 228px;
    justify-self: stretch;
    max-width: none;
  }

  .intol-card:hover {
    border-color: var(--mint);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
  }

  .intol-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    background: var(--bg);
  }

  .intol-card-name {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .intol-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ─── FEATURES ─── */
  .features-section {
    padding: 100px 5%;
    background: white;
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .feature-card {
    background: var(--bg);
    border-radius: var(--radius-card);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
  }

  .feature-card:hover { transform: translateY(-4px); }

  .feature-card.large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--navy);
    color: white;
  }

  .feature-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }

  .feature-card.large .feature-card-icon {
    background: rgba(46,204,139,0.15);
  }

  .feature-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
  }

  .feature-card.large .feature-card-title { color: white; font-size: 22px; }

  .feature-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .feature-card.large .feature-card-desc { color: rgba(255,255,255,0.65); }

  .feature-card-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mini-food-row {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
  }

  .mini-food-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: white;
    font-weight: 500;
  }

  .mini-food-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
  }

  .mini-food-status.safe { background: rgba(243, 156, 18, 0.2); color: var(--orange); }
  .mini-food-status.high { background: rgba(231,76,60,0.2); color: #ff6b5b; }

  /* Barcode feature card */
  .barcode-visual {
    margin-top: 20px;
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  }

  .barcode-lines {
    display: flex;
    gap: 2px;
    height: 36px;
    align-items: flex-end;
  }

  .barcode-lines span {
    display: block;
    background: var(--navy);
    border-radius: 1px;
    opacity: 0.8;
  }

  .barcode-scan-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mint), transparent);
    animation: scan 2s ease-in-out infinite;
  }

  .barcode-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
  }

  /* ─── HOW IT WORKS ─── */
  .how-section {
    background: var(--bg);
    padding: 100px 5%;
  }

  .steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
  }

  .steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 16.5%;
    right: 16.5%;
    height: 1px;
    background: var(--mint-mid);
    z-index: 0;
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--mint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--mint);
    margin-bottom: 20px;
    box-shadow: 0 0 0 6px var(--bg);
  }

  .step-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
  }

  .step-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
  }

  /* ─── FOOD MARQUEE ─── */
  .marquee-section {
    background: var(--white);
    padding: 60px 0;
    overflow: hidden;
  }

  .marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 25s linear infinite;
  }

  .marquee-track.reverse {
    animation-direction: reverse;
    animation-duration: 30s;
    margin-top: 12px;
  }

  .marquee-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    transition: border-color 0.2s;
  }

  .marquee-pill-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
  }

  .marquee-pill-badge.safe { background: var(--mint-light); color: #1a8a5a; }
  .marquee-pill-badge.high { background: #fdecea; color: var(--red); }
  .marquee-pill-badge.medium { background: #fff8e6; color: #b8860b; }

  /* ─── NUTRI-SCORE ─── */
  .nutri-section {
    padding: 100px 5%;
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }

  .nutri-card {
    background: white;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }

  .nutri-card-header {
    background: #1C2E47;
    padding: 20px 24px;
  }

  .nutri-card-food {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .nutri-card-food-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
  }

  .nutri-card-food-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
  }

  .nutri-card-food-cat {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
  }

  .nutri-card-food-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .nutri-card-bookmark {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nutri-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nutri-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
  }

  .nutri-quality {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
  }

  .nutri-scores {
    display: flex;
    gap: 5px;
  }

  .nutri-score-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
  }

  .nutri-score-btn.active {
    background: var(--red);
    color: white;
  }

  .nutri-card-body {
    padding: 8px 0;
    background: white;
  }

  .nutri-row {
    padding: 14px 24px;
    border-bottom: 1px solid #f0f3f7;
  }

  .nutri-row:last-child { border-bottom: none; }

  .nutri-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .nutri-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
  }

  .nutri-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nutri-status {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
  }

  .nutri-status.none { background: var(--mint); color: white; }
  .nutri-status.high { background: var(--red); color: white; }
  .nutri-status.medium { background: var(--orange); color: white; }

  .nutri-bar {
    height: 5px;
    background: #eef1f5;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
  }

  .nutri-bar-fill {
    height: 100%;
    border-radius: 3px;
  }

  .nutri-bar-fill.none-bar { background: var(--mint); width: 5%; }
  .nutri-bar-fill.high-bar { background: var(--red); width: 95%; }
  .nutri-bar-fill.medium-bar { background: var(--orange); width: 55%; }

  .nutri-row-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
  }

  .nutri-caution {
    margin: 0 16px 16px;
    background: #fdecea;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .nutri-caution-icon {
    color: var(--red);
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .nutri-caution-icon svg {
    color: var(--red);
  }

  .nutri-caution-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 2px;
  }

  .nutri-caution-desc {
    font-size: 12px;
    color: #a93226;
  }

  .nutri-text-content h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 18px;
  }

  .nutri-text-content p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
  }

  /* Override generic nutri paragraph typography for the eyebrow label. */
  .nutri-text-content p.section-eyebrow {
    font-size: 12px;
    color: var(--mint);
  }

  .feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
  }

  .feature-list-check {
    width: 22px;
    height: 22px;
    background: var(--mint-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mint);
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  /* ─── CTA ─── */
  .cta-section {
    background: var(--navy);
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,204,139,0.15) 0%, transparent 65%);
    pointer-events: none;
  }

  .cta-section h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: white;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
  }

  .cta-section p {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
    position: relative;
  }

  .cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
  }

  .btn-mint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint);
    color: var(--navy);
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(46,204,139,0.35);
  }

  .btn-mint:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(46,204,139,0.45);
  }

  .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background 0.2s, color 0.2s;
  }

  .btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    color: white;
  }

  .cta-disclaimer {
    margin-top: 36px;
    padding-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    position: relative;
  }

  /* ─── FOOTER ─── */
  footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 40px 5% 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 24px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }

  .footer-logo-icon {
    width: 32px;
    height: 32px;
    background: rgba(46,204,139,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }

  .footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: white;
  }

  .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }

  .footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }

  .footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s;
  }

  .footer-social-link:hover {
    color: rgba(255, 255, 255, 1);
  }

  .footer-social-link svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease;
  }

  .footer-social-link svg.lucide {
    color: rgba(255, 255, 255, 0.4);
  }

  .footer-social-link:hover svg.lucide {
    color: rgba(255, 255, 255, 1);
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .footer-links a {
    text-decoration: none;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    transition: color 0.2s;
  }

  .footer-links a:hover { color: rgba(255,255,255,0.8); }

  .footer-credit {
    text-align: right;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
  }

  .footer-credit a {
    color: var(--mint);
    text-decoration: none;
    font-weight: 600;
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

  @keyframes scan {
    0% { transform: translateY(-20px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(40px); opacity: 0; }
  }

  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  /* Intersection observer fade */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .hero {
      grid-template-columns: 1fr;
      padding: 100px 5% 60px;
      text-align: center;
    }

    .hero-subtitle { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-visual { order: -1; }

    .float-card-1 { right: -20px; top: 20px; }
    .float-card-2 { left: -20px; bottom: 80px; }

    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-card.large { grid-column: span 2; }

    /* When desktop width can't accommodate 4 cards comfortably, switch to a 2x2 grid. */
    .intol-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
    }

    .nutri-section {
      grid-template-columns: 1fr;
      gap: 48px;
      max-width: 600px;
    }

    footer {
      grid-template-columns: 1fr;
      text-align: center;
    }

    .footer-links { justify-content: center; }
    .footer-credit { text-align: center; }

    /* Keep language + CTA visible and side-by-side on smaller screens.
       Desktop uses an absolutely-positioned language selector, which can
       overlap the CTA when width is reduced. */
    .nav-links {
      display: flex;
      gap: 16px;
      position: static;
      flex: none;
      justify-content: center;
      padding-right: 0;
    }
    /* Only hide "page section links"; keep language + CTA visible. */
    .nav-links > li { display: none; }
    .nav-links > li.nav-lang-item,
    .nav-links > li.nav-cta-item { display: block; }
    .nav-links li.nav-lang-item {
      position: static;
      right: auto;
      top: auto;
      transform: none;
    }
  }

  @media (max-width: 768px) {
    /* Keep language + CTA visible on mobile (no hamburger menu). */
    .nav-links {
      display: flex;
      gap: 16px;
      position: static;
      flex: none;
      justify-content: center;
      padding-right: 0;
    }
    /* Only hide top-bar items; keep dropdown <li> options visible. */
    .nav-links > li { display: none; }
    .nav-links > li.nav-lang-item,
    .nav-links > li.nav-cta-item { display: block; }
    .nav-links li.nav-lang-item {
      position: static;
      right: auto;
      top: auto;
      transform: none;
    }
    .nav-hamburger { display: none; }

    .hero { padding: 90px 5% 60px; }
    .phone-wrapper { width: 240px; }
    .phone-frame { width: 240px; }
    /* Keep the floating cards visible on smaller screens. */
    .float-card-1, .float-card-2 { display: block; }
    .float-card-1 { right: -10px; top: 20px; }
    .float-card-2 { left: -10px; bottom: 80px; }

    .features-grid {
      grid-template-columns: 1fr;
    }

    .feature-card.large {
      grid-column: span 1;
      grid-template-columns: 1fr;
    }

    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
    .steps-grid::before { display: none; }

    .intol-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(2, 1fr);
    }
  }

  @media (max-width: 480px) {
    .intol-grid {
      grid-template-columns: minmax(228px, 1fr);
      /* Let rows size to content for the single-column layout. */
      grid-template-rows: none;
    }
    .intol-card {
      width: 100%;
      min-width: 228px;
      max-width: none;
      justify-self: stretch;
    }
    .hero-title { font-size: 34px; }
  }

  /* ─── PRIVACY POLICY PAGE ─── */
  .privacy-page {
    padding-top: 100px; /* offset for fixed nav */
    padding-bottom: 90px;
    background: var(--bg);
  }

  .privacy-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 34px 28px;
    background-color: unset;
    background: unset;
    border-width: 0px;
    border-color: rgba(0, 0, 0, 0);
    border-style: none;
    border-image: none;
    border-radius: var(--radius-card);
    box-shadow: none;
  }

  .privacy-eyebrow {
    color: var(--mint);
  }

  .privacy-title {
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 10px;
  }

  .privacy-last-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
  }

  .privacy-lead {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .privacy-content {
    margin-top: 14px;
  }

  .privacy-content h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--navy);
    margin: 26px 0 10px;
    line-height: 1.35;
  }

  .privacy-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy-mid);
    margin: 18px 0 8px;
  }

  .privacy-content p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .privacy-content ul {
    margin: 0 0 16px 18px;
    padding: 0;
  }

  .privacy-content li {
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 10px;
  }

  .privacy-contact {
    margin-top: 0;
  }

  a.privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14.4px;
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
  }

  .privacy-back:hover {
    text-decoration: underline;
  }

  @media (max-width: 768px) {
    .privacy-page { padding-top: 90px; padding-left: 12px; padding-right: 12px; }
    .privacy-container { padding: 26px 18px; }
    .privacy-content p, .privacy-content li { font-size: 13.5px; }
  }