/* Wesh Wain website — one stylesheet for /, /en, /privacy, /support.
   Colours come from docs/design/handoff/WeshWainTheme.swift (light + dark). No motion unless the
   visitor allows it (see the prefers-reduced-motion block at the end). */

:root {
  color-scheme: light dark;
  --bg: #EEF3F0;            /* wwSurfaceGrouped */
  --bg-deep: #E4ECE7;
  --surface: #FFFFFF;
  --surface-2: #F7FAF8;
  --text: #1C1C1E;
  --text-2: #5E5E63;
  --text-3: #6E6E73;
  --accent: #0E6B58;        /* palm green */
  --accent-pressed: #0A5242;
  --accent-text: #0E6B58;
  --accent-tint: #E3F0EC;
  --on-accent: #FFFFFF;
  --score: #F5B301;         /* score yellow */
  --on-score: #1C1C1E;
  --hairline: rgba(60, 60, 67, .16);
  --open: #12703A;
  --closing: #B45309;
  --closed: #C0392B;
  --map-ground: #EAF0EC;
  --map-block: #DDE7E1;
  --map-park: #CFE5D7;
  --bezel: #0D100F;
  --glass: rgba(238, 243, 240, .72);
  --shadow-1: 0 1px 2px rgba(14, 40, 32, .06);
  --shadow-2: 0 1px 2px rgba(14, 40, 32, .05), 0 8px 24px -8px rgba(14, 40, 32, .14);
  --shadow-3: 0 2px 4px rgba(14, 40, 32, .06), 0 24px 48px -16px rgba(14, 40, 32, .28), 0 60px 120px -40px rgba(14, 107, 88, .30);
  --r-sm: 10px; --r-btn: 14px; --r-chip: 17px; --r-card: 20px; --r-sheet: 28px;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D0B;
    --bg-deep: #070908;
    --surface: #1C1C1E;
    --surface-2: #151816;
    --text: #FFFFFF;
    --text-2: #AEAEB2;
    --text-3: #8E8E93;
    --accent: #178066;
    --accent-pressed: #0E6B58;
    --accent-text: #4CC3A5;
    --accent-tint: rgba(76, 195, 165, .14);
    --hairline: rgba(84, 84, 88, .55);
    --open: #34C77B;
    --closing: #F0A04B;
    --closed: #FF6B5E;
    --map-ground: #111714;
    --map-block: #18201C;
    --map-park: #1A2B22;
    --bezel: #2A2E2C;
    --glass: rgba(10, 13, 11, .72);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-3: 0 2px 4px rgba(0, 0, 0, .4), 0 24px 48px -16px rgba(0, 0, 0, .7), 0 60px 120px -40px rgba(23, 128, 102, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--score); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid var(--hairline);
}
.nav__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; line-height: 1; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-1); }
.brand__mark svg { width: 24px; height: 24px; }
.brand small { font-weight: 500; color: var(--text-3); font-size: .8rem; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav__links a:hover { color: var(--text); background: var(--accent-tint); }
.lang {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-1);
}
.lang:hover { border-color: var(--accent-text); color: var(--accent-text); }
.lang .i { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav__links { display: none; } .lang { margin-inline-start: auto; } }

/* ---------- store badge ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 18px;
  border-radius: var(--r-btn); background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-2); direction: ltr;
}
a.store-badge:hover { background: #1a1a1a; }
.store-badge__logo { width: 24px; height: 28px; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-badge__small { font-size: .74rem; font-weight: 500; opacity: .85; }
.store-badge__big { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
[dir="rtl"] .store-badge__small { direction: rtl; text-align: left; }
.store-badge--soon { cursor: default; }
@media (prefers-color-scheme: dark) { .store-badge { background: #fff; color: #000; border-color: transparent; } a.store-badge:hover { background: #e9e9ec; } }

/* ---------- buttons / chips ---------- */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: var(--r-btn);
  color: var(--accent-text); font-weight: 600; text-decoration: none; border: 1.5px solid currentColor;
}
.btn-ghost:hover { background: var(--accent-tint); }
.flip { transform: scaleX(-1); }
[dir="ltr"] .flip { transform: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-text); font-weight: 600; font-size: .9rem; line-height: 1.4;
}
.eyebrow svg { width: 16px; height: 16px; }
.score {
  display: inline-grid; place-items: center; min-width: 2.1em; height: 2.1em; padding: 0 .35em; border-radius: .55em;
  background: var(--score); color: var(--on-score); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--open { color: var(--open); } .status--closing { color: var(--closing); } .status--closed { color: var(--closed); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 120px); isolation: isolate; }
