/* Andama — patient site (andama.app)
   Brand showcase, dark-first. Colours/type/spacing come from the design-system
   tokens only (assets/tokens.css, prefix --an-). No ad-hoc hex beyond what the
   tokens already define. See CLAUDE.md "Правило для всех агентов, рисующих UI". */

/* ---------- reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--an-bg-canvas);
  color: var(--an-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* Deep indigo-night page wash with two soft brand-tint glows (matches the app
   screens per OBSERVATIONS #1). */
.page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 78% 8%, rgba(129, 88, 242, 0.16), transparent 70%),
    radial-gradient(55% 40% at 12% 30%, rgba(74, 107, 255, 0.14), transparent 70%),
    linear-gradient(180deg, #0C0E28 0%, #090B1E 60%, #070812 100%);
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

section { position: relative; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--an-text-muted);
  margin: 0 0 18px;
}

/* the short signature gradient rule under a heading (§6.2) */
.rule {
  width: var(--an-sectionRuleBar-width, 40px);
  height: var(--an-sectionRuleBar-height, 3px);
  border-radius: var(--an-sectionRuleBar-radius, 2px);
  background: var(--an-gradient-signature-css);
  margin: 0 0 22px;
}

/* fluid type scale */
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.04; font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.2; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--an-text-secondary); }

/* text set in the lighter, legible-on-dark signature gradient (OBSERVATIONS #11) */
.grad-text {
  background: var(--an-gradient-emphasisTextDark-css);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(9, 11, 30, 0.55);
  border-bottom: 1px solid var(--an-border-subtle);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.site-header .logo { height: 30px; width: auto; }

/* brand lockup: logo + descriptor (brandbook §4.1 — secondary tone, never larger than wordmark) */
.brand-lockup { display: flex; align-items: center; gap: 15px; min-width: 0; }
.brand-descriptor {
  font-size: 13px;
  color: var(--an-text-secondary);
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-left: 15px;
  border-left: 1px solid var(--an-border-default);
}
@media (max-width: 620px) { .brand-descriptor { display: none; } }

/* ---------- CTA button: two-tone label per OBSERVATIONS #10 ----------
   The gradient's gold terminal fails AA against white, so the label rides the
   blue/purple two-thirds in white and we keep the gold end as a glow accent. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 0;
  cursor: pointer;
  border-radius: var(--an-button-primary-radius, 15px);
  padding: var(--an-button-primary-paddingY, 14px) calc(var(--an-button-primary-paddingX, 18px) + 6px);
  color: #fff;
  background: linear-gradient(100deg, #4A6BFF 0%, #6B54F0 46%, #8158F2 62%, #F5C24B 122%);
  box-shadow: 0 10px 28px rgba(74, 107, 255, 0.32); /* shadow.buttonPrimary — marketing CTA, OBSERVATIONS #8 */
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(74, 107, 255, 0.4); filter: brightness(1.04); }
.btn:active { transform: translateY(0); }
.btn .key { font-size: 15px; line-height: 0; opacity: 0.9; }
.btn--sm { padding: 10px 18px; font-size: 14px; box-shadow: none; }
.btn--sm:hover { box-shadow: 0 8px 20px rgba(74, 107, 255, 0.3); }
.btn.block { width: 100%; justify-content: center; }

/* ghost (secondary) button */
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--an-border-default);
  color: var(--an-text-primary);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); box-shadow: none; filter: none; }

/* header right-side actions */
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-link { font-size: 14px; font-weight: 500; color: var(--an-text-secondary); white-space: nowrap; }
.header-link:hover { color: var(--an-text-primary); }
@media (max-width: 860px) {
  .header-link { display: none; }
  .header-cta .btn--ghost { display: none; }
}

