/* Crocodex website: the Sky Island look of the app, for the public pages.
 * Colours: docs/marketing/visual-identity.md (Dex Green never as text; Codex Green for buttons and links; orange one
 * accent at most, never a button or a price). Skies: the app's four times of day (core/app.css of the mockup).
 * Motion: every animation sits behind prefers-reduced-motion: no-preference and html:not([data-motion="reduced"]);
 * every element is fully visible without it. No inline style or script anywhere (the CSP forbids both). */

@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/Baloo2_800ExtraBold.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/Figtree_400Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/Figtree_500Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/Figtree_600SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/Figtree_700Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* size-adjusted fallbacks, so the swap moves nothing */
@font-face { font-family: 'Baloo 2 fallback'; src: local('Arial Rounded MT Bold'), local('Arial'); size-adjust: 96%; ascent-override: 105%; descent-override: 45%; }
@font-face { font-family: 'Figtree fallback'; src: local('Segoe UI'), local('Arial'); size-adjust: 100%; ascent-override: 95%; descent-override: 25%; }

:root {
  color-scheme: light;
  --cream: #FFF6E5; --cream-2: #FFFAF0; --paper: #FFFDF8; --sand: #F6E3B8; --panel: #F6EBD6; --panel-edge: #E9D8BA;
  --ink: #1E2A44; --ink-2: #3A4766; --ink-3: #5F6B86; --line: rgba(30, 42, 68, .12);
  --codex: #3D7135; --codex-press: #2E5A28; --dex: #6EAE57; --dex-shadow: #4B8A3D; --night-green: #97C777; --forest: #022311;
  --mist: #D2E7C6; --orange: #F2893A; --orange-fold: #D06A22; --violet: #5E4FA0; --focus: #7C5CFF; --stone: #EBCB9F; --stone-d: #B98E64;
  --bg: var(--cream); --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --link: var(--codex); --btn: var(--codex); --btn-text: #fff; --btn-press: var(--codex-press);
  --glass: rgba(255, 250, 240, .78); --glass-line: rgba(255, 255, 255, .7); --card: #FFFDF8; --card-line: rgba(30, 42, 68, .09);
  --sh-1: 0 1px 2px rgba(30, 42, 68, .06), 0 4px 14px -6px rgba(30, 42, 68, .18);
  --sh-2: 0 2px 4px rgba(30, 42, 68, .05), 0 22px 48px -18px rgba(30, 42, 68, .35);
  --sh-glass: inset 0 1px 0 rgba(255, 255, 255, .75), 0 14px 34px -14px rgba(30, 42, 68, .3);
  --font-display: 'Baloo 2', 'Baloo 2 fallback', ui-rounded, system-ui, sans-serif;
  --font-body: 'Figtree', 'Figtree fallback', 'Segoe UI', system-ui, sans-serif;
  --r-xl: 40px; --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
  --wrap: 1200px; --gutter: clamp(18px, 4vw, 40px);
  --t-hero: clamp(2.5rem, 1.2rem + 5.4vw, 5.1rem); --t-h2: clamp(2rem, 1.2rem + 3vw, 3.35rem); --t-h3: clamp(1.3rem, 1.05rem + .9vw, 1.65rem);
  --t-lead: clamp(1.1rem, 1rem + .45vw, 1.35rem);
  --spring: linear(0, 0.007 1.3%, 0.032 2.8%, 0.125 5.8%, 0.255 8.8%, 0.665 17.3%, 0.769 19.8%, 0.86 22.3%, 0.936 24.8%, 0.997 27.3%, 1.042 29.8%, 1.077 32.5%, 1.104 36.8%, 1.106 41.8%, 1.018 60.8%, 0.992 71.5%, 0.989 81.3%, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* the sky: day */
  --sky-1: #7FC3EC; --sky-2: #A9D8F2; --sky-3: #FFE2C6; --sky-4: #FFE9D2; --cloud: #FFFFFF; --cloud-shade: #E3F0F8;
  --sun-core: rgba(255, 248, 228, .95); --sun-glow: rgba(255, 240, 214, .55); --on-sky: var(--ink); --on-sky-2: var(--ink-2);
}
html[data-tod="morning"] { --sky-1: #8EC3E8; --sky-2: #F3C7C9; --sky-3: #FFDDBA; --sky-4: #FFEBD3; --cloud: #FFF6F3; --cloud-shade: #F6E0DC; --sun-core: rgba(255, 236, 196, .98); }
html[data-tod="evening"] { --sky-1: #2F2A61; --sky-2: #9A4E86; --sky-3: #F0805E; --sky-4: #FFC074; --cloud: #FFD2B8; --cloud-shade: #E9A98F; --sun-core: rgba(255, 214, 140, 1); --sun-glow: rgba(255, 170, 110, .5); --on-sky: #FFF8EC; --on-sky-2: #FFE7D3; }
html[data-tod="night"] { --sky-1: #060E24; --sky-2: #0F2148; --sky-3: #1C3566; --sky-4: #27467C; --cloud: #2C4677; --cloud-shade: #233B66; --sun-core: rgba(255, 251, 234, .9); --sun-glow: rgba(200, 220, 255, .18); --on-sky: #FFF8EC; --on-sky-2: #D9E2F5; }

/* dark theme: chosen, or the system's when the theme is System */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1830; --cream-2: #13203D; --paper: #17264A; --panel: #1A2A50; --panel-edge: #24386A;
  --text: #FFF6E5; --text-2: #D9E2F5; --text-3: #A9B6D3; --line: rgba(255, 246, 229, .14);
  --link: var(--night-green); --btn: var(--night-green); --btn-text: #0E1830; --btn-press: #B6DA9C;
  --glass: rgba(23, 38, 74, .72); --glass-line: rgba(255, 255, 255, .12); --card: #17264A; --card-line: rgba(255, 255, 255, .08);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .6); --sh-2: 0 24px 50px -20px rgba(0, 0, 0, .7);
  --sh-glass: inset 0 1px 0 rgba(255, 255, 255, .08), 0 14px 34px -14px rgba(0, 0, 0, .7);
  --mist: #23402C; --sand: #3A3324;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html[data-motion="reduced"] { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; margin: 0 0 .4em; text-wrap: balance; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.ico { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- buttons */
.btn { --b: var(--btn); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 56px; padding: .7em 1.45em; border-radius: 999px; border: 0;
  background: var(--b); color: var(--btn-text); font: 700 1.12rem/1 var(--font-display); letter-spacing: .005em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 10px 24px -10px color-mix(in srgb, var(--b) 70%, transparent);
  transition: transform .25s var(--spring), box-shadow .25s, background-color .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .16), 0 16px 30px -12px color-mix(in srgb, var(--b) 80%, transparent); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.98); background: var(--btn-press); }
.btn-lg { min-height: 64px; font-size: 1.25rem; padding-inline: 1.8em; }
.btn-sm { min-height: 44px; font-size: 1rem; padding: .5em 1.1em; }
.btn-glass { background: var(--glass); color: var(--text); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--sh-glass); border: 1px solid var(--glass-line); }
.btn-glass:active { background: var(--glass); }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 2px var(--text-3); }
.btn .play { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; }
.btn .play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }

