/* Neutral Perspective — tokens and layout, from the design handoff.
   Colours, type and spacing are final per the handoff; the responsive rules
   below ~900px are the production behaviour the desktop-only prototype asked
   for, and the uploader/report styles reuse the same language. */

/* The original. Kept exactly as it was — it is one of the two looks a reader
   can choose, not a starting point that has been improved away. */
:root {
  --page: #FBFBFC;
  --alt: #F2F4F6;
  --border: #E3E7EB;
  --border-alt: #D8DDE3;
  --ink: #14171C;
  --ink-hover: #242932;
  --divider-dark: #2A2F37;
  --muted: #59626D;
  --muted-dark: #9AA3AD;
  --accent: #3C627F;
  /* Colours that were written as literals and so stayed light when the page
     went dark — the header being the visible one: a near-white bar with a
     white wordmark on it. */
  --header-bg: rgba(251, 251, 252, 0.88);
  --tint: #EDF1F5;
  --danger: #B3261E;
  --display: var(--sans);

  --sans: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /*
   * The radius of a box, in two steps.
   *
   * These were 10, 12, 14, 16, 18, 20 and 24 across the page — each chosen
   * sensibly on its own, and six of them visible at once as you scroll. That
   * reads as carelessness rather than variety.
   *
   * Two values, not one, and they are a scale rather than two opinions: a box
   * sitting inside another box takes the smaller one, because matching the
   * parent exactly makes the inner corner look wrong against it. Everything
   * standing on the page takes the larger.
   *
   * Not for controls. Pills, inputs and toggles keep their own shapes — they
   * are not boxes of content and should not read as one.
   */
  --box-radius: 14px;
  --box-radius-sm: 12px;

  --wrap: 1280px;
  --pad: 40px;
}

/*
 * Stones — the softer look, from the balanced-stones logo.
 *
 * Sage and clay rather than blue-grey, a serif display face, rounder shapes and
 * a green button in place of the near-black one. It is a different feel, not a
 * different site: the same markup, the same structure, so nothing here has to
 * be maintained twice.
 */
:root[data-theme="stones"] {
  --page: #FBF8EF;
  --alt: #EDEFE1;
  --border: #E4E2CE;
  --border-alt: #CFD2B8;
  --ink: #4A3A2A;
  --ink-hover: #2F241A;
  --divider-dark: #4A3A2A;
  --muted: #6E6552;
  --muted-dark: #A9A192;
  --accent: #7E9077;
  --header-bg: rgba(251, 248, 239, 0.9);
  --tint: #E3E7D4;
  --danger: #9A5B4A;
  --display: "Cormorant Garamond", Georgia, serif;
}

/* The display face carries most of the difference, so it is set where the page
   actually shouts: headlines and section titles. Body copy stays in the sans it
   already used, which keeps long paragraphs readable. */
:root[data-theme="stones"] .hero h1,
:root[data-theme="stones"] .section-title,
:root[data-theme="stones"] h2,
:root[data-theme="stones"] h3,
:root[data-theme="stones"] .box-title {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}
:root[data-theme="stones"] .hero h1 {
  font-size: 74px;
  line-height: 1.03;
}
/* Written with the breakpoint attached, because this selector outranks the
   plain .hero h1 in the mobile block below and would otherwise keep a 74px
   headline on a 360px screen — which is exactly what it did. */
@media (max-width: 900px) {
  :root[data-theme="stones"] .hero h1 { font-size: 40px; line-height: 1.08; }
}
@media (max-width: 520px) {
  :root[data-theme="stones"] .hero h1 { font-size: 34px; }
}
:root[data-theme="stones"] .eyebrow {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--muted-dark);
}

/* Softer shapes throughout, including the buttons, which are the loudest
   rectangles on the page. */
/*
 * Stones is the softer look, so its boxes are rounder.
 *
 * This used to name six selectors and set 24px on them, which is why the look
 * was visibly uneven: a card was 24 and the panel beside it was 18, the
 * example below it 20, the little points inside it 12. Moving the tokens
 * moves every box, including ones added later.
 */
:root[data-theme="stones"] {
  --box-radius: 24px;
  --box-radius-sm: 16px;
}
/* The mark comes from the logo artwork in this look, and it is square rather
   than the original's 256×229, so the box changes with it. */
:root[data-theme="stones"] .wordmark .dot {
  width: 26px;
  height: 26px;
  background-image: url("/assets/logo-stones.png");
}
:root[data-theme="stones"] .wordmark-dark .dot {
  width: 22px;
  height: 22px;
  background-image: url("/assets/logo-stones.png");
}

:root[data-theme="stones"] .pill-dark {
  background: var(--accent);
  color: #FBF8EF;
}
:root[data-theme="stones"] .pill-dark:hover {
  background: #6C7E66;
  color: #FBF8EF;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-left: 8px;
}
.theme-switch button {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--page);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

