/* Public landing — the «Landing ReziDay» design handoff (Claude Design), ported 1:1.
   The handoff is authored in inline styles; this sheet owns everything that MOVES (so the
   motion is on the house tokens, not in 70 style attributes): the header, the CTAs (.btn),
   the cards' hover, the scroll reveal, and the transitions of the four demos that
   landing.js paints. The demos set colours/opacity/transform inline; the transition that
   makes the change glide lives here, keyed on their data- attributes. */
html { -webkit-text-size-adjust: 100%; }
body.land-body { margin: 0; background: var(--canvas); color: var(--ink-warm); font-family: var(--font-body); text-wrap: pretty; }
.land * { box-sizing: border-box; }
.land img { display: block; max-width: 100%; }
.land a:not(.btn) { color: var(--teal); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .land a:not(.btn):hover { color: var(--teal-hover); }
}

/* ---- Header: opaque, then .88 + a blur only where the browser can blur ----
   Content passing under a sticky header reads better through glass, but glass is a cost
   (and a legibility risk), so it is the upgrade, not the baseline (SINTEZA §4.6). */
.land-header {
  position: sticky;
  top: 0;
  z-index: var(--z-chrome);
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom: 1px solid var(--border);
  /* viewport-fit=cover (base.html): the bar runs under the notch, its content does not. */
  padding-top: env(safe-area-inset-top);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .land-header {
    background: color-mix(in srgb, var(--canvas) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .land-header { background: var(--canvas); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.land-header-inner {
  height: var(--header-h);
  padding: 0 max(clamp(18px, 4vw, 32px), env(safe-area-inset-right)) 0 max(clamp(18px, 4vw, 32px), env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.land-login { margin-left: auto; }

/* The logo (partials/brand_lockup.html, components.css) at the landing's two sizes: the
   header's (a 36px mark, lifted so "beta v2.0" hangs inside the 64px bar) and the
   footer's (a 28px mark). */
.land-brand { --brand-word-size: 24.8px; flex: none; margin-bottom: 9px; }
.land-brand--foot { --brand-word-size: 19.3px; margin-bottom: 0; }

/* ---- CTAs on the navy sections: the cream button (a .btn without a lip) ---- */
.btn--on-dark {
  --btn-bg: var(--canvas);
  --btn-fg: var(--teal-ink);
  --btn-hover: #FADFB8;
  --btn-shade: var(--navy);
  border-radius: var(--r-control);
}
.land-cta-gap { margin-top: 33px; }

/* ---- Cards (the three ways in, light and dark): hover = a tinted edge + a shadow ----
   No lift, no slide: they are not links, so nothing should suggest they move. */
.land-card {
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 34, 48, .03);
  transition:
    border-color var(--rz-instant-dur) var(--rz-instant),
    box-shadow var(--rz-instant-dur) var(--rz-instant);
}
.land-card--dark { border-color: var(--canvas); box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .land-card--coral:hover { border-color: #F2C4B4; box-shadow: var(--e2); }
  .land-card--gold:hover { border-color: #EFC786; box-shadow: var(--e2); }
  .land-card--teal:hover { border-color: var(--teal-border); box-shadow: var(--e2); }
  .land-card--dark.land-card--coral:hover,
  .land-card--dark.land-card--gold:hover,
  .land-card--dark.land-card--teal:hover { box-shadow: 0 24px 44px -28px rgba(0, 0, 0, .5); }
}

/* ---- Scroll reveal ----
   Once, on `gentle`, a short rise, the group staggering by --rv × 40ms (landing.js numbers
   the elements that arrive together, at most 3). `done` takes the transition off again so
   it cannot hold up the card hover. Under Reduce Motion the content is simply there: the
   JS never starts it and the hidden state below is not applied. Hidden only when scripting
   is on, so a page without JS is still readable. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .land [data-reveal] {
    opacity: 0;
    transform: translateY(calc(16px * var(--motion-distance)));
  }
  .land [data-reveal="in"] {
    opacity: 1;
    transform: none;
    transition:
      opacity var(--rz-gentle-dur) var(--rz-gentle) calc(var(--rv, 0) * var(--stagger)),
      transform var(--rz-gentle-dur) var(--rz-gentle) calc(var(--rv, 0) * var(--stagger));
  }
  .land [data-reveal="done"] { opacity: 1; transform: none; }
}

/* The ECG line behind the dark section draws itself once, when the section arrives. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .land [data-draw] path { stroke-dashoffset: 2400; }
  .land [data-draw="in"] path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset calc(var(--rz-gentle-dur) * 3) var(--rz-gentle);
  }
}

/* ---- The simulator demo: the answer types, then the barem checks itself in ---- */
.land [data-sim-box] {
  transition:
    border-color var(--rz-snappy-dur) var(--rz-snappy),
    box-shadow var(--rz-snappy-dur) var(--rz-snappy),
    background-color var(--rz-snappy-dur) var(--rz-snappy);
}
.land [data-sim-barem] { transition: opacity var(--rz-smooth-dur) var(--rz-smooth); }
.land [data-sim-item] {
  transition:
    opacity var(--rz-snappy-dur) var(--rz-snappy),
    transform var(--rz-snappy-dur) var(--rz-snappy),
    background-color var(--rz-snappy-dur) var(--rz-snappy),
    border-color var(--rz-snappy-dur) var(--rz-snappy);
}
/* The tick pops in: the one place `expressive` (4.6% overshoot) lives on this page. */
.land [data-sim-mark] {
  transition:
    opacity var(--rz-snappy-dur) var(--rz-snappy),
    transform var(--rz-expressive-dur) var(--rz-expressive);
}
.land [data-sim-txt],
.land [data-sim-pts] { transition: color var(--rz-snappy-dur) var(--rz-snappy); }
/* A steady caret: a blink would be a loop that never ends. */
.land [data-sim-caret] { opacity: 1; }

/* ---- Grile <-> flashcards demo ---- */
.land [data-q-bar] {
  transform-origin: left;
  transition: transform var(--rz-smooth-dur) var(--rz-smooth);
}
.land [data-demo-grile],
.land [data-demo-fc] { transition: opacity var(--rz-smooth-dur) var(--rz-smooth); }
.land [data-q-opt],
.land [data-q-letter],
.land [data-q-text] {
  transition:
    background-color var(--rz-instant-dur) var(--rz-instant),
    border-color var(--rz-instant-dur) var(--rz-instant),
    color var(--rz-instant-dur) var(--rz-instant);
}
.land [data-q-ex] {
  transition:
    opacity var(--rz-snappy-dur) var(--rz-snappy),
    transform var(--rz-snappy-dur) var(--rz-snappy);
}
.land [data-fc-swipe] {
  transition:
    transform var(--rz-snappy-dur) var(--rz-snappy),
    opacity var(--rz-snappy-dur) var(--rz-snappy);
}
/* The card's flip: the app's own, on `snappy`. */
.land [data-fc-inner] { transition: transform var(--rz-snappy-dur) var(--rz-snappy); }
.land [data-fc-yes] { transition: transform var(--rz-instant-dur) var(--rz-instant); }
.land [data-demo-dot],
.land [data-fc-pg] { transition: background-color var(--rz-instant-dur) var(--rz-instant); }

/* ---- T1…T6 passes ---- */
.land [data-t-pill] {
  transition:
    background-color var(--rz-snappy-dur) var(--rz-snappy),
    color var(--rz-snappy-dur) var(--rz-snappy),
    border-color var(--rz-snappy-dur) var(--rz-snappy),
    transform var(--rz-snappy-dur) var(--rz-snappy);
}
.land [data-t-line] {
  transform-origin: left;
  transition: transform var(--rz-snappy-dur) var(--rz-snappy);
}
.land [data-t-exam] { transition: opacity var(--rz-snappy-dur) var(--rz-snappy); }

/* ---- The plan week filling in ---- */
.land [data-pl-item],
.land [data-pl-row] {
  transition:
    opacity var(--rz-smooth-dur) var(--rz-smooth),
    transform var(--rz-smooth-dur) var(--rz-smooth);
}

/* ---- Layout: the handoff's two breakpoints (!important: they beat inline grids) ---- */
@media (max-width: 1199px) {
  .land [data-pl-desktop] { display: none !important; }
  .land [data-pl-phone] { display: block !important; }
}
@media (max-width: 900px) {
  .land [data-two] { grid-template-columns: 1fr !important; }
  .land [data-sticky] { position: static !important; }
  .land [data-rev] > [data-fig] { order: 2; }
  .land [data-trio] { grid-template-columns: 1fr !important; }
}

/* The two demo dots are buttons (a 7px dot is a poor target): the drawing stays small, the
   hit area comes from .hit. */
.land-dot { padding: 0; border: 0; border-radius: var(--r-pill); corner-shape: round; cursor: pointer; flex: none; }
