/* PRMAGLY Clinic demo landing (the public / on a demo install) and /privacy. Static, no build step, no external requests.

   DESIGN TOKENS (C5 refine). Dark is the default look; light is the same system on a cool slate ground, chosen by the visitor.
   Colour, dark (default): ground #0B1530 (brand kit navy), deep #070F22, surface #121E3D, raised #1A2A52, ink #EEF5F8,
     muted #B5C2D6, line rgba(238,245,248,.14), ONE accent teal #4FE0DE (text on it #04201F), glass rgba(18,30,61,.6),
     device frame #070F22 with a teal rim rgba(79,224,222,.32).
   Colour, light: ground #E7EDF5, deep #DCE4EF, surface #F6F8FB, raised #FFFFFF, ink #0B1530, muted #3E4B66, accent #007A78.
   Type: display Noto Kufi Arabic 800 (headings), text Vazirmatn 17px / 1.8, figures Spline Sans Mono.
   Scale (fluid): H1 2.4rem to 4rem (AR), 2rem to 2.9rem (EN, three lines), H2 2rem to 3.25rem, H3 1.25rem to 1.4rem, body 17px.
   Space: section gap clamp(96px, 12vw, 176px); gutter clamp(16px, 4vw, 40px); radii 10px (buttons), 18px (device frames), 16px to 26px (tickets).
   Motion: ease cubic-bezier(.2,.7,.2,1); entrances 1.1s with a stagger after the headline; stack drift 14s to 18s (translate only).
     Reduced motion = static composition, no travel, no loops.
   SIGNATURE: a layered stack of real screens in dark device frames: one large front screen, two behind at depth, over a teal glow.
*/

@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/noto-kufi-arabic-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Noto Kufi Arabic'; font-style: normal; font-weight: 500 900; font-display: swap; src: url(/fonts/noto-kufi-arabic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/vazirmatn-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Vazirmatn'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/fonts/vazirmatn-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Spline Sans Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/fonts/spline-sans-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }

/* Dark (default): the look of the landing. */
:root {
  color-scheme: dark;
  --ground: #0B1530;
  --ground-deep: #070F22;
  --surface: #121E3D;
  --surface-2: #1A2A52;
  --ink: #EEF5F8;
  --muted: #B5C2D6;
  --line: rgba(238, 245, 248, 0.14);
  --line-strong: rgba(238, 245, 248, 0.28);
  --accent: #4FE0DE;
  --accent-ink: #04201F;
  --accent-text: #4FE0DE;
  --glass: rgba(18, 30, 61, 0.62);
  --glow: rgba(79, 224, 222, 0.14);
  --glow-2: rgba(38, 86, 180, 0.22);
  --frame: #070F22;
  --frame-rim: rgba(79, 224, 222, 0.32);
  --frame-dots: #34456F;
  --frame-line: rgba(238, 245, 248, 0.22);
  --bezel: #050B1C;
  --chat: #0C1A36;
  --shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.75);
  --floor: rgba(79, 224, 222, 0.22);
}

/* Light: the visitor's choice only. Same roles, redefined on a cool slate ground (not paper, not cream). */
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #E7EDF5;
  --ground-deep: #DCE4EF;
  --surface: #F6F8FB;
  --surface-2: #FFFFFF;
  --ink: #0B1530;
  --muted: #3E4B66;
  --line: rgba(11, 21, 48, 0.14);
  --line-strong: rgba(11, 21, 48, 0.32);
  --accent: #007A78;
  --accent-ink: #FFFFFF;
  --accent-text: #00605E;
  --glass: rgba(246, 248, 251, 0.72);
  --glow: rgba(0, 122, 120, 0.12);
  --glow-2: rgba(38, 86, 180, 0.10);
  --frame: #0B1530;
  --frame-rim: rgba(0, 122, 120, 0.45);
  --frame-dots: #3B4D78;
  --frame-line: rgba(11, 21, 48, 0.14);
  --bezel: #0B1530;
  --chat: #1B2A4B;
  --shadow: 0 24px 50px -28px rgba(11, 21, 48, 0.4);
  --floor: rgba(0, 122, 120, 0.22);
}