.btn:focus-visible,
a:focus-visible { outline: 2px solid var(--an-focus-ring); outline-offset: 3px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero .eyebrow { color: var(--an-text-secondary); }
.hero h1 { max-width: 15ch; }
.hero h1 .grad-text { display: inline; font-weight: 700; }
.hero .lead { max-width: 46ch; margin: 26px 0 36px; }
.hero .cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero .cta-note { font-size: 13.5px; color: var(--an-text-muted); max-width: 22ch; }

/* the "alone → guided" strands motif under the hero */
.strands { margin-top: clamp(40px, 6vw, 64px); }
.strands svg { width: 100%; height: auto; }

/* two-column hero: copy left, physio-card phone right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero-visual { display: flex; justify-content: center; }

/* hero phone (reuses .phone frame visuals) — the onboarding physio card */
/* zoom 0.73 = the 1.04 above cut by 30%; translateY lifts it optically without moving
   the grid row, so the copy beside it stays put. */
.hero-phone { width: 340px; height: 680px; max-width: 100%; zoom: 0.73; transform: translateY(-30px); }
.hp-inner { display: flex; flex-direction: column; height: 100%; padding: 15px 20px 20px; color: #F4F5FC; text-align: center; }
.hp-status { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: #F4F5FC; font-variant-numeric: tabular-nums; }
.hp-progress { display: flex; gap: 6px; margin-top: 18px; }
.hp-progress i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.hp-progress i.on { background: linear-gradient(90deg, #4A6BFF, #8158F2); }
.hp-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 34px 0 0; color: #F4F5FC; }
.hp-card { margin-top: 22px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 22px 20px; background: rgba(255, 255, 255, 0.02); }
.hp-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #6C7396; font-weight: 700; }
.hp-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: center 16%; margin: 16px auto 0; display: block; border: 2px solid rgba(255, 255, 255, 0.12); }
.hp-name { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; font-size: 19px; font-weight: 700; color: #F4F5FC; }
.hp-verified { width: 18px; height: 18px; border-radius: 50%; background: #4A7CFF; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hp-verified svg { width: 11px; height: 11px; }
.hp-clinic { font-size: 13.5px; color: #6C7396; margin-top: 4px; }
.hp-license { font-size: 12.5px; color: #7C95FF; font-weight: 500; margin-top: 8px; }
.hp-quote { font-size: 14px; color: #A6ADCC; line-height: 1.5; margin: 16px 0 0; font-style: italic; }
.hp-cta { margin-top: auto; border-radius: 16px; padding: 15px; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(100deg, #4A6BFF 0%, #8158F2 52%, #F5C24B 112%); }

/* hero phone: rotating therapist carousel (crossfade, auto-advance) */
.hp-carousel { display: grid; }
.hp-carousel .hp-slide { grid-area: 1 / 1; opacity: 0; transition: opacity 0.6s ease; pointer-events: none; }
.hp-carousel .hp-slide.is-active { opacity: 1; pointer-events: auto; }
.hp-dots { display: flex; justify-content: center; gap: 7px; margin-top: auto; padding-top: 22px; }
.hp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: width 0.3s ease, background 0.3s ease; }
.hp-dots i.on { width: 18px; border-radius: 3px; background: #F5C24B; }
@media (prefers-reduced-motion: reduce) { .hp-carousel .hp-slide { transition: none; } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; justify-items: start; }
  .hero-copy { max-width: 560px; }
  .hero-visual { justify-content: flex-start; }
  .hero h1 { max-width: 18ch; }
}

/* ---------- generic prose section ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band--tight { padding: clamp(48px, 7vw, 90px) 0; }
.measure { max-width: 34ch; }
.measure-wide { max-width: 52ch; }

.story h2 { margin-bottom: 26px; }
.story p { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--an-text-secondary); margin: 0 0 1em; }
.story p:last-child { margin-bottom: 0; }
.story .turn { color: var(--an-text-primary); font-weight: 500; }

/* soft divider between narrative bands */
.hair {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--an-border-default), transparent);
}

.resolve {
  margin: 34px 0 0;
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
  color: var(--an-text-primary);
  max-width: 42ch;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.resolve b { font-weight: 500; }
.resolve .grad-text { display: inline; }

/* recognition: the patient's own thoughts, one at a time, said to no one (= left alone). */
.band--bold { min-height: 100svh; display: flex; align-items: center; }
.band--bold > .wrap { width: 100%; }
.monologue { margin-top: clamp(40px, 6vw, 72px); max-width: min(780px, 62%); }
/* All thoughts share one grid cell, so the block keeps the tallest one's height and nothing
   below jumps. No card: large type straight on the gradient, a gold quote mark hanging left. */
.mm-track { display: grid; position: relative; }
.mm-track::before {
  content: "\201C";
  content: "\201C" / ""; /* decorative: not read aloud */
  position: absolute; left: -0.55em; top: -0.12em;
  font-size: clamp(1.7rem, 3.8vw, 2.9rem); line-height: 1.22;
  color: var(--an-sectionBlock-bold-icon-fg);
}
.mmsg {
  grid-area: 1 / 1;
  align-self: start;
  margin: 0;
  max-width: 24ch;
  color: var(--an-sectionBlock-bold-fg-emphasis);
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.22;
  /* soft ink halo: keeps white legible where the gradient turns warm (phones, right edge) */
  text-shadow:
    0 1px 2px color-mix(in srgb, var(--an-sectionBlock-bold-fg) 35%, transparent),
    0 2px 24px color-mix(in srgb, var(--an-sectionBlock-bold-fg) 45%, transparent);
  opacity: 0;
  pointer-events: none;
}
.mmsg.is-active, .mmsg.is-leaving { opacity: 1; }
.mmsg.is-active { pointer-events: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Word by word (the script wraps words in .w once it runs; without it the first thought just
   shows whole). A new thought starts only after the previous one has dissolved. */
.mmsg .w {
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}
.mmsg.is-active .w {
  opacity: 1;
  filter: none;
  transition-delay: calc(0.9s + var(--i, 0) * 110ms);
}
.mmsg.is-leaving .w {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.9s ease, filter 0.9s ease;
  transition-delay: 0s;
}
/* The closing line lands in two beats: the release, big; the reason, quieter. */
.band--bold .resolve { margin-top: clamp(36px, 5vw, 56px); }
.band--bold .resolve b {
  display: block;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--an-sectionBlock-bold-fg-emphasis);
}
.band--bold .resolve span {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--an-sectionBlock-bold-fg);
}
@media (max-width: 1080px) { .monologue { max-width: 780px; } }
@media (max-width: 760px) { .mm-track::before { left: -0.5em; } } /* hangs into the 24px page gutter */
@media (prefers-reduced-motion: reduce) {
  .mmsg .w, .mmsg.is-active .w { transition: none; filter: none; }
}

/* ---------- journey: how care works (in-person first + guided days) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.step .ic {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--an-action-subtle-bg);
  border: 1px solid var(--an-border-default);
  margin-bottom: 16px;
}
.step .ic svg { width: 23px; height: 23px; stroke: var(--an-action-default); fill: none; stroke-width: 1.7; }
.step.clinic .ic { background: var(--an-brand-subtle-bg); }
.step.clinic .ic svg { stroke: var(--an-brand-default); }
.step .tag { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 9px; }
.step.clinic .tag { color: var(--an-brand-default); }
.step.home .tag { color: var(--an-action-default); }
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: 0.97rem; color: var(--an-text-secondary); margin: 0; }

/* care rhythm strip — visits (gold) and guided days (blue) interleaving */
.rhythm {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 6px;
  margin-top: 46px; padding: 20px 24px;
  background: var(--an-card-bg);
  border: 1px solid var(--an-card-border);
  border-radius: 16px;
}
.rhythm .visit { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--an-text-primary); white-space: nowrap; }
.rhythm .visit .d { width: 11px; height: 11px; border-radius: 50%; background: var(--an-gradient-signature-css); box-shadow: 0 0 0 4px var(--an-brand-subtle-bg); flex: none; }
.rhythm .seg { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 90px; min-width: 84px; color: var(--an-action-default); font-size: 12px; font-weight: 500; white-space: nowrap; }
.rhythm .seg .dots { flex: 1; height: 0; border-top: 2px dotted var(--an-border-strong); }
.rhythm-note { margin: 16px 0 0; font-size: 13px; color: var(--an-text-muted); }

/* ---------- journey path: how care works, as a connected step path ---------- */
.journey {
  list-style: none; padding: 0; margin: 46px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative;
}
.journey::before { /* the connecting line between icon centres */
  content: ""; position: absolute; top: 33px; left: 12.5%; right: 12.5%;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--an-brand-default), #8158F2 52%, #F5C24B);
  opacity: 0.55; z-index: 0;
}
.journey::after { /* the warm gold "meeting" node at the centre */
  content: ""; position: absolute; top: 33px; left: 50%;
  width: 15px; height: 15px; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFF1CA, #F5C24B 68%, #E0A62F);
  box-shadow: 0 0 0 6px rgba(245, 194, 75, 0.12);
  z-index: 1;
}
.jstep { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jicon {
  position: relative; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--an-brand-subtle-bg); border: 1px solid var(--an-border-default);
}
.jicon svg { width: 30px; height: 30px; stroke: var(--an-brand-default); fill: none; stroke-width: 1.7; }
.jstep.home .jicon { background: var(--an-action-subtle-bg); }
.jstep.home .jicon svg { stroke: var(--an-action-default); }
.jnum {
  position: absolute; bottom: -5px; right: -5px;
  width: 23px; height: 23px; border-radius: 50%;
  background: #F5C24B; color: #0A0C22; font-size: 12px; font-weight: 800;
  display: grid; place-items: center; border: 3px solid var(--an-bg-page);
}
.jstep h3 { font-size: 1.08rem; margin-top: 20px; }
.jstep p { font-size: 0.95rem; color: var(--an-text-secondary); margin-top: 6px; max-width: 25ch; }
.jnote { text-align: center; margin-top: 40px; font-size: 13.5px; color: var(--an-text-muted); }
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 24px; margin-top: 34px; }
  .journey::before, .journey::after { display: none; }
  /* icon + title on one line, the description below at full width — no three cramped columns */
  .jstep { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; text-align: left; }
  .jstep h3 { margin-top: 0; }
  .jstep p { grid-column: 1 / -1; margin-top: 10px; max-width: none; }
  .jicon { width: 54px; height: 54px; }
  .jicon svg { width: 26px; height: 26px; }
  .jnote { text-align: left; }
}

/* ---------- manifest ---------- */
.manifest { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.manifest .mark { width: 66px; margin: 0 auto 40px; opacity: 0.95; }
.manifest p {
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--an-text-primary);
  max-width: 20ch;
  margin: 0 auto;
}
.manifest .stanza { margin-bottom: 1.1em; }
.manifest .stanza:last-child { margin-bottom: 0; }
.manifest .muted { color: var(--an-text-secondary); }
.manifest .sign {
  margin-top: 48px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--an-text-muted);
}

/* ---------- demonstration: sticky phone scrollytelling ---------- */
.demo { padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 130px); }
.demo-intro { max-width: 40ch; margin-bottom: clamp(40px, 6vw, 72px); }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* captions column (left) */
.caps { display: flex; flex-direction: column; }
.cap {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}
.cap .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: var(--an-sectionNumeratorChip-radius, 6px);
  background: var(--an-sectionNumeratorChip-bg);
  color: var(--an-sectionNumeratorChip-fg);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 20px;
}
.cap h3 { margin-bottom: 14px; max-width: 18ch; }
.cap p { font-size: 1.12rem; color: var(--an-text-secondary); max-width: 32ch; margin: 0; }
.cap .voice {
  margin-top: 18px;
  font-size: 1.05rem;
  color: var(--an-text-primary);
  border-left: 2px solid transparent;
  border-image: linear-gradient(180deg, #8158F2, #F5C24B) 1;
  padding-left: 16px;
  max-width: 33ch;
  font-style: italic;
}

/* phone column (right, sticky on desktop) */
.phone-col {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #23264d, #101127);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background:
    radial-gradient(70% 40% at 80% 0%, rgba(129, 88, 242, 0.18), transparent 65%),
    radial-gradient(60% 35% at 10% 12%, rgba(74, 107, 255, 0.16), transparent 65%),
    linear-gradient(180deg, #0C0E28, #090B1E);
}
.phone .notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 116px; height: 26px;
  background: #05060f;
  border-radius: 0 0 16px 16px;
  z-index: 6;
}

/* each app screen stacks; JS cross-fades the active one */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
  color: #F4F5FC;
}
.screen.is-active { opacity: 1; visibility: visible; transform: scale(1); }

.screen-body { flex: 1; overflow: hidden; padding: 46px 18px 0; }
.screen-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.screen-h .greet { font-size: 11px; color: #A6ADCC; }
.screen-h .name { font-size: 17px; font-weight: 600; color: #F4F5FC; letter-spacing: -0.01em; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #4A6BFF, #8158F2);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: #fff;
}

/* app card */
.a-card {
  background: var(--an-card-bg);
  border: 1px solid var(--an-card-border);
  border-radius: var(--an-card-radius, 16px);
  padding: 14px;
}

/* progress ring (§6.2 — start 210° CSS, clockwise, gold terminal, no spark) */
.ring-wrap { display: flex; flex-direction: column; align-items: center; margin: 10px 0 20px; }
.ring {
  position: relative;
  width: 132px; height: 132px; border-radius: 50%;
  background: conic-gradient(from 210deg,
    #4A6BFF 0deg, #8158F2 132deg, #F5C24B 232deg,
    var(--an-progressRing-trackColorDark) 232deg 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 15px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 15px), #000 calc(100% - 15px));
}
.ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-center .big { font-size: 27px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring-center .sub { font-size: 10.5px; color: #A6ADCC; }
.ring-msg { text-align: center; font-size: 12px; color: #A6ADCC; margin-top: 12px; max-width: 24ch; line-height: 1.45; }

.plan-title { font-weight: 600; font-size: 14px; margin: 4px 2px 10px; }

/* exercise rows */
.ex {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--an-exerciseRow-divider);
}
.ex:last-child { border-bottom: 0; }
.ex .check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.6px solid var(--an-checkbox-off-border);
  flex: none;
  display: grid; place-items: center;
}
.ex .check.on { background: var(--an-checkbox-on-bg); border-color: var(--an-checkbox-on-bg); }
.ex .check.on svg { width: 12px; height: 12px; stroke: #fff; }
.ex .meta { flex: 1; min-width: 0; }
.ex .meta .t { font-size: 13.5px; font-weight: 500; color: #F4F5FC; }
.ex .meta .s { font-size: 11px; color: #6C7396; }
.ex.done .meta .t { color: #A6ADCC; }

/* program card (Plan screen) */
.prog-card { position: relative; overflow: hidden; padding: 16px; }
.prog-card .spine {
  position: absolute; right: -10px; top: -10px; width: 90px; height: 130px;
  background: radial-gradient(circle at 60% 30%, rgba(129,88,242,.5), transparent 62%);
  filter: blur(6px);
}
.prog-card .cat { font-size: 11px; color: #A6ADCC; letter-spacing: .04em; text-transform: uppercase; }
.prog-card .name { font-size: 18px; font-weight: 600; margin: 4px 0 14px; }
.pbar { height: 7px; border-radius: 4px; background: var(--an-progressRing-trackColorDark); overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: 4px; background: var(--an-gradient-signature-css); }
.prog-card .pmeta { display: flex; justify-content: space-between; font-size: 11px; color: #6C7396; margin-top: 8px; }

/* progress stat cards + area chart */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.stat { padding: 12px; }
.stat .label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6C7396; }
.stat .val { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat .delta { font-size: 11px; color: var(--an-success-fg); font-weight: 600; }
.chart-card { padding: 14px 14px 8px; }
.chart-card .chead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-card .chead .t { font-size: 13px; font-weight: 600; }
.chart-card .chead .r { font-size: 11px; color: #6C7396; }

/* chat */
.chat-body { padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.day-sep { text-align: center; font-size: 10px; color: #6C7396; margin: 4px 0; }
.bubble { max-width: 78%; padding: 10px 13px; font-size: 12.5px; line-height: 1.4; border-radius: 15px; }
.bubble.them { align-self: flex-start; background: rgba(255,255,255,.06); color: #F4F5FC; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, #4A6BFF, #6B54F0); color: #fff; border-bottom-right-radius: 4px; }

/* bottom nav (Today / Plan / Progress / Chat — OBSERVATIONS #9) */
.tabbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 8px 22px;
  border-top: 1px solid var(--an-exerciseRow-divider);
  background: rgba(5, 6, 15, 0.4);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--an-bottomNav-fg-default); }
.tab svg { width: 21px; height: 21px; }
.tab span { font-size: 9px; }
.tab.active { color: var(--an-bottomNav-fg-active); }
.tab.active .dot { width: 16px; height: 2.5px; border-radius: 2px; background: var(--an-bottomNav-activeIndicator-color); }

/* ---------- example plan: a full Plan tab you scroll inside the phone ---------- */
/* demo section on the signature gradient (like the "Sounds familiar" block) */
.plan-demo { padding: clamp(64px, 9vw, 120px) 0; background: var(--an-sectionBlock-bold-bg); overflow: clip; }
.plan-demo .eyebrow { color: var(--an-sectionBlock-bold-fg); opacity: 0.72; }
.plan-demo .rule { background: var(--an-sectionBlock-bold-rule); }
.plan-demo > .wrap > h2 { color: var(--an-sectionBlock-bold-fg-emphasis); } /* white */
.plan-demo .plan-copy .tab-chip { background: var(--an-sectionBlock-bold-numeratorChip-bg); color: var(--an-sectionBlock-bold-numeratorChip-fg); }
.plan-demo .plan-copy h3 { color: var(--an-sectionBlock-bold-fg-emphasis); }
.plan-demo .plan-copy p { color: rgba(255, 255, 255, 0.82); }
.plan-demo .plan-copy .voice { color: #fff; }
/* centred header over a symmetric explorer */
.plan-head-centered > .eyebrow,
.plan-head-centered > h2 { text-align: center; margin-inline: auto; }
.plan-head-centered > .rule { margin-inline: auto; }

/* three columns: Today + Plan | the interactive phone | Progress + Chat */
.plan-explore {
  display: grid;
  /* the phone column only has to hold a 65%-scaled phone (~222px) plus the theme switch */
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(84px, 8vw, 108px); /* room for the theme switch above the phone */
}

/* the copy columns — two short blocks each, stacked beside the phone */
.plan-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
}
/* the left column leans toward the phone, mirroring the right */
.plan-copy--left { text-align: right; align-items: flex-end; }
/* Names the tab this block is about, with the app's own bottom-nav icon —
   so the copy and the phone beside it point at the same thing. */
.plan-copy .tab-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--an-radius-pill, 999px);
  background: var(--an-sectionNumeratorChip-bg);
  color: var(--an-sectionNumeratorChip-fg);
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.plan-copy .tab-chip svg { flex: none; }
.plan-copy h3 { margin-bottom: 10px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
.plan-copy p { font-size: 1rem; color: var(--an-text-secondary); margin: 0; }
/* centre: the real patient app, iframed from site/demo/app/. The app is laid out for a
   390×844 iPhone; the page draws the phone body (.phone) and a status bar around it, since a
   web build has no notch or safe area of its own. */
.plan-phone-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* The switch and the note sit on the bold gradient, whose gold end is too light for
   white text (OBSERVATIONS #10). Both ride on a dark ink chip so contrast holds
   wherever the gradient happens to be behind them. */
/* Lifted out of flow so the phone is the column's first in-flow element and its top
   edge lands level with the "Today" chip opposite. The switch rides above that line. */
.demo-themes {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 4px; padding: 4px;
  border-radius: var(--an-radius-pill, 999px);
  background: rgba(10, 12, 34, 0.72);
}
.demo-theme {
  border: 0; margin: 0; padding: 7px 18px;
  border-radius: var(--an-radius-pill, 999px);
  background: none; color: rgba(255, 255, 255, 0.72);
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.demo-theme:hover { color: #fff; }
.demo-theme.on { background: rgba(255, 255, 255, 0.16); color: #fff; }
.demo-theme:focus-visible { outline: 2px solid var(--an-focus-ring, #7C95FF); outline-offset: 2px; }

/* zoom, not transform: it shrinks the layout box too, so no dead space is left behind,
   and taps inside the iframe still land where they look. */
.demo-phone {
  width: auto; height: auto; zoom: 0.62;
  border-radius: 58px; padding: 14px;
}
.demo-screen {
  width: 390px; height: 844px; border-radius: 44px;
  display: flex; flex-direction: column;
  /* dark until the app loads; then index.html sets the app's own colours (it reports them) */
  background: var(--an-bg-page);
  color: var(--an-text-primary);
  transition: background 0.2s ease, color 0.2s ease;
}
.demo-status {
  flex: none; height: 50px; padding: 0 30px 0 44px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.demo-island { width: 120px; height: 34px; border-radius: var(--an-radius-pill, 999px); background: var(--an-bg-canvas); }  /* the page runs dark, so this is the dark canvas ink in either app theme */
.demo-frame {
  flex: 1; width: 100%; min-height: 0;
  border: 0; display: block; background: transparent;
  color-scheme: normal;   /* keep the light theme light inside a dark page */
}

/* narrow screens: one column — Today + Plan, the phone, then Progress + Chat */
@media (max-width: 860px) {
  .plan-explore { grid-template-columns: 1fr; gap: 44px; }
  .plan-copy { max-width: 460px; width: 100%; margin: 0 auto; }
  .plan-copy--left { text-align: left; align-items: stretch; }
  /* stacked: the copy sits directly above the phone, so a floating switch would land
     on top of it — put it back in the flow. */
  .demo-themes { position: static; transform: none; }
}

/* ---------- closing: invite your physio ---------- */
.invite { padding: clamp(64px, 9vw, 120px) 0; }
.invite-copy { min-width: 0; }
.invite-copy h2 { margin-top: 4px; }
.invite-copy p:not(.eyebrow) { font-size: clamp(1.05rem, 1.7vw, 1.24rem); color: var(--an-text-secondary); max-width: 40ch; margin: 22px 0 0; line-height: 1.5; }

/* the share card: the patient passes Andama on themselves — no form, nothing collected */
.invite-visual { min-width: 0; }
.share-card {
  background: var(--an-bg-card);
  border: 1px solid var(--an-border-default);
  border-radius: 22px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 18px;
}
/* the leaflet being sent, as an attachment chip */
.sc-attach { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--an-bg-sunken); border: 1px solid var(--an-border-subtle); transition: border-color 0.18s ease; }
.sc-attach:hover { border-color: var(--an-border-strong); }
.sc-thumb {
  flex: none; width: 52px; height: 72px; border-radius: 6px; padding: 7px 6px;
  background: var(--an-bg-page); border: 1px solid var(--an-border-strong);
  display: flex; flex-direction: column; gap: 4px;
}
.sc-thumb i { display: block; height: 3px; border-radius: 2px; background: var(--an-border-strong); }
.sc-thumb i:first-child { width: 60%; height: 4px; background: var(--an-gradient-signature-css); margin-bottom: 3px; }
.sc-thumb i:nth-child(3) { width: 80%; }
.sc-thumb i:nth-child(5) { width: 70%; }
.sc-file { min-width: 0; }
.sc-name, .sc-meta { display: block; }
.sc-name { font-size: 15px; font-weight: 600; color: var(--an-text-primary); }
.sc-meta { font-size: 13px; color: var(--an-text-muted); margin-top: 2px; }
.sc-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--an-text-muted); font-weight: 700; display: block; margin-bottom: 8px; }
.sc-msg {
  width: 100%; box-sizing: border-box; resize: vertical; min-height: 132px;
  background: var(--an-input-bg-default);
  border: 1px solid var(--an-border-default);
  border-radius: 14px; padding: 14px 16px;
  color: var(--an-text-primary); font-family: inherit; font-size: 15px; line-height: 1.5;
  outline: none; transition: border-color 0.18s ease;
}
.sc-msg:focus { border-color: var(--an-border-focus); }
.sc-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sc-channels .btn { flex-direction: column; gap: 6px; padding: 12px 6px; justify-content: center; font-size: 13px; }
.sc-channels .btn svg { width: 20px; height: 20px; }
.sc-native[hidden] { display: none; }
.sc-hint { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--an-text-secondary); }
.sc-hint:empty { margin-top: -18px; } /* stays in the page as a live region; cancels the card's gap while empty */
.sc-key { font-weight: 600; color: var(--an-text-primary); }
@media (max-width: 420px) { .sc-channels { grid-template-columns: 1fr 1fr; } }

/* ---------- closing CTA ---------- */
.closing { padding: clamp(80px, 12vw, 150px) 0; text-align: center; }
.closing .dna { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 400; letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto 14px; line-height: 1.28; }
.closing .lead { max-width: 40ch; margin: 0 auto 34px; }
.closing .cta-row { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closing .cta-note { font-size: 13.5px; color: var(--an-text-muted); }

/* ---------- bold section-block anchor (sectionBlock.bold-*) ----------
   Section rhythm: the whole page rides the near-invisible "soft" default; the recognition
   band ("You didn't fail…"), the emotional heart, is the SINGLE full-strength gradient
   anchor per document. Headline and the resolve's first beat are white (bold-fg-emphasis —
   gold would vanish into the gradient's gold end), its second beat and the eyebrow ink
   (bold-fg); the rule bar becomes solid ink (can't put the gradient on itself); the monologue
   is large white type straight on the gradient (no card), gold quote mark. One bold block only — more and the rhythm collapses. */
.band--bold {
  background: var(--an-sectionBlock-bold-bg);
  overflow: clip; /* keep the full-bleed gradient tidy at the section edges */
}
/* The lone-strand motif fills the empty right half of the recognition band. Ink, not
   gradient — same reason the rule is ink here: gradient on gradient reads as noise.
   Purely decorative, so it drops out once the copy claims the full width. */
.band--bold .wrap { position: relative; }
.alone-strands {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-46%);
  width: min(34%, 360px);
  pointer-events: none;
}
@media (max-width: 1080px) { .alone-strands { display: none; } }

.band--bold .eyebrow { color: var(--an-sectionBlock-bold-fg); opacity: 0.72; }
.band--bold .rule { background: var(--an-sectionBlock-bold-rule); } /* solid ink, not gradient-on-gradient */
.band--bold h2 { color: var(--an-sectionBlock-bold-fg-emphasis); } /* white headline on the gradient */
.band--bold .resolve { color: var(--an-sectionBlock-bold-fg-emphasis); } /* white closing line */
.band--bold .resolve .grad-text {
  background: none;                               /* neutralize the gradient-text clip */
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--an-sectionBlock-bold-fg-emphasis); /* white emphasis, not gradient */
}

/* ==================================================================
   JOURNAL — index (journal.html / journal-el.html) and article pages.
   Namespace .j-*. Article files live in /journal/ and clone the shell in
   andama-platform/journal-desk/TEMPLATE-article.html. Tokens only — see
   andama-platform/journal-desk/EDITORIAL-POLICY.md for the editorial rules.
   ================================================================== */

/* ---------- journal index ---------- */
.j-hero { padding: clamp(44px, 8vw, 96px) 0 clamp(20px, 4vw, 36px); }
.j-hero .home-back { display: inline-flex; align-items: center; margin-bottom: 30px; font-size: 14px; color: var(--an-text-secondary); }
.j-hero .home-back:hover { color: var(--an-text-primary); }
.j-hero h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); line-height: 1.08; max-width: 18ch; }
.j-hero .lead { max-width: 56ch; margin-top: 20px; line-height: 1.5; }

/* rubric filter chips */
.j-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.j-filter {
  font-size: 13px; font-weight: 600; padding: 7px 15px;
  border-radius: var(--an-radius-pill, 999px);
  border: 1px solid var(--an-border-default);
  color: var(--an-text-secondary);
  background: transparent; cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.j-filter:hover { color: var(--an-text-primary); border-color: var(--an-border-strong); }
.j-filter[aria-pressed="true"] {
  color: var(--an-text-primary);
  border-color: var(--an-action-default);
  background: var(--an-action-subtle-bg);
}

.j-grid-sec { padding: clamp(20px, 4vw, 40px) 0 clamp(72px, 10vw, 120px); }
.j-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.j-card {
  display: flex; flex-direction: column;
  background: var(--an-card-bg);
  border: 1px solid var(--an-card-border);
  border-radius: var(--an-radius-xl, 18px);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.j-card:hover { transform: translateY(-2px); border-color: var(--an-border-strong); }
.j-card__media { aspect-ratio: 16 / 9; background: var(--an-bg-sunken); }
.j-card__media img { width: 100%; height: 100%; object-fit: cover; }
.j-card__body { display: flex; flex-direction: column; gap: 11px; padding: 20px 22px 22px; flex: 1; }
.j-card__tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--an-brand-default); font-weight: 700; }
.j-card__title { font-size: 1.16rem; font-weight: 600; line-height: 1.28; letter-spacing: -0.01em; }
.j-card__dek { font-size: 14.5px; color: var(--an-text-secondary); line-height: 1.5; flex: 1; }
.j-card__meta { font-size: 12.5px; color: var(--an-text-muted); display: flex; gap: 10px; align-items: center; }
.j-card__meta span::before { content: "·"; margin-right: 10px; }
.j-card__meta span:first-child::before { content: none; margin: 0; }

/* empty state — shown until the first pieces ship */
.j-empty {
  border: 1px dashed var(--an-border-default);
  border-radius: var(--an-radius-xl, 18px);
  padding: clamp(34px, 6vw, 60px);
  text-align: center; color: var(--an-text-secondary);
}
.j-empty h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 12px; color: var(--an-text-primary); }
.j-empty p { max-width: 50ch; margin-inline: auto; font-size: 15px; line-height: 1.6; }

/* ---------- article page ---------- */
.j-breadcrumbs { font-size: 13px; color: var(--an-text-muted); padding-top: clamp(26px, 4vw, 40px); }
.j-breadcrumbs a:hover { color: var(--an-text-primary); }
.j-breadcrumbs span { margin-inline: 7px; }

.j-article-head { padding: clamp(18px, 3vw, 30px) 0 clamp(20px, 3vw, 32px); }
.j-article-head h1 { font-size: clamp(1.9rem, 4.4vw, 2.85rem); line-height: 1.1; max-width: 22ch; }
.j-article-head .j-dek { margin-top: 18px; max-width: 60ch; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--an-text-secondary); line-height: 1.5; }

/* byline: Andama is the author; a named clinician only ever appears as reviewer */
.j-byline {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--an-border-subtle);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-size: 13.5px; color: var(--an-text-muted);
}
.j-byline strong { color: var(--an-text-secondary); font-weight: 600; }
.j-byline a { color: var(--an-text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.j-byline a:hover { color: var(--an-text-primary); }

/* hero image — lives in the article head, above the byline, and spans the head's
   full column width (wider than the 68ch reading measure). Title & standfirst sit
   above it, byline below — so there's no gap between the text and the image. */
/* sized to the reading column (not full width) and centred, so the hero and the
   body text below it share one measure instead of the image reading as a banner */
.j-hero-fig { margin: clamp(24px, 3vw, 34px) auto 0; max-width: 760px; }
/* height:auto is load-bearing — the img's height="900" attribute otherwise counts as
   a set height and overrides aspect-ratio, stretching the picture on a narrow column */
.j-hero-fig img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; display: block;
}

/* the body column — one comfortable measure, everything else hangs off it */
.j-body { max-width: 68ch; margin-inline: auto; padding-bottom: clamp(56px, 8vw, 96px); }
.j-body > * + * { margin-top: 22px; }
.j-body p { font-size: 1.06rem; line-height: 1.68; color: var(--an-text-secondary); }
.j-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 46px; color: var(--an-text-primary); }
.j-body h3 { font-size: clamp(1.12rem, 1.9vw, 1.3rem); margin-top: 32px; color: var(--an-text-primary); }
.j-body strong { color: var(--an-text-primary); font-weight: 600; }
.j-body a { color: var(--an-action-default); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.j-body a:hover { color: var(--an-action-hover); }
/* the closing CTA is a button, not an in-text link — this base rule and the warm
   layer would otherwise paint its label like a link (underlined, accent colour) */
.j-body a.btn { color: #fff; text-decoration: none; }
.j-body ul, .j-body ol { padding-left: 22px; color: var(--an-text-secondary); }
.j-body li { font-size: 1.06rem; line-height: 1.6; margin-top: 9px; }
.j-body figure { margin: 34px 0; }
.j-body figure img { width: 100%; border-radius: var(--an-radius-lg, 14px); }
.j-body figcaption { margin-top: 10px; font-size: 13px; color: var(--an-text-muted); line-height: 1.5; }

/* quotable answer — the self-contained paragraph an answer engine lifts */
.j-answer {
  border-left: 3px solid transparent;
  border-image: var(--an-gradient-signature-css) 1;
  background: var(--an-bg-raised);
  padding: 20px 24px;
  border-radius: 0 var(--an-radius-lg, 14px) var(--an-radius-lg, 14px) 0;
}
.j-answer p { color: var(--an-text-primary); font-size: 1.09rem; line-height: 1.6; margin: 0; }

/* definition box — featured-snippet candidate */
.j-def {
  background: var(--an-info-subtle-bg);
  border: 1px solid var(--an-border-subtle);
  border-radius: var(--an-radius-lg, 14px);
  padding: 20px 24px;
}
.j-def h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--an-info-fg); }
.j-def p { margin: 0; color: var(--an-text-primary); }

/* "what this means for you" — lands after a dense evidence block */
.j-note {
  background: var(--an-bg-raised);
  border: 1px solid var(--an-border-subtle);
  border-radius: var(--an-radius-lg, 14px);
  padding: 20px 24px;
}
.j-note h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--an-brand-default); }
.j-note p:last-child { margin-bottom: 0; }

/* red flags — mandatory on any article where the topic allows them */
.j-flags {
  background: var(--an-danger-subtle-bg-soft);
  border: 1px solid var(--an-danger-border-soft);
  border-radius: var(--an-radius-lg, 14px);
  padding: 22px 24px;
}
.j-flags h3 { margin: 0 0 10px; font-size: 1.02rem; color: var(--an-danger-fg); }
.j-flags ul { margin: 0; padding-left: 20px; }
.j-flags li { font-size: 1rem; }

/* comparison table */
.j-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.j-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.j-table th, .j-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--an-border-subtle); }
.j-table th { color: var(--an-text-primary); font-weight: 600; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase; }
.j-table td { color: var(--an-text-secondary); vertical-align: top; }

/* sources — mirrors the citation[] array in the Article JSON-LD */
.j-sources { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--an-border-subtle); }
.j-sources ol { padding-left: 20px; }
.j-sources li { font-size: 14.5px; line-height: 1.55; color: var(--an-text-muted); margin-top: 14px; }
.j-sources li cite { font-style: italic; }
.j-sources .j-src-type { color: var(--an-text-muted); font-size: 12.5px; }

/* FAQ — text must match the FAQPage schema word for word */
.j-faq { margin-top: 48px; }
.j-faq details {
  border-bottom: 1px solid var(--an-border-subtle);
  padding: 16px 0;
}
.j-faq summary { cursor: pointer; font-weight: 600; color: var(--an-text-primary); font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.j-faq summary::-webkit-details-marker { display: none; }
.j-faq summary::after { content: "+"; color: var(--an-text-muted); font-weight: 400; }
.j-faq details[open] summary::after { content: "–"; }
.j-faq details p { margin-top: 12px; }

/* related reading — one pillar + two spokes, per EDITORIAL-POLICY §7 */
.j-related { margin-top: 48px; }
.j-related h2 { font-size: 1.35rem; }
.j-related ul { list-style: none; padding: 0; margin-top: 16px; }
.j-related li { margin-top: 0; border-top: 1px solid var(--an-border-subtle); }
.j-related a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; color: var(--an-text-primary); font-weight: 600; text-decoration: none; }
.j-related a:hover { color: var(--an-action-default); }
.j-related .j-rel-tag { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--an-text-muted); font-weight: 700; white-space: nowrap; align-self: center; }

/* disclaimer — wording is fixed, see EDITORIAL-POLICY §4 */
.j-disclaimer {
  margin-top: 44px; padding: 20px 24px;
  border: 1px solid var(--an-border-subtle);
  border-radius: var(--an-radius-lg, 14px);
  background: var(--an-bg-sunken);
}
.j-disclaimer p { font-size: 13.5px; line-height: 1.6; color: var(--an-text-muted); margin: 0; }
.j-disclaimer strong { color: var(--an-text-secondary); }

/* closing CTA — soft, single, never a sales block */
.j-cta { margin-top: 40px; text-align: center; }
.j-cta p { margin-bottom: 18px; }

@media (max-width: 900px) { .j-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .j-grid { grid-template-columns: 1fr; } }

/* ==================================================================
   WARM-LIGHT JOURNAL — a reading environment, not the product showcase.
   Ksenia's benchmark research (wellness-benchmarks.html) points the journal
   at a Kinfolk-style calm: warm cream paper, airy, editorial. The journal
   pages run data-theme="light" (so every --an-* token resolves to its light
   value), and this scoped layer skins them warm: cream page, warm ink, gold.600
   accent, ink logo. Brand font (SF Pro) throughout — no serif.

   Scoped to .j-page (journal index + articles) so it never touches the app
   showcase, which stays dark indigo. The --j-* PALETTE now lives in the design
   system: tokens.json → journal, emitted as .j-page{--j-*} into tokens.css by
   build-tokens.js. This file only USES those vars for composition below.
   ================================================================== */

/* warm cream page — replaces the site's cold-indigo page-wash on the journal */
.j-page .page-wash {
  background:
    radial-gradient(58% 42% at 80% 6%, rgba(176, 122, 14, 0.06), transparent 70%),
    radial-gradient(52% 40% at 12% 26%, rgba(176, 122, 14, 0.05), transparent 72%),
    linear-gradient(180deg, #FBF7F0 0%, #F5EFE4 100%);
}
/* the shared header/footer are cold indigo by default — make them cream on the
   journal, with the ink logo, so there's no seam against the cream page */
.j-page .site-header { background: rgba(250, 246, 239, 0.82); border-bottom-color: var(--j-line); }
.j-page .site-footer { background: #F3ECDF; border-top-color: var(--j-line); }
.j-page .site-footer nav a, .j-page .site-footer .fine, .j-page .brand-descriptor { color: var(--j-ink-soft); }
.j-page .brand-descriptor { border-left-color: var(--j-line); }
.j-page .header-link { color: var(--j-ink-soft); }
.j-page .header-link:hover { color: var(--j-ink); }
.j-page .btn--ghost { background: #FFFFFF; border-color: var(--j-line); color: var(--j-ink); }
.j-page .btn--ghost:hover { background: #FFF; filter: brightness(0.97); }

/* ---- editorial type: brand sans (SF Pro), warm cream body, more air ---- */
.j-page .j-article-head h1,
.j-page .j-body h2,
.j-page .j-body h3,
.j-page .j-hero h1 { color: var(--j-ink); }
.j-page .j-article-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.2rem); line-height: 1.12; }
.j-page .j-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.4rem); line-height: 1.1; }

.j-page .j-article-head .j-dek,
.j-page .j-hero .lead {
  color: var(--j-ink-soft);
  font-size: clamp(1.12rem, 1.7vw, 1.42rem); line-height: 1.5;
}

/* body: warmer, a touch larger, roomier — long-form reading, not UI text */
.j-page .j-body p,
.j-page .j-body li { color: var(--j-ink-soft); font-size: 1.12rem; line-height: 1.75; }
.j-page .j-body > * + * { margin-top: 26px; }
.j-page .j-body strong { color: var(--j-ink); }
.j-page .j-body h2 { margin-top: 64px; font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.j-page .j-body h3 { margin-top: 36px; color: var(--j-ink); }
/* :not(.btn) so the closing CTA button keeps its own white-on-gradient label
   instead of taking the gold underlined link style meant for in-text links */
.j-page .j-body a:not(.btn) { color: var(--j-gold); text-decoration-color: rgba(176, 122, 14, 0.45); }
.j-page .j-body a:not(.btn):hover { color: #8A5E08; }
.j-page .j-body em, .j-page .j-body cite { color: var(--j-ink-soft); }

.j-page .eyebrow { color: var(--j-gold); opacity: 0.9; }
.j-page .rule { background: linear-gradient(90deg, var(--j-gold), rgba(245, 194, 75, 0.15)); }
.j-page .j-breadcrumbs, .j-page .j-breadcrumbs a { color: var(--j-ink-mute); }
.j-page .j-byline { color: var(--j-ink-mute); border-top-color: var(--j-line); }
.j-page .j-byline strong, .j-page .j-byline a { color: var(--j-ink-soft); }

/* figures: reserve the slot with a warm gradient, so a not-yet-added photo reads
   as an intentional block, never a void. Real stock drops into the same files. */
.j-page .j-body figure img,
.j-page .j-card__media {
  background: linear-gradient(135deg, #EDE4D2, #F6EFE0);
}
.j-page .j-body figure { margin: 48px 0; }
/* height:auto is load-bearing — the img's height="900" attribute otherwise counts as
   a set height, and aspect-ratio only fills a dimension that's auto. */
.j-page .j-body figure img { border-radius: 16px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.j-page .j-body figcaption {
  color: var(--j-ink-mute);
  font-size: 14px; text-align: center; margin-top: 14px;
}

/* ---- warm the accent blocks (were cold indigo surfaces) ---- */
.j-page .j-answer {
  background: var(--j-surface);
  border-image: linear-gradient(180deg, var(--j-gold), rgba(245, 194, 75, 0.2)) 1;
}
.j-page .j-answer p { color: var(--j-ink); font-size: 1.14rem; line-height: 1.6; }
.j-page .j-note {
  background: var(--j-surface); border-color: var(--j-line);
}
.j-page .j-note h3 { color: var(--j-gold); font-weight: 600; }
.j-page .j-note p { color: var(--j-ink-soft); }

/* red flags stay a warning colour — safety signal must not blend into the warm calm */
.j-page .j-flags li, .j-page .j-flags p { color: var(--j-ink-soft); }

.j-page .j-sources { border-top-color: var(--j-line); }
.j-page .j-sources li, .j-page .j-sources .j-src-type { color: var(--j-ink-mute); }
.j-page .j-sources h2 { color: var(--j-ink); }
.j-page .j-faq details { border-bottom-color: var(--j-line); }
.j-page .j-faq summary { color: var(--j-ink); }
.j-page .j-faq summary::after { color: var(--j-gold); }
.j-page .j-faq details p { color: var(--j-ink-soft); }
.j-page .j-disclaimer { background: var(--j-surface); border-color: var(--j-line); }
.j-page .j-disclaimer p { color: var(--j-ink-mute); }
.j-page .j-disclaimer strong { color: var(--j-ink-soft); }

/* index cards */
.j-page .j-card { background: var(--j-surface); border-color: var(--j-line); }
.j-page .j-card:hover { border-color: rgba(245, 194, 75, 0.35); }
.j-page .j-card__tag { color: var(--j-gold); }
.j-page .j-card__title { color: var(--j-ink); }
.j-page .j-card__dek { color: var(--j-ink-soft); }
.j-page .j-card__meta { color: var(--j-ink-mute); }
.j-page .j-filter { color: var(--j-ink-soft); border-color: var(--j-line); }
.j-page .j-filter[aria-pressed="true"] { color: var(--j-bg); background: var(--j-gold); border-color: var(--j-gold); }
.j-page .j-empty { border-color: var(--j-line); color: var(--j-ink-soft); }
.j-page .j-empty h2 { color: var(--j-ink); }

/* ---------- share control (article byline) ---------- */
.j-share { position: relative; margin-left: auto; }
.j-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--j-line, var(--an-border-default));
  background: var(--j-surface, var(--an-bg-card)); color: var(--j-ink, var(--an-text-primary));
  cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.j-share-btn:hover { border-color: var(--j-gold, var(--an-action-default)); }
.j-share-btn svg { width: 17px; height: 17px; }

.j-share-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 30;
  min-width: 210px; padding: 8px;
  background: var(--j-surface, #fff);
  border: 1px solid var(--j-line, var(--an-border-default));
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(33, 26, 18, 0.16);
}
.j-share-menu[hidden] { display: none; }
.j-share-item {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 10px;
  background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--j-ink, var(--an-text-primary));
  text-decoration: none;
}
.j-share-item svg { width: 20px; height: 20px; flex: none; }
/* .j-share specificity (0,2,0) beats the base .j-byline a (0,1,1) underline */
.j-share .j-share-item { text-decoration: none; }
.j-share-item:hover { background: rgba(33, 26, 18, 0.05); }
.j-share-item:focus-visible { outline: 2px solid var(--j-gold, var(--an-focus-ring)); outline-offset: -2px; }

/* copied-confirmation toast */
.j-share-toast {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 31;
  padding: 9px 14px; border-radius: 10px;
  background: var(--j-ink, #211A12); color: var(--j-bg, #fff);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.j-share-toast.show { opacity: 1; transform: translateY(0); }

/* ---------- research / journal strip (dive-in entry to the blog) ---------- */
.journal-strip {
  display: block;
  background: var(--an-sectionBlock-bold-bg);
  transition: filter 0.18s ease;
}
.journal-strip:hover { filter: brightness(1.05); }
.journal-strip .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: clamp(22px, 3.2vw, 34px);
}
.js-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* White, not ink: the strip's left end is saturated blue, where near-black text goes muddy.
   Uses the bold block's own emphasis token, so it stays inside the design system. */
.js-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--an-sectionBlock-bold-fg-emphasis); opacity: 0.82; font-weight: 700; }
.js-title { font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--an-sectionBlock-bold-fg-emphasis); font-weight: 600; }
/* Ink, unlike the white text on the left: this sits on the gradient's warm end, where
   white drops to ~1.6:1 while ink reads at ~11:1 (OBSERVATIONS #10). Each end of the
   strip takes the colour its own background can carry. */
.js-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--an-sectionBlock-bold-fg); white-space: nowrap; }
.js-cta svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  .journal-strip .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--an-border-subtle); padding: 44px 0 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.site-footer .logo { height: 30px; width: auto; }
.site-footer .tag { font-size: 13px; color: var(--an-text-muted); }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { font-size: 13.5px; color: var(--an-text-secondary); }
.site-footer nav a:hover { color: var(--an-text-primary); }
.site-footer .fine { width: 100%; font-size: 12px; color: var(--an-text-muted); line-height: 1.6; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen, .btn { transition: none; }
}