/* ---------------------------------------------------------------- header */
.hdr { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s; }
.hdr::before { content: ''; position: absolute; inset: 0; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); opacity: 0; }
.hdr.is-stuck::before, .hdr.is-solid::before { opacity: 1; }
.hdr-in { position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--on-sky, var(--text)); text-decoration: none; font: 800 1.6rem/1 var(--font-display); letter-spacing: -.01em; }
.hdr.is-stuck .logo, .hdr.is-solid .logo { color: var(--text); }
.logo img { width: 42px; height: 42px; border-radius: 13px; box-shadow: 0 4px 12px -4px rgba(30, 42, 68, .35), 0 0 0 2px rgba(255, 255, 255, .7); }
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav a { color: var(--on-sky, var(--text)); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; transition: background-color .2s; white-space: nowrap; }
.hdr.is-stuck .nav a, .hdr.is-solid .nav a { color: var(--text); }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr-link { color: var(--on-sky, var(--text)); font-weight: 600; text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.hdr.is-stuck .hdr-link, .hdr.is-solid .hdr-link { color: var(--text); }
.lang-btn, .menu-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--glass) 85%, transparent);
  color: var(--text); font: 600 .98rem var(--font-body); cursor: pointer; box-shadow: var(--sh-glass); }
.menu-btn { display: none; }
.pop { margin: 0; inset: auto; position: fixed; border: 0; padding: 10px; border-radius: 22px; background: var(--card); color: var(--text); box-shadow: var(--sh-2); min-width: 240px; }
.pop::backdrop { background: rgba(14, 24, 48, .25); }
.lang-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lang-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 14px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang-list a:hover, .lang-list a[aria-current="true"] { background: var(--panel); }
.lang-list small { color: var(--text-3); font-weight: 500; }
/* "Saved on this device · Cookies": quiet, beside the choices it speaks of (cookie-policy-Q3) */
.saved { color: var(--text-3); font-size: .85rem; line-height: 1.4; text-decoration: none; }
.saved span:last-child { text-decoration: underline; text-underline-offset: .18em; }
.saved:hover span:last-child { text-decoration-thickness: .14em; }
/* it wraps inside the menu's width rather than widening the menu to the screen's edge (width 0, then the full width) */
.pop .saved { display: block; width: 0; min-width: calc(100% - 8px); margin: 6px 4px 0; padding: 12px 10px 4px; border-top: 1px solid var(--line); }
.mnav { display: grid; gap: 4px; padding: 6px; min-width: min(100vw - 2 * var(--gutter) - 20px, 360px); }
.mnav a:not(.btn) { padding: 14px 16px; border-radius: 14px; color: var(--text); font: 700 1.2rem var(--font-display); text-decoration: none; }
.mnav a:not(.btn):hover { background: var(--panel); }
.mnav .btn { margin-top: 8px; }
@media (max-width: 1080px) { .nav { display: none; } .menu-btn { display: inline-flex; } .hdr-link { display: none; } }
@media (max-width: 560px) { .hdr .btn-cta { display: none; } .logo span { font-size: 1.4rem; } }

/* ---------------------------------------------------------------- the sky */
.sky { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.sky-grad { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 42%, var(--sky-3) 78%, var(--sky-4) 100%); }
.sky-sun { position: absolute; width: clamp(160px, 22vw, 320px); aspect-ratio: 1; left: 8%; top: 9%; border-radius: 50%;
  background: radial-gradient(circle, var(--sun-core) 0 26%, var(--sun-glow) 42%, transparent 70%); }