:root {
  --display: 'Noto Kufi Arabic', 'Vazirmatn', system-ui, sans-serif;
  --text: 'Vazirmatn', 'Noto Kufi Arabic', system-ui, sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b { font-weight: 800; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.sec { padding-block: clamp(72px, 12vw, 176px); }
.sec-title { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.2; margin-block-end: clamp(32px, 5vw, 64px); max-width: 16em; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 40; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons: flat fill, square-cornered, decided once. */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 12px; font: 700 16px/1.2 var(--display); text-decoration: none; border: 1px solid transparent; text-align: center; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), filter .25s var(--ease); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
button.btn { cursor: pointer; }
.ctas form, .dock form, .login-acts form { display: contents; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--ink); border-color: var(--line-strong); background: transparent; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn.on-dark { color: var(--ink); }
.copy { min-height: 46px; min-width: 46px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 700 15px/1.2 var(--display); cursor: pointer; transition: border-color .25s var(--ease), color .25s var(--ease); }
.copy:hover { border-color: var(--accent); color: var(--accent-text); }
.copy[data-state="done"] { border-color: var(--accent); color: var(--accent-text); }

/* Header (also on /privacy) */
.top { background: color-mix(in srgb, var(--ground) 90%, transparent); border-block-end: 1px solid var(--line); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.top-nav { display: flex; gap: 22px; flex-wrap: wrap; margin-inline-start: auto; }
.top-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.top-nav a:hover { color: var(--accent-text); }
.tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 12px; padding: 3px; }
.lang a { min-height: 40px; min-width: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.lang a.on { background: var(--accent); color: var(--accent-ink); }
.theme { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 700 15px/1.2 var(--display); cursor: pointer; }
.theme:hover { border-color: var(--accent); }
.theme-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme[aria-pressed="true"] .theme-dot { background: currentColor; }

/* Hero: the headline, one promise, the price on a glass ticket, and the layered stack of real screens. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ground); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(52% 46% at 72% 40%, var(--glow), transparent 72%), radial-gradient(38% 40% at 6% 100%, var(--glow-2), transparent 70%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(56px, 7vw, 110px) clamp(88px, 9vw, 130px); }
.hero-brand { font-size: 15px; font-weight: 700; color: var(--muted); margin-block-end: 22px; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 2.9vw, 4rem); line-height: 1.12; max-width: 12.5em; text-wrap: balance; }
:root:lang(en) .hero h1 { font-size: clamp(2rem, 1.1rem + 1.8vw, 2.9rem); line-height: 1.14; }
.lead { margin-block: 22px 32px; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.7; color: var(--muted); max-width: 30em; }
.lead-short { display: none; }
/* The night-patient line under the headline: the biggest accent text of the first screen (it took the place of the sentence that sat in the glass ticket). */
.hero-loss { margin-block: 22px 0; font: 800 clamp(1.2rem, 1.05rem + 0.9vw, 1.55rem)/1.5 var(--display); color: var(--accent-text); max-width: 24em; text-wrap: balance; }
.hero-loss + .lead { margin-block-start: 16px; }
.note { margin-block-start: 18px; font-size: 15px; color: var(--muted); }

.ticket { display: grid; gap: 6px; padding: 18px 24px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); margin-block-end: 28px; max-width: 30em; }
.ticket-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.ticket-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.ticket-price .num { font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem); font-weight: 500; line-height: 1; color: var(--accent-text); letter-spacing: -0.01em; }
.ticket-price .cur { font: 700 1.1rem/1 var(--display); color: var(--ink); }
.ticket-line { font-size: 15px; color: var(--muted); }
.ticket-ask { font: 800 clamp(1.2rem, 1.05rem + 0.9vw, 1.55rem)/1.45 var(--display); color: var(--accent-text); }
.ticket-ask.big { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem); line-height: 1.35; margin-block: 6px 16px; max-width: 18em; }

/* The stack: one large front screen, two layered behind it at depth. Every screen sits in a dark device frame with a teal rim.
   Only transform and translate move, and only slowly. The stack is wider than its column on the outer side, so the front screen can be large. */