/* ---------- the physio leaflet (for-physios.html) ----------
   One A4 sheet. The same markup prints to assets/andama-for-physios.pdf. */
.leaflet-page { display: flex; flex-direction: column; align-items: center; padding: 32px 16px 40px; }
.leaflet {
  width: 100%; max-width: 780px;
  background: var(--an-bg-page);
  border: 1px solid var(--an-border-default);
  border-radius: 24px;
  padding: 40px 44px 32px;
}
.lf-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.lf-logo { height: 30px; width: auto; }
.lf-tag { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--an-text-muted); font-weight: 600; }
.lf-h { font-size: clamp(2rem, 6vw, 2.5rem); line-height: 1.08; font-weight: 600; }
.lf-gold { color: var(--an-text-emphasis); font-weight: 700; }
.lf-lead { font-size: 16px; color: var(--an-text-secondary); margin: 18px 0 24px; line-height: 1.55; }
.lf-keep { font-size: 17px; font-weight: 500; color: var(--an-text-primary); margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: var(--an-bg-raised); border-left: 3px solid var(--an-text-emphasis); }
/* four points, two by two; one column on phones */
.lf-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.lf-points li { display: flex; gap: 16px; padding-top: 18px; border-top: 1px solid var(--an-border-subtle); }
.lf-n { flex: none; font-size: 13px; font-weight: 700; color: var(--an-text-emphasis); padding-top: 2px; }
.lf-points strong { font-size: 16px; font-weight: 600; color: var(--an-text-primary); }
.lf-points p { font-size: 14px; color: var(--an-text-secondary); margin: 4px 0 0; line-height: 1.5; }
.lf-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--an-border-subtle); }
.lf-cta { font-size: 13px; color: var(--an-text-muted); }
.lf-go { display: block; font-size: 20px; font-weight: 600; color: var(--an-text-emphasis); margin-top: 2px; }
.lf-email { display: block; margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--an-text-primary); }
/* the QR sits on a white tile so it scans from the dark sheet; padding ≈ the 4-module quiet zone */
.lf-qr { flex: none; width: 80px; height: 80px; padding: 11px; border-radius: 10px; background: var(--an-text-on-action); box-sizing: content-box; }
.lf-actions { display: flex; gap: 10px; margin-top: 20px; }
@media (max-width: 640px) { .lf-points { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .leaflet { padding: 26px 20px 22px; } }

@page { size: A4; margin: 0; }
@media print {
  html, body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .leaflet-page { display: block; padding: 0; background: var(--an-bg-page); }
  .leaflet-page .page-wash, .lf-actions { display: none; }
  .leaflet { max-width: none; width: 210mm; height: 297mm; border: 0; border-radius: 0; padding: 18mm 18mm 14mm; display: flex; flex-direction: column; }
  .lf-foot { margin-top: auto; }
  .lf-logo { height: 34px; }
  .lf-tag { font-size: 13px; }
  .lf-head { margin-bottom: 32px; }
  .lf-h { font-size: 46px; }
  .lf-lead { font-size: 20px; margin: 20px 0 28px; }
  .lf-keep { font-size: 19px; margin: 0 0 28px; padding: 16px 20px; }
  .lf-points { grid-template-columns: 1fr 1fr; gap: 18px 36px; }
  .lf-points li { padding-top: 20px; }
  .lf-n { font-size: 15px; }
  .lf-points strong { font-size: 19px; }
  .lf-points p { font-size: 15.5px; margin-top: 6px; }
  .lf-cta { font-size: 15px; }
  .lf-go { font-size: 24px; }
  .lf-email { font-size: 18px; }
  .lf-qr { width: 104px; height: 104px; padding: 14px; }
}

/* ---------- cookie consent (assets/consent.js, #74) ----------
   Dark on every page (data-theme="dark" on the box itself, so the journal's light pages get
   the dark token values inside it). Bottom-left card on wide screens, a bottom sheet on phones;
   it never covers the whole page, so the demo phone stays usable behind it. */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; /* above the sticky header (50) */
  width: min(420px, calc(100vw - 32px));
  padding: 24px 24px 20px;
  border-radius: var(--an-radius-2xl);
  border: var(--an-borderWidth-hairline) solid var(--an-border-default);
  /* raised is a translucent tint — lay it on the page colour so nothing shows through */
  background: linear-gradient(var(--an-bg-raised), var(--an-bg-raised)), var(--an-bg-page);
  color: var(--an-text-primary);
  box-shadow: 0 24px 60px -12px var(--an-bg-overlay);
  font-size: 14px;
}
.consent[hidden], .consent [hidden] { display: none; }
/* the site's ghost button, pinned to its dark look here: the journal's light skin restyles
   .btn--ghost for its own pages, and that must not reach inside the dark banner */