[hidden] { display: none !important; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ------------------------------------------------------------- primitives */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.section-title.narrow { max-width: 20ch; }
.section-title.narrower { max-width: 18ch; }

.body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
}
.body.wide { max-width: 56ch; }
.body strong { font-weight: 500; color: var(--ink); }

.pill {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.pill-lg { padding: 15px 28px; font-size: 15px; }

.pill-dark { background: var(--ink); color: var(--page); }
.pill-dark:hover { background: var(--ink-hover); color: var(--page); }

.pill-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.pill-outline:hover { background: var(--alt); color: var(--ink); }

.pill-light { background: var(--page); color: var(--ink); }
.pill-light:hover { background: var(--tint); color: var(--ink); }

.card {
  background: var(--page);
  border: 1px solid var(--border);
  padding: 32px;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.card .index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.photo {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--alt);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-hero { height: 560px; }
.photo-analysis { height: 480px; }
.photo-privacy { height: 520px; }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
/* The mark is a PNG with transparent edges, so it is sized by its own aspect
   ratio (256×229) rather than forced square — squaring it squashes the circle. */
.wordmark .dot {
  width: 26px;
  height: 23px;
  flex: none;
  background: url("/assets/logo.png") center / contain no-repeat;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.pill { color: var(--page); }

/* Sticky header offset for in-page anchors. */
#how, #export, #export-how, #example, #privacy, #faq, #start, #report, #top {
  scroll-margin-top: 88px;
}

/* ------------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 88px var(--pad) 96px;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: 60px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
  margin-bottom: 24px;
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  text-wrap: pretty;
  margin-bottom: 34px;
}
.buttons { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reassurance {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- sections */

.band {
  padding: 96px var(--pad);
  background: var(--alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band .section-title { margin-bottom: 56px; }
/*
 * The uploader now lives at the end of "how it works" rather than in a band
 * of its own two screens down, so the heading above it needs the same air a
 * section title has and a rule to separate it from the steps.
 */
/*
 * The way in, at the end of "how it works".
 *
 * A rule and some air separate it from the steps above, the way a section
 * title did before it became a button.
 */
.upload-cta {
  display: inline-flex;
  margin-top: 88px;
  margin-bottom: 28px;
}
.upload-rule { margin-top: 88px; border-top: 1px solid var(--border-alt); }
.band-faq { border-bottom: none; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
  padding: 104px var(--pad);
}
.split .section-title { margin-bottom: 24px; }
.split .body { margin-bottom: 32px; }

.lettered { border-top: 1px solid var(--border); }
/* Layout only. The padding, background and border come from .box — this
   rule used to carry all three, from when these were hairline-separated
   rows rather than boxes, and quietly overrode the component. */
.lettered .row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
}
.letter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}


/* ------------------------------------------------------ export walkthrough */

/* ------------------------------------------- alongside real counselling */

.alongside { padding: 0 var(--pad) 8px; }
.alongside-card {
  padding: 34px 40px;
  background: var(--alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.alongside-title {
  max-width: 32ch;
  margin-bottom: 14px;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.alongside-body {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.alongside-points {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  list-style: none;
}
.alongside-points li { position: relative; }
.alongside-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------- a sample of the report */

.sample {
  max-width: 800px;
  margin-top: 40px;
  padding: 30px 34px 26px;
  background: var(--page);
  border: 1px solid var(--border);
}
.sample-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.sample-tag {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.sample-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.sample-headline {
  margin-bottom: 26px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.015em;
}
.sample-section + .sample-section { margin-top: 22px; }
.sample-section-title {
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.sample-text { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.sample-foot {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-dark);
}

/* ------------------------------------------- why not do this yourself */

.compare-section { padding: 96px var(--pad); }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.compare-foot {
  max-width: 72ch;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* --------------------------------------------- the folded-away walkthrough */

.export-details {
  margin-top: 48px;
  background: var(--page);
  border: 1px solid var(--border);
}
.export-details > summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 32px;
  cursor: pointer;
  list-style: none;
}
.export-details > summary::-webkit-details-marker { display: none; }
.export-details > summary:hover .export-summary-title { color: var(--accent); }
.export-summary-text { display: grid; gap: 6px; }
.export-summary-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 150ms ease;
}
.export-summary-hint { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.export-summary-mark {
  position: relative;
  flex: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--alt);
}
/* A plus that loses its upright stroke on open, so it reads as a minus. */
.export-summary-mark::before,
.export-summary-mark::after {
  content: "";
  position: absolute;
  inset: 50% 10px;
  border-top: 2px solid var(--accent);
  transition: transform 180ms ease, opacity 180ms ease;
}
.export-summary-mark::after { transform: rotate(90deg); }
.export-details[open] .export-summary-mark::after {
  transform: rotate(0deg);
  opacity: 0;
}
.export-details-body {
  padding: 30px 32px 34px;
  border-top: 1px solid var(--border);
  animation: fade 180ms ease;
}
.export-details-body .body.wide { margin-bottom: 26px; }
.export-details-body .platform-toggle { margin-bottom: 34px; }

.platform-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.platform-toggle button {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--muted);
  transition: background-color 150ms ease, color 150ms ease;
}
.platform-toggle button[aria-selected="true"] {
  background: var(--ink);
  color: var(--page);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  animation: fade 150ms ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.card.step {
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-head { display: flex; align-items: center; gap: 10px; }
.badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--page);
  background: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.shot {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  margin-top: auto;
  background: var(--alt);
  overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- upload */

.band-upload {
  margin-bottom: 44px;
  background: var(--page);
  border: 1px solid var(--border);
  padding: 36px 40px;
}
.band-upload-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}
.upload-reassure {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 22ch;
  white-space: normal;
}
/* Open by default, so it needs no separating rule above it. */
.uploader { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 24px; }

/* The drop target is the main call to action on the page now. */
.dropzone { padding: 56px 24px; }
.dropzone-title { font-size: 18px; }
.band-upload h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.band-upload-head p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  text-wrap: pretty;
}
.band-upload-head .pill { white-space: nowrap; }

.uploader { margin-top: 32px; border-top: 1px solid var(--border); padding-top: 32px; }

.stage-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.stage-meta, .stage-hint { font-size: 14px; line-height: 1.6; color: var(--muted); }

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 24px;
  text-align: center;
  border: 1px dashed var(--border-alt);
  background: var(--alt);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.dropzone:hover, .dropzone.is-over {
  border-color: var(--accent);
  background: var(--tint);
}
.dropzone-title { font-size: 16px; font-weight: 500; }
.dropzone-hint { font-size: 14px; color: var(--muted); }

/*
 * Something that looks pressable inside the box.
 *
 * The whole label has always opened the picker, and nothing in it said so —
 * a dashed border reads as "a thing", not as "press me". Pointer events are
 * off so the click lands on the label either way, and it cannot become a
 * dead target inside a live one.
 */
.dropzone-action {
  margin-top: 6px;
  pointer-events: none;
}
.dropzone:hover .dropzone-action { background: var(--accent); }



.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 24px 0 28px;
}
fieldset { border: none; margin: 0; padding: 0; }
legend {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 0;
  margin-bottom: 12px;
}

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page);
  font-size: 14.5px;
  cursor: pointer;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) {
  background: var(--ink);
  color: var(--page);
  border-color: var(--ink);
}
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.dates { display: flex; gap: 12px; flex-wrap: wrap; }
.dates label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.dates input {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--page);
}

.stage-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.linkish {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish:hover { color: var(--ink); }

.stage-working { display: flex; align-items: center; gap: 18px; }
.spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--border-alt);
  border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* ------------------------------------------------- the wait, taken over */

/*
 * Reading a conversation takes about two minutes. That was previously a 22px
 * spinner in a card, which on a phone had usually scrolled out of sight by the
 * time the answer came back — so the page looked idle, and people pressed
 * things.
 *
 * Everything dims, nothing behind can be reached, and the panel says how long
 * it has been going. Colours come from the same tokens as the rest of the
 * page, so this belongs to whichever look is on.
 */
.takeover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: takeover-in 240ms ease both;
}
.takeover[hidden] { display: none; }
@keyframes takeover-in { from { opacity: 0; } }

/* Stops the page behind scrolling under the overlay on a phone. */
body.is-analysing { overflow: hidden; }

.takeover-panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 28px 30px;
  text-align: center;
  background: var(--page);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.28);
  animation: takeover-rise 300ms cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes takeover-rise { from { opacity: 0; transform: translateY(12px) scale(0.98); } }