html[data-tod="evening"] .sky-sun { left: auto; right: 12%; top: 46%; }
html[data-tod="night"] .sky-sun { width: clamp(70px, 8vw, 110px); left: auto; right: 14%; top: 12%; background: radial-gradient(circle at 40% 38%, #FFFBEA, #E9E2C4 60%); box-shadow: 0 0 60px 20px rgba(220, 230, 255, .18); }
.sky-stars { position: absolute; inset: 0 0 35% 0; opacity: 0; background-image:
  radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 22% 40%, #fff, transparent), radial-gradient(2px 2px at 35% 12%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 48% 30%, #fff, transparent), radial-gradient(1.6px 1.6px at 61% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 70% 34%, #fff, transparent),
  radial-gradient(2px 2px at 83% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 92% 44%, #fff, transparent), radial-gradient(1.4px 1.4px at 6% 52%, #fff, transparent),
  radial-gradient(1.2px 1.2px at 56% 52%, #fff, transparent), radial-gradient(1.6px 1.6px at 77% 58%, #fff, transparent), radial-gradient(1.2px 1.2px at 29% 62%, #fff, transparent); }
html[data-tod="night"] .sky-stars { opacity: 1; }
.hero .sky-stars, .page-hero .sky-stars { top: 76px; } /* never a star between the header's links */
html[data-tod="evening"] .sky-stars { opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%); }
.cloud { position: absolute; width: var(--w, 220px); height: calc(var(--w, 220px) * .36); top: var(--y, 20%); left: var(--x, 10%); opacity: var(--o, .95); }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 999px; background: var(--cloud); box-shadow: inset 0 -10px 0 var(--cloud-shade); }
.cloud::before { inset: 38% 0 0 0; }
.cloud::after { width: 48%; height: 92%; left: 22%; top: 0; box-shadow: none; border-radius: 50%; }
.cloud i { position: absolute; width: 34%; height: 70%; left: 52%; top: 18%; border-radius: 50%; background: var(--cloud); }
.cloud.c0 { --x: 4%; --y: 15%; --w: 240px; --d: 120s; --dl: -30s; }
.cloud.c1 { --x: 52%; --y: 8%; --w: 170px; --d: 150s; --dl: -90s; --o: .9; }
.cloud.c2 { --x: 28%; --y: 36%; --w: 130px; --d: 110s; --dl: -60s; --o: .8; }
.cloud.c3 { --x: 70%; --y: 44%; --w: 210px; --d: 130s; --dl: -10s; }
.cloud.c4 { --x: 2%; --y: 62%; --w: 160px; --d: 160s; --dl: -120s; --o: .85; }
.cloud.c5 { --x: 44%; --y: 70%; --w: 120px; --d: 100s; --dl: -45s; --o: .75; }
.hero .isle.i1 { --x: 2%; --y: 70%; --w: clamp(90px, 9vw, 140px); --bd: 8s; --r: -2deg; }
.hero .isle.i2 { --x: 46%; --y: 12%; --w: clamp(60px, 6vw, 90px); --bd: 6.5s; --dl: -2s; --r: 2deg; opacity: .9; }
.hero .isle.i3 { --x: 88%; --y: 66%; --w: clamp(80px, 8vw, 120px); --bd: 9s; --dl: -4s; --r: 1.5deg; }
/* the left island keeps to the margin beside the picker card, never behind it (a shard showed at the card's corner and
   its tip touched the first tick); where the margin is too narrow for it, it is not drawn */
@media (min-width: 761px) { .hero .isle.i1 { --w: min(clamp(90px, 9vw, 140px), (100% - 1200px) / 2 - 2% - 16px); } }
@media (min-width: 761px) and (max-width: 1439px) { .hero .isle.i1 { display: none; } }
.page-hero .isle.i1 { --x: 78%; --y: 22%; --w: clamp(120px, 14vw, 220px); --bd: 8s; --r: -1.5deg; }
.page-hero .isle.i2 { --x: 64%; --y: 62%; --w: clamp(60px, 6vw, 96px); --bd: 6s; --dl: -3s; opacity: .85; }
.close .isle.i1 { --x: 6%; --y: 24%; --w: clamp(90px, 10vw, 160px); --bd: 8s; }
.close .isle.i2 { --x: 80%; --y: 14%; --w: clamp(110px, 12vw, 190px); --bd: 9s; --dl: -3s; --r: 2deg; }
.chooser .isle.i1 { --x: 8%; --y: 66%; --w: clamp(100px, 12vw, 180px); --bd: 8s; }
.chooser .isle.i2 { --x: 80%; --y: 18%; --w: clamp(90px, 10vw, 150px); --bd: 7s; --dl: -2s; }
/* page heroes: the small island is not drawn where the heading and the lead reach it (761 to 1279 px: the longer French,
   Spanish, Italian and Portuguese leads ran into it), and the big one keeps clear of the heading's end */
@media (min-width: 761px) and (max-width: 1279px) { .page-hero .isle.i2 { display: none; } }
@media (min-width: 761px) and (max-width: 900px) { .page-hero .isle.i1 { --x: 81%; } }
@media (max-width: 1180px) { .page-hero .cloud.c1 { --y: 84px; } }
@media (max-width: 760px) { .page-hero .cloud.c1 { display: none; } }
@media (max-width: 760px) { .page-hero .isle.i1 { --x: 72%; --y: 80px; --w: 88px; opacity: .5; } .page-hero .isle.i2, .hero .isle.i2 { display: none; } html[data-tod="night"] .page-hero .sky-sun { top: 68px; } }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sky-4) 80%, transparent)); }

/* floating islands (SVG symbol #isle) */
.isle { position: absolute; width: var(--w, 120px); left: var(--x); top: var(--y); filter: drop-shadow(0 18px 18px rgba(30, 42, 68, .16)); }
html[data-tod="night"] .isle { filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)) brightness(.78) saturate(.85); }
html[data-tod="evening"] .isle { filter: drop-shadow(0 18px 18px rgba(59, 46, 99, .3)) sepia(.12) saturate(1.05); }

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .cloud { animation: drift var(--d, 90s) linear infinite; animation-delay: var(--dl, 0s); }
  html:not([data-motion="reduced"]) .isle { animation: bob var(--bd, 7s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
  html:not([data-motion="reduced"]) .sky-stars { animation: twinkle 5s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -1)); } }
