/* Know Halal website, v3 (5 Oct 2026).
   Layout: the app icon, made into a page. Jade fields with ink lettering, white sections set like
   the back of a grocery pack, and one moving moment: a lens reading the small print on a pack.
   Colours are the app's own (app/src/theme/tokens.ts). Type: Bricolage Grotesque for display and
   pack print, Figtree for reading, Reem Kufi only for the word حلال from the logo. */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-stretch: 75% 100%; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Reem Kufi"; src: url("../fonts/reem-kufi-arabic-wght-normal.woff2") format("woff2-variations"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0600-06FF; }

:root {
  --jade: #34D399;
  --jade-tone: #2CC48C;
  --jade-deep: #0B7A4E;
  --ink: #0B0E13;
  --ink-soft: rgba(11, 14, 19, 0.74);
  --ink-faint: rgba(11, 14, 19, 0.56);
  --paper: #FFFFFF;
  --mist: #EEF6F1;
  --mist-2: #E1EFE7;
  --line: rgba(11, 14, 19, 0.12);
  --line-2: rgba(11, 14, 19, 0.22);
  --muted: #56605B;
  --faint: #7A847F;
  --halal: #0B7A4E;  --halal-bg: #E1F5EA;  --halal-fill: #3EDCA1;
  --doubtful: #9A5800; --doubtful-bg: #FFF0D4; --doubtful-fill: #FFB44D;
  --not: #C2261C;    --not-bg: #FBE8E6;    --not-fill: #FF7B71;
  --night: #0B0E13;
  --night-card: #151A1D;
  --night-line: rgba(242, 245, 243, 0.12);
  --night-text: #F2F5F3;
  --night-muted: #A5AEA9;
  --sun: #FFD25A;
  --sun-2: #FFA63D;
  --display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --arabic: "Reem Kufi", "Geeza Pro", "Noto Kufi Arabic", "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: rgba(52, 211, 153, 0.45); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -64px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Type ─────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: 0.95; font-weight: 800; font-stretch: 92%; letter-spacing: -0.022em; font-variation-settings: "opsz" 96; }
h1 .line { display: block; }
h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1; font-weight: 800; font-stretch: 92%; letter-spacing: -0.02em; font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.15; font-weight: 750; letter-spacing: -0.015em; font-variation-settings: "opsz" 32; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--muted); max-width: 34em; }

/* Marker: the app underlines the words that matter; headings get the same pen. */
.hl { background-image: linear-gradient(transparent 56%, var(--mk, rgba(52, 211, 153, 0.55)) 56%, var(--mk, rgba(52, 211, 153, 0.55)) 88%, transparent 88%); background-repeat: no-repeat; background-size: 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.05em; margin: 0 -0.05em; }
.js .hl.draw { background-size: 0% 100%; }
.js .hl.draw.on { background-size: 100% 100%; transition: background-size 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.15s; }

/* Kicker: a small price tag, the logo's own shape. */
.tagk { position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 14px 0 27px; background: var(--ink); color: #fff; font: 700 13.5px/1 var(--body); letter-spacing: 0.01em; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); border-radius: 0 7px 7px 0; }
.tagk::before { content: ""; position: absolute; left: 12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--tagk-hole, var(--paper)); }
.tagk.on-jade { --tagk-hole: var(--jade); }
.tagk.on-mist { --tagk-hole: var(--mist); }
.tagk.on-night { background: var(--jade); color: var(--ink); --tagk-hole: var(--night); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 12px; font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; border: 2px solid transparent; transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 rgba(11, 14, 19, 0.22); }
.btn-ink:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(11, 14, 19, 0.22); }
.btn-ink:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(11, 14, 19, 0.22); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(11, 14, 19, 0.06); }
.btn-jade { background: var(--jade); color: var(--ink); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35); }
.btn-jade:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; box-shadow: 3px 3px 0 rgba(11, 14, 19, 0.2); }