.takeover-title { font-size: 17px; font-weight: 600; }
.takeover-hint {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 34ch;
}
.takeover-elapsed {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-height: 1em;
}

/*
 * Three stones, settling. The site's own mark, rather than a spinner that
 * could belong to anything — and slow on purpose: something turning quickly
 * reads as "nearly there", which for two minutes it is not.
 */
.cairn {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.cairn span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  animation: cairn-settle 1800ms ease-in-out infinite;
}
.cairn span:nth-child(1) { width: 46px; }
.cairn span:nth-child(2) { width: 34px; animation-delay: 200ms; }
.cairn span:nth-child(3) { width: 22px; animation-delay: 400ms; }
@keyframes cairn-settle {
  0%, 100% { opacity: 0.28; transform: translateY(0); }
  45%      { opacity: 1;    transform: translateY(-3px); }
}

/* The dimming and the panel still appear; only the movement stops. Somebody
   who has asked for less motion still needs to know the page is busy. */
@media (prefers-reduced-motion: reduce) {
  .takeover, .takeover-panel { animation: none; }
  .cairn span { animation: none; opacity: 0.75; }
}

.stage-error .stage-hint { margin-bottom: 16px; max-width: 60ch; }

/* ---------------------------------------------------------------- report */

.report { padding: 96px var(--pad) 40px; }
.report-head { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 40px; }
.report h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 26ch;
  margin: 12px 0 16px;
}
.report-summary { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 60ch; }