@keyframes twinkle { from { opacity: .65; } to { opacity: 1; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; margin-top: -76px; padding-top: 76px; min-height: min(100svh, 980px); color: var(--on-sky); isolation: isolate; display: flex; flex-direction: column; }
.hero .wrap { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(20px, 4vw, 60px); align-items: center; padding-block: clamp(32px, 6vw, 70px) clamp(110px, 12vw, 160px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 999px; background: var(--glass); color: var(--text); box-shadow: var(--sh-glass);
  font: 700 .95rem/1.1 var(--font-body); margin-bottom: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eyebrow b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mist); color: var(--codex); }
html[data-theme="dark"] .eyebrow b { color: var(--night-green); }
.hero h1 { font-size: var(--t-hero); line-height: .98; letter-spacing: -.022em; margin-bottom: .35em; text-shadow: 0 1px 0 rgba(255, 255, 255, .35); }
html[data-tod="evening"] .hero h1, html[data-tod="night"] .hero h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--orange) 55%, transparent) 62% 90%, transparent 90%); padding-inline: .06em; }
.hero .lead { font-size: var(--t-lead); color: var(--on-sky-2); max-width: 34ch; margin-bottom: 30px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-sky); font-weight: 600; font-size: .98rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .ico { color: var(--codex); stroke-width: 3; width: 1.05em; }
html[data-tod="evening"] .hero-facts .ico, html[data-tod="night"] .hero-facts .ico, html[data-theme="dark"] .hero-facts .ico { color: var(--night-green); }
.hero-art { position: relative; height: 100%; min-height: 560px; display: grid; place-items: center; }
.hero-art .phone { width: min(330px, 74vw); z-index: 2; transform: rotate(3deg); }
.hero-dex { position: absolute; z-index: 3; left: max(-4%, calc(50% - 330px)); bottom: 4%; width: clamp(120px, 11vw, 170px); }
.hero-dex dex-mascot { width: 100%; }
/* the island rises by half Dex's width (a % margin is of the width), so his feet stand on its grass at every size */
.hero-dex .isle { position: relative; width: 160%; left: -30%; margin-top: -50%; z-index: -1; animation: none !important; }
.hero-art .phone { margin-left: 18%; }
@media (max-width: 920px) { .hero-art .phone { margin-left: 22%; } .hero-dex { left: 0; } }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; height: clamp(60px, 9vw, 120px); color: var(--bg); }
.hero-wave svg { width: 100%; height: 100%; }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-art { min-height: 520px; }
  .hero .lead { max-width: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) .hero-art .phone { animation: float 8s ease-in-out infinite; }
  html:not([data-motion="reduced"]) .hero-dex { animation: bob 7s ease-in-out infinite; --r: 0deg; }
  html:not([data-motion="reduced"]) .hero .rise { animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
}
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------------------------------------------------------------- the phone */
.phone { position: relative; aspect-ratio: 390 / 844; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2B3550, #0F1528 60%, #2B3550);
  box-shadow: inset 0 0 0 2px #475273, inset 0 0 0 5px #0B1020, 0 40px 80px -30px rgba(14, 24, 48, .6), 0 18px 30px -18px rgba(14, 24, 48, .5); }
.phone-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #A9D8F2; isolation: isolate; }
.phone-screen > img, .phone-screen > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.example { position: absolute; z-index: 4; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(30, 42, 68, .72); color: #fff; font: 600 .74rem var(--font-body); letter-spacing: .02em; backdrop-filter: blur(6px); white-space: nowrap; }
.phone.is-live .example { display: none; }
/* the "Example" label never covers the app's own bottom button: under the phone's bezel, or below the picture */
.phone > .example { bottom: -14px; }
.shot { position: relative; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; border-radius: 30px; box-shadow: var(--sh-2); background: var(--panel); }
.shot .example { position: static; display: table; margin: 10px auto 0; transform: none; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(70px, 10vw, 140px); }
.section.tight { padding-block: clamp(48px, 7vw, 90px); }
/* a tight block that closes its section leaves the bottom space to the section's own padding: the pricing cards had
   370 px before the FAQ, the last step of How it works 370 px before its band */
.section > .wrap > .section.tight:last-child { padding-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-block; font: 800 .86rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--codex); margin-bottom: 16px; }
html[data-theme="dark"] .kicker { color: var(--night-green); }
.lead { font-size: var(--t-lead); color: var(--text-2); }
.muted { color: var(--text-3); }
.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
@media (min-width: 961px) { .g3:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 34px); box-shadow: var(--sh-1); }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; background: var(--mist); color: var(--codex); margin-bottom: 18px; }
html[data-theme="dark"] .card-ico { color: var(--night-green); }
.card-ico .ico { width: 26px; height: 26px; }
.band { background: var(--cream-2); }
.band-mist { background: color-mix(in srgb, var(--mist) 55%, var(--bg)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* reveal on scroll: scroll-driven where supported, else the class from site.js; visible without either */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="reduced"]) .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
  @supports not (animation-timeline: view()) {
    html.js:not([data-motion="reduced"]) .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }
    html.js:not([data-motion="reduced"]) .reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- the free-month panel (LC-W01) */
.trial { position: relative; z-index: 5; margin-top: clamp(-120px, -9vw, -70px); padding-bottom: clamp(28px, 4vw, 48px); }
.trial-card { display: grid; grid-template-columns: 1.4fr auto; gap: 24px 40px; align-items: center; background: var(--card); border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 46px);
  box-shadow: var(--sh-2); border: 1px solid var(--card-line); }
.trial-card h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: .3em; }
.trial-card p { margin: 0; color: var(--text-2); font-size: 1.08rem; max-width: 60ch; }
.trial-side { display: grid; gap: 10px; justify-items: center; }
.trial-side small { color: var(--text-3); font-weight: 600; }
@media (max-width: 760px) { .trial-card { grid-template-columns: 1fr; } .trial-side { justify-items: stretch; } }

/* the trust strip (W-TRU) */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; list-style: none; margin: 34px 0 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--line); font-weight: 600; font-size: .96rem; color: var(--text-2); }
.trust .ico { color: var(--codex); stroke-width: 2.6; }
html[data-theme="dark"] .trust .ico { color: var(--night-green); }