.hero::before {           /* a quiet street map under everything */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 46px, var(--map-ground) 46px 58px, transparent 58px) 0 0 / 120px 120px,
    linear-gradient(0deg, transparent 0 70px, var(--map-ground) 70px 82px, transparent 82px) 0 0 / 120px 120px,
    radial-gradient(circle at 78% 30%, var(--map-park) 0 90px, transparent 91px),
    var(--map-block);
  opacity: .9;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 28% 55%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 75% at 28% 55%, #000 0%, transparent 72%);
}
[dir="ltr"] .hero::before { -webkit-mask-image: radial-gradient(ellipse 70% 75% at 72% 55%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 75% at 72% 55%, #000 0%, transparent 72%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 {
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem); font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  margin-block: 22px 22px;
}
.hero h1 span { display: block; color: var(--accent-text); }
:lang(en) .hero h1 { line-height: 1.04; letter-spacing: -.035em; }
.lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); color: var(--text-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--text-2); font-weight: 500; font-size: .98rem; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .i { width: 18px; height: 18px; color: var(--accent-text); stroke-width: 2.4; }

.stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.stage__sun {
  position: absolute; width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--score) 42%, transparent) 0%, color-mix(in srgb, var(--score) 10%, transparent) 46%, transparent 70%);
}
.phone {
  --w: 290px; position: relative; width: var(--w); border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .034);
  background: var(--bezel); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--shadow-3);
}
.phone::after {           /* dynamic island */
  content: ""; position: absolute; top: calc(var(--w) * .058); left: 50%; translate: -50% 0;
  width: 31%; height: calc(var(--w) * .085); border-radius: 99px; background: #000;
}
.phone img { width: 100%; aspect-ratio: 600 / 1304; border-radius: calc(var(--w) * .128); background: var(--surface); }
.stage .phone--front { z-index: 2; }
.stage .phone--back { --w: 250px; position: absolute; z-index: 1; inset-inline-end: -4%; top: 12%; rotate: 7deg; opacity: .96; }
[dir="ltr"] .stage .phone--back { rotate: -7deg; }
.float-card {
  position: absolute; z-index: 3; inset-inline-start: -6%; bottom: 13%;
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 16px; max-width: 300px;
  background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-3); border: 1px solid var(--hairline);
}
.float-card .score { font-size: 1.35rem; }
.float-card__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; font-size: .9rem; color: var(--text-2); }
.float-card__why { font-size: .88rem; color: var(--text-2); line-height: 1.5; margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.kicker { color: var(--accent-text); font-weight: 600; font-size: .95rem; margin-bottom: 12px; display: block; }
.h2 { font-size: clamp(2rem, 1.3rem + 2.9vw, 3.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
:lang(en) .h2 { line-height: 1.1; letter-spacing: -.03em; }
.sub { color: var(--text-2); font-size: 1.12rem; margin-top: 16px; max-width: 38em; }
.head { margin-bottom: clamp(36px, 5vw, 60px); }
.head--center { text-align: center; } .head--center .sub { margin-inline: auto; }

/* ask strip */
.ask { padding-block: 8px 24px; overflow: clip; }
.ask__title { text-align: center; color: var(--text-2); font-weight: 500; margin-bottom: 22px; font-size: 1.05rem; }
.ask__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-inline: var(--gutter); }
.ask__row + .ask__row { margin-top: 12px; }
.bubble {
  display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 20px 20px 6px 20px;
  background: var(--accent); color: var(--on-accent); font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-1);
}
[dir="rtl"] .bubble { border-radius: 20px 20px 20px 6px; }
.bubble--soft { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }
.bubble[lang="en"] { direction: ltr; } .bubble[lang="ar"] { direction: rtl; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; position: relative; counter-reset: step; }
.steps::before {          /* the route that joins the three steps */
  content: ""; position: absolute; top: 58px; inset-inline: 12% 12%; border-top: 2.5px dashed color-mix(in srgb, var(--accent-text) 45%, transparent); z-index: 0;
}
.step { position: relative; z-index: 1; background: var(--surface); border-radius: var(--r-sheet); padding: 30px 28px 32px; box-shadow: var(--shadow-2); border: 1px solid var(--hairline); }
.step__n {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 22px;
  background: var(--accent); color: var(--on-accent); font-size: 1.6rem; font-weight: 700; box-shadow: 0 0 0 8px var(--surface);
}
.step:last-child .step__n { background: var(--score); color: var(--on-score); }
.step h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.step p { color: var(--text-2); }
.step .eg { display: inline-block; margin-top: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-text); font-weight: 500; font-size: .92rem; }