/* Chrome and type come from .box; only the space above it is this note's. */
.report-note { margin-top: 20px; }
.report-note.caution { border-color: var(--accent); background: var(--tint); color: var(--ink); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.stat .stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.stat .stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

.report-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.report-section { border-top: 1px solid var(--border-alt); padding-top: 24px; }
.report-section h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.report-section p { font-size: 15px; line-height: 1.65; color: var(--muted); }
.evidence { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.evidence li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.evidence li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
}

.try-block { margin-top: 48px; }
.try-block .eyebrow { margin-bottom: 18px; }
.try-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.try-card { background: var(--alt); border: 1px solid var(--border); padding: 28px; }
.try-card h4 { margin: 0 0 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.try-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.try-card p + p { margin-top: 10px; }

.strengths { margin-top: 40px; }
.strengths ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
/* Layout only — the bullet sits beside the words. */
.strengths li { display: flex; gap: 14px; align-items: flex-start; }
.strengths li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex: none;
}

/* Saving the report, given the report expires. Deliberately the only filled
   button on the page below the fold. */
.report-keep {
  margin-top: 48px;
  padding: 22px 26px;
  border: 1px solid var(--border-alt);
  background: var(--alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.report-keep .eyebrow { margin-bottom: 6px; }
/* Wraps to a column on a phone, where two pills side by side would each be
   too narrow for the words on them. */
.report-keep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .report-keep-actions { width: 100%; flex-direction: column; }
}
.report-keep-body {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52ch;
}

@media print {
  .report-keep { display: none !important; }
}

.report-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------- privacy */

.promises { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
/* Layout only — the bullet sits beside the words. */
.promises li { display: flex; gap: 14px; align-items: flex-start; }
.bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex: none;
}

/* ------------------------------------------------------------------- FAQ */

.faq-title { margin-bottom: 48px; }

/*
 * The questions are boxes, like everything else that holds a point.
 *
 * They were hairline rules while every other block of the same kind on the
 * page — the two accordions under "how it works", the one under privacy, the
 * points beside the pictures — was a box. Two ways of presenting the same
 * thing on one page reads as two designs, and the rules made this the one
 * section that looked unfinished.
 *
 * The grid keeps its two columns on a wide screen, but gains a row gap:
 * boxes need space between them where rules did not.
 */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
/*
 * The box: the one component every short piece of writing on this page sits
 * in.
 *
 * This is here because the alternative kept failing. The questions, the
 * lettered rows, the points beside the picture and the sentences under the
 * lead are the same object, and each was given its own rule on the day it
 * was built — four paddings and three body sizes, drifting apart every time
 * one of them was touched, and "the boxes look inconsistent" three times
 * over.
 *
 * There is no build step here, so there are no mixins in the Sass sense. The
 * vanilla equivalent is a component class: `.box` carries the chrome,
 * `.box-title` and `.box-body` carry the type, and a new box gets them by
 * being written with the class rather than by somebody remembering to add a
 * selector to a list. Feature classes keep only what is genuinely theirs —
 * the grid a row lays out on, the letter in its gutter.
 */
.box {
  padding: 20px 22px;
  background: var(--page);
  border: 1px solid var(--border);
}
.box-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.box-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/*
 * Which of the two radii a box gets, decided by the markup rather than by
 * hand.
 *
 * The scale was right and the assignment was not: .card and .sample were
 * sitting inside .export-details with the same 24px corner as their parent,
 * while .lettered .row stood on the page with the 16px one meant for a box
 * inside a box — so two identical-looking rows of boxes had different
 * corners, which is what kept looking wrong however many times the tokens
 * were checked.
 *
 * The list is written once and used twice. Anything standing on the page
 * takes the larger radius; the second rule is more specific, so anything
 * inside another box takes the smaller. Adding a box to the list is the
 * only thing anyone has to remember, and getting its tier wrong is no
 * longer possible.
 */
:is(.box, .card, .photo, .photo img, .steps img, .alongside-card, .sample, .export-details, .shot,
  .band-upload, .dropzone, .takeover-panel, .report-note, .strengths li,
  .report-keep, .promises li, .faq-item, .deeper-button, .deeper-body,
  .share, .share-preview, .try-card, .clinician-photo img, .doc-summary) {
  border-radius: var(--box-radius);
}
:is(.box, .card, .photo, .photo img, .steps img, .alongside-card, .sample, .export-details, .shot,
  .band-upload, .dropzone, .takeover-panel, .report-note, .strengths li,
  .report-keep, .promises li, .faq-item, .deeper-button, .deeper-body,
  .share, .share-preview, .try-card, .clinician-photo img, .doc-summary) :is(.box, .card, .photo, .photo img, .steps img, .alongside-card, .sample, .export-details, .shot,
  .band-upload, .dropzone, .takeover-panel, .report-note, .strengths li,
  .report-keep, .promises li, .faq-item, .deeper-button, .deeper-body,
  .share, .share-preview, .try-card, .clinician-photo img, .doc-summary) {
  border-radius: var(--box-radius-sm);
}

/* -------------------------------------------------- worth reading */

.resources { margin-top: 40px; display: grid; gap: 12px; }
.resources .eyebrow { margin-bottom: 4px; }
.resource-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 6px;
}
a.resource-title { color: var(--accent); }
a.resource-title:hover { text-decoration: underline; }
/* Why this one, for this reader — the sentence the model writes about them. */
.resource-why { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); margin-top: 8px; }