.stack-wrap { position: relative; margin: 0; margin-inline-end: -110px; height: clamp(420px, 42vw, 620px); perspective: 1400px; perspective-origin: 50% 40%; }
.stack-wrap::after { content: ''; position: absolute; inset-inline: 8%; bottom: -2%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, var(--floor), transparent); filter: blur(22px); z-index: -1; pointer-events: none; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, -6px, 0); } to { transform: translate3d(0, 6px, 0); } }
.card { position: absolute; margin: 0; padding: 26px 10px 10px; border-radius: 18px; background: var(--frame); border: 1px solid var(--frame-rim); box-shadow: 0 46px 90px -34px rgba(0, 0, 0, 0.85), 0 0 60px -22px rgba(79, 224, 222, 0.28); backface-visibility: hidden; }
.card::before { content: ''; position: absolute; top: 10px; inset-inline-start: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--frame-dots); box-shadow: 14px 0 0 var(--frame-dots), 28px 0 0 var(--frame-dots); }
.card img { width: 100%; height: auto; border-radius: 10px; }
.card-front { left: 50%; top: 50%; width: min(640px, 100%); transform: translate(-50%, -50%) translateZ(60px); z-index: 3; }
.card-left { left: 4%; top: -9%; width: 52%; transform: rotateY(10deg) translateZ(-120px); transform-origin: 0 50%; z-index: 2; animation: drift-b 18s ease-in-out -4s infinite alternate; }
.card-right { right: 2%; bottom: -9%; width: 48%; transform: rotateY(-10deg) translateZ(-160px); transform-origin: 100% 50%; z-index: 1; animation: drift-c 20s ease-in-out -9s infinite alternate; }
@keyframes drift-b { from { translate: 0 -5px; } to { translate: 0 7px; } }
@keyframes drift-c { from { translate: 0 6px; } to { translate: 0 -6px; } }

/* Sections */
.sec-before .ba { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
.ba-label { font-size: 14px; font-weight: 700; color: var(--muted); margin-block-end: 14px; }
.ba-before p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 30em; margin-block-start: 0; }
.ba-after { padding-block-start: clamp(0px, 4vw, 48px); }
.ba-after .ba-label { color: var(--accent-text); }
.ba-after p { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.7; color: var(--ink); max-width: 32em; }