/* ---------------------------------------------------------------- the live app */
.demo { position: relative; overflow: hidden; color: #FFF8EC; isolation: isolate; }
.demo .sky-grad { background: linear-gradient(180deg, #161A42 0%, #3B2E63 40%, #8A4A78 75%, #D9775E 100%); }
.demo .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(300px, 380px); gap: clamp(30px, 6vw, 90px); align-items: center; }
.demo h2, .demo .kicker { color: #FFF8EC; }
.demo .kicker { color: #FFD9A8; }
.demo .lead { color: #F4DCEA; }
.demo-phone { position: relative; }
.demo-phone .phone { width: 100%; max-width: 380px; margin-inline: auto; }
/* inside .phone: it covers the screen alone, never the tools row under it */
.demo-play { position: absolute; inset: 11px; z-index: 5; border-radius: 42px; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: transparent; }
.demo-play::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 55%, rgba(14, 24, 48, .1), rgba(14, 24, 48, .55)); transition: opacity .3s; }
.demo-play:hover::before { opacity: .7; }
.demo-play span { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 14px; border-radius: 999px; background: #FFFAF0; color: var(--ink); font: 800 1.2rem var(--font-display); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); transition: transform .3s var(--spring); }
.demo-play:hover span { transform: scale(1.05); }
.demo-play .play { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.demo-play .play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 3px; }
.demo-play.is-gone { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 18px; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #FFF8EC; font: 600 1rem var(--font-body); cursor: pointer; transition: background-color .2s, transform .2s var(--spring); }
.chip:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: #FFFAF0; color: var(--ink); border-color: #FFFAF0; }
.chip .ico { width: 1.1em; }
.demo-note { font-size: .92rem; color: #F1D4E4; max-width: 56ch; }
.demo-tools { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.demo-tools button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(14, 24, 48, .35); color: #FFF8EC; font: 600 .92rem var(--font-body); cursor: pointer; }
@media (max-width: 860px) { .demo .wrap { grid-template-columns: 1fr; } .demo-phone { order: 2; } }

/* ---------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; display: flex; flex-direction: column; }
.step .shot { width: 72%; margin: 0 auto 26px; transform: rotate(var(--r, 0deg)); }
.step-num { counter-increment: step; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 800 1.3rem var(--font-display); margin-bottom: 14px; }
html[data-theme="dark"] .step-num { background: var(--night-green); color: var(--ink); }
.step-num::before { content: counter(step); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: start; } .step .shot { width: 100%; margin: 0; } }

/* ---------------------------------------------------------------- the book */
.book-stage { position: relative; display: grid; place-items: center; min-height: 460px; perspective: 1800px; }
/* stacked under its text (phones, small tablets) the book is shorter than the stage: room for the tilt only, not 150 px each side */
@media (max-width: 900px) { .book-stage { min-height: 0; padding-block: 44px 28px; } }
.book { position: relative; width: min(540px, 100% - 56px); container-type: inline-size; aspect-ratio: 1.5; transform-style: preserve-3d; transform: rotateX(18deg) rotateZ(-4deg); }
.book-cover { position: absolute; inset: -14px -16px -16px -16px; border-radius: 22px; background: linear-gradient(135deg, #3D7135, #2E5A28); box-shadow: 0 40px 60px -30px rgba(2, 35, 17, .6), inset 0 0 0 4px rgba(2, 35, 17, .35); transform: translateZ(-6px); }
.book-cover::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%); background: linear-gradient(90deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .08), rgba(0, 0, 0, .25)); }
.book-side { position: absolute; top: 0; bottom: 0; width: 50%; background: #FFFAF0; box-shadow: inset 0 0 0 2px rgba(2, 35, 17, .12); padding: 7% 7% 7% 8%; display: flex; flex-direction: column; gap: 10px; color: var(--ink); overflow: hidden; }
.book-left { left: 0; border-radius: 14px 4px 4px 14px; background: linear-gradient(90deg, #FFFAF0 80%, #EFE6D2); }
.book-right { right: 0; padding-right: calc(7% + 32px); border-radius: 4px 14px 14px 4px; background: linear-gradient(270deg, #FFFAF0 80%, #EFE6D2); }
.ribbon { position: absolute; right: 7%; top: -14px; width: 26px; height: 62%; background: var(--orange); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); z-index: 4; transform: translateZ(2px); box-shadow: inset -6px 0 0 var(--orange-fold); }
.pg-title { font: 800 clamp(.95rem, .7rem + .8vw, 1.25rem)/1.1 var(--font-display); -webkit-hyphens: auto; hyphens: auto; }
.pg-line { height: 7px; border-radius: 4px; background: #E6DCC6; }
.pg-line.s { width: 60%; }
.pg-fig { flex: 1; border-radius: 12px; background: #D2E7C6; display: grid; place-items: center; font: 800 min(clamp(1.4rem, 1rem + 2vw, 2.6rem), 10.5cqi - 12px) var(--font-display); color: var(--codex); }
.pg-fig .frac { display: inline-grid; vertical-align: middle; text-align: center; font-size: .62em; line-height: 1.08; }
.pg-fig .frac > span + span { border-top: .14em solid currentColor; }
.pg-mark { align-self: flex-start; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #EDE7FA; color: var(--violet); font: 700 .72rem var(--font-body); }
.pg-new { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; border-radius: 4px 14px 14px 4px; background: #FFFAF0; color: var(--ink); transform-origin: left center; box-shadow: inset 0 0 0 2px rgba(2, 35, 17, .12); padding: 7% calc(7% + 32px) 7% 8%; display: flex; flex-direction: column; gap: 10px; backface-visibility: hidden; z-index: 3; }
.pages-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.pages-list li { padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--card-line); font-weight: 600; font-size: .95rem; box-shadow: var(--sh-1); }
.pages-list li.ref::after { content: ' ✦'; color: var(--violet); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="reduced"]) .book-stage { view-timeline: --book block; }
    html:not([data-motion="reduced"]) .pg-new { animation: pageIn linear both; animation-timeline: --book; animation-range: cover 20% cover 55%; }
    html:not([data-motion="reduced"]) .book { animation: bookTilt linear both; animation-timeline: --book; animation-range: cover 0% cover 60%; }
  }
  @supports not (animation-timeline: view()) {
    html.js:not([data-motion="reduced"]) .book-stage:not(.is-in) .pg-new { transform: rotateY(-170deg); }
    html.js:not([data-motion="reduced"]) .pg-new { transition: transform 1.4s var(--ease-out) .3s; }
  }
}
@keyframes pageIn { from { transform: rotateY(-178deg); } to { transform: rotateY(0deg); } }
@keyframes bookTilt { from { transform: rotateX(38deg) rotateZ(-10deg) scale(.9); } to { transform: rotateX(18deg) rotateZ(-4deg) scale(1); } }

/* ---------------------------------------------------------------- never band */
.never { background: var(--ink); color: #FFF6E5; overflow: hidden; }
html[data-theme="dark"] .never { background: #0A1226; }
.never h2 { color: #FFF6E5; }
.never .kicker { color: var(--night-green); }
.never .lead { color: #D9E2F5; }
.never-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.never-grid li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.never-grid .x { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 137, 58, .14); color: #FFB37A; }
.never-grid .x .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.never-grid b { display: block; font: 700 1.15rem/1.2 var(--font-display); margin-bottom: 4px; color: #FFF6E5; }
.never-grid span { color: #C7D1E8; font-size: .97rem; }
@media (max-width: 900px) { .never-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .never-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- a week */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.day { border-radius: 20px; background: var(--card); border: 1px solid var(--card-line); padding: 14px 12px 16px; min-height: 170px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--sh-1); }
.day b { font: 800 1rem var(--font-display); color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.day .bit { font-size: .9rem; line-height: 1.3; padding: 7px 9px; border-radius: 12px; background: var(--mist); color: var(--ink); font-weight: 600; }
.day .bit.page { background: #FFF0DC; }
.day .bit.rest { background: transparent; color: var(--text-3); border: 1px dashed var(--line); }
.day .bit.mail { background: #E2ECFA; }
html[data-theme="dark"] .day .bit { color: var(--ink); }
html[data-theme="dark"] .day .bit.rest { color: var(--text-3); }
@media (max-width: 900px) { .week { grid-template-columns: repeat(7, 160px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .day { scroll-snap-align: start; } }

/* ---------------------------------------------------------------- audiences */
.aud { position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); min-height: 300px; transition: transform .35s var(--spring), box-shadow .35s; }
.aud:hover { transform: translateY(-6px); box-shadow: var(--sh-2); text-decoration: none; }
.aud .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 700 1.05rem var(--font-display); color: var(--link); }
.aud .more .ico { transition: transform .3s var(--spring); }
.aud:hover .more .ico { transform: translateX(5px); }
.aud-art { height: 120px; margin: -10px -10px 16px; border-radius: 20px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-1), var(--sky-3)); }
.aud-art .isle { --w: 120px; left: 50%; top: 22px; margin-left: -60px; }

/* ---------------------------------------------------------------- plans */
.period { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-edge); gap: 4px; margin-bottom: 30px; }
.period button { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: 700 1rem var(--font-body); cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: var(--sh-1); }
.mkt { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px 16px; color: var(--text-2); font-weight: 600; }
.mkt select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 12px; font: 600 .98rem var(--font-body); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 28px 24px 24px; box-shadow: var(--sh-1); }
.plan h3 { font-size: 1.6rem; margin-bottom: 2px; }
.plan .who { color: var(--text-2); font-weight: 600; margin-bottom: 18px; min-height: 1.6em; }
.price { font: 800 clamp(2rem, 1.6rem + 1vw, 2.6rem)/1 var(--font-display); letter-spacing: -.01em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: 6px; font: 600 1rem var(--font-body); color: var(--text-3); letter-spacing: 0; }
.price-sub { color: var(--text-3); font-size: .93rem; min-height: 2.8em; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: .97rem; color: var(--text-2); }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li .ico { color: var(--codex); stroke-width: 3; margin-top: .2em; width: 1em; }
html[data-theme="dark"] .plan li .ico { color: var(--night-green); }
.plan .btn { margin-top: auto; width: 100%; }
.plans-note { margin-top: 20px; color: var(--text-3); font-size: .95rem; text-align: center; }
/* the cards side by side share their rows (name, who, price, list, button), so every list and button starts level
   whatever wraps: Free has no "a month" line, and its "who" wraps first; each button fills the shared button row, so
   a label on two lines in one card (pt-PT's Free, es and it's paid plans near 1100 px) lowers no other button */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .plan .btn { margin-top: 0; }
}
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .mkt { margin-left: 0; } }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--card-line); background: var(--card); box-shadow: var(--sh-1); margin-top: 40px; }
/* a table wider than its box shows a soft shade at the side that has more to scroll: no script, no motion (the two
   covers scroll with the table and hide a shade once its end is reached) */
.tbl-wrap { --shade: rgba(30, 42, 68, .22);
  background:
    linear-gradient(90deg, var(--card) 30%, transparent) left center / 48px 100% no-repeat local,
    linear-gradient(270deg, var(--card) 30%, transparent) right center / 48px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--shade), transparent) left center / 18px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--shade), transparent) right center / 18px 100% no-repeat scroll,
    var(--card); }
html[data-theme="dark"] .tbl-wrap { --shade: rgba(0, 0, 0, .6); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .97rem; }
table.cmp caption { text-align: left; padding: 20px 22px 4px; font: 800 1.3rem var(--font-display); }
table.cmp th, table.cmp td { padding: 14px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { font: 800 1.1rem var(--font-display); border-top: 0; }
table.cmp tbody th { font-weight: 700; width: 24%; color: var(--text); }
table.cmp td { color: var(--text-2); }
@media (max-width: 600px) {
  .tbl-wrap:has(tbody th) { container-type: inline-size; }
  table.cmp:has(tbody th) { min-width: 0; width: max-content; }
  table.cmp:has(tbody th) :is(th, td) { padding: 12px 14px; }
  table.cmp tbody th { width: 8.5rem; }
  table.cmp tbody th ~ td { width: max(9rem, 100cqi - 11rem); }
}

/* ---------------------------------------------------------------- FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font: 700 1.15rem/1.3 var(--font-display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--text-3); border-bottom: 3px solid var(--text-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 24px 22px; color: var(--text-2); }
.faq .a p:last-child { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------------------------------------------------------------- founder, proof, closing */
.note { --note-pad: clamp(28px, 4vw, 56px); position: relative; background: var(--paper); border-radius: var(--r-xl); padding: var(--note-pad); box-shadow: var(--sh-2); border: 1px solid var(--card-line); }
/* the quote mark grows with the padding, so on phones it stays above the first line instead of on it */
.note::before { content: '“'; position: absolute; top: -.18em; left: .2em; font: 800 max(5rem, var(--note-pad) * 2.57)/1 var(--font-display); color: var(--mist); }
.note p { position: relative; font-size: 1.15rem; }
.note .sig { font: 700 1.3rem var(--font-display); color: var(--text); margin: 0; }
.close { position: relative; overflow: hidden; color: var(--on-sky); isolation: isolate; text-align: center; }
.close .wrap { position: relative; z-index: 2; }
.close h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.close .lead { color: var(--on-sky-2); max-width: 46ch; margin-inline: auto; }
.close .trial-inline { display: inline-grid; gap: 8px; justify-items: center; margin-top: 18px; }
.close .fine { font-size: .95rem; color: var(--on-sky-2); max-width: 60ch; margin: 14px auto 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border-radius: 14px; background: #0B1020; color: #fff; text-decoration: none; font: 600 .82rem/1.15 var(--font-body); }
.store b { display: block; font: 700 1.1rem/1.1 var(--font-body); }
.store svg { width: 26px; height: 26px; }
.store[aria-disabled="true"] { opacity: .78; cursor: default; }

/* ---------------------------------------------------------------- pages */
.page-hero { position: relative; margin-top: -76px; padding: calc(76px + clamp(50px, 8vw, 110px)) 0 clamp(70px, 10vw, 140px); color: var(--on-sky); isolation: isolate; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); max-width: 18ch; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.page-hero .lead { color: var(--on-sky-2); max-width: 52ch; font-weight: 500; }
.page-hero .isle { opacity: .95; }
.crumbs { display: flex; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0; font-weight: 600; font-size: .95rem; }
.crumbs a { color: var(--on-sky); }
.crumbs li + li::before { content: '›'; margin-right: 8px; opacity: .6; }
.feature-list { display: grid; gap: 18px; }
.wrap > .feature-list { max-width: 70ch; } /* a list with no picture beside it keeps a readable measure */
ul.feature-list { padding: 0; } ul.feature-list .feature { align-items: center; }
.feature { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start; }
.feature .card-ico { margin: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--text-2); }
.feature-list + p, .lookup ~ .prose { margin-top: 28px; }
.prose .tbl-wrap + * { margin-top: 40px; }
.wrap.prose > .tbl-wrap { margin-inline: min(0px, 50% - min(50vw - var(--gutter), 520px)); }
.prose + h2 { margin-top: 1em; } /* the class lookup's heading, a new block after the text */
.cta-band { border-radius: var(--r-xl); padding: clamp(30px, 5vw, 60px); background: linear-gradient(135deg, color-mix(in srgb, var(--mist) 80%, var(--bg)), var(--cream-2)); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; border: 1px solid var(--card-line); }
.cta-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin-bottom: .2em; }
.cta-band p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }
.lookup { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--sh-1); }
.lookup label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; flex: 1 1 200px; }
.lookup select { width: 100%; min-width: 0; min-height: 52px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0 14px; font: 600 1rem var(--font-body); }
.lookup output { flex-basis: 100%; font-size: 1.05rem; color: var(--text-2); min-height: 1.5em; }
.picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px 14px; border-radius: 24px; background: var(--glass); box-shadow: var(--sh-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--text); max-width: 560px; }
.picker label { flex-basis: 100%; font-weight: 700; font-size: .95rem; }
.picker select { flex: 1 1 160px; min-height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 14px; font: 600 .98rem var(--font-body); }
.picker .btn { min-height: 46px; font-size: 1rem; }
@media (max-width: 560px) { .picker { border-radius: 24px; } }
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input[type="email"], .form select { min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 16px; font: 500 1.05rem var(--font-body); }
.form .tick { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-weight: 500; }
.form .tick input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--codex); }
.form .err { color: #A8543A; font-weight: 600; }
.form .fine { color: var(--text-3); font-size: .95rem; }
.notice { padding: 16px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-edge); color: var(--text-2); }
.steps-num { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps-num li { counter-increment: n; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; font-size: 1.1rem; font-weight: 600; }
.steps-num li::before { content: counter(n); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--codex); font: 800 1.3rem var(--font-display); }

/* the language chooser */
.chooser { min-height: 100svh; display: grid; place-items: center; position: relative; isolation: isolate; color: var(--on-sky); padding: 40px 0; }
.chooser .wrap { position: relative; z-index: 2; text-align: center; }
.chooser h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; max-width: 900px; margin: 30px auto 0; list-style: none; padding: 0; }
.langs a { display: grid; gap: 2px; padding: 18px 22px; border-radius: 22px; background: var(--glass); box-shadow: var(--sh-glass); color: var(--text); text-decoration: none; text-align: left; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .3s var(--spring); }
.langs a:hover { transform: translateY(-4px); }
.langs b { font: 800 1.4rem var(--font-display); }
.langs span { color: var(--text-2); font-weight: 500; }