/* ---------------------------------------------------------------- footer */

footer {
  padding: 88px var(--pad) 56px;
  background: var(--ink);
  color: var(--page);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--divider-dark);
}
.footer-top h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 16px;
}
.footer-top p { font-size: 16.5px; line-height: 1.6; color: var(--muted-dark); max-width: 48ch; }
.footer-top .pill { white-space: nowrap; padding: 16px 32px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 32px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted-dark);
}
.wordmark-dark { color: var(--page); font-weight: 500; font-size: 13.5px; }
.wordmark-dark .dot { width: 22px; height: 20px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted-dark); }
.footer-links a:hover { color: var(--page); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .try-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }

  .site-header { padding: 14px var(--pad); gap: 10px; }
  .site-header nav { gap: 10px; font-size: 13px; flex-wrap: nowrap; }
  .site-header nav a:not(.pill) { display: none; }

  /* Two switches and a button do not fit beside the wordmark on a phone. The
     look switch is the one that can wait — it stays reachable, just smaller. */
  .theme-switch { margin-left: 0; }
  .theme-switch button { padding: 5px 8px; font-size: 10px; letter-spacing: 0.02em; }
  .lang-switch button { padding: 5px 7px; }

  #how, #export, #export-how, #example, #privacy, #faq, #start, #report, #top {
    scroll-margin-top: 72px;
  }

  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 56px var(--pad) 64px;
  }
  /* Photo below the text on every two-column block. */
  .hero .photo, .split .photo { order: 2; }
  .split > div:not(.photo) { order: 1; }

  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }
  .photo-hero { height: 320px; }
  .photo-analysis, .photo-privacy { height: 280px; }

  .band { padding: 64px var(--pad); }
  .upload-title { margin-top: 56px; padding-top: 48px; }
  .band .section-title { margin-bottom: 36px; }
  .section-title { font-size: 28px; }
  .section-title.narrow, .section-title.narrower { max-width: none; }

  .grid-3, .steps, .try-grid, .fields, .report-sections,
  .compare-grid { grid-template-columns: minmax(0, 1fr); }

  .compare-section { padding: 64px var(--pad); }
  .alongside-card { padding: 28px 24px; }
  .alongside-title { font-size: 22px; }
  .sample { padding: 24px 22px 22px; }
  .sample-head { flex-wrap: wrap; gap: 10px; }
  .sample-headline { font-size: 19px; }
  .export-details > summary { padding: 22px 22px; gap: 16px; }
  .export-summary-title { font-size: 17px; }
  .export-details-body { padding: 24px 22px 28px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  /* The toggle moves under the section heading. */
  .export-head { display: block; margin-bottom: 28px; }
  .export-head .body { margin-bottom: 24px; }
  .platform-toggle { display: inline-flex; }

  .band-upload { padding: 24px; }
  .band-upload-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .band-upload-head .pill { justify-self: start; }

  .report { padding: 64px var(--pad) 24px; }
  .report h2 { font-size: 26px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .footer-top h2 { font-size: 30px; max-width: none; }
  footer { padding: 56px var(--pad) 40px; }
}

@media (max-width: 520px) {
  /* At this width the wordmark, both switches and the call to action cannot
     share a line. The header wraps rather than overflowing sideways. */
  .site-header { flex-wrap: wrap; row-gap: 10px; }
  .site-header nav { width: 100%; justify-content: flex-end; }

  .stat-strip { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .reassurance { gap: 8px 20px; }
  .buttons .pill { width: 100%; text-align: center; }
}



/* ------------------------------------------------------- language switch */

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--page);
}
.lang-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.lang-switch .flag { font-size: 14px; line-height: 1; }

@media (max-width: 900px) {
  .lang-switch .lang-code { display: none; }
  .lang-switch button { padding: 5px 8px; }
}


/* ------------------------------------------------------- deeper sections */

.deeper-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  padding: 16px 20px;
  text-align: left;
  font-family: inherit;
  background: var(--page);
  border: 1px solid var(--border-alt);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.deeper-button:hover {
  border-color: var(--accent);
  background: var(--tint);
}
.deeper-button:active { transform: translateY(1px); }

.deeper-button-text { display: grid; gap: 3px; }
.deeper-button-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.deeper-button-hint {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.deeper-button-arrow {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--page);
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: transform 140ms ease;
}
.deeper-button:hover .deeper-button-arrow { transform: translateX(3px); }

.deeper-button.is-busy { cursor: progress; }
.deeper-button.is-busy .deeper-button-arrow {
  animation: spin 900ms linear infinite;
  background: var(--border-alt);
  color: transparent;
  border: 2px solid var(--border-alt);
  border-top-color: var(--accent);
}
.deeper-button[disabled] { opacity: 0.75; }

