/*
 * lethelive.com — one stylesheet for every page.
 *
 * Composition, measures and type scale follow the approved homepage direction
 * (references/pr/website/lethe-home-reference.html). Colours are the
 * application's own tokens (src/shared/theme/colors.ts): brand violet #8B5CF6,
 * pink #EC4899 and amber #F5A623, which run violet → pink → amber, left to
 * right, wherever a gradient is an edge or a fill.
 *
 * Type is the platform's system face, deliberately: the reference named Inter
 * but never loaded it, so what was approved on a Mac was SF Pro — which is also
 * what the application itself uses. No web font is fetched.
 *
 * Motion follows the application: a press scales to 0.96 in 120 ms
 * (PressableScale, motion.interaction.press); hover effects exist only on
 * devices that can hover; everything decorative stops for
 * prefers-reduced-motion.
 */

@property --fill {
  syntax: '<color>';
  inherits: false;
  initial-value: #0b0b0f;
}

@property --gx {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

@property --gy {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

:root {
  color-scheme: dark;

  --bg: #08070c;
  --bg-raised: #101017;
  --line: #ffffff14;
  --text: #f7f5fa;
  --text-soft: #c4bfca;
  --text-muted: #aaa5b1;
  --text-faint: #87808e;

  --violet: #8b5cf6;
  --pink: #ec4899;
  --amber: #f5a623;
  /* Edges: the app's own stops, in the app's own order. */
  --brand-edge: linear-gradient(90deg, var(--violet), var(--pink), var(--amber));
  /* The headline keeps the reference's warm-to-cool run. */
  --brand-text: linear-gradient(90deg, var(--amber), var(--pink) 53%, var(--violet));

  /*
   * Fills that carry white text. The same three hues, deeper and more
   * saturated, so white holds at least 4.5:1 at every point of the gradient —
   * the bright amber would give 2.0:1.
   */
  --deep-violet: #7c3aed;
  --deep-pink: #cf2270;
  --deep-amber: #b45309;
  --brand-fill: linear-gradient(90deg, var(--deep-violet), var(--deep-pink), var(--deep-amber));

  --accent-soft: #d5a9ee;
  --accent-line: #a247dd;
  --focus: #f7f5fa;

  --header-full: 84px;
  --header-compact: 64px;
  --header: var(--header-full);

  --press-in: 120ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --press-out: 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --ease: 250ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

/* Set by site.js once the page has scrolled. */
:root.is-scrolled {
  --header: var(--header-compact);
}

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

html {
  scroll-behavior: smooth;
  /* An anchor lands below the fixed header, which is compact by then. */
  scroll-padding-top: calc(var(--header-compact) + 20px);
}

body {
  margin: 0;
  padding-top: var(--header-full);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #8b5cf64d;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--bg-raised);
  border-radius: 8px;
}

.wrap {
  width: min(1180px, calc(100% - 56px));
  margin: auto;
}

/* Header ----------------------------------------------------------------- */

/*
 * Fixed, and glass across the full width of the screen; the content keeps the
 * page's container. Once the page scrolls, the bar tightens and its hairline
 * moves from under the content to the full width.
 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: #08070ca8;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition:
    background-color var(--ease),
    border-color var(--ease);
}

:root.is-scrolled .site-header {
  background: #08070cc7;
  border-bottom-color: var(--line);
}

.site-header__inner {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ffffff12;
  transition:
    height var(--ease),
    border-color var(--ease);
}

:root.is-scrolled .site-header__inner {
  border-bottom-color: transparent;
}

/* The application's own wordmark, cropped to its letters. */
.logo {
  display: inline-flex;
  line-height: 0;
  border-radius: 6px;
  transition:
    transform var(--press-out),
    opacity var(--press-out);
}

.logo img {
  width: 124px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #bfb9c8;
  font-size: 14px;
}

/* A thin brand line that grows from the centre on hover. */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  transition:
    color var(--ease),
    transform var(--press-out),
    opacity var(--press-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-edge);
  transition:
    left 0.4s ease,
    width 0.4s ease;
}

.nav-link[aria-current='page'] {
  color: var(--text);
}

.nav-link[aria-current='page']::after {
  left: 0;
  width: 100%;
}

/*
 * Beta access — Button / Secondary from the application: the page's colour
 * inside a thin brand stroke. On hover the brand fill rises from the bottom
 * behind the label, which stays white on the deep fill.
 */
.secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-block;
  color: var(--text);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  background:
    linear-gradient(#0b0b0f, #0b0b0f) padding-box,
    var(--brand-edge) border-box;
  transition: transform var(--press-out);
}

.secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--brand-fill);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Buttons and quiet links ------------------------------------------------ */

/*
 * The primary call to action: white on the deep brand fill, violet → pink →
 * amber. The fill is twice the button's width and mirrors itself
 * (violet · pink · amber · pink · violet), so sliding it by half reverses the
 * order of the colours for real — amber comes left, violet goes right — in one
 * continuous movement.
 */
.button {
  display: inline-block;
  color: #fff;
  background-image: linear-gradient(
    90deg,
    var(--deep-violet) 0%,
    var(--deep-pink) 25%,
    var(--deep-amber) 50%,
    var(--deep-pink) 75%,
    var(--deep-violet) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 0;
  border-radius: 13px;
  padding: 15px 22px;
  font-weight: 650;
  box-shadow: 0 14px 38px #8b2a8c38;
  transition:
    background-position 0.5s ease,
    box-shadow var(--ease),
    transform var(--press-out);
}

/*
 * The violet-underlined text link. The line is two layers of background: the
 * resting violet, and amber on top of it at zero width. On hover the amber
 * runs along the line from the left and stays; on leaving it runs back just as
 * smoothly. Only the line changes — never the link's background — and being a
 * background it adds nothing to the line box, so no text moves.
 */
.quiet-link,
.doc a:not(.button) {
  --line-rest: #997aab;
  background-image:
    linear-gradient(var(--amber), var(--amber)), linear-gradient(var(--line-rest), var(--line-rest));
  background-size:
    0% 1px,
    100% 1px;
  background-position:
    left bottom,
    left bottom;
  background-repeat: no-repeat;
  text-decoration: none;
  transition:
    background-size 0.3s ease-in-out,
    color var(--ease),
    transform var(--press-out),
    opacity var(--press-out);
}

.quiet-link {
  display: inline-block;
  color: #ded9e5;
  font-size: 15px;
  padding: 5px 0;
}

/* Press: a short push, as in the application. Everywhere, touch included. */
.button:active,
.secondary:active {
  transform: scale(0.96);
  transition-duration: 120ms;
}

/* Every link that is its own box pushes in, like a text action in the app. */
.logo:active,
.quiet-link:active,
.nav-link:active,
.site-footer__links a:active,
.doc .toc a:active,
.doc .toc-mobile a:active {
  transform: scale(0.96);
  opacity: 0.6;
  transition-duration: 120ms;
}

/*
 * A link inside a sentence only dims: scaling an inline box would need it to
 * become a block, which would stop it wrapping and move the words around it.
 */
.doc__body p a:active,
.doc__body li a:active {
  opacity: 0.6;
  transition-duration: 120ms;
}

/* Hover: only where there is a pointer that can hover. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--text);
  }

  .nav-link:hover::after {
    left: 0;
    width: 100%;
  }

  .secondary:hover::before {
    transform: scaleY(1);
  }

  .button:hover {
    background-position: 100% 0;
    box-shadow: 0 16px 44px #b4530938;
  }

  /* Every violet-underlined text link: the line turns amber, the text stays
     light. */
  .quiet-link:hover {
    color: #fff;
  }

  .quiet-link:hover,
  .doc a:not(.button):hover {
    background-size:
      100% 1px,
      100% 1px;
  }

  .site-footer__links a:hover::after {
    left: 0;
    width: 100%;
  }

  .doc .toc a:hover,
  .doc .toc-mobile a:hover {
    color: var(--text);
  }
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  /* The lights reach past the page's sides; clip them there, where the edge is
     the screen's own, and leave them free vertically. */
  overflow-x: clip;
  background:
    radial-gradient(ellipse 43% 42% at 76% 43%, #8b5cf626, transparent 85%),
    radial-gradient(ellipse 40% 34% at 88% 30%, #f5a6231f, transparent 90%), var(--bg);
}

.hero__inner {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 30px;
}

.hero__copy {
  padding: 60px 0 90px;
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
  font-weight: 650;
  margin: 0 0 28px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--pink));
  vertical-align: middle;
  margin-right: 12px;
}

.hero h1 {
  font-size: clamp(47px, 5.3vw, 74px);
  line-height: 1.045;
  letter-spacing: -0.055em;
  max-width: 680px;
  margin: 0 0 27px;
  font-weight: 740;
}

.gradient-text {
  background: var(--brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 19px;
  line-height: 1.58;
  color: var(--text-soft);
  max-width: 550px;
  margin: 0 0 34px;
}

.actions {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.availability {
  color: #a9a2af;
  margin: 18px 0 0;
  font-size: 13px;
}

/* The light behind the phone -------------------------------------------- */

.visual {
  height: 640px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * One box around the phone, faded out by a radial mask, so however far a
 * light drifts it dissolves before any edge — its own or the section's.
 */
.glows {
  position: absolute;
  inset: -12% -22% -6%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/*
 * Each light is a radial gradient that is fully transparent well inside its own
 * box, so no edge is ever drawn, and it moves on three independent axes —
 * across, up and down, and brightness with size — each swinging back and forth
 * on its own smooth curve with its own period. The periods share no rhythm, so
 * the three never line up again: the light wanders rather than loops, and
 * nothing is ever seen jumping back to a start. No blur filter; it would
 * repaint every frame.
 */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  translate: var(--gx) var(--gy);
  will-change: translate, scale, opacity;
  animation:
    glow-x var(--tx) ease-in-out infinite alternate,
    glow-y var(--ty) ease-in-out infinite alternate,
    glow-pulse var(--tp) ease-in-out infinite alternate;
}

@keyframes glow-x {
  from {
    --gx: calc(var(--ax) * -1);
  }
  to {
    --gx: var(--ax);
  }
}

@keyframes glow-y {
  from {
    --gy: calc(var(--ay) * -1);
  }
  to {
    --gy: var(--ay);
  }
}

@keyframes glow-pulse {
  from {
    opacity: 0.3;
    scale: 0.8;
  }
  to {
    opacity: 1;
    scale: 1.22;
  }
}

.glow--amber {
  --ax: 95px;
  --ay: 70px;
  --tx: 19s;
  --ty: 27s;
  --tp: 13s;
  width: 480px;
  height: 480px;
  left: 6%;
  top: 8%;
  background: radial-gradient(
    circle closest-side,
    #f5a6237a 0%,
    #f5a62342 35%,
    #f5a62317 62%,
    #f5a62300 100%
  );
  animation-delay: 0s, -9s, -4s;
}

.glow--pink {
  --ax: 85px;
  --ay: 90px;
  --tx: 23s;
  --ty: 17s;
  --tp: 15s;
  width: 500px;
  height: 500px;
  right: 4%;
  top: 18%;
  background: radial-gradient(
    circle closest-side,
    #ec48997f 0%,
    #ec489945 35%,
    #ec489917 62%,
    #ec489900 100%
  );
  animation-delay: -12s, -3s, -10s;
}

.glow--violet {
  --ax: 100px;
  --ay: 75px;
  --tx: 29s;
  --ty: 21s;
  --tp: 11s;
  width: 520px;
  height: 520px;
  left: 26%;
  bottom: 2%;
  background: radial-gradient(
    circle closest-side,
    #8b5cf685 0%,
    #8b5cf648 35%,
    #8b5cf619 62%,
    #8b5cf600 100%
  );
  animation-delay: -20s, -14s, -6s;
}

/* The phone -------------------------------------------------------------- */

/*
 * The screenshot is the screen; the body around it is drawn here. The screen
 * geometry is an iPhone 17 Pro's, scaled from its 402-point width: the corner
 * radius and the Dynamic Island are fractions of the screen, so the phone stays
 * true at every size set by --phone.
 */
.phone {
  --phone: 300px;
  --bezel: calc(var(--phone) * 0.034);
  --screen: calc(var(--phone) - 2 * var(--bezel));
  position: relative;
  z-index: 1;
  width: var(--phone);
  padding: var(--bezel);
  border-radius: calc(var(--screen) * 0.137 + var(--bezel));
  background: linear-gradient(150deg, #3a3842, #121117 38%, #1b1a21 70%, #2c2a33);
  box-shadow:
    inset 0 0 0 1px #ffffff1f,
    inset 0 0 0 3px #0a090d,
    0 30px 60px #000000b3,
    0 8px 18px #00000080;
  transform: rotate(5deg);
}

.phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--screen) * 0.137);
}

.phone::after {
  content: '';
  position: absolute;
  top: calc(var(--bezel) + var(--screen) * 0.0274);
  left: 50%;
  width: calc(var(--screen) * 0.3134);
  height: calc(var(--screen) * 0.092);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}

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

.section {
  padding: 92px 0;
}

.section--raised {
  background: var(--bg-raised);
}

.section__top {
  display: flex;
  gap: 50px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 50px;
}

.section h2 {
  font-size: clamp(31px, 3.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 680;
  max-width: 630px;
  margin: 0;
}

.section__intro {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 390px;
  margin: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature {
  border-top: 1px solid #9e4ec077;
  padding: 25px 8px 10px 0;
}

.feature__number {
  color: #d17ed7;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature h3 {
  font-size: 22px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 26px 0 12px;
}

.feature p {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 16px;
  max-width: 310px;
  margin: 0;
}

.privacy-band {
  padding: 78px 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.privacy-band h2 {
  font-size: 32px;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.privacy-band p {
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 650px;
}

.privacy-band .quiet-link {
  --line-rest: var(--accent-line);
  white-space: nowrap;
  color: #eee5f5;
}

.availability-band {
  background:
    radial-gradient(ellipse at 85% 25%, #ec48992b, transparent 50%),
    #17101d;
  padding: 73px 0;
}

.availability-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.availability-band h2 {
  font-size: 35px;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}

.availability-band p {
  color: #b8acbf;
  margin: 0;
  line-height: 1.5;
}

/*
 * The one slot for getting the app. Until the store listings exist the badges
 * are shown dimmed and are not links; at launch each becomes a link and the
 * dimming goes, with nothing else on the page changing.
 */
.store-badges {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  height: 44px;
  width: auto;
}

.store-badges--pending .store-badge {
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding: 33px 0 42px;
  color: var(--text-faint);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 48px;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* The menu's centre-out underline, in the link's own colour rather than the
   brand gradient. */
.site-footer__links a {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  color: #ada6b3;
  transition:
    color var(--ease),
    transform var(--press-out),
    opacity var(--press-out);
}

.site-footer__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: currentColor;
  transition:
    left 0.4s ease,
    width 0.4s ease;
}

.site-footer__links a[aria-current='page'] {
  color: var(--text);
}

.site-footer__links a[aria-current='page']::after {
  left: 0;
  width: 100%;
}

/* Inner pages ------------------------------------------------------------ */

.doc {
  padding: 64px 0 96px;
}

.doc__layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 220px;
  justify-content: space-between;
  gap: 64px;
}

.doc__body {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: #dcd7e2;
}

.doc h1 {
  font-size: clamp(36px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 720;
  color: var(--text);
  margin: 0 0 14px;
}

.doc h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--text);
  margin: 56px 0 14px;
}

.doc h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 620;
  color: var(--text);
  margin: 32px 0 8px;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 16px;
}

.doc ul,
.doc ol {
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::marker {
  color: #8f7aa0;
}

.doc strong {
  color: var(--text);
  font-weight: 620;
}

.doc a:not(.button) {
  --line-rest: #a247dd99;
  color: var(--text);
  /* Drops the line a little below the letters; vertical padding on an inline
     element does not change the height of the line. */
  padding-bottom: 2px;
}

.doc .lead {
  font-size: 19px;
  margin-bottom: 28px;
}

.meta {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0 0 24px;
}

/* The draft notice: stated, not alarmed. */
.draft-note {
  font-size: 14px;
  line-height: 1.6;
  color: #bdb4a6;
  border-left: 2px solid #b88a4a99;
  padding: 2px 0 2px 14px;
  margin: 0 0 40px;
}

/* Contents, desktop: a column that follows the reader below the header. */
.toc {
  position: sticky;
  top: calc(var(--header) + 24px);
  align-self: start;
  font-size: 14px;
  line-height: 1.5;
  padding-top: 8px;
  transition: top var(--ease);
}

.toc__title {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.doc .toc a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  padding: 0;
  transform-origin: left center;
  transition:
    color var(--ease),
    transform var(--press-out),
    opacity var(--press-out);
}

/*
 * Contents, phones: one line after the title, the date and the draft note,
 * which then stays pinned a little below the header as the page scrolls. It is
 * opaque, so no text shows through it, and its open list is capped so it never
 * takes the whole screen.
 */
.toc-mobile {
  display: none;
  position: sticky;
  top: calc(var(--header) + 8px);
  z-index: 20;
  margin: 0 0 40px;
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  background: #14131b;
  box-shadow: 0 10px 24px #00000080;
  font-size: 15px;
  transition: top var(--ease);
}

/* The gap above it is solid page colour, so no line of text is ever seen cut
   between the header and the panel. */
.toc-mobile::before {
  content: '';
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: calc(100% + 1px);
  height: 9px;
  background: var(--bg);
}

.toc-mobile summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 16px;
  color: var(--text);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
}

.toc-mobile summary::-webkit-details-marker {
  display: none;
}

.toc-mobile summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ease);
}

.toc-mobile[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.doc .toc-mobile ol {
  list-style: none;
  margin: 0;
  padding: 4px 16px 14px;
  display: grid;
  gap: 2px;
  max-height: min(55vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.doc .toc-mobile li + li {
  margin: 0;
}

.doc .toc-mobile a {
  display: block;
  padding: 7px 0;
  color: var(--text-muted);
  text-decoration: none;
  background: none;
  transform-origin: left center;
  transition:
    color var(--ease),
    transform var(--press-out),
    opacity var(--press-out);
}

.steps {
  margin: 0 0 24px;
  padding: 24px 24px 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-raised);
}

.steps > :first-child {
  margin-top: 0;
}

.contact {
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

/* Sub-processors: one row per service, no cards. */
.vendors {
  list-style: none;
  padding: 0 !important;
  margin: 8px 0 40px !important;
  border-top: 1px solid var(--line);
}

.vendors li {
  margin: 0 !important;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.vendor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 4px;
}

.vendor__head h3 {
  margin: 0;
  font-size: 18px;
}

.vendor__region {
  color: var(--text-muted);
  font-size: 14px;
}

.vendor__purpose {
  margin: 0 0 4px !important;
}

.vendor__data {
  margin: 0 !important;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* A value the owner still has to supply. website/deploy.sh refuses to publish
   production while one remains. */
.todo {
  background: #3a1030;
  color: #ffd1ec;
  border: 1px dashed var(--pink);
  border-radius: 4px;
  padding: 0 0.3em;
}

/* Narrower screens ------------------------------------------------------- */

@media (max-width: 1000px) {
  .doc__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc {
    display: none;
  }

  .toc-mobile {
    display: block;
  }

  /* An anchor lands below both the header and the pinned contents. */
  html:has(.toc-mobile) {
    scroll-padding-top: calc(var(--header-compact) + 8px + 48px + 24px);
  }
}

@media (max-width: 780px) {
  :root {
    --header-full: 70px;
    --header-compact: 56px;
  }

  .wrap {
    width: min(100% - 36px, 540px);
  }

  .site-nav {
    gap: 17px;
  }

  .site-nav .nav-link {
    display: none;
  }

  .logo img {
    width: 112px;
  }

  .hero__inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero__copy {
    padding: 66px 0 0;
  }

  .hero h1 {
    font-size: clamp(43px, 10.8vw, 62px);
    max-width: 500px;
  }

  .eyebrow {
    margin-bottom: 22px;
  }

  .lead {
    font-size: 17px;
    margin-bottom: 27px;
  }

  .visual {
    height: auto;
    padding: 56px 0 72px;
  }

  .phone {
    --phone: 262px;
    transform: rotate(3deg);
  }

  .glows {
    inset: -4% -30% -4%;
  }

  .glow--amber {
    --ax: 60px;
    --ay: 55px;
    width: 340px;
    height: 340px;
    left: 4%;
    top: 6%;
  }

  .glow--pink {
    --ax: 55px;
    --ay: 65px;
    width: 360px;
    height: 360px;
    right: 2%;
    top: 26%;
  }

  .glow--violet {
    --ax: 65px;
    --ay: 55px;
    width: 380px;
    height: 380px;
    left: 20%;
    bottom: 4%;
  }

  .section {
    padding: 72px 0;
  }

  .section__top {
    display: block;
    margin-bottom: 35px;
  }

  .section__intro {
    margin-top: 18px;
  }

  .features {
    display: block;
  }

  .feature {
    padding: 22px 0 27px;
  }

  .feature h3 {
    margin: 13px 0 9px;
    font-size: 21px;
  }

  .feature p {
    max-width: 460px;
  }

  .privacy-band {
    padding: 62px 0;
    display: block;
  }

  .privacy-band .quiet-link {
    margin-top: 24px;
  }

  .availability-band {
    padding: 58px 0;
  }

  .availability-band .wrap {
    display: block;
  }

  .store-badges {
    margin-top: 25px;
  }

  .availability-band h2 {
    font-size: 31px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .doc {
    padding: 44px 0 72px;
  }

  .doc__body {
    font-size: 16.5px;
  }

  .doc h2 {
    margin-top: 44px;
  }

  .steps {
    padding: 20px 18px 4px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 43px;
  }

  .eyebrow {
    letter-spacing: 0.12em;
  }

  .actions {
    gap: 15px;
  }

  .phone {
    --phone: 244px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .glow {
    animation: none !important;
  }

  .site-header,
  .site-header__inner,
  .nav-link,
  .nav-link::after,
  .secondary,
  .secondary::before,
  .button,
  .quiet-link,
  .site-footer__links a,
  .site-footer__links a::after,
  .logo,
  .doc a,
  .toc,
  .toc-mobile {
    transition: none !important;
  }
}