.consent .btn--ghost { background: var(--an-bg-raised); border: var(--an-borderWidth-hairline) solid var(--an-border-default); color: var(--an-text-primary); }
.consent .btn--ghost:hover { background: var(--an-bg-raised); border-color: var(--an-border-strong); }
.consent-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: var(--an-radius-pill); background: none;
  color: var(--an-text-secondary); cursor: pointer;
}
.consent-close:hover { color: var(--an-text-primary); }
.consent-title { font-size: 1.15rem; margin: 0 36px 10px 0; outline: none; }
.consent-body { margin: 0; color: var(--an-text-secondary); line-height: 1.55; }
.consent-body a { color: var(--an-action-default); text-decoration: underline; text-underline-offset: 2px; }
.consent-opts { display: grid; gap: 10px; margin: 16px 0 0; }
.consent-actions { margin-top: 18px; }
.consent-opt { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.consent-opt input {
  width: var(--an-checkbox-size); height: var(--an-checkbox-size); margin: 0;
  accent-color: var(--an-checkbox-on-bg); cursor: pointer;
}
.consent-opt input:disabled { cursor: default; }
.consent-opt-name { font-weight: 600; }
.consent-opt-note { color: var(--an-text-muted); font-size: 12.5px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.consent-save {
  border: 0; background: none; padding: 8px 4px; margin-left: auto;
  font: inherit; font-weight: 600; color: var(--an-text-secondary); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.consent-save:hover { color: var(--an-text-primary); }
.consent button:focus-visible { outline: 2px solid var(--an-focus-ring); outline-offset: 2px; }
@media print { .consent { display: none; } }
@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
  .consent-title { font-size: 1.02rem; margin-bottom: 6px; }
  .consent-body { font-size: 13px; line-height: 1.5; }
  .consent-actions { margin-top: 14px; }
  .consent-actions .btn { flex: 1; justify-content: center; }
  .consent-save { flex-basis: 100%; margin: 0; text-align: center; }
}

/* footer: the legal line under the main links (Privacy · Terms · Cookies · Cookie settings) */
.site-footer .legal-line { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; }
.site-footer .legal-line a,
.site-footer .legal-line button {
  font: inherit; font-size: 12px; color: var(--an-text-muted);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.site-footer .legal-line a:hover,
.site-footer .legal-line button:hover { color: var(--an-text-primary); }
.j-page .site-footer .legal-line a, .j-page .site-footer .legal-line button { color: var(--j-ink-soft); }

/* /legal — the document index (legal.html), laid out like Reluna's legal centre:
   a big centred title, then large two-column cards with a diagonal arrow, no descriptions. */
.legal-page h1 { text-align: center; font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; margin: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 72px); }
.legal-grid { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.legal-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: clamp(120px, 14vw, 170px); padding: 0 clamp(24px, 4vw, 48px);
  border-radius: var(--an-radius-2xl);
  border: var(--an-borderWidth-hairline) solid var(--an-card-border); background: var(--an-card-bg);
  color: var(--an-text-primary); font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -0.01em;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.legal-card:hover { border-color: var(--an-border-strong); background: var(--an-bg-raised); transform: translateY(-2px); }
.legal-card-arrow { flex: none; width: clamp(26px, 3vw, 36px); height: auto; color: var(--an-text-secondary); transition: transform 0.18s ease, color 0.18s ease; }
.legal-card:hover .legal-card-arrow { color: var(--an-text-primary); transform: translate(2px, -2px); }
.legal-note { max-width: 68ch; margin: clamp(48px, 7vw, 80px) auto 0; padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.legal-note h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); scroll-margin-top: 110px; }
.legal-note p { color: var(--an-text-secondary); line-height: 1.65; margin-top: 14px; }
.legal-note a { color: var(--an-action-default); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .legal-grid { grid-template-columns: 1fr; } }

/* app-terms / app-privacy: "applies from launch" note at the top */
.j-body .doc-note { padding: 16px 18px; border-radius: var(--an-radius-lg); border: var(--an-borderWidth-hairline) solid var(--an-border-default); background: var(--an-bg-raised); font-size: 0.98rem; }

/* cookies.html — the table of what's stored */
.j-body .cookie-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.j-body .cookie-table th, .j-body .cookie-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: var(--an-borderWidth-hairline) solid var(--an-border-subtle); color: var(--an-text-secondary); }
.j-body .cookie-table th { color: var(--an-text-primary); font-weight: 600; }
@media (max-width: 620px) {
  .j-body .cookie-table, .j-body .cookie-table tbody, .j-body .cookie-table tr, .j-body .cookie-table td { display: block; }
  .j-body .cookie-table thead { display: none; }
  .j-body .cookie-table tr { padding: 10px 0; border-bottom: var(--an-borderWidth-hairline) solid var(--an-border-subtle); }
  .j-body .cookie-table td { border: 0; padding: 4px 0; }
  .j-body .cookie-table td::before { content: attr(data-label) ' — '; color: var(--an-text-primary); font-weight: 600; }
}

/* ---------- legal pages on white (legal, privacy, terms, cookies, app-*) ----------
   Ksenia 2026-10-28: "давай на белом", like Reluna's legal centre. The pages run
   data-theme="light", so every --an-* token is its light value; this layer only swaps the
   site's indigo wash and header/footer glass for white, and the cards for a soft grey. */
.l-page .page-wash { background: var(--an-bg-card); }
.l-page .site-header { background: color-mix(in srgb, var(--an-bg-card) 85%, transparent); }
.l-page .site-footer { background: var(--an-bg-canvas); }
.l-page .legal-card { background: var(--an-bg-canvas); border-color: transparent; }
.l-page .legal-card:hover { background: var(--an-bg-sunken); border-color: transparent; }
.l-page .j-body .doc-note { background: var(--an-bg-canvas); border-color: transparent; }