.deeper-body {
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--alt);
  border: 1px solid var(--border);
}
.deeper-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.deeper-body h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.deeper-overview {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 20px;
}
.deeper-finding { border-top: 1px solid var(--border-alt); padding-top: 16px; margin-top: 16px; }
.deeper-finding h5 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.deeper-finding p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.deeper-close {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-alt);
}
.deeper-close p:last-child { font-size: 14.5px; line-height: 1.6; }
.deeper-error { font-size: 13.5px; color: var(--danger); margin-top: 12px; }
.deleted-note { font-size: 13px; color: var(--accent); }

/* ------------------------------------------------------------------ share */

.share {
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--border);
  background: var(--alt);
}
.share-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 22px;
}
.share-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.share-field { display: grid; gap: 8px; flex: 1 1 260px; }
.share-field span { font-size: 13px; font-weight: 500; color: var(--muted); }
.share-number {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--page);
  color: var(--ink);
  width: 100%;
}
.share-problem { font-size: 13.5px; color: var(--danger); margin-top: 10px; }
.share-consent {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.share-details { margin-top: 20px; }
.share-details summary {
  font-size: 13.5px;
  color: var(--accent);
  cursor: pointer;
  margin-bottom: 12px;
}
.share-preview {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--page);
  border: 1px solid var(--border);
  padding: 16px 18px;
  color: var(--ink);
}
.share-pdf {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.share-pdf-hint { font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 44ch; }

/* ------------------------------------------------------------ print / PDF */

/* The cover and the closing note exist only on paper. */
.print-cover, .print-disclaimer { display: none; }

@page {
  size: A4;
  margin: 18mm 16mm 16mm;
}

@media print {
  /* Everything that is not the report is scaffolding for the screen. */
  .site-header,
  footer,
  .hero,
  .split,
  .band,
  .band-faq,
  .lang-switch,
  .band-upload,
  .uploader,
  .report-foot {
    display: none !important;
  }

  html { font-size: 10.5pt; }

  body {
    background: #fff;
    color: #14171C;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report {
    display: block !important;
    padding: 0;
    max-width: none;
  }

  /* ---- Letterhead ---- */

  .print-cover {
    display: block;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 14pt;
    margin-bottom: 22pt;
  }
  .print-brand {
    display: flex;
    align-items: center;
    gap: 7pt;
    font-size: 10pt;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20pt;
  }
  .print-brand .dot {
    width: 16pt;
    height: 14.3pt;
    flex: none;
    background: url("/assets/logo.png") center / contain no-repeat;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .print-confidential {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 7.5pt;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .print-doc-title {
    font-size: 26pt;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 600;
    margin: 0 0 16pt;
  }
  .print-meta {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 5pt 10pt;
    margin: 0;
    font-size: 9pt;
  }
  .print-meta dt {
    font-family: var(--mono);
    font-size: 7.5pt;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    align-self: baseline;
  }
  .print-meta dd { margin: 0; font-weight: 500; }

  /* ---- Headline and summary ---- */

  .report-head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 18pt;
    break-after: avoid;
  }
  .report-head .eyebrow { display: none; }
  .report h2 {
    font-size: 16pt;
    line-height: 1.25;
    max-width: none;
    margin: 0 0 10pt;
  }
  .report-summary {
    font-size: 10.5pt;
    line-height: 1.6;
    color: var(--ink);
    max-width: none;
  }
  .report-note {
    background: #F2F4F6;
    border: 1px solid var(--border-alt);
    font-size: 9pt;
    padding: 8pt 10pt;
    break-inside: avoid;
  }
  .report-note.caution {
    border-left: 3pt solid var(--accent);
    background: #EDF1F5;
  }

  /* ---- Figures ---- */

  .stat-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: 10pt;
    padding: 10pt 0;
    border-top: 1px solid var(--border-alt);
    border-bottom: 1px solid var(--border-alt);
    margin-bottom: 20pt;
    break-inside: avoid;
  }
  .stat .stat-value { font-size: 17pt; }
  .stat .stat-label { font-size: 8pt; }

  /* ---- Sections ---- */

  .report-sections { display: block; }
  .report-section {
    break-inside: avoid;
    border-top: 1px solid var(--border-alt);
    padding: 12pt 0 4pt;
  }
  .report-section h3 {
    font-size: 12pt;
    margin-bottom: 6pt;
    break-after: avoid;
  }
  .report-section p { font-size: 10pt; line-height: 1.55; color: var(--ink); }

  /* Evidence reads as pulled quotations, not bullet points. */
  .evidence { margin-top: 9pt; display: block; }
  .evidence li {
    display: block;
    border-left: 2pt solid var(--accent);
    padding: 2pt 0 2pt 9pt;
    margin-bottom: 6pt;
    font-size: 9pt;
    line-height: 1.5;
    color: var(--muted);
    break-inside: avoid;
  }
  .evidence li::before { display: none; }

  /* ---- Suggestions and strengths ---- */

  .try-block { margin-top: 20pt; break-inside: avoid-page; }
  .try-block .eyebrow {
    font-size: 8pt;
    color: var(--ink);
    margin-bottom: 10pt;
  }
  .try-grid { grid-template-columns: 1fr; gap: 8pt; }
  .try-card {
    background: #F7F8F9;
    border: 1px solid var(--border-alt);
    padding: 10pt 12pt;
    break-inside: avoid;
  }
  .try-card h4 { font-size: 10.5pt; margin-bottom: 4pt; }
  .try-card p { font-size: 9pt; line-height: 1.5; }

  .strengths { margin-top: 18pt; break-inside: avoid; }
  .strengths .eyebrow { font-size: 8pt; color: var(--ink); }
  .strengths li {
    border: none;
    border-top: 1px solid var(--border-alt);
    padding: 7pt 0;
    font-size: 9.5pt;
  }

  /* ---- Closing note ---- */

  .deeper-button, .deleted-note, .share { display: none !important; }

  /* Kept in the printed copy, unlike the button above it. Saving now expands
     every section first, so a section without its longer read is one that
     could not be written — and a PDF that silently drops it looks complete
     when it is not. */
  .deeper-error {
    font-size: 9pt;
    font-style: italic;
    color: #555;
    margin-top: 6pt;
  }

  .deeper-body {
    background: #fff;
    border: none;
    border-left: 2pt solid var(--accent);
    padding: 4pt 0 4pt 12pt;
    margin-top: 12pt;
    break-inside: auto;
  }
  .deeper-label {
    font-size: 7.5pt;
    letter-spacing: 0.09em;
    margin-bottom: 5pt;
  }
  .deeper-body h4 { font-size: 11pt; margin-bottom: 4pt; break-after: avoid; }
  .deeper-overview { font-size: 9.5pt; line-height: 1.5; margin-bottom: 10pt; }
  .deeper-finding {
    border-top: 1px solid var(--border-alt);
    padding-top: 8pt;
    margin-top: 8pt;
    break-inside: avoid;
  }
  .deeper-finding h5 { font-size: 10pt; margin-bottom: 3pt; break-after: avoid; }
  .deeper-finding p { font-size: 9.5pt; line-height: 1.5; }
  .deeper-close { margin-top: 9pt; padding-top: 7pt; break-inside: avoid; }
  .deeper-close p:last-child { font-size: 9.5pt; }

  /* A section plus its expansion is often longer than a page; let it flow but
     keep each finding whole. */
  .report-section { break-inside: auto; }

  .print-disclaimer {
    display: block;
    margin-top: 22pt;
    padding-top: 8pt;
    border-top: 1px solid var(--border-alt);
    font-size: 8pt;
    line-height: 1.5;
    color: var(--muted);
  }

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


/* ------------------------------------------------------------- clinician */

.band-clinician { background: var(--page); border-bottom: none; }

.clinician {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.clinician-photo { margin: 0; }
.clinician-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--alt);
}
.clinician-body .section-title { margin-bottom: 10px; }
.clinician-credentials {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 20px;
}
.clinician-body .body { margin-bottom: 20px; }
.clinician-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--border);
  max-width: 56ch;
}