/* score */
.score-sec { background: var(--surface-2); border-block: 1px solid var(--hairline); }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.score-big { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 26px; }
.score-big .score { font-size: clamp(3.6rem, 2.4rem + 4.8vw, 6.6rem); border-radius: .3em; min-width: 1.8em; height: 1.55em; box-shadow: 0 18px 40px -16px rgba(245, 179, 1, .7); }
.score-big__of { font-size: 1.3rem; font-weight: 600; color: var(--text-3); padding-bottom: .5em; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.points .i { margin-top: .3em; color: var(--accent-text); }
.why {
  background: var(--surface); border-radius: var(--r-sheet); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-3); border: 1px solid var(--hairline);
}
.why__head { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.why__head .score { font-size: 1.6rem; }
.why__head h3 { font-size: 1.25rem; line-height: 1.4; }
.why__head p { color: var(--text-3); font-size: .92rem; }
.bars { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.bar__label { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.bar__label em { font-style: normal; font-weight: 500; color: var(--text-3); font-size: .9rem; }
.bar__track { height: 12px; border-radius: 99px; background: var(--accent-tint); overflow: hidden; }
.bar__fill { height: 100%; width: var(--v); border-radius: 99px; background: var(--accent); min-width: 12px; }
.bar--sun .bar__fill { background: var(--score); }
.statuses { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.honest {
  margin-top: 18px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-card);
  background: var(--accent-tint); color: var(--text);
}
.honest .i { color: var(--accent-text); margin-top: .25em; }
.honest strong { display: block; font-weight: 600; margin-bottom: 2px; }
.honest q { color: var(--text-2); quotes: "«" "»"; }
:lang(en) .honest q { quotes: "“" "”"; }

/* screens */
.shots {
  display: flex; gap: clamp(18px, 2.4vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 12px var(--gutter) 34px; margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
  scroll-padding-inline: var(--gutter);
}
.shots li { flex: none; scroll-snap-align: start; text-align: center; }
.shots .phone { --w: clamp(216px, 22vw, 262px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--shadow-2); }
.shots figcaption { margin-top: 16px; font-weight: 600; max-width: 250px; margin-inline: auto; line-height: 1.5; }
.shots figcaption small { display: block; font-weight: 500; color: var(--text-3); font-size: .84rem; margin-top: 2px; }
.shots figure { margin: 0; }
.shots-hint { text-align: center; color: var(--text-3); font-size: .9rem; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: var(--surface); border-radius: var(--r-sheet); padding: 28px; border: 1px solid var(--hairline); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); margin-bottom: 18px; }
.tile__icon .i { width: 24px; height: 24px; }
.tile h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.tile p { color: var(--text-2); }
.tile--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 210px; gap: 24px; align-items: end; padding-bottom: 0; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile--wide > div { padding-bottom: 28px; align-self: center; }
.tile--wide p { color: rgba(255, 255, 255, .86); }
.tile--wide .tile__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.cities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.cities li { padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 500; font-size: .92rem; }
.tile__shot { align-self: end; margin-bottom: -60px; }
.tile__shot .phone { --w: 210px; }

/* privacy band */
.band { background: var(--accent); color: var(--on-accent); position: relative; overflow: clip; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .09;
  background:
    linear-gradient(90deg, transparent 0 46px, #fff 46px 50px, transparent 50px) 0 0 / 96px 96px,
    linear-gradient(0deg, transparent 0 60px, #fff 60px 64px, transparent 64px) 0 0 / 96px 96px;
}
@media (prefers-color-scheme: dark) { .band { background: #0F3B31; } }
.band .kicker { color: var(--score); }
.band .sub { color: rgba(255, 255, 255, .82); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.pillar { padding: 24px; border-radius: var(--r-card); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.pillar .i { width: 28px; height: 28px; color: var(--score); margin-bottom: 14px; }
.pillar h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; line-height: 1.45; }
.pillar p { color: rgba(255, 255, 255, .8); font-size: .98rem; }
.band a { color: #fff; font-weight: 600; }
.band__more { margin-top: 30px; }

/* price */
.price { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.price__num { font-size: clamp(8rem, 5rem + 14vw, 15rem); font-weight: 700; line-height: .85; color: var(--accent-text); letter-spacing: -.05em; font-variant-numeric: tabular-nums; position: relative; }
.price__num::after { content: ""; position: absolute; width: .22em; height: .22em; border-radius: 50%; background: var(--score); inset-inline-end: -.16em; top: .02em; }
.price__free { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--score); color: var(--on-score); font-weight: 700; margin-bottom: 16px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--hairline); margin-bottom: 12px; box-shadow: var(--shadow-1); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; min-height: 64px; font-weight: 600; font-size: 1.1rem; line-height: 1.5; border-radius: var(--r-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E6B58' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: rotate .25s var(--ease-out);
}
@media (prefers-color-scheme: dark) { .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CC3A5' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); } }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 24px 22px; color: var(--text-2); }

/* final call */
.final { text-align: center; padding-block: clamp(72px, 9vw, 120px); }
.final__card {
  background: var(--surface); border-radius: 36px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); box-shadow: var(--shadow-3);
  border: 1px solid var(--hairline); position: relative; overflow: hidden; isolation: isolate;
}
.final__card::before { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 90%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--score) 26%, transparent), transparent); }
.final__icon { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 22px; box-shadow: var(--shadow-2); }
.final .cta-row { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--hairline); padding-block: 36px 44px; color: var(--text-3); font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { color: var(--text-2); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }
.foot nav a:hover { color: var(--accent-text); }

/* legal pages */
.doc { padding-block: clamp(36px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.doc__switch { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.doc article { background: var(--surface); border-radius: var(--r-sheet); border: 1px solid var(--hairline); box-shadow: var(--shadow-2); padding: clamp(26px, 5vw, 56px); max-width: 820px; margin-inline: auto; }
.doc article + article { margin-top: 28px; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); line-height: 1.3; margin-bottom: 6px; }
.doc h2 { font-size: 1.25rem; margin: 30px 0 8px; line-height: 1.45; display: flex; align-items: center; gap: 10px; }
.doc h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--score); flex: none; }
.doc p { color: var(--text-2); }
.doc .muted { color: var(--text-3); font-size: .92rem; }
.tg {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 22px; margin-top: 14px; border-radius: var(--r-btn);
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-2);
}
.tg:hover { background: var(--accent-pressed); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .score-grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; } .hero__copy .lead { margin-inline: auto; }
  .hero .cta-row, .hero .facts { justify-content: center; }
  .stage { min-height: 0; padding-block: 12px 24px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .steps::before { top: 40px; bottom: 40px; inset-inline: 55px auto; border-top: 0; border-inline-start: 2.5px dashed color-mix(in srgb, var(--accent-text) 45%, transparent); }
  .bento { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .price { grid-template-columns: 1fr; text-align: center; }
  .price__num { justify-self: center; }
  .price p { margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .stage .phone--front { --w: min(250px, 66vw); }
  .stage .phone--back { --w: min(210px, 54vw); inset-inline-end: 0; top: 10%; }
  .float-card { inset-inline-start: 0; bottom: 6%; max-width: min(280px, 82vw); padding: 12px 14px; gap: 12px; }
  .bento, .pillars { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile__shot { justify-self: center; margin-bottom: -110px; }
  .store-badge, .btn-ghost { min-height: 54px; }
  .faq summary { padding: 16px 18px; font-size: 1.02rem; }
  .faq details > div { padding: 0 18px 18px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}

/* ---------- motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
  @keyframes drift { to { transform: translateX(-50%); } }
  .hero__copy > * { animation: rise .8s var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; } .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; } .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .stage .phone--front { animation: rise 1s .15s var(--ease-out) both; }
  .stage .phone--back { animation: rise 1s .3s var(--ease-out) both; }
  .float-card { animation: rise .9s .55s var(--ease-out) both, bob 6s 1.6s ease-in-out infinite; }

  .ask__row { flex-wrap: nowrap; justify-content: flex-start; width: max-content; padding-inline: 0; gap: 0; direction: ltr; animation: drift 46s linear infinite; }
  .ask__row--rev { animation-direction: reverse; animation-duration: 54s; }
  .ask:hover .ask__row { animation-play-state: paused; }

  .lift { transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out); }
  .lift:hover { translate: 0 -4px; box-shadow: var(--shadow-3); }
  .store-badge, .btn-ghost, .tg { transition: transform .2s var(--ease-out), background-color .2s; }
  a.store-badge:hover, .btn-ghost:hover, .tg:hover { transform: scale(1.02); }
  a.store-badge:active, .btn-ghost:active, .tg:active { transform: scale(.98); }

  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
.ask__set { display: contents; }
.ask__dup { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ask__set, .ask__row .ask__dup { display: flex; gap: 12px; padding-inline-end: 12px; }
}

/* legal pages: language chips in the header */
.doc__langs { display: flex; gap: 8px; margin-inline-start: auto; }
.doc__langs .lang { margin: 0; }
.tg .i { width: 20px; height: 20px; }

/* ---------- refinements after the first screenshot review ---------- */
.bento { grid-auto-flow: dense; }
.tile--wide { grid-row: span 2; grid-template-columns: 1fr; align-content: space-between; }
.tile--wide > div { padding-bottom: 0; }
.tile__shot { justify-self: center; margin-bottom: -40px; margin-top: 8px; }
.tile__shot .phone { --w: 230px; }
@media (max-width: 960px) {
  .tile--wide { grid-row: auto; }
  .bento > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .bento > :last-child { grid-column: auto; } .tile__shot { margin-bottom: -120px; } }
.band::before {
  opacity: .05;
  background:
    linear-gradient(90deg, transparent 0 47px, #fff 47px 49px, transparent 49px) 0 0 / 96px 96px,
    linear-gradient(0deg, transparent 0 61px, #fff 61px 63px, transparent 63px) 0 0 / 96px 96px;
}
.price__num::after { inset-inline-end: auto; right: -.14em; top: .04em; width: .18em; height: .18em; }
[dir="rtl"] .price__num::after { right: auto; left: -.2em; top: auto; bottom: .1em; }
.final { padding-top: 0; }
[dir="rtl"] .score-big { direction: ltr; justify-content: flex-end; }
@media (prefers-color-scheme: dark) { .hero::before { opacity: .55; } }
@media (max-width: 640px) and (prefers-reduced-motion: reduce) {
  .ask__set .bubble:nth-child(n+4) { display: none; }
}
.chat-mock { margin-top: 26px; background: var(--surface); color: var(--text); border-radius: var(--r-card); padding: 18px 20px 20px; box-shadow: var(--shadow-3); margin-bottom: 28px; }
.chat-mock__q { display: inline-block; float: inline-start; background: var(--accent); color: #fff; border-radius: 20px 20px 20px 6px; padding: 4px 16px; font-weight: 500; margin-bottom: 12px; }
.chat-mock p { clear: both; color: var(--text) !important; line-height: 2; }
.chat-mock__link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-text) 35%, transparent); }
.chat-mock__s { color: var(--text-3); }
.chat-mock__note { display: block; margin-top: 10px; color: var(--text-3); font-size: .85rem; }
.tile--wide { align-content: start; }
:lang(en) .float-card { bottom: auto; top: 22%; }
@media (max-width: 640px) { :lang(en) .float-card { top: auto; bottom: 6%; } }
.price__num::after, [dir="rtl"] .price__num::after { content: none; }
.chat-mock__link { white-space: nowrap; }
@media (max-width: 640px) { .nav .brand small { display: none; } }

/* ---------- shared place page (/p/…) ---------- */
.share { max-width: 620px; padding-block: clamp(28px, 6vw, 64px) clamp(56px, 8vw, 96px); display: grid; gap: 22px; }
.share__card { background: var(--surface); border-radius: var(--r-sheet); border: 1px solid var(--hairline); box-shadow: var(--shadow-3); overflow: hidden; }
.share__map {
  position: relative; height: clamp(150px, 34vw, 200px); display: grid; place-items: center;
  background:
    linear-gradient(90deg, transparent 47%, color-mix(in srgb, var(--surface) 85%, transparent) 47% 53%, transparent 53%) 0 0 / 100% 100%,
    linear-gradient(28deg, transparent 58%, color-mix(in srgb, var(--surface) 80%, transparent) 58% 62%, transparent 62%),
    linear-gradient(-14deg, transparent 30%, color-mix(in srgb, var(--surface) 70%, transparent) 30% 32.5%, transparent 32.5%),
    repeating-linear-gradient(0deg, transparent 0 38px, color-mix(in srgb, var(--accent-text) 9%, transparent) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, color-mix(in srgb, var(--accent-text) 9%, transparent) 38px 39px),
    radial-gradient(120% 90% at 80% 10%, color-mix(in srgb, var(--score) 22%, transparent), transparent 60%),
    var(--accent-tint);
}
.share__map--empty { filter: grayscale(1); opacity: .7; }
.share__pin {
  width: 58px; height: 58px; border-radius: 18px; background: var(--accent); display: grid; place-items: center;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--surface) 70%, transparent), var(--shadow-3); translate: 0 -8px;
}
.share__pin svg { width: 38px; height: 38px; }
.share__body { padding: clamp(22px, 5vw, 36px); display: grid; gap: 6px; }
.share__body .kicker { margin-bottom: 0; }
.share__body h1 { font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); line-height: 1.35; overflow-wrap: anywhere; }
.share__body .muted { color: var(--text-2); }
.share__open { justify-content: center; margin-top: 18px; min-height: 56px; font-size: 1.05rem; }
.share__en { font-weight: 500; opacity: .85; }
.share__en-block { color: var(--text-3); font-size: .95rem; line-height: 1.6; }
.share__app {
  background: var(--surface); border-radius: var(--r-sheet); border: 1px solid var(--hairline); box-shadow: var(--shadow-2);
  padding: clamp(24px, 5vw, 40px); text-align: center; display: grid; gap: 8px; justify-items: center;
}
.share__app h2 { font-size: 1.35rem; }
.share__app p { color: var(--text-2); max-width: 30em; }
.share__icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: var(--shadow-2); margin-bottom: 6px; }
.share__facts { justify-content: center; margin-top: 6px; }
.share__app .cta-row { justify-content: center; margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drop { from { opacity: 0; translate: 0 -28px; } to { opacity: 1; translate: 0 -8px; } }
  .share__pin { animation: drop .7s .1s var(--ease-out) both; }
  .share__card, .share__app { animation: rise .7s var(--ease-out) both; }
  .share__app { animation-delay: .12s; }
}
[dir="rtl"] .share__body h1 { text-align: right; }