/* WhatsApp flow: two bot screens as phones, real copy. */
.wa-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.wa-copy .sec-title { margin-block-end: 22px; }
.wa-lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.8; color: var(--muted); max-width: 26em; }
.phones { display: flex; align-items: flex-start; justify-content: center; }
.phone { width: min(100%, 280px); padding: 12px; border-radius: 40px; background: var(--bezel); border: 1px solid rgba(238, 245, 248, 0.12); box-shadow: var(--shadow); }
.phone-b { margin-block-start: clamp(80px, 12vw, 136px); margin-inline-start: -22px; }
.phone-a { position: relative; z-index: 1; transform: rotate(-2deg); }
.phone-b { transform: rotate(2.5deg); }
.screen { display: grid; gap: 9px; align-content: start; min-height: 440px; padding: 16px 12px; border-radius: 30px; background: var(--chat); color: #E9F3F7; }
.bubble { max-width: 94%; border-radius: 16px; padding: 10px 14px; font-size: 14px; line-height: 1.7; }
.bubble p { margin: 0; white-space: pre-line; }
.bubble.in { background: #1E305A; border-end-start-radius: 6px; justify-self: start; }
.bubble.out { background: #0C4A48; color: #E8FFFD; border-end-end-radius: 6px; justify-self: end; }
.bubble .who { display: block; font-size: 12px; font-weight: 700; opacity: .72; margin-block-end: 2px; }
.bubble .rows, .bubble .btns { margin: 8px 0 0; display: grid; gap: 4px; }
.bubble .rows li { background: rgba(232, 255, 253, 0.09); border-radius: 10px; padding: 5px 12px; font-size: 13.5px; line-height: 1.5; }
.bubble .rows.slots li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bubble .rows.slots li span { font-size: 12.5px; color: #BFEDEA; text-align: end; }
.bubble .btns { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble .btns li { border: 1px solid var(--accent); color: #7CEBE9; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.menu-label { display: inline-block; margin-block-start: 8px; border: 1px solid rgba(232, 255, 253, 0.45); border-radius: 999px; padding: 2px 12px; font-size: 12.5px; }
.tag { display: inline-block; margin-block-start: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 999px; }

/* Screens: one large picture, then two offset, then a wide one. Real crops of the demo. */
.shot { margin: 0; display: grid; gap: 14px; }
.shot-main { width: min(100%, 780px); margin-inline: auto; margin-block-end: clamp(40px, 6vw, 72px); }
.shot-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; margin-block-end: clamp(40px, 6vw, 72px); }
.shot-pair .shot:nth-child(2) { margin-block-start: clamp(48px, 8vw, 120px); }
.shot-wide { width: min(100%, 440px); margin-inline-start: auto; }
.frame { background: var(--surface-2); border: 1px solid var(--frame-line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; }
.shot figcaption { font-size: 16px; color: var(--muted); }
.shot figcaption b { color: var(--ink); }

/* Features: a quiet typographic list beside the heading. No icons, no cards, no numbers. */
.feat-in { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.feat-in .sec-title { position: sticky; top: 32px; margin-block-end: 0; }
.flist li { padding-block: clamp(22px, 3vw, 30px); border-block-start: 1px solid var(--line); }
.flist li:last-child { border-block-end: 1px solid var(--line); }
.flist h3 { font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); margin-block-end: 8px; }
.flist p { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 38em; }

/* Price: one dark glass ticket with what it includes, the instalment companies, and the other ways to pay. */
.ticket-big { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: clamp(26px, 4vw, 56px); border-radius: 26px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.tb-main .ticket-label { margin-block-end: 6px; }
.ticket-price.big { margin-block: 6px 16px; }
.ticket-price.big .num { font-size: clamp(3.2rem, 2rem + 5vw, 6rem); font-weight: 500; }
.ticket-price.big .cur { font-size: 1.3rem; }
.tb-includes { color: var(--ink); max-width: 30em; margin-block-end: 28px; }
.tb-side h3 { font-size: 1.1rem; color: var(--accent-text); margin-block-end: 16px; }
.ticks li { position: relative; padding-inline-start: 30px; margin-block-end: 12px; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.62em; width: 12px; height: 7px; border-inline-start: 3px solid var(--accent); border-block-end: 3px solid var(--accent); transform: rotate(-45deg); }
.delivery { margin-block-start: 18px; font-weight: 800; color: var(--accent-text); }
.methods { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px clamp(28px, 4vw, 56px); margin-block-start: clamp(32px, 5vw, 56px); }
.methods h3 { font-size: 1.05rem; margin-block-end: 14px; }
.methods p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips .hl { background: var(--accent); color: var(--accent-ink); font-weight: 800; border-radius: 10px; padding: 10px 18px; font-size: 16px; }
.plan-note { grid-column: 1 / -1; font-size: 15px; color: var(--muted); }

/* Try it: three demo accounts as stacked glass rows with copy buttons. */
.try-text { max-width: 40em; color: var(--muted); margin-block-end: 32px; }
.logins { display: grid; gap: 12px; margin-block-end: 28px; }
.login { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.9fr) auto; gap: 20px 28px; align-items: center; padding: 22px 26px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.login-role { font-size: 1.15rem; }
.login-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cred { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px 24px; margin: 0; }
.cred dt { font-size: 14px; color: var(--muted); }
.cred dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.try-actions { margin-block-end: 40px; }
.patient { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(22px, 3vw, 32px); border-radius: 18px; border: 1px dashed var(--line-strong); }
.patient h3 { font-size: 1.15rem; margin-block-end: 6px; }
.patient p { color: var(--muted); }

/* FAQ: the same eight questions as the structured data. */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 4px 24px; }
.faq summary { cursor: pointer; font: 700 1.08rem/1.5 var(--display); padding-block: 16px; list-style: none; position: relative; padding-inline-end: 34px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 0; top: 12px; font-size: 1.6rem; color: var(--accent-text); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); padding-block-end: 20px; }

/* Closing: one large sentence on the deep ground. */
.closing { background: var(--ground-deep); padding-block: clamp(110px, 16vw, 220px); }
.closing-in { display: grid; gap: 26px; justify-items: start; }
.closing h2 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 5.4rem); line-height: 1.1; max-width: 12em; }
.closing p { color: var(--muted); max-width: 30em; font-size: 1.1rem; }

/* Footer */
.foot { padding-block: 40px; border-block-start: 1px solid var(--line); }
.foot-in { display: grid; gap: 10px; }
.foot-by { font-weight: 700; }
.foot-loc { font-size: 14px; color: var(--muted); margin-block-start: -6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot-note { font-size: 14px; color: var(--muted); }

/* Phone action bar: desktop has none. */
.dock { display: none; }

/* Motion. Only when the visitor allows it. Content is complete without JavaScript and without motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > :not(h1) { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 220ms; }
  .hero-copy > :nth-child(5) { animation-delay: 320ms; }
  .hero-copy > :nth-child(6) { animation-delay: 420ms; }
  .hero-copy > :nth-child(7) { animation-delay: 520ms; }
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Layout: desktop first, then the phone composition. */
@media (max-width: 1000px) {
  /* One column: the headline, the promise, the price and the stack come first, then the buttons and the note. */
  .hero-in { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero-brand { order: 0; }
  .hero h1 { order: 1; }
  .hero-loss { order: 2; }
  .lead { order: 2; margin-block: 18px 26px; }
  .ticket { order: 3; }
  .stack-wrap { order: 4; margin-inline-end: 0; height: clamp(340px, 52vw, 460px); }
  .hero .ctas { order: 5; }
  .note { order: 6; }
  .wa-in { grid-template-columns: minmax(0, 1fr); }
  .feat-in { grid-template-columns: minmax(0, 1fr); }
  .feat-in .sec-title { position: static; }
}
@media (max-width: 720px) {
  body { padding-block-end: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .top-nav { display: none; }
  .sec-before .ba, .shot-pair, .ticket-big, .methods { grid-template-columns: minmax(0, 1fr); }
  .shot-pair .shot:nth-child(2) { margin-block-start: 0; }
  .shot-wide { width: 100%; }
  .ba-after { padding-block-start: 0; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .cred { grid-template-columns: minmax(0, 1fr); }
  .login .login-acts { justify-self: start; }
  .phones { flex-direction: column; align-items: center; }
  .phone-b { margin-block-start: 28px; margin-inline-start: 0; }
  .screen { min-height: 0; }

  /* First screen on a phone: the headline, one line of promise, the price on a compact ticket, then the screens under the bar. */
  .lead-long { display: none; }
  .lead-short { display: inline; }
  .hero-in { padding-block: 36px 40px; gap: 0; }
  .hero-brand { margin-block-end: 14px; }
  .hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 2.6rem); }
  :root:lang(en) .hero h1 { font-size: 1.85rem; }
  .hero-loss { font-size: 1.05rem; line-height: 1.55; margin-block-start: 14px; }
  .hero-loss + .lead { margin-block-start: 8px; }
  .lead { font-size: 1.05rem; margin: 12px 0 16px; line-height: 1.6; }
  .lead-short { font-size: 15px; }
  .ticket { padding: 12px 16px; margin-block-end: 0; gap: 2px; border-radius: 14px; }
  .ticket-price .num { font-size: 2.1rem; }
  .ticket-ask { font-size: 1.1rem; line-height: 1.4; }
  .ticket-line { font-size: 13px; line-height: 1.6; }
  .stack-wrap { height: 320px; margin-block-start: 22px; }
  .card { padding: 22px 7px 7px; border-radius: 14px; }
  .card::before { top: 8px; inset-inline-start: 10px; }
  .card img { border-radius: 8px; }
  .card-front { width: 80%; left: 50%; }
  .card-left { left: -4%; top: 0; width: 46%; }
  .card-right { right: -2%; bottom: 0; width: 42%; }
  .hero .ctas, .note { display: none; }
  .dock { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--ground-deep) 94%, transparent); border-block-start: 1px solid var(--line); }
  .dock .btn { flex: 1 1 0; min-height: 48px; padding-inline: 8px; font-size: 14px; white-space: nowrap; }
}
@media (max-width: 380px) {
  body { font-size: 16px; }
  .brand img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Privacy statement (/privacy): a plain reading column under the same header and footer. */
.doc { padding-block: 40px 56px; max-width: 46rem; }
.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.doc h2 { font-size: 1.2rem; margin-block: 32px 8px; }
.doc ul { margin-block: 16px; padding-inline-start: 22px; line-height: 1.8; list-style: disc; }
.doc li { margin-block-end: 10px; }
.doc p { line-height: 1.8; margin-block: 0 12px; }