@media (max-width: 900px) {
  .clinician { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .clinician-photo { max-width: 220px; }
}

/* ------------------------------------------ several exports in one reading */

/* Each uploaded file gets its own "which of these is you", because nothing in
   the files connects a name in one to a name in another. */
.source-row + .source-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.source-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* The thread question sits above the name question for the same source, so the
   two read in the order they have to be answered: which conversation, then who
   in it is you. */
.source-threads {
  margin: 2px 0 14px;
}
.source-threads .source-label {
  margin-bottom: 8px;
}
.source-kind {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.source-meta {
  font-size: 13px;
  color: var(--muted-dark);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------- long-form pages */
/* The privacy policy and the app guide: one column, read top to bottom.
   Both pages use these; nothing here is specific to either. */

/* A page to be read straight down rather than scanned, so it drops the wide
   grid for one narrow column. `.wrap` still centres it; the reading measure
   comes from max-width here. */
.doc {
  max-width: 74ch;
  padding: 72px var(--pad) 96px;
}

/* A flex column gives its children min-width:auto, so one wide table sets the
   width of the whole document and the page scrolls sideways on a phone. The
   scroller below can only do its job if its parents are allowed to be narrower
   than it. */
.doc-body { display: flex; flex-direction: column; gap: 52px; min-width: 0; }
.doc-body > *, .doc section > * { min-width: 0; }

.doc-head { display: flex; flex-direction: column; gap: 18px; }
.doc-head .eyebrow { margin-bottom: 0; }
.doc-head h1 {
  font-size: 40px;
  line-height: 1.14;
  letter-spacing: -0.022em;
  font-weight: 600;
  text-wrap: balance;
}
.doc-head .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.doc-date {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-dark);
}

/* The summary is the part most people will actually read, so it is given the
   weight of a card rather than being folded into the prose. */
.doc-summary {
  background: var(--alt);
  border: 1px solid var(--border);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.doc-summary h2 { font-size: 19px; letter-spacing: -0.01em; font-weight: 600; }

.doc section { display: flex; flex-direction: column; gap: 16px; }
.doc h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
}
.doc p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.doc strong { font-weight: 500; color: var(--ink); }
.doc em { font-style: normal; font-weight: 500; color: var(--ink); }
.doc code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}
.doc ul, .doc ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
}
.doc li::marker { color: var(--border-alt); }
.doc-summary li::marker { color: var(--accent); }

