/* Kegel Hero site. Colours and shapes from design/DESIGN-BRIEF.md. No web fonts: display type uses the
   system's rounded face (SF Pro Rounded on Apple devices), the same one the app uses. */
:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;
  --night: #0A0A1A;
  --night-2: #0F0F24;
  --card: #191927;
  --hold: #21D4ED;
  --rest: #146579;
  --calm: #8C7AF5;
  --gold: #FFC733;
  --paper: #EDF0F5;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.09);
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Type scale, 1.25 steps from a 17 px body. */
  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lede: 1.25rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(2.25rem, 1.3rem + 3.8vw, 4.5rem);
  --t-display: clamp(3.25rem, 1.2rem + 5.4vw, 6.5rem);
  --gutter: 16px;
  --section: clamp(96px, 11vw, 176px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hold); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(33, 212, 237, 0.32); color: #fff; }
h1, h2, h3 { font-family: var(--rounded); margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-h2); font-weight: 900; line-height: 1; letter-spacing: -0.025em; }
h3 { font-size: var(--t-h3); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 700px) { :root { --gutter: 32px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--gold); color: var(--night); padding: 10px 14px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Header: a translucent bar the page scrolls under. */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 10, 26, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
@media (prefers-reduced-transparency: reduce) { .bar { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--rounded); font-weight: 900; font-size: 1.0625rem; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav ul { display: flex; gap: clamp(16px, 2.5vw, 32px); list-style: none; }
.bar nav a { display: block; padding: 12px 0; color: var(--text-2); text-decoration: none; font-size: 0.9375rem; font-weight: 600; transition: color 150ms ease-out; }
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 699px) { .nav-extra { display: none; } }

/* Hero: the circle is the light source of the page. */
.hero { position: relative; overflow: clip; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto 20%; height: 140%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(33, 212, 237, 0.22), rgba(33, 212, 237, 0) 70%);
  opacity: calc(0.45 + var(--e, 0) * 0.55);
}
.hero-grid { position: relative; display: grid; gap: 24px; align-items: center; }
.display {
  font-size: var(--t-display); font-weight: 900; line-height: 0.9;
  /* Tracking tightens as the circle squeezes: --e is the circle's effort, 0 at rest, 1 fully squeezed. */
  letter-spacing: calc(-0.022em - var(--e, 0) * 0.012em);
  margin-bottom: 0.35em;
}
.display span { display: block; }
.lede { font-size: var(--t-lede); line-height: 1.5; color: var(--text-2); max-width: 30em; }
.lede-what { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 20px; }
.btn {
  font: 800 1.125rem/1 var(--rounded); letter-spacing: 0.005em;
  background: var(--hold); color: var(--night); border: 0; border-radius: 14px;
  min-height: 56px; min-width: 9.25em; padding: 0 28px; cursor: pointer;
  transition: transform 120ms ease-out, filter 120ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
.btn[data-state="stop"] { background: rgba(255, 255, 255, 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn, .circle-play { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.soon { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
.terms { margin: 0; font-size: 0.9375rem; color: var(--text-2); }

.circle { position: relative; width: min(100%, 560px); margin-inline: auto; }
.circle canvas, .circle-fallback { display: block; width: 100%; aspect-ratio: 1; }
.js .circle-fallback { display: none; }
.circle-fallback { padding: 12%; border-radius: 50%; }
.circle-foot { display: flex; align-items: center; justify-content: center; gap: 16px; max-width: 30rem; margin: 0 auto; min-height: 4.2em; }
.circle-play {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  transition: background 120ms ease-out, transform 120ms ease-out;
}
.circle-play:active { transform: scale(0.94); }
.circle-play svg { width: 18px; height: 18px; fill: currentColor; }
.circle-play .i-play, .circle-play[aria-pressed="true"] .i-pause { display: none; }
.circle-play[aria-pressed="true"] .i-play { display: block; }
html:not(.js) .circle-play, html:not(.js) [data-rep], html:not(.js) [data-rep-link], html:not(.js) .circle canvas { display: none; }
.circle-cue { margin: 0; flex: 0 1 26em; color: var(--text-2); font-size: 1rem; line-height: 1.5; }

@media (max-width: 899px) {
  .hero-copy { display: contents; }
  .hero-grid .display { order: 1; margin-bottom: 0; }
  .hero-grid .lede { order: 2; margin: 0; }
  .hero-grid .terms { order: 6; margin-top: -8px; }
  .hero-grid .circle { order: 4; width: min(100%, 440px); width: min(100%, 440px, max(280px, 100svh - 340px)); }
  .hero-grid .actions { order: 5; margin: 0 0 8px; }
  .lede-how { display: none; }
  .hero::before { inset: 8% -45% auto -45%; height: 70%; }
  .lede { font-size: 1.125rem; }
}
@media (min-width: 900px) {
  .hero { min-height: calc(100dvh - 60px); display: grid; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; }
  .circle { width: min(46vw, 660px, 100dvh - 230px); margin-right: calc(-1 * clamp(0px, 4vw, 64px)); justify-self: end; }
  .circle-foot { max-width: min(30rem, 100% - 2 * clamp(0px, 4vw, 64px)); }
}

/* The one page-load moment: the headline rises while the circle grows in. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .js .display span { display: block; animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .js .display { animation: none; }
  .js .display span:nth-child(2) { animation-delay: 70ms; }
  .js .display span:nth-child(3) { animation-delay: 140ms; }
  .js .hero-copy .lede { animation-delay: 260ms; }
  .js .hero-copy .actions { animation-delay: 340ms; }
  .js .hero-copy .terms { animation-delay: 400ms; }
}
@keyframes rise { from { opacity: 0.1; transform: translateY(28px); } }

/* Shared section rhythm. */
section { padding: var(--section) 0 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { margin-bottom: 0.45em; }
.section-head p { font-size: var(--t-lede); line-height: 1.5; color: var(--text-2); margin: 0; }

/* How a session works. Each step is coloured like its part of the app's progress bar. */
.steps { list-style: none; }
.step { --c: var(--hold); border-left: 3px solid var(--c); padding: 4px 0 4px 24px; }
.step + .step { margin-top: 56px; }
.step:nth-child(1) { --c: var(--calm); }
.step:nth-child(3) { --c: #2A8FA6; }
.step:nth-child(5) { --c: var(--gold); }
.step h3 { margin-bottom: 0.4em; }
.step p { color: var(--text-2); margin: 0; max-width: 28em; }
.step-shot { width: 100%; border-radius: 28px; border: 1px solid var(--line); margin-bottom: 20px; }
.phone { display: none; }
@media (max-width: 899px) {
  .steps {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
  }
  @media (pointer: coarse) { .steps { scrollbar-width: none; } .steps::-webkit-scrollbar { display: none; } }
  .steps:focus-visible { outline-offset: -3px; }
  .step { scroll-snap-align: start; border-left: 0; border-top: 3px solid var(--c); padding: 20px 0 0; }
  .step + .step { margin-top: 0; }
  .step h3 { font-size: 1.25rem; }
  .step p { font-size: 0.9375rem; }
}
.aside { max-width: 40em; margin: clamp(56px, 7vw, 96px) 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--text-2); }

@media (min-width: 900px) {
  .session-grid {
    --phone-w: min(320px, 26vw, (100dvh - 150px) / 2.174); /* 2.174 = 1311 / 603 */
    display: grid; grid-template-columns: var(--phone-w) minmax(0, 1fr); gap: clamp(64px, 9vw, 136px);
  }
  .phone {
    --glow: var(--hold);
    display: block; position: sticky; top: calc(30px + 50dvh - var(--phone-w) * 1.087); align-self: start;
    width: var(--phone-w); aspect-ratio: 603 / 1311; margin: 0;
    border-radius: 40px; overflow: hidden; background: var(--night);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px -30px color-mix(in srgb, var(--glow) 35%, transparent);
    transition: box-shadow 450ms ease;
  }
  .session-grid:has(.step:nth-child(1).on) .phone { --glow: var(--calm); }
  .session-grid:has(.step:nth-child(5).on) .phone { --glow: var(--gold); }
  /* The new shot fades in over the old one; the old one drops only after the fade, so the screen never dims. */
  .phone img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0s 300ms; }
  .phone img.on { opacity: 1; z-index: 1; transition: opacity 300ms cubic-bezier(0.23, 1, 0.32, 1); }
  /* Keeps the phone stuck while the last step is centred. */
  .steps { padding-bottom: max(0px, var(--phone-w) * 1.087 + 30px - 28vh); }
  .step-shot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; border: 0; }
  .step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.72; transition: opacity 350ms ease; }
  .step.on { opacity: 1; }
  .step p { max-width: 32em; }
  .step + .step { margin-top: 0; }
  .js .step h3 { font-size: 2rem; }
}
html:not(.js) .step { opacity: 1; }

/* The plan, drawn to scale. */
.plan { padding-bottom: 0; }
.chart { margin: 0; }
.chart-plot {
  --plot-h: clamp(180px, 28vw, 340px);
  position: relative; margin-left: 40px;
  display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); grid-template-rows: var(--plot-h) auto auto;
  column-gap: clamp(3px, 0.6vw, 8px);
}
/* Out of the grid flow, so it does not take row 1 away from the bars. */
.chart-grid { position: absolute; inset: 0 0 auto; height: var(--plot-h); border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.chart-grid span {
  position: absolute; left: -40px; right: 0; bottom: calc(var(--s) / 10 * 100%);
  font-size: 0.75rem; line-height: 1; color: var(--text-2); transform: translateY(50%);
  font-variant-numeric: tabular-nums;
}
.chart-grid span::after { content: ""; position: absolute; left: 40px; right: 0; top: 50%; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.chart-bars, .chart-stages, .chart-weeks { display: contents; }
.chart-bars i {
  --h: 10; grid-row: 1; align-self: end; height: calc(var(--h) / 10 * 100%);
  background: var(--hold); border-radius: 4px 4px 0 0;
}
/* Classic with a 3 s start: +1 s every 7 training days, 10 s from week 8 (Program.swift HoldPlan). */
.chart-bars i:nth-child(1) { --h: 3; }
.chart-bars i:nth-child(2) { --h: 4; }
.chart-bars i:nth-child(3) { --h: 5; }
.chart-bars i:nth-child(4) { --h: 6; }
.chart-bars i:nth-child(5) { --h: 7; }
.chart-bars i:nth-child(6) { --h: 8; }
.chart-bars i:nth-child(7) { --h: 9; }
.chart-bars i:nth-child(n+13) { background: #2A8FA6; }
.chart-stages b { grid-row: 3; margin-top: 20px; padding-top: 10px; border-top: 2px solid var(--hold); font-weight: 700; font-size: 0.875rem; line-height: 1.3; }
.chart-stages b span { display: block; min-height: 2.6em; }
.chart-stages b small { display: block; font-weight: 400; color: var(--text-2); font-size: 0.8125rem; margin-top: 2px; }
.chart-stages .st-1 { grid-column: 1 / span 2; }
.chart-stages .st-2 { grid-column: 3 / span 3; }
.chart-stages .st-3 { grid-column: 6 / span 3; }
.chart-stages .st-4 { grid-column: 9 / span 4; }
.chart-stages .st-5 { grid-column: 13 / span 14; border-color: #2A8FA6; }
.chart-weeks span { grid-row: 2; grid-column: var(--w); justify-self: center; margin-top: 8px; font-size: 0.75rem; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart figcaption { margin-top: 28px; margin-left: 40px; max-width: 44em; color: var(--text-2); }
@media (max-width: 899px) {
  .chart-stages { display: none; }
  .chart figcaption { margin-left: 0; }
}

.table-scroll { overflow-x: auto; margin-top: clamp(48px, 6vw, 72px); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
td:nth-child(4) { white-space: nowrap; }
thead th { font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
tbody th { font-family: var(--rounded); font-weight: 800; }
.note { margin: 20px 0 0; color: var(--text-2); }

/* Evidence */
.evidence-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .evidence-grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 112px); } }
.evidence h3 { margin-bottom: 20px; }
.evidence-grid ul + h3 { margin-top: 48px; }
@media (min-width: 900px) { .ev-title { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(48px, 7vw, 112px); max-width: none; } }
.ev-title span + span { color: var(--text-2); }
.evidence-grid ul { list-style: none; }
.evidence-grid li { position: relative; padding-left: 28px; }
.evidence-grid li + li { margin-top: 16px; }
.nowrap { white-space: nowrap; }
.evidence-grid li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--hold); }
.unknown li::before { border-color: var(--text-2); }
.cite {
  display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.3em;
  font-size: 0.75em; font-weight: 700; line-height: 1; vertical-align: 0.15em;
  border-radius: 999px; background: rgba(33, 212, 237, 0.14); text-decoration: none;
  transition: background-color 150ms ease-out;
}
.sources-title { margin: clamp(64px, 8vw, 104px) 0 20px; font-size: 1.125rem; }
.sources { list-style: none; counter-reset: src; display: grid; gap: 14px; max-width: 52em; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 2em 1fr; font-size: 0.9375rem; }
.sources li::before { content: counter(src); color: var(--text-2); font-variant-numeric: tabular-nums; }
.sources li > * { grid-column: 2; }
.sources span { color: var(--text-2); }
.sources li:target { background: rgba(33, 212, 237, 0.08); border-radius: 8px; }

/* The deal: price and privacy on one receipt. */
.deal-grid { display: grid; gap: 64px; align-items: center; }
@media (min-width: 900px) { .deal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); } }
.deal-copy h2 { margin-bottom: 0.5em; }
.deal-copy p { color: var(--text-2); max-width: 30em; }
.deal-copy p:last-child { margin: 0; }
.receipt-wrap { justify-self: center; width: min(400px, 100%); }
.receipt {
  --z: 14px;
  position: relative; background: var(--paper); color: var(--night);
  font: 0.9375rem/1.5 var(--mono); padding: 40px 30px 36px; transform: rotate(-2deg);
  -webkit-mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x;
  mask:
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--z) 51% repeat-x,
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--z) 51% repeat-x;
}
.receipt-wrap { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); }
.receipt p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 3px 0; }
.receipt span:last-child { text-align: right; font-weight: 700; }
.receipt .r-head { justify-content: center; font: 900 1.5rem/1.1 var(--rounded); text-transform: uppercase; letter-spacing: 0.02em; padding-bottom: 18px; }
.receipt hr { border: 0; border-top: 1.5px dashed rgba(10, 10, 26, 0.3); margin: 14px 0; }
.receipt .r-total { font-size: 1.125rem; font-weight: 700; }
.receipt .r-foot { justify-content: center; margin-top: 22px; font-size: 0.8125rem; color: rgba(10, 10, 26, 0.62); }
@media (max-width: 699px) { .receipt { transform: rotate(-1deg); padding-inline: 22px; } }
.small { margin: 24px 0 0; font-size: 0.8125rem; color: var(--text-2); text-align: center; }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
  .faq-grid h2 { position: sticky; top: 108px; }
}
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font: 700 1.1875rem/1.35 var(--rounded);
  transition: color 150ms ease-out;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  color: var(--hold); transition: transform 200ms ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--text-2); max-width: 38em; margin: 0; padding: 0 0 24px; }