/* ── Header: jade on every page ──────────────────────────────────── */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; background: var(--jade); color: var(--ink); transition: box-shadow 0.25s ease; }
.site-head.scrolled { box-shadow: 0 1px 0 rgba(11, 14, 19, 0.14), 0 10px 24px -18px rgba(11, 14, 19, 0.45); }
.head-row { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .tagmark { position: relative; display: grid; place-items: center; height: 34px; padding: 0 12px 0 22px; background: var(--ink); color: var(--jade); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); border-radius: 0 6px 6px 0; font: 700 20px/1 var(--arabic); }
.brand .tagmark::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--jade); }
.wordmark { font: 600 22px/1 var(--display); font-stretch: 92%; letter-spacing: -0.02em; font-variation-settings: "opsz" 32; color: var(--ink-soft); white-space: nowrap; }
.wordmark b { font-weight: 800; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { position: relative; padding: 9px 12px; color: var(--ink-soft); text-decoration: none; font-size: 15.5px; font-weight: 650; border-radius: 9px; }
.nav a:hover { color: var(--ink); background: rgba(11, 14, 19, 0.07); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 14.5px/1 var(--body); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.menu-panel { background: var(--jade); border-top: 2px solid var(--ink); }
.menu-panel nav { display: grid; padding: 6px 0 20px; }
.menu-panel a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid rgba(11, 14, 19, 0.16); color: var(--ink); text-decoration: none; font: 750 22px/1.1 var(--display); font-stretch: 90%; }
.menu-panel a:not(.btn)[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.menu-panel .btn { margin-top: 18px; }
@media (max-width: 940px) { .nav, .head-cta { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 941px) { .menu-panel { display: none !important; } }

/* ── Hero: a jade field ───────────────────────────────────────────── */
.hero { position: relative; background: var(--jade); color: var(--ink); overflow: hidden; padding: clamp(24px, 5vh, 64px) 0 clamp(56px, 8vh, 96px); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero h1 .see { position: relative; z-index: 0; white-space: nowrap; }
.hero h1 .see::after { content: ""; position: absolute; z-index: -1; left: -3%; right: -4%; bottom: 0.02em; height: 0.36em; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 40' preserveAspectRatio='none'><path d='M4 21 C 46 11, 118 7, 196 10 S 292 15, 316 9 L 314 27 C 262 33, 186 28, 110 31 S 26 37, 6 33 Z' fill='white' fill-opacity='0.88'/></svg>") no-repeat center / 100% 100%; transform-origin: left center; }
.js .hero h1 .see::after { animation: stroke 0.8s cubic-bezier(0.6, 0, 0.2, 1) 0.35s both; }
@keyframes stroke { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .lede { color: var(--ink-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.34); color: var(--ink); font-size: 14px; font-weight: 650; }

/* The stage: a pack, a lens, a phone. Inside the pack, sizes follow its width (cqw). */
.stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 1; justify-self: center; }
.xray { position: absolute; left: 0; top: 7%; width: 54%; container-type: inline-size; transform: rotate(-5deg); z-index: 2; }
.pack { position: relative; aspect-ratio: 320 / 430; border-radius: 3cqw; overflow: hidden; box-shadow: 4cqw 4cqw 0 rgba(11, 14, 19, 0.2); touch-action: pan-y; }
.pack .front, .pack .back { position: absolute; inset: 0; }
.front { background: radial-gradient(90% 60% at 50% 105%, rgba(160, 60, 0, 0.22), transparent 70%), linear-gradient(170deg, var(--sun) 0%, #FFC04D 45%, var(--sun-2) 100%); color: #3B1D00; font-family: var(--display); font-variation-settings: "opsz" 96; }
.front .top { position: absolute; left: 7cqw; right: 7cqw; top: 6cqw; display: flex; justify-content: space-between; align-items: flex-start; }
.front .kind { font-size: 3.7cqw; font-weight: 750; font-stretch: 80%; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 1.5cqw; }
.front .count { width: 16cqw; height: 16cqw; border-radius: 50%; background: #3B1D00; color: var(--sun); display: grid; place-content: center; text-align: center; font-weight: 800; font-stretch: 78%; line-height: 0.88; font-size: 6.4cqw; transform: rotate(10deg); }
.front .count small { display: block; font-size: 2.9cqw; letter-spacing: 0.1em; }
.front .name { position: absolute; left: 6cqw; right: 6cqw; top: 23cqw; font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 0.84; letter-spacing: -0.01em; font-size: 15.6cqw; color: #FFFFFF; text-shadow: 0.9cqw 0.9cqw 0 #3B1D00; }
.front .ribbon { position: absolute; left: 4cqw; top: 41.5cqw; padding: 1.6cqw 4cqw; background: #3B1D00; color: var(--sun); font-weight: 750; font-stretch: 80%; font-size: 6.4cqw; letter-spacing: 0.04em; text-transform: uppercase; transform: rotate(-3deg); border-radius: 1.2cqw; }
.front .win { position: absolute; left: 13cqw; right: 13cqw; top: 58cqw; aspect-ratio: 1.3; }
.front .bar { position: absolute; width: 62%; aspect-ratio: 1.12; border-radius: 3.2cqw; box-shadow: inset 0 -2cqw 3cqw rgba(120, 70, 10, 0.25), 0 2.5cqw 3cqw rgba(90, 40, 0, 0.35);
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.9) 0 7%, transparent 8%),
    radial-gradient(circle at 70% 62%, rgba(255, 255, 255, 0.85) 0 6%, transparent 7%),
    radial-gradient(circle at 52% 24%, rgba(255, 255, 255, 0.75) 0 5%, transparent 6%),
    radial-gradient(circle, #B07A26 0 1.1cqw, transparent 1.3cqw) 0 0 / 4.4cqw 4.4cqw,
    radial-gradient(circle, #FBE6B0 0 1cqw, transparent 1.2cqw) 2.2cqw 2.2cqw / 4.4cqw 4.4cqw,
    linear-gradient(160deg, #F3D592, #DEB061); }
.front .bar.b1 { left: 0; top: 10%; transform: rotate(-8deg); }
.front .bar.b2 { right: 0; top: 0; transform: rotate(7deg); }
.front .claim { position: absolute; left: 6cqw; right: 6cqw; bottom: 10cqw; text-align: center; font-weight: 750; font-stretch: 85%; font-size: 3.5cqw; letter-spacing: 0.12em; text-transform: uppercase; }
.front .net { position: absolute; left: 6cqw; right: 6cqw; bottom: 4.5cqw; display: flex; justify-content: space-between; font-weight: 650; font-stretch: 85%; font-size: 3cqw; letter-spacing: 0.06em; text-transform: uppercase; }

/* The back of the pack, seen through the lens. */
.back { background: #FBFAF6; color: #111; padding: 7cqw 7cqw 6cqw; font-family: var(--display); font-stretch: 78%; font-variation-settings: "opsz" 14; display: grid; align-content: start; gap: 3cqw;
  clip-path: circle(calc(var(--r, 21cqw) / 1.16) at var(--x, 30%) var(--y, 45%)); transform: scale(1.16); transform-origin: var(--x, 30%) var(--y, 45%); }
.nf { border: 0.5cqw solid #111; padding: 1.6cqw 2.4cqw 2cqw; }
.nf .t { font-weight: 800; font-size: 8cqw; line-height: 1; letter-spacing: -0.01em; }
.nf .s { font-size: 3.4cqw; border-bottom: 2.6cqw solid #111; padding: 0.6cqw 0 1.2cqw; }
.nf .row { display: flex; justify-content: space-between; font-size: 3.6cqw; border-bottom: 0.25cqw solid #111; padding: 0.7cqw 0; }
.nf .row b { font-weight: 800; }
.nf .row.cal { font-size: 5.6cqw; font-weight: 800; border-bottom-width: 1.4cqw; }
.ing { font-size: 3.85cqw; line-height: 1.32; text-transform: uppercase; letter-spacing: 0.01em; }
.ing b { font-weight: 800; }
.ing [data-flag] { font-weight: 800; border-radius: 0.6cqw; padding: 0 0.4cqw; margin: 0 -0.4cqw; }
.ing [data-flag="not"] { background: #FFD9D4; box-shadow: inset 0 -0.6cqw 0 #E0483A; }
.ing [data-flag="ask"] { background: #FFE9C2; box-shadow: inset 0 -0.6cqw 0 #D28A0E; }
.ing [data-flag="ok"] { background: #D2F5E5; box-shadow: inset 0 -0.6cqw 0 #12A06A; }
.contains { font-size: 3.85cqw; font-weight: 800; text-transform: uppercase; }
.barcode { display: grid; justify-items: start; gap: 0.6cqw; margin-top: 0.5cqw; }
.barcode .bars { width: 46cqw; height: 13cqw; background: repeating-linear-gradient(90deg, #111 0 0.5cqw, transparent 0.5cqw 1.1cqw, #111 1.1cqw 2.1cqw, transparent 2.1cqw 2.6cqw, #111 2.6cqw 2.9cqw, transparent 2.9cqw 3.8cqw, #111 3.8cqw 4.9cqw, transparent 4.9cqw 5.3cqw); }
.barcode span { font-size: 3.4cqw; letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }

/* The lens, and the tag hanging from its handle that says what it is reading. */
.lens { position: absolute; left: var(--x, 30%); top: var(--y, 45%); width: calc(var(--r, 21cqw) * 2); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: 3;
  border: 1.1cqw solid var(--ink); box-shadow: 0 0 0 0.7cqw #fff, 0 2cqw 5cqw rgba(11, 14, 19, 0.35);
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.5) 0 6%, rgba(255, 255, 255, 0.1) 18%, transparent 36%); }
.lens .handle { position: absolute; left: 84%; top: 84%; width: 5cqw; height: 18cqw; border-radius: 2.5cqw; background: var(--ink); transform-origin: top center; transform: rotate(-45deg); }
.readout { position: absolute; left: 2%; top: calc(100% + 3.5cqw); width: max-content; transform-origin: 0 0; transform: rotate(-4deg); }
.readout.flip { left: auto; right: 2%; transform-origin: 100% 0; transform: rotate(4deg); }
.readout.flip::before { left: auto; right: 3.4cqw; }
.readout::before { content: ""; position: absolute; left: 3.4cqw; top: -4.4cqw; width: 0.5cqw; height: 5cqw; background: var(--ink); border-radius: 0.3cqw; }
.readout-tag { position: relative; display: grid; gap: 0.4cqw; padding: 2.4cqw 4cqw 2.6cqw 7.4cqw; color: var(--ink); background: var(--rt, var(--not-fill)); clip-path: polygon(3.6cqw 0, 100% 0, 100% 100%, 3.6cqw 100%, 0 50%); border-radius: 0 2cqw 2cqw 0; font: 650 3.6cqw/1.2 var(--body); filter: drop-shadow(0 2cqw 2.4cqw rgba(11, 14, 19, 0.3)); transition: background 0.35s ease; }
.readout-tag::before { content: ""; position: absolute; left: 3.4cqw; top: 50%; width: 1.9cqw; height: 1.9cqw; margin-top: -0.95cqw; border-radius: 50%; background: #fff; }
.readout-tag b { font: 800 4.6cqw/1.05 var(--display); font-stretch: 90%; letter-spacing: -0.01em; }
.readout[data-v="ask"] { --rt: var(--doubtful-fill); }
.readout[data-v="ok"] { --rt: var(--halal-fill); }
.js .readout.swap .readout-tag { animation: swing 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes swing { 0% { transform: rotate(-14deg); opacity: 0.4; } 60% { transform: rotate(5deg); opacity: 1; } 100% { transform: none; } }

/* Upright, and clear of the pack, so the screen text stays sharp and whole. */
.stage .hero-phone { position: absolute; right: 0; top: 2%; width: 44%; z-index: 1; }
.stage-hint { position: absolute; left: 1%; bottom: -1%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 13.5px; font-weight: 650; }
.stage-hint svg { width: 16px; height: 16px; }
@media (hover: none) { .stage-hint { display: none; } }

/* The hero phone's screen is the app's Not halal result built in real text (sizes in iPhone points,
   1pt = --u), so it stays sharp at any size or zoom. Measured from the app's own render. */
.phone .screen { container-type: inline-size; }
.app { position: absolute; inset: 0; --u: calc(100cqw / 390); background: #000; color: #F2F5F3; font-family: var(--body); line-height: 1.25; letter-spacing: 0; }
.app > * { position: absolute; margin: 0; }
.app svg { display: block; }
.a-sb { top: calc(14 * var(--u)); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 calc(30 * var(--u)) 0 calc(44 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 600; }
.a-ic { display: flex; align-items: center; gap: calc(6 * var(--u)); color: #fff; fill: currentColor; }
.a-ic svg:nth-child(1) { width: calc(18 * var(--u)); }
.a-ic svg:nth-child(2) { width: calc(16 * var(--u)); }
.a-ic svg:nth-child(3) { width: calc(27 * var(--u)); }
.a-hd { top: calc(66 * var(--u)); left: calc(17 * var(--u)); right: calc(14 * var(--u)); display: flex; justify-content: space-between; align-items: center; font-size: calc(17 * var(--u)); font-weight: 600; }
.a-hd svg { width: calc(25 * var(--u)); color: var(--jade); }
.a-seg { top: calc(117 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(36 * var(--u)); display: grid; grid-template-columns: repeat(3, 1fr); padding: calc(3 * var(--u)); border-radius: calc(10 * var(--u)); background: #22282A; font-size: calc(14 * var(--u)); }
.a-seg span { display: grid; place-items: center; border-radius: calc(8 * var(--u)); white-space: nowrap; }
.a-seg .on { background: #3A4245; font-weight: 600; }
.a-prod { top: calc(177 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); display: flex; gap: calc(25 * var(--u)); align-items: flex-start; }
.a-ph { flex: none; width: calc(78 * var(--u)); height: calc(78 * var(--u)); margin-top: calc(24 * var(--u)); border-radius: calc(14 * var(--u)); background: #22282A; color: var(--jade); display: grid; place-content: center; justify-items: center; gap: calc(4 * var(--u)); font-size: calc(12 * var(--u)); font-weight: 600; }
.a-ph svg { width: calc(20 * var(--u)); }
.a-pi { display: grid; gap: calc(2 * var(--u)); min-width: 0; }
.a-pi b { font-size: calc(21 * var(--u)); line-height: 1.18; font-weight: 700; margin-bottom: calc(2 * var(--u)); max-width: calc(190 * var(--u)); }
.a-pi span { font-size: calc(13 * var(--u)); color: #A5AEA9; }
.a-pi .a-bc { font-size: calc(12 * var(--u)); }
.a-pi em { font-style: normal; font-size: calc(14 * var(--u)); font-weight: 600; color: var(--jade); margin-top: calc(8 * var(--u)); }
.a-vd { top: calc(334 * var(--u)); left: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); font-size: calc(30 * var(--u)); font-weight: 700; line-height: 1; color: #FF7B71; letter-spacing: -0.01em; }
.a-vd svg { width: calc(26 * var(--u)); }
.a-why { top: calc(382 * var(--u)); left: calc(17 * var(--u)); font-size: calc(16.5 * var(--u)); }
.a-meta { top: calc(418 * var(--u)); left: calc(17 * var(--u)); right: calc(14 * var(--u)); font-size: calc(12 * var(--u)); color: #8A938E; white-space: nowrap; }
.a-card { top: calc(450 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(155 * var(--u)); border-radius: calc(16 * var(--u)); background: #15191B; display: grid; grid-template-rows: 1fr 1fr; }
.a-row { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(16 * var(--u)); }
.a-row + .a-row { border-top: 1px solid rgba(242, 245, 243, 0.12); }
.a-ai > svg:first-child { flex: none; width: calc(22 * var(--u)); color: var(--jade); }
.a-ai div { display: grid; gap: calc(3 * var(--u)); flex: 1; min-width: 0; }
.a-ai b { font-size: calc(16 * var(--u)); font-weight: 500; }
.a-ai span { font-size: calc(12 * var(--u)); color: #A5AEA9; line-height: 1.3; }
.a-chev { flex: none; width: calc(16 * var(--u)); color: #A5AEA9; }
.a-prof { justify-content: space-between; }
.a-prof b { font-size: calc(16 * var(--u)); font-weight: 500; max-width: 62%; line-height: 1.25; }
.a-prof span { font-size: calc(15 * var(--u)); color: #A5AEA9; }
.a-notes { top: calc(638 * var(--u)); left: calc(20 * var(--u)); right: calc(20 * var(--u)); }
.a-nh { display: flex; justify-content: space-between; align-items: baseline; }
.a-nh b { font-size: calc(13 * var(--u)); font-weight: 600; color: #A5AEA9; }
.a-nh span { font-size: calc(12 * var(--u)); color: #8A938E; }
.a-notes p { margin-top: calc(10 * var(--u)); font-size: calc(14.5 * var(--u)); line-height: 1.38; color: #A5AEA9; }
.a-cta { top: calc(744 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(50 * var(--u)); border-radius: calc(25 * var(--u)); background: var(--jade); color: var(--ink); display: grid; place-items: center; font-size: calc(16 * var(--u)); font-weight: 650; }
.a-home { top: calc(831 * var(--u)); left: 50%; width: calc(134 * var(--u)); height: calc(5 * var(--u)); margin-left: calc(-67 * var(--u)); border-radius: calc(3 * var(--u)); background: #fff; }

/* The other two answers, Halal and Doubtful, laid out as the app lays them out (one-line product names). */
.a-vd.ok { color: #3EDCA1; }
.a-vd.ask { color: #FFB44D; }
.s-ok .a-vd, .s-ask .a-vd { top: calc(306 * var(--u)); }
.s-ok .a-why, .s-ask .a-why { top: calc(353 * var(--u)); }
.s-ok .a-meta { top: calc(389 * var(--u)); }
.s-ok .a-card { top: calc(422 * var(--u)); }
.s-ok .a-notes { top: calc(610 * var(--u)); }
.a-foot { top: calc(719 * var(--u)); left: 0; right: 0; text-align: center; font-size: calc(12.5 * var(--u)); color: #A5AEA9; }
.s-ask .a-why { right: calc(16 * var(--u)); line-height: 1.42; }
.s-ask .a-meta { top: calc(413 * var(--u)); right: calc(40 * var(--u)); white-space: normal; line-height: 1.45; }
.a-web { top: calc(464 * var(--u)); left: calc(16 * var(--u)); right: calc(16 * var(--u)); height: calc(196 * var(--u)); overflow: hidden; padding: calc(16 * var(--u)) calc(16 * var(--u)); border-radius: calc(16 * var(--u)); background: #15191B; }
.a-web p { margin: 0; }
.a-web .lab { padding-bottom: calc(10 * var(--u)); border-bottom: 1px solid rgba(242, 245, 243, 0.12); font-size: calc(13 * var(--u)); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: #A5AEA9; }
.a-web b { display: block; margin-top: calc(12 * var(--u)); font-size: calc(17 * var(--u)); font-weight: 600; }
.a-web .src { margin-top: calc(4 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.35; color: #A5AEA9; }
.a-web .say { margin-top: calc(4 * var(--u)); font-size: calc(15 * var(--u)); line-height: 1.35; }
.a-web .more { margin-top: calc(16 * var(--u)); }
.a-shade { top: calc(646 * var(--u)); left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(0, 0, 0, 0.55), #000 calc(16 * var(--u))); }
.a-cta.a-cta-up { top: calc(686 * var(--u)); }
.a-cta.dark { background: #22282A; color: #F2F5F3; }

/* App Store QR code (shown once Apple has approved the app). */
.qr-card { display: inline-grid; grid-template-columns: 96px auto; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(11, 14, 19, 0.18); text-align: left; }
.qr-card svg { display: block; width: 96px; height: 96px; }
.qr-card p { font-size: 14px; line-height: 1.35; color: var(--muted); max-width: 13em; }
.qr-card p b { display: block; color: var(--ink); font-size: 16px; }
.get-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 24px; }
@media (max-width: 960px), (hover: none) { .qr-card { display: none; } }

/* ── The phone: flat ink, like the icon ────────────────────────────── */
.phone { position: relative; width: 100%; aspect-ratio: 1000 / 2085; border-radius: 15% / 7.2%; background: var(--ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) inset, 18px 18px 0 rgba(11, 14, 19, 0.2); }
.phone .screen { position: absolute; left: 3.6%; right: 3.6%; top: 1.75%; bottom: 1.75%; border-radius: 12% / 5.7%; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── Sections ───────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(76px, 10vw, 136px) 0; }
.section.mist { background: var(--mist); }
.section.night { background: var(--night); color: var(--night-text); }
.section-head { display: grid; gap: 18px; justify-items: start; max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lede { max-width: 38em; }
.night .lede { color: var(--night-muted); }
.night .hl { --mk: rgba(52, 211, 153, 0.5); }

/* How it works: three stops on one line. */
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); position: relative; counter-reset: stop; }
.stops::before { content: ""; position: absolute; left: 22px; right: 16%; top: 21px; height: 4px; border-radius: 4px; background: var(--jade); }
.stop { position: relative; display: grid; align-content: start; gap: 14px; counter-increment: stop; }
.stop .node { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); display: grid; place-items: center; font: 800 18px/1 var(--display); }
.stop .node::before { content: counter(stop); }
.stop:last-child .node { background: var(--jade); }
.stop p { color: var(--muted); font-size: 16.5px; max-width: 30em; }
.stop p small { display: block; margin-top: 8px; font-size: 14.5px; color: var(--faint); }
.piece { margin-top: 6px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 10px 10px 0 rgba(11, 14, 19, 0.12); }
.piece img { width: 100%; }
.piece.fade { position: relative; max-height: 200px; }
.piece.fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, #000); }
.piece.scan { display: grid; place-items: center; height: 200px; background: var(--mist); box-shadow: 10px 10px 0 rgba(11, 14, 19, 0.08); position: relative; }
.piece.scan .code { display: grid; justify-items: center; gap: 6px; background: #fff; padding: 14px 18px 10px; border-radius: 8px; transform: rotate(-3deg); box-shadow: 0 10px 24px -12px rgba(11, 14, 19, 0.4); }
.piece.scan .code i { display: block; width: 150px; height: 60px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 7px, transparent 7px 9px, #111 9px 10px, transparent 10px 13px, #111 13px 17px, transparent 17px 18px); }
.piece.scan .code span { font: 650 12px/1 var(--display); font-stretch: 80%; letter-spacing: 0.2em; }
.piece.scan .frame { position: absolute; inset: 34px 22%; border: 3px solid var(--ink); border-radius: 16px; clip-path: polygon(0 0, 22% 0, 22% 6%, 6% 6%, 6% 22%, 0 22%, 0 78%, 6% 78%, 6% 94%, 22% 94%, 22% 100%, 0 100%, 0 0, 100% 0, 100% 22%, 94% 22%, 94% 6%, 78% 6%, 78% 0, 100% 0, 100% 100%, 78% 100%, 78% 94%, 94% 94%, 94% 78%, 100% 78%, 100% 100%, 0 100%); }
.piece.scan::after { content: ""; position: absolute; left: 24%; right: 24%; top: 50%; height: 3px; border-radius: 2px; background: #E0483A; box-shadow: 0 0 12px 2px rgba(224, 72, 58, 0.5); animation: laser 2.4s ease-in-out infinite alternate; }
@keyframes laser { from { transform: translateY(-38px); } to { transform: translateY(34px); } }

/* The three answers. */
.answers-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.vtabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--paper); border: 2px solid var(--ink); margin-bottom: 30px; flex-wrap: wrap; }
.vtabs button { appearance: none; border: 0; background: transparent; color: var(--ink); font: 750 16px/1 var(--body); padding: 0 16px; min-height: 44px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.vtabs button svg { width: 18px; height: 18px; }
.vtabs button[data-v="halal"] svg { color: var(--halal); }
.vtabs button[data-v="doubtful"] svg { color: var(--doubtful); }
.vtabs button[data-v="not"] svg { color: var(--not); }
.vtabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.vtabs button[aria-selected="true"][data-v="halal"] svg { color: var(--halal-fill); }
.vtabs button[aria-selected="true"][data-v="doubtful"] svg { color: var(--doubtful-fill); }
.vtabs button[aria-selected="true"][data-v="not"] svg { color: var(--not-fill); }
.vpanel { display: grid; gap: 16px; max-width: 34em; }
.vpanel .big { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(34px, 3.4vw, 46px)/1 var(--display); font-stretch: 88%; letter-spacing: -0.02em; }
.vpanel .big svg { width: 0.9em; height: 0.9em; }
.vpanel.halal .big { color: var(--halal); }
.vpanel.doubtful .big { color: var(--doubtful); }
.vpanel.not .big { color: var(--not); }
.vpanel p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; font-weight: 550; }
.checks li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 14px no-repeat; }
.answers-phone { width: min(384px, 100%); justify-self: center; }
.answers-phone .app { opacity: 0; transition: opacity 0.45s ease; }
.answers-phone .app.on { opacity: 1; }
.answers-phone .stamp { position: absolute; left: -18%; top: 14%; z-index: 2; padding: 10px 16px 11px 28px; font: 750 15px/1 var(--body); color: var(--ink); background: var(--paper); clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); border-radius: 0 9px 9px 0; transform: rotate(-7deg); filter: drop-shadow(5px 5px 0 rgba(11, 14, 19, 0.2)); white-space: nowrap; }
.answers-phone .stamp::before { content: ""; position: absolute; left: 12px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--mist); }

/* When the label is not enough (a dark section). */
.research-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.route { list-style: none; margin: 0; padding: 0; display: grid; }
.route li { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 4px 18px; padding: 0 0 28px; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 0; width: 4px; border-radius: 2px; background: rgba(52, 211, 153, 0.3); }
.route li:last-child::before { display: none; }
.route .dot { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--night-card); border: 1px solid var(--night-line); color: var(--jade); }
.route .dot svg { width: 21px; height: 21px; }
.route li.key .dot { background: var(--jade); color: var(--ink); border-color: transparent; }
.route h3 { padding-top: 10px; color: var(--night-text); }
.route p { color: var(--night-muted); font-size: 16px; }
.mail-stack { position: relative; display: grid; gap: 18px; justify-items: end; }
.reply { width: min(460px, 100%); padding: 22px 24px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 rgba(52, 211, 153, 0.35); transform: rotate(1.5deg); }
.reply .head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.reply .head b { color: var(--ink); font-weight: 750; }
.reply .ex { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--doubtful); background: var(--doubtful-bg); border-radius: 6px; padding: 3px 7px; }
.reply .q { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.reply p { font-size: 16px; line-height: 1.55; }
.notice { width: min(420px, 94%); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 20px; margin-right: 8%; background: #EDEFEE; color: var(--ink); box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.9); transform: rotate(-2deg); }
.notice img { width: 40px; height: 40px; border-radius: 9px; }
.notice .t { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.notice .t b { color: var(--ink); font-weight: 800; letter-spacing: 0.02em; }
.notice p { font-size: 14.5px; line-height: 1.35; }

/* Profiles: the same five ingredients under each profile, printed like a label table. */
.profiles-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.seg { display: inline-flex; padding: 6px; gap: 4px; border-radius: 14px; background: var(--paper); border: 2px solid var(--ink); flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink); font: 750 16px/1 var(--body); padding: 0 18px; min-height: 44px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pdesc { margin-top: 18px; color: var(--muted); font-size: 16.5px; max-width: 30em; min-height: 4.8em; }
.pdesc b { color: var(--ink); }
.ltable { border: 3px solid var(--ink); background: var(--paper); }
.ltable .lt-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 10px 16px 8px; border-bottom: 10px solid var(--ink); font: 800 30px/1 var(--display); font-stretch: 78%; letter-spacing: -0.01em; font-variation-settings: "opsz" 96; }
.ltable .lt-head small { font: 700 14px/1.2 var(--body); color: var(--muted); }
.ltable .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--ink); }
.ltable .r:last-of-type { border-bottom: 5px solid var(--ink); }
.ltable .r span:first-child { font: 700 17px/1.25 var(--display); font-stretch: 85%; font-variation-settings: "opsz" 18; }
.ltable .r small { display: block; font: 500 13.5px/1.3 var(--body); color: var(--faint); }
.chipv { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; font: 750 14px/1 var(--body); white-space: nowrap; }
.chipv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chipv.halal { color: var(--halal); background: var(--halal-bg); }
.chipv.doubtful { color: var(--doubtful); background: var(--doubtful-bg); }
.chipv.not { color: var(--not); background: var(--not-bg); }
.chipv.flip { animation: flip 0.4s ease; }
@keyframes flip { from { transform: scale(0.85); opacity: 0.35; } to { transform: none; opacity: 1; } }
.ltable .note { padding: 12px 16px 14px; font-size: 14.5px; color: var(--muted); }

/* Privacy, printed like a Nutrition Facts panel. */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.privacy-grid .section-head { margin-bottom: 0; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; text-decoration: none; border-bottom: 3px solid var(--jade); padding-bottom: 2px; }
.textlink:hover { border-bottom-color: var(--ink); }
.facts-panel { justify-self: center; width: min(410px, 100%); background: #fff; color: #000; border: 3px solid #000; padding: 10px 14px 14px; font-family: var(--display); font-stretch: 78%; font-variation-settings: "opsz" 14; box-shadow: 14px 14px 0 rgba(11, 14, 19, 0.12); transform: rotate(1.5deg); }
.facts-panel .t { font: 800 46px/0.95 var(--display); font-stretch: 75%; letter-spacing: -0.015em; font-variation-settings: "opsz" 96; }
.facts-panel .serv { font-size: 17px; border-bottom: 10px solid #000; padding: 4px 0 6px; display: flex; justify-content: space-between; }
.facts-panel .serv b { font-weight: 800; }
.facts-panel .fr { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #000; font-size: 17px; line-height: 1.2; }
.facts-panel .fr b { font-weight: 800; }
.facts-panel .fr span:last-child { text-align: right; font-weight: 700; }
.facts-panel .fr.thick { border-bottom-width: 5px; }
.facts-panel .foot { font-size: 14px; line-height: 1.35; padding-top: 8px; }

/* Free: price tags on a rail. */
.free-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.free-grid .section-head { margin-bottom: 0; }
.free-grid .section-head p:not(.lede) { color: var(--muted); max-width: 34em; }
.rail { position: relative; padding-top: 36px; }
.rail::before { content: ""; position: absolute; left: -2%; right: -2%; top: 10px; height: 6px; border-radius: 6px; background: var(--ink); }
.rail-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 14px; }
.ptag { position: relative; width: 104px; padding: 28px 10px 14px; text-align: center; border-radius: 8px 8px 12px 12px; background: var(--jade); color: var(--ink); border: 2px solid var(--ink); transform-origin: 50% -24px; transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); box-shadow: 5px 5px 0 rgba(11, 14, 19, 0.18); }
.ptag::before { content: ""; position: absolute; left: 50%; top: -26px; width: 2px; height: 34px; background: var(--ink); transform: translateX(-50%); }
.ptag::after { content: ""; position: absolute; left: 50%; top: 9px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ptag b { display: block; font: 800 26px/1 var(--display); font-stretch: 88%; letter-spacing: -0.02em; }
.ptag small { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.ptag:nth-child(odd) { transform: rotate(-4deg); }
.ptag:nth-child(even) { transform: rotate(3deg); }
.ptag:hover { transform: rotate(0deg); }
.ptag.alt { background: var(--paper); }
.rail-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 15px; }

/* Questions. */
.faq { max-width: 880px; border-top: 3px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font: 750 clamp(19px, 1.7vw, 22px)/1.3 var(--display); font-stretch: 92%; letter-spacing: -0.01em; font-variation-settings: "opsz" 24; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--jade) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0E13' stroke-width='2.6' stroke-linecap='round'><path d='M12 6v12M6 12h12'/></svg>") center / 15px no-repeat; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 52px 24px 0; color: var(--muted); font-size: 16.5px; display: grid; gap: 10px; }

/* Last word: jade again. */
.closing { position: relative; overflow: hidden; background: var(--jade); color: var(--ink); text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.closing .ar { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font: 700 clamp(220px, 40vw, 600px)/0.7 var(--arabic); color: var(--jade-tone); pointer-events: none; user-select: none; }
.closing .wrap { position: relative; }
.closing .mark { width: min(150px, 38vw); margin: 0 auto 32px; border-radius: 22.5%; transform: rotate(-6deg); border: 4px solid var(--ink); box-shadow: 12px 12px 0 rgba(11, 14, 19, 0.2); }
.closing h2 { max-width: 12em; margin: 0 auto; }
.closing .hl { --mk: rgba(255, 255, 255, 0.72); }
.closing .lede { margin: 20px auto 32px; color: var(--ink-soft); }
.closing .cta-row { justify-content: center; }
.closing .mail { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* Footer (the same on every page). */
.site-foot { background: var(--night); color: var(--night-muted); padding: 52px 0 56px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 32px; align-items: start; }
.site-foot .brand .tagmark { background: var(--jade); color: var(--night); }
.site-foot .brand .tagmark::before { background: var(--night); }
.site-foot .wordmark { color: var(--night-muted); }
.site-foot .wordmark b { color: var(--night-text); }
.foot-grid .tag-line { margin-top: 14px; max-width: 30em; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 26px; }
.foot-links a { color: var(--night-text); text-decoration: none; }
.foot-links a:hover { color: var(--jade); }
.legal { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--night-line); color: #7F8A85; font-size: 13.5px; }
.legal .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.legal a { color: var(--night-muted); }

/* Gentle entrances: visible at rest; a block rises only as it arrives. */
.rise.go { animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Document pages (support, privacy, not found) ───────────────────── */
.doc-hero { background: var(--jade); padding: clamp(28px, 5vw, 56px) 0 clamp(36px, 5vw, 60px); }
.doc-hero .inner { display: grid; gap: 16px; justify-items: start; max-width: 860px; }
.doc-hero h1 { font-size: clamp(46px, 6vw, 84px); }
.doc-hero .lede { color: var(--ink-soft); }
.doc-hero .meta { color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 9vw, 112px); }
.doc-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); }
/* "On this page" works as a map of the page: a rail that fills as you read, and a marker on the section you are in. */
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); align-self: start; font-size: 14.5px; }
.toc p { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; margin-bottom: 14px; }
.toc .pct { font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.toc ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 20px; display: grid; gap: 2px; }
.toc ol::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--mist-2); }
.toc ol::after { content: ""; position: absolute; left: 0; top: 4px; width: 4px; height: calc((100% - 8px) * var(--p, 0)); border-radius: 2px; background: var(--jade); transition: height 0.12s linear; }
.toc li { position: relative; }
.toc a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 8px; color: var(--faint); text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
.toc li.done a { color: var(--muted); }
.toc li.on a { color: var(--ink); font-weight: 750; background: var(--mist); }
.toc a:hover { color: var(--ink); }
.toc .marker { position: absolute; left: -6px; top: 0; z-index: 1; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--jade); border: 3px solid var(--ink); opacity: 0; transition: top 0.35s cubic-bezier(0.3, 1.2, 0.5, 1), opacity 0.2s ease; }
.toc .marker.on { opacity: 1; }
.doc-body { min-width: 0; max-width: 46rem; }
.doc-body.wide { grid-column: 1 / -1; max-width: 880px; }
.doc-body h2 { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.1; margin: 56px 0 14px; scroll-margin-top: calc(96px + env(safe-area-inset-top, 0px)); }
.doc-body > h2:first-child { margin-top: 0; }
.doc-body p { color: #2E3532; margin-bottom: 1em; }
.doc-body ul { padding-left: 1.2em; margin: 0 0 1em; color: #2E3532; }
.doc-body li { margin: 0 0 10px; }
.doc-body em { font-style: normal; font-weight: 700; color: var(--ink); }
.doc-body a:not(.btn):not(.addr) { color: var(--jade-deep); font-weight: 600; }
.contact-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: center; padding: 24px 26px; border: 3px solid var(--ink); border-radius: 16px; background: var(--paper); box-shadow: 10px 10px 0 rgba(11, 14, 19, 0.12); margin-bottom: 48px; }
.contact-card .addr { font: 800 clamp(22px, 2.4vw, 30px)/1.1 var(--display); font-stretch: 88%; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-card p { grid-column: 1 / -1; color: var(--muted); font-size: 15.5px; margin: 0; }
.data-wrap { overflow-x: auto; margin: 8px 0 20px; }
.data { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.55; border-top: 3px solid var(--ink); }
.data th { text-align: left; font-weight: 800; padding: 10px 14px 10px 0; border-bottom: 6px solid var(--ink); font-family: var(--display); font-stretch: 88%; font-size: 16px; }
.data td { vertical-align: top; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-2); color: #2E3532; }
.data td:first-child { font-weight: 750; width: 24%; color: var(--ink); }
.data td:last-child { color: var(--muted); width: 28%; }
.lost { display: grid; gap: 20px; justify-items: start; max-width: 860px; }

/* ── Smaller screens ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .stops { grid-template-columns: 1fr; gap: 40px; max-width: 560px; }
  .stops::before { left: 21px; right: auto; top: 22px; bottom: 40px; width: 4px; height: auto; }
  .stop { grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; }
  .stop .node { grid-row: span 3; }
  .stop > :not(.node) { grid-column: 2; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 560px; }
  .answers-grid, .research-grid, .profiles-grid, .privacy-grid, .free-grid { grid-template-columns: 1fr; }
  .answers-phone { width: min(280px, 72vw); }
  .answers-phone .stamp { left: -12%; }
  .mail-stack { justify-items: center; }
  .notice { margin-right: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .doc-grid { display: block; }
  /* Phones: the map becomes a bar of sections that stays under the header while you read. */
  .toc { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; margin: 0 calc(-1 * var(--gutter)) 28px; padding: 10px var(--gutter); background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--line); }
  .toc::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--jade); transition: width 0.12s linear; }
  .toc p { display: none; }
  .toc ol { display: flex; gap: 8px; padding: 0; overflow-x: auto; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc ol::before, .toc ol::after, .toc .marker { display: none; }
  .toc li { flex: none; }
  .toc a { margin: 0; padding: 8px 13px; border-radius: 999px; background: var(--mist); color: var(--muted); white-space: nowrap; font-size: 14px; font-weight: 650; }
  .toc li.on a { background: var(--ink); color: #fff; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .head-row { height: 64px; }
  .brand .tagmark { height: 30px; font-size: 18px; padding: 0 10px 0 20px; }
  .wordmark { font-size: 20px; }
  .vtabs button, .seg button { padding: 0 12px; font-size: 15px; }
  .ltable .r { padding: 12px; }
  .ltable .lt-head { padding: 10px 12px 8px; font-size: 26px; }
  .contact-card { grid-template-columns: 1fr; padding: 20px; }
  .contact-card .btn { width: 100%; }
  .ptag { width: 92px; }
  .faq .a { padding-right: 0; }
  .stage-hint { display: none; }
  .hero-copy { gap: 20px; }
  .hero .lede { font-size: 17px; }
  .cta-row .btn { min-height: 48px; padding: 0 16px; font-size: 15px; }
  .facts li { height: 28px; padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 720px) {
  .data-wrap { overflow: visible; }
  .data, .data tbody, .data tr, .data td { display: block; width: 100%; }
  .data thead { position: absolute; left: -9999px; }
  .data tr { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
  .data td { border: 0; padding: 4px 0; width: auto !important; }
  .data td::before { content: attr(data-label); display: block; font-size: 13.5px; font-weight: 800; color: var(--muted); }
  .data td:first-child::before { display: none; }
  .data td:first-child { font-family: var(--display); font-size: 18px; }
}