/* ---------------------------------------------------------------- footer */
.ftr { background: var(--ink); color: #D9E2F5; padding: clamp(60px, 8vw, 100px) 0 40px; margin-top: 0; }
html[data-theme="dark"] .ftr { background: #0A1226; }
.ftr a { color: #FFF6E5; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr-top { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
.ftr .logo { color: #FFF6E5; }
.ftr-sig { font: 600 1.15rem var(--font-display); color: #FFF6E5; margin: 14px 0 0; }
.ftr h2 { font: 800 .85rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--night-green); margin-bottom: 14px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: #A9B6D3; }
.ftr-prefs { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ftr-prefs label { display: inline-flex; gap: 8px; align-items: center; }
.ftr .saved { display: inline-block; padding: 10px 0; color: #A9B6D3; }
.ftr .saved:hover { text-decoration: none; }
.ftr-prefs select { min-height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: #121D38; color: #FFF6E5; padding: 0 10px; font: 600 .92rem var(--font-body); }
@media (max-width: 860px) { .ftr-top { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- the device-link page */
.slim .hdr-in { min-height: 64px; }
.link-page { padding: 50px 0 80px; }
.link-page h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }

/* cross-document page changes, where browsers do them */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.hdr-in { view-transition-name: header; }

@media print { .hdr, .ftr, .sky, .demo, .hero-wave { display: none !important; } .hero, .page-hero { color: #000; margin: 0; padding: 20px 0; min-height: 0; } }

/* sections that always show the app's evening sky (the live app, the closing call), whatever the visitor's clock */
.sky-evening { --sky-1: #2F2A61; --sky-2: #9A4E86; --sky-3: #F0805E; --sky-4: #FFC074; --cloud: #FFD2B8; --cloud-shade: #E9A98F;
  --sun-core: rgba(255, 214, 140, 1); --sun-glow: rgba(255, 170, 110, .5); --on-sky: #FFF8EC; --on-sky-2: #FFE7D3; }
.sky-evening .sky-sun { left: auto; right: 12%; top: 52%; width: clamp(140px, 18vw, 260px); }
.sky-evening .sky-stars { opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); mask-image: linear-gradient(180deg, #000, transparent 60%); }
.demo.sky-evening .sky-grad { background: linear-gradient(180deg, #161A42 0%, #3B2E63 42%, #8A4A78 78%, #B85E6E 100%); }
.demo.sky-evening .sky-sun { top: auto; bottom: -8%; right: 6%; opacity: .7; }
.chooser-icon { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 14px 30px -12px rgba(30, 42, 68, .45), 0 0 0 4px rgba(255, 255, 255, .7); }
mark.todo { background: #FFE08A; color: #2E2000; border-radius: 6px; padding: 0 .12em; white-space: nowrap; font-weight: 600; font-size: .92em; }
@media (max-width: 560px) {
  .lang-btn span { display: none; }
  .lang-btn { padding: 0 12px; }
  .hdr-in { gap: 10px; }
  .trust li { font-size: .9rem; }
  .hero .wrap { padding-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .picker label { flex-basis: 100%; }
}
.hero, .section, .page-hero { overflow-x: clip; }
@media (max-width: 920px) {
  .hero-art { min-height: 0; padding: 10px 0 40px; }
  .hero-art .phone { width: min(300px, 62vw); margin-left: auto; margin-right: 2%; }
  .hero-dex { left: 0; bottom: 8%; width: clamp(110px, 30vw, 160px); z-index: 1; }
}
.hero .wrap > *, .split > *, .demo .wrap > *, .grid > *, .trial-card > * { min-width: 0; }
.picker select { min-width: 0; }
@media (max-width: 760px) { .hero .cloud.c2, .hero .cloud.c5, .hero .cloud.c4 { display: none; } .hero .cloud { --o: .7; } }

/* phones: the free month's button stays at hand once the hero has scrolled away */
.mcta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: none; }
.mcta .btn { width: 100%; box-shadow: 0 16px 34px -10px rgba(14, 24, 48, .5); }
@media (max-width: 760px) { .mcta:not([hidden]) { display: block; } }
@media (prefers-reduced-motion: no-preference) { html:not([data-motion="reduced"]) .mcta:not([hidden]) { animation: rise .4s var(--ease-out) both; } }
/* the language hint */
.lhint { position: fixed; z-index: 45; top: 86px; right: 16px; display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 32px); padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--ink); color: #FFF6E5; box-shadow: var(--sh-2); font-weight: 600; }
.lhint[hidden] { display: none; }
.lhint a { color: #FFF6E5; text-decoration: none; }
.lhint button { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #FFF6E5; font-size: 1.2rem; cursor: pointer; }
html[data-theme="dark"] .lhint { background: var(--night-green); color: var(--ink); }
html[data-theme="dark"] .lhint a, html[data-theme="dark"] .lhint button { color: var(--ink); }
.demo-tools .chip { background: rgba(14, 24, 48, .35); min-height: 40px; }
.steps-flow { counter-reset: step; }

/* depth: the hero's islands and Dex drift at their own speed as the page scrolls (scroll-driven; the bob keeps going) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    html:not([data-motion="reduced"]) .hero .isle { animation: bob var(--bd, 7s) ease-in-out infinite, drift-up linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; animation-delay: var(--dl, 0s), 0s; }
    html:not([data-motion="reduced"]) .hero .isle.i1 { --p: -160px; }
    html:not([data-motion="reduced"]) .hero .isle.i2 { --p: -60px; }
    html:not([data-motion="reduced"]) .hero .isle.i3 { --p: -220px; }
    html:not([data-motion="reduced"]) .hero .sky-sun { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 100vh; --p: 80px; }
  }
}
@keyframes drift-up { to { translate: 0 var(--p, -100px); } }
.ftr-slim { padding: 30px 0; } .ftr-slim .ftr-bottom { margin-top: 0; border-top: 0; padding-top: 0; }
/* longer menus (French, German): the header stays on one line */
.hdr-link { white-space: nowrap; }
.nav { margin-left: 4px; gap: 0; } .nav a { padding: 10px 9px; font-size: .95rem; }
:lang(fr) .hdr .lang-btn span { display: none; } :lang(fr) .hdr .lang-btn { padding: 0 12px; }
@media (max-width: 1240px) { :lang(fr) .hdr .nav, :lang(fr) .hdr .hdr-link { display: none; } :lang(fr) .hdr .menu-btn { display: inline-flex; } }
@media (max-width: 1180px) { .nav { display: none; } .menu-btn { display: inline-flex; } .hdr-link { display: none; } }


/* ---------------------------------------------------------------- accessibility (the final review, 29 November) */
/* a focus ring that shows on every sky: ink outline, cream halo (WCAG technique C40) */
/* the outline follows each element's own corners: no border-radius here, so a focused pill stays a pill */
:focus-visible { outline: 3px solid #1E2A44; outline-offset: 2px; box-shadow: 0 0 0 6px #FFF8EC; }
html[data-theme="dark"] :focus-visible { outline-color: #FFF8EC; box-shadow: 0 0 0 6px #1E2A44; }
.faq summary:focus-visible { outline-offset: -5px; box-shadow: none; border-radius: 18px; }
/* text on the evening sky sits on a scrim; the moon and the sun keep out from behind the words on phones */
html[data-tod="evening"] .hero .wrap > div:first-child, html[data-tod="evening"] .page-hero .wrap,
.close.sky-evening .wrap, .demo .wrap > div:first-child { background: rgba(38, 32, 84, .66); border-radius: 28px; padding: clamp(16px, 2.4vw, 28px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.close.sky-evening .wrap { max-width: 900px; }
html[data-tod="evening"] .hero .eyebrow { margin-top: 2px; }
@media (max-width: 760px) {
  html[data-tod="night"] .hero .sky-sun, html[data-tod="evening"] .hero .sky-sun { top: auto; bottom: 4%; right: 4%; left: auto; }
  .close .cloud, .demo .cloud, .close .sky-sun { display: none; }
  html { scroll-padding-bottom: 96px; } /* the sticky free-month button never hides what has focus */
}
/* what has focus is never half faded by a scroll-driven reveal */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not([data-motion="reduced"]) .reveal { animation-range: entry 0% entry min(90%, 200px); }
  }
}
.reveal:focus-within, .reveal:focus { animation: none !important; opacity: 1 !important; transform: none !important; }
/* no lift or slide when motion is reduced */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .btn:hover, .aud:hover, .chip:hover, .langs a:hover, .demo-play:hover span { transform: none !important; } }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { transition: none !important; }
html[data-motion="reduced"] .btn:hover, html[data-motion="reduced"] .aud:hover, html[data-motion="reduced"] .chip:hover, html[data-motion="reduced"] .langs a:hover { transform: none !important; }
/* contrast */
html[data-theme="dark"] .day .bit:not(.page):not(.mail):not(.rest) { color: var(--text); }
.band-mist .plans-note { color: var(--text-2); }
.period button[aria-pressed="true"] { background: var(--ink); color: #FFF6E5; }
html[data-theme="dark"] .period button[aria-pressed="true"] { background: var(--night-green); color: var(--ink); }
.form input[type="email"], .form select, .lookup select, .mkt select, .picker select { border: 1px solid var(--text-3); }
html[data-theme="dark"] .form .err { color: #FFB59C; }
/* the footer reflows at 320 px in every language */
.ftr-top { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); }
.ftr a { overflow-wrap: anywhere; }
@media (max-width: 860px) { .ftr-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ftr-top { grid-template-columns: 1fr; } }
.ftr .ftr-langs { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; margin: 0; padding: 0; }
.ftr-langs a[aria-current="true"] { text-decoration: underline; }
.h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.15; }
/* the language hint: a bar at the top of the page, first in the focus order, never over the content */
.lhint { position: static; display: flex; justify-content: center; align-items: center; gap: 10px; max-width: none; border-radius: 0; padding: 8px 16px; box-shadow: none; }

/* the root page while it sends the visitor to their language (lang.js): nothing flashes */
html.redirecting body { visibility: hidden; }
@media (prefers-color-scheme: dark) { html.redirecting { background: #0E1830; color-scheme: dark; } }