.doc-table-scroll { overflow-x: auto; min-width: 0; }
.doc-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.55;
  text-align: left;
}
.doc-table th {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--accent);
  padding: 0 18px 10px 0;
  border-bottom: 1px solid var(--border-alt);
  white-space: nowrap;
}
.doc-table td {
  padding: 14px 18px 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.doc-table tr td:first-child { color: var(--ink); font-weight: 500; }
.doc-table td:last-child, .doc-table th:last-child { padding-right: 0; }

.doc-close {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.doc-note { font-size: 14.5px; color: var(--muted-dark); }

/* This page has no call to action above it, so the footer is only its base. */
.footer-bottom-only { padding-top: 0; }

@media (max-width: 900px) {
  .doc { padding: 44px var(--pad) 64px; }
  .doc-body { gap: 40px; }
  .doc-head h1 { font-size: 31px; }
  .doc-summary { padding: 24px 22px; }
}

/* ------------------------------------------------------------------ motion */

/*
 * Blocks arrive as you reach them, and the photographs drift.
 *
 * Every rule here is behind `html.motion`, which motion.js adds only when the
 * reader has not asked for less movement. Without that class — script blocked,
 * failed, or reduced motion — nothing below applies and the page is the page.
 * That is the point: content must never be hidden by a stylesheet waiting for a
 * script to un-hide it.
 *
 * The two looks move differently, which is the same principle as the words and
 * the voice: Stones travels further and takes longer, Original is brisk.
 */
.motion {
  --reveal-shift: 14px;
  --reveal-time: 620ms;
  --reveal-stagger: 50ms;
  --reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
.motion[data-theme="stones"] {
  --reveal-shift: 20px;
  --reveal-time: 900ms;
  --reveal-stagger: 70ms;
}

.motion [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-shift), 0);
  transition:
    opacity var(--reveal-time) var(--reveal-ease),
    transform var(--reveal-time) var(--reveal-ease);
  transition-delay: calc(var(--reveal-index, 0) * var(--reveal-stagger));
}
.motion [data-reveal="in"] {
  opacity: 1;
  transform: none;
}

/*
 * The picture panels fade without moving, because their transform belongs to
 * the drift in motion.js. Two rules animating one transform is how an element
 * ends up jumping between two ideas of where it should be.
 */
.motion [data-fade] {
  opacity: 0;
  transition: opacity var(--reveal-time) var(--reveal-ease);
}
.motion [data-fade="in"] { opacity: 1; }
.motion .photo { will-change: transform; }

/* A reader who changes their mind mid-visit gets the page, not the animation. */
@media (prefers-reduced-motion: reduce) {
  .motion [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motion [data-fade] { opacity: 1; transition: none; }
  .motion .photo { transform: none !important; }
}

/* Nothing half-arrived on paper. */
@media print {
  .motion [data-reveal],
  .motion [data-fade] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/*
 * The points in the first card, as boxes.
 *
 * They were a bulleted list, and the paragraph above them carried three
 * separate claims in one run of prose — which reads as one idea rather than
 * three. Each sentence now stands in its own box beside the points that were
 * already there, so the eye can take them one at a time.
 */
.alongside-points {
  gap: 12px;
  margin-top: 24px;
}

/* The bullet dot belonged to a list; a box does not need one pointing at it. */
.alongside-points li::before { content: none; }

/* The way on from the three steps. Without it the button at the top of the page
   leads to an explanation and stops there. */
.how-start { margin-top: 26px; }

/* The later sentences of the lead, as points. Same shape as the ones in the
   first card, because they are the same kind of thing. */
.lead-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.lead-points:empty { display: none; }


/*
 * The lettered rows in "what comes back", as boxes.
 *
 * They were rows separated by hairlines while the same kind of content in the
 * first card sat in boxes — the same thing looking like two different things
 * depending on where you met it.
 */
.lettered { display: grid; gap: 12px; }

/*
 * A folded example needs less room around it.
 *
 * The section carries 96px of padding top and bottom, which is right when it
 * holds a page of report. Folded away it is two lines tall, and the same
 * padding either side reads as a hole in the page — nearly 200px of nothing
 * between it and the upload box below.
 */
#example:has(.sample-fold:not([open])) {
  padding-top: 64px;
  padding-bottom: 40px;
}


.alongside-points > li::before { content: none; }