details::details-content { block-size: 0; overflow: clip; transition: block-size 250ms ease, content-visibility 250ms allow-discrete; }
details[open]::details-content { block-size: auto; }

/* Safety */
.safety-box { background: var(--card); border-radius: 28px; padding: clamp(28px, 4vw, 56px); }
.safety h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 28px; }
.safety ul { list-style: none; }
@media (min-width: 900px) { .safety ul { columns: 2; column-gap: 56px; } }
.safety li { position: relative; padding-left: 24px; margin-bottom: 16px; break-inside: avoid; }
.safety li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); }
@media (max-width: 699px) { .safety-box { padding: 24px 16px; border-radius: 20px; } .safety li { padding-left: 18px; } .safety li::before { width: 6px; height: 6px; } }

/* Closing band: the circle again, the price again, the demo again. */
.close { text-align: center; padding-bottom: var(--section); }
.close-orb { width: 128px; margin: 0 auto 32px; border-radius: 50%; box-shadow: 0 0 64px 6px rgba(33, 212, 237, 0.4); }
.close h2 { margin-bottom: 0.4em; }
.close p { color: var(--text-2); max-width: 30em; margin: 0 auto 32px; text-wrap: balance; }
.close .btn { display: inline-grid; place-items: center; text-decoration: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); color: var(--text-2); font-size: 0.875rem; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: auto 1fr; align-items: center; } .foot-legal { grid-column: 1 / -1; } }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 56px; height: 56px; border-radius: 13px; }
.foot-brand p { margin: 0; line-height: 1.4; }
.foot-brand strong { color: var(--text); font-family: var(--rounded); font-size: 1.0625rem; }
.foot-links { display: flex; gap: 24px; list-style: none; }
@media (min-width: 900px) { .foot-links { justify-content: flex-end; } }
.foot-links a { color: var(--text-2); display: inline-block; padding: 10px 0; transition: color 150ms ease-out; }
.foot-legal { margin: 0; line-height: 1.7; }

/* Privacy and support pages */
.doc { max-width: 44rem; min-height: calc(100dvh - 300px); padding: clamp(48px, 7vw, 96px) 0 var(--section); }
.doc h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.4em; }
.doc h2 { font-size: 1.5rem; letter-spacing: -0.01em; margin: 2em 0 0.6em; }
.doc ol { padding-left: 1.25em; }
.doc ul { list-style: none; }
.doc ul li { position: relative; padding-left: 24px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--hold); }
.doc li + li { margin-top: 0.6em; }
.doc .muted { color: var(--text-2); }
.doc .card { background: var(--card); border-radius: 28px; padding: 28px; margin: 32px 0 8px; }
.doc .card h2 { margin-top: 0; }
.doc .card p:last-child { margin: 0; }

/* Hover only where a real pointer hovers: iOS keeps :hover stuck after a tap. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(1.08); }
  .circle-play:hover { background: rgba(255, 255, 255, 0.14); }
  .cite:hover { background: rgba(33, 212, 237, 0.26); }
  summary:hover { color: var(--hold); }
  .foot-links a:hover { color: var(--text); }
}

/* Reduced motion keeps opacity fades (they do not move anything) and drops the rest. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  summary::after, details::details-content { transition: none; }
}
