/* Shared styles for the hgolf website. Dark pine and ink come from the logo's greens; one lime
   accent marks what is live or selected, the way sports tools mark data; the light pages sit on
   a warm off-white. The site loads nothing from elsewhere, so the fonts are the system's. */
:root {
  --pine-950: #06150c;
  --pine-900: #0a2911;
  --pine-800: #0f3a1b;
  --pine-700: #1e6b2a;
  --pine-600: #26803a;
  --pine-500: #34a04a;
  --lime: #c4f25d;
  --lime-strong: #b0e33f;
  --ink: #08120c;

  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --fg: #0f1a14;
  --muted: #55645a;
  --rule: #dde4da;
  --accent: #1e6b2a;
  --eyebrow: #26803a;

  --on-dark: #eef4ef;
  --on-dark-muted: rgb(238 244 239 / 68%);
  --dark-rule: rgb(255 255 255 / 10%);
  --dark-surface: rgb(255 255 255 / 4%);

  --radius: 18px;
  --radius-small: 10px;
  --shadow: 0 1px 2px rgb(10 41 17 / 5%), 0 10px 30px rgb(10 41 17 / 7%);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07100b;
    --surface: #0e1913;
    --surface-2: #132119;
    --fg: #e7eee9;
    --muted: #98a99d;
    --rule: #1e2d23;
    --accent: #9ee0a6;
    --eyebrow: #a6dd7c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 30%);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--lime-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.45rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}

p {
  text-wrap: pretty;
}

.wrap {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 28px;
  }
}

.eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--eyebrow);
  font: 700 0.78rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Header and footer ----------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(246 247 243 / 82%);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(160%) blur(14px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgb(7 16 11 / 80%);
  }
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* The front page's header sits on the dark hero. */
.site-header-dark {
  background: rgb(6 21 12 / 94%);
  border-bottom-color: var(--dark-rule);
  color: var(--on-dark);
}

@media (prefers-color-scheme: dark) {
  .site-header-dark {
    background: rgb(6 21 12 / 94%);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.site-header-dark .site-nav a {
  color: var(--on-dark-muted);
}

.site-header-dark .site-nav a:hover {
  color: var(--on-dark);
  background: rgb(255 255 255 / 8%);
}

.site-header .button {
  margin-left: auto;
}

@media (min-width: 52rem) {
  .site-nav {
    display: flex;
  }

  .site-header .button {
    margin-left: 8px;
  }
}

.site-footer {
  margin-top: 0;
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 40px;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

.site-footer .brand {
  color: var(--on-dark);
  font-size: 1.1rem;
}

.site-footer .brand img {
  width: 28px;
  height: 28px;
}

.footer-brand p {
  max-width: 22rem;
  margin: 14px 0 0;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: var(--on-dark);
  font: 700 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 6px 0;
}

.site-footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--dark-rule);
  font-size: 0.85rem;
}

.footer-base p {
  margin: 0;
}

/* --- Buttons and badges ---------------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--pine-700);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}

.button:hover {
  background: var(--pine-600);
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-small {
  padding: 8px 18px;
  font-size: 0.93rem;
}

.button-lime {
  background: var(--lime);
  color: var(--ink);
}

.button-lime:hover {
  background: var(--lime-strong);
}

.button-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgb(255 255 255 / 28%);
}

.button-ghost:hover {
  background: rgb(255 255 255 / 8%);
}

.site-header-dark .button {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 22%);
}

.site-header-dark .button:hover {
  background: rgb(255 255 255 / 18%);
}

/* The store badges stay side by side, also on a phone. */
.stores {
  display: flex;
  gap: 10px;
}

@media (max-width: 30rem) {
  .stores .store-badge {
    gap: 8px;
    padding: 8px 12px 8px 10px;
  }

  .stores .store-badge small {
    font-size: 0.6rem;
  }

  .stores .store-badge strong {
    font-size: 0.95rem;
  }
}

/* Not Google Play's or Apple's own badges, which may only be used once the app is in the store. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px 9px 16px;
  border-radius: 14px;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgb(255 255 255 / 22%);
  line-height: 1.2;
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge strong {
  font-size: 1.05rem;
}

/* --- The front page: hero -------------------------------------------------------------------- */

.dark {
  background: var(--pine-950);
  color: var(--on-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(48rem 28rem at 50% -6rem, rgb(52 160 74 / 38%), transparent 70%),
    radial-gradient(30rem 20rem at 85% 60%, rgb(196 242 93 / 7%), transparent 70%),
    linear-gradient(180deg, var(--pine-950) 0%, var(--ink) 100%);
}

/* A faint yardage grid behind the hero. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000000 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 40px;
}

@media (min-width: 48rem) {
  .hero-inner {
    padding-top: 88px;
    padding-bottom: 56px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--dark-rule);
  background: var(--dark-surface);
  color: var(--on-dark-muted);
  font: 600 0.8rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(196 242 93 / 18%);
}

.hero h1 {
  margin: 0 auto 24px;
  font-size: clamp(2.6rem, 7.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
}

.hero h1 .hl {
  color: var(--lime);
}

.lead {
  max-width: 38rem;
  margin: 0 auto 32px;
  color: var(--on-dark-muted);
  font-size: clamp(1.08rem, 2.2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checks li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgb(196 242 93 / 16%)
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.5 8.2l2.3 2.3 4.7-5" fill="none" stroke="%23c4f25d" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 16px no-repeat;
}

.hero-shot {
  position: relative;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The picture of the web app: a browser window playing a real swing, laid out and styled as the
   web app's clip view is, from the session's list beside the player to the panel with the
   swing's positions. */
.app {
  --muted-on-app: rgb(255 255 255 / 55%);
  margin: 0;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #0c1811;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 8%),
    0 -20px 80px rgb(52 160 74 / 18%);
}

@media (min-width: 48rem) {
  .app {
    border-radius: 20px 20px 0 0;
  }
}

.app button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.app-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
}

.app-dots {
  display: flex;
  gap: 8px;
}

.app-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
}

.app-url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: rgb(255 255 255 / 6%);
  color: rgb(255 255 255 / 60%);
  font-size: 12.5px;
  white-space: nowrap;
}

.app-body {
  display: grid;
  gap: 16px;
  padding: 0 12px 12px;
}

@media (min-width: 60rem) {
  .app-body {
    grid-template-columns: 200px minmax(0, 1fr) 290px;
    padding: 0 16px 16px;
  }
}

.app-panel {
  display: none;
  padding: 18px;
  border-radius: 12px;
  background: rgb(255 255 255 / 3.5%);
}

@media (min-width: 60rem) {
  .app-panel {
    display: flex;
    flex-direction: column;
  }
}

.app-panel p {
  margin: 0;
}

.app-panel .app-label {
  margin-bottom: 12px;
  color: var(--lime);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* The session's swings, in the order they were recorded. */
.app-panel .app-session {
  margin-bottom: 14px;
  font-weight: 700;
}

.app-session small,
.app-library small {
  display: block;
  color: var(--muted-on-app);
  font-size: 12px;
  font-weight: 400;
}

.app-library ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-library li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  color: rgb(255 255 255 / 80%);
  font-weight: 600;
}

.app-library li.on {
  background: rgb(196 242 93 / 9%);
  box-shadow: inset 0 0 0 1px rgb(196 242 93 / 35%);
  color: #ffffff;
}

.app-library img {
  width: 48px;
  height: 85px;
  border-radius: 6px;
  object-fit: cover;
}

.app-panel .app-all {
  margin-top: 14px;
  padding: 0 8px;
  color: rgb(255 255 255 / 75%);
  font-size: 13px;
}

/* A clip's camera angle, as a sticker in the top right corner of what shows the clip. */
.app-sticker {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgb(6 21 12 / 72%);
  box-shadow: inset 0 0 0 1px rgb(196 242 93 / 45%);
  color: var(--lime);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: 0.08em;
}

.app-details {
  position: relative;
}

.app-details > .app-sticker {
  top: 16px;
  right: 18px;
}

.app-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* The portrait clip sits on a blurred copy of itself, as phone video does in a wide player. */
.app-video {
  position: relative;
  height: clamp(420px, 120vw, 560px);
  overflow: hidden;
  border-radius: 12px;
  background: #050b07;
  isolation: isolate;
}

@media (min-width: 60rem) {
  .app-video {
    height: 580px;
  }
}

.app-video::before {
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: url('/media/swing-poster.jpg') center / cover;
  filter: blur(28px) brightness(0.4) saturate(1.2);
}

/* The video and the drawings over it, sized together. */
.app-frame {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 40px rgb(0 0 0 / 45%);
}

.app-frame video,
.app-draw {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.app-frame video {
  object-fit: cover;
}

.app-draw {
  touch-action: pan-y;
}

.drawing .app-draw {
  cursor: crosshair;
  touch-action: none;
}

.app-chip {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgb(0 0 0 / 55%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 10%);
  backdrop-filter: blur(6px);
  font: 700 13px/1.2 var(--mono);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

.app-chip[hidden] {
  display: none;
}

.app-chip-speed {
  left: 14px;
  color: var(--lime);
}

.app-chip-position {
  left: 50%;
  transform: translateX(-50%);
  color: var(--mark);
  white-space: nowrap;
}

/* On a phone, under the other chips rather than between them. */
@media (max-width: 36rem) {
  .app-chip-position {
    top: 52px;
  }
}

.app-chip-frame {
  right: 14px;
  color: #ffffff;
  font-weight: 600;
}

/* Square icon buttons: the drawing buttons over the stage and the view buttons after the
   speeds. */
.app-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border-radius: 9px;
  background: rgb(255 255 255 / 7%);
  color: rgb(255 255 255 / 80%);
  font: 700 15px/1 var(--mono);
}

.app-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: center / 34px no-repeat;
}

.app-icon-draw::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M10 24l1-4 10-10 3 3-10 10zM19 12l3 3" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.app-icon-shapes::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M9 24L22 10" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round"/><rect x="17" y="17" width="8" height="8" rx="1" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2"/></svg>');
}

.app-icon-shapes[aria-pressed='false']::before {
  opacity: 0.45;
}

.app-icon-theater::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><rect x="8" y="11" width="18" height="12" rx="2" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2"/></svg>');
}

.app-icon-fullscreen::before {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M10 14v-4h4M20 10h4v4M24 20v4h-4M14 24h-4v-4" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* The drawing buttons, down the right of the stage. */
.app-actions {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  gap: 6px;
  transform: translateY(-50%);
}

.app-actions .app-icon {
  background: rgb(0 0 0 / 50%);
  backdrop-filter: blur(6px);
}

.app-actions .app-icon:hover {
  background: rgb(0 0 0 / 70%);
}

.app-actions .app-icon[aria-pressed='true'] {
  background: rgb(196 242 93 / 18%);
  box-shadow: inset 0 0 0 1px rgb(196 242 93 / 45%);
}

/* The drawing tools, over the foot of the picture while drawing. */
.app-tools {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.app-tools[hidden] {
  display: none;
}

.app-tools button {
  display: grid;
  place-items: center;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  color: rgb(255 255 255 / 75%);
}

.app-tools button:hover {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.app-tools button[aria-pressed='true'] {
  background: var(--lime);
  color: var(--ink);
}

.app-tools svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The colour of new shapes, one of the web app's, which a click changes to the next. */
.app-tools .app-swatch {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0 8px;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgb(0 0 0 / 60%),
    0 0 0 3px rgb(255 255 255 / 30%);
}

.app-tools .app-swatch[data-color='yellow'] {
  background: #ffd400;
}

.app-tools .app-swatch[data-color='red'] {
  background: #ff4d4d;
}

.app-tools .app-swatch[data-color='blue'] {
  background: #4dd2ff;
}

.app-tools .app-swatch[data-color='lime'] {
  background: #c4f25d;
}

.app-tools .app-swatch[data-color='white'] {
  background: #ffffff;
}

.app-count {
  padding: 0 6px;
  color: rgb(255 255 255 / 60%);
  font: 600 12px/1 var(--mono);
}

.app-tools .app-done {
  padding: 0 12px;
  background: rgb(255 255 255 / 12%);
  color: #ffffff;
  font-weight: 700;
}

/* The controls under the stage: the timeline across the whole width, and under it the
   transport, the readout, the speeds and the view buttons. */
.app-controls {
  display: grid;
  gap: 6px;
  padding: 0 2px 2px;
}

/* The timeline: the positions' labels above a track. --played follows the video. */
.app-timeline {
  --played: 0%;
  position: relative;
  margin: 0 12px;
}

/* Two rows of labels, which the positions near impact share. */
.app-marks {
  position: relative;
  height: 40px;
}

.app-tick {
  position: absolute;
  z-index: 1;
  left: var(--at);
  bottom: -18px;
  width: 2px;
  height: 22px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--mark);
  pointer-events: none;
}

.app .app-mark {
  position: absolute;
  left: var(--at);
  bottom: calc(4px + var(--row) * 19px);
  min-width: 26px;
  height: 17px;
  padding: 0 4px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: #1d2a22;
  box-shadow: inset 0 0 0 1px var(--mark);
  color: var(--mark);
  font: 700 10px/17px var(--mono);
}

.app-mark[hidden] {
  display: none;
}

.app .app-mark:hover,
.app .app-mark.here {
  background: var(--mark);
  color: var(--ink);
}

.app-track {
  position: relative;
  height: 22px;
  cursor: pointer;
  touch-action: none;
}

.app-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 6px;
  border-radius: 3px;
  background: rgb(255 255 255 / 14%);
}

.app-track:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 6px;
}

.app-progress {
  position: absolute;
  left: 0;
  top: 8px;
  width: var(--played);
  height: 6px;
  border-radius: 3px;
  background: var(--pine-500);
}

.app-progress::after {
  content: '';
  position: absolute;
  z-index: 2;
  right: -8px;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 40%);
}

.app-transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.app-play {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  background: var(--lime);
}

.app-play:hover {
  background: var(--lime-strong);
}

/* A pause sign while the clip plays, and a play sign while it is paused. */
.app-play::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 13px;
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--ink);
  box-shadow: 8px 0 0 var(--ink);
}

.app-play.paused::before {
  left: 16px;
  top: 12px;
  width: 0;
  height: 0;
  border-radius: 0;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--ink);
  background: none;
  box-shadow: none;
}

.app-step {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  border-radius: 9px;
  background: rgb(255 255 255 / 7%);
}

.app-step:hover {
  background: rgb(255 255 255 / 14%);
}

.app-step::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34"><path d="M20 11v12M12 11l6 6-6 6" fill="none" stroke="%23ffffff" stroke-opacity=".8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 34px no-repeat;
}

.app-step-back::before {
  transform: scaleX(-1);
}

/* The time of the frame on screen from impact, as the web app's player reads it. */
.app-readout {
  flex: 1 0 auto;
  color: #ffffff;
  font: 700 14px/1.1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-readout small {
  display: block;
  color: var(--muted-on-app);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.app-speeds {
  display: none;
  padding: 3px;
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
}

@media (min-width: 36rem) {
  .app-speeds {
    display: flex;
  }
}

/* The speeds, each as wide as the others. */
.app-speeds button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 30px;
  padding: 0 6px;
  border-radius: 7px;
  background: transparent;
  color: rgb(255 255 255 / 55%);
  font: 700 13px/1 var(--mono);
}

/* A speed's fraction, its digits raised and lowered small around the slash, the same for each
   speed rather than the font's own ½, ¼ and ⅛ beside a 1⁄16 it has no glyph for. */
.app-frac {
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.04em;
}

.app-frac sup,
.app-frac sub {
  font-size: 9px;
  line-height: 1;
  vertical-align: baseline;
}

.app-frac sup {
  align-self: flex-start;
  margin-top: -1px;
}

.app-frac sub {
  align-self: flex-end;
  margin-bottom: -1px;
}

/* Between the panels on a laptop-sized window, closer, so the speeds stay on the row. */
@media (min-width: 60rem) and (max-width: 74.99rem) {
  .app-transport {
    gap: 8px 6px;
  }

  .app-speeds button {
    min-width: 34px;
    padding: 0 4px;
  }
}

.app-speeds button:hover {
  color: #ffffff;
}

.app-speeds button[aria-pressed='true'] {
  background: var(--lime);
  color: var(--ink);
}

.app-view {
  display: none;
  gap: 6px;
}

/* Shown only where the row has room for them beside the speeds: on a tablet, and on a wide
   screen beside the panels. */
@media (min-width: 48rem) and (max-width: 59.99rem), (min-width: 75rem) {
  .app-view {
    display: flex;
  }
}

/* The panel beside the player: the clip's header, its tabs, and the swing's positions. */
.app-panel .app-title {
  padding-right: 52px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.app-select {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
  font-weight: 600;
}

.app-select::after {
  content: '⌄';
  float: right;
  color: var(--muted-on-app);
}

.app-share {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.app-more {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(255 255 255 / 7%);
}

.app-panel .app-reactions {
  margin-top: 10px;
}

.app-reactions span {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(196 242 93 / 12%);
  box-shadow: inset 0 0 0 1px rgb(196 242 93 / 35%);
  font-size: 13px;
  font-weight: 600;
}

.app-tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 3px;
  border-radius: 10px;
  background: rgb(0 0 0 / 25%);
}

.app-tabs span {
  flex: 1;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted-on-app);
  font-weight: 700;
  text-align: center;
}

.app-tabs .on {
  background: rgb(255 255 255 / 10%);
  color: #ffffff;
}

.app-tabs b {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgb(196 242 93 / 18%);
  color: var(--lime);
  font-size: 12px;
}

.app-positions {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app .app-positions button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 4px 12px 4px 5px;
  border-radius: 10px;
  background: rgb(255 255 255 / 5%);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.app .app-positions button:hover {
  background: rgb(196 242 93 / 12%);
  box-shadow: inset 0 0 0 1px rgb(196 242 93 / 45%);
}

.app-position-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: #1d2a22;
  box-shadow: inset 0 0 0 1px var(--mark);
  color: var(--mark);
  font: 700 11px/1 var(--mono);
}

.app-position-time {
  margin-left: auto;
  color: var(--muted-on-app);
  font: 600 12px/1 var(--mono);
  white-space: nowrap;
}

.app-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgb(255 255 255 / 8%);
}

.app-details dt {
  color: var(--muted-on-app);
  font-size: 12px;
}

.app-details dd {
  margin: 2px 0 0;
  font-weight: 600;
}

/* The swing's positions: each one's colour, and in the pictures of the web app, where its
   tick and label are along a timeline and on which row; player.js lays the hero's rows out
   again for the width on screen. The site's CSP allows no inline styles, so they are here. */
[data-p='P1'] {
  --mark: #9aa5b1;
}

[data-p='P2'] {
  --mark: #5ec8f2;
}

[data-p='P3'] {
  --mark: #8fd3f4;
}

[data-p='P4'] {
  --mark: #f2c14e;
}

[data-p='P5'] {
  --mark: #e8963a;
}

[data-p='P6'] {
  --mark: #f0b27a;
}

[data-p='P7'] {
  --mark: #c4f25d;
}

[data-p='P8'] {
  --mark: #b4e08a;
}

[data-p='P9'] {
  --mark: #d7a6e8;
}

[data-p='P10'] {
  --mark: #e07be0;
}

.app-timeline [data-p='P1'] {
  --at: 0.26%;
  --row: 0;
}

.app-timeline [data-p='P2'] {
  --at: 7.03%;
  --row: 0;
}

.app-timeline [data-p='P3'] {
  --at: 17.97%;
  --row: 0;
}

.app-timeline [data-p='P4'] {
  --at: 33.07%;
  --row: 0;
}

.app-timeline [data-p='P5'] {
  --at: 37.76%;
  --row: 1;
}

.app-timeline [data-p='P6'] {
  --at: 42.97%;
  --row: 1;
}

.app-timeline [data-p='P7'] {
  --at: 45.57%;
  --row: 0;
}

.app-timeline [data-p='P8'] {
  --at: 48.18%;
  --row: 1;
}

.app-timeline [data-p='P9'] {
  --at: 51.3%;
  --row: 0;
}

.app-timeline [data-p='P10'] {
  --at: 65.89%;
  --row: 0;
}

.timeline [data-p='P1'] {
  --at: 6%;
  --row: 0;
}

.timeline [data-p='P3'] {
  --at: 22%;
  --row: 1;
}

.timeline [data-p='P4'] {
  --at: 38%;
  --row: 0;
}

.timeline [data-p='P5'] {
  --at: 52%;
  --row: 1;
}

.timeline [data-p='P7'] {
  --at: 62%;
  --row: 0;
}

.timeline [data-p='P9'] {
  --at: 74%;
  --row: 1;
}

.timeline [data-p='P10'] {
  --at: 92%;
  --row: 0;
}

/* --- The front page: the specs strip --------------------------------------------------------- */

.specs {
  border-top: 1px solid var(--dark-rule);
  background: var(--ink);
  color: var(--on-dark);
}

.specs dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
}

@media (min-width: 52rem) {
  .specs dl {
    grid-template-columns: repeat(4, 1fr);
  }
}

.specs dl > div {
  padding: 28px 16px 28px 0;
  border-bottom: 1px solid var(--dark-rule);
}

@media (min-width: 52rem) {
  .specs dl > div {
    padding: 36px 24px;
    border-bottom: 0;
    border-left: 1px solid var(--dark-rule);
  }

  .specs dl > div:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

.specs dt {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.specs dt small {
  color: var(--lime);
  font-size: 0.55em;
  letter-spacing: 0;
  margin-left: 4px;
}

.specs dd {
  margin: 6px 0 0;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* --- The front page: sections ---------------------------------------------------------------- */

.section {
  padding-top: 96px;
  padding-bottom: 8px;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 40px;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

/* How it works. */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
  counter-increment: step;
}

.step::before {
  content: '0' counter(step);
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--muted);
  font: 700 0.8rem/1 var(--mono);
  letter-spacing: 0.1em;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--pine-900);
  color: var(--lime);
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* The features: a grid of tiles, each with a small picture of the product. */
.bento {
  display: grid;
  gap: 16px;
}

@media (min-width: 52rem) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .tile-wide {
    grid-column: span 2;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tile p {
  margin: 0;
  color: var(--muted);
}

.tile .eyebrow {
  margin-bottom: 8px;
}

.tile-dark {
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgb(52 160 74 / 28%), transparent 70%), var(--pine-950);
  border-color: transparent;
  color: var(--on-dark);
}

.tile-dark p {
  color: var(--on-dark-muted);
}

.tile-dark .eyebrow {
  color: var(--lime);
}

.demo {
  margin-top: auto;
  padding-top: 28px;
}

/* The capture states: watching, recording, strike, saved. */
.states {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .states {
    grid-template-columns: repeat(4, 1fr);
  }
}

.states li {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--dark-rule);
  background: var(--dark-surface);
  color: var(--on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.states strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--on-dark);
  font: 700 0.75rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.states strong::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(255 255 255 / 30%);
}

.states .live {
  border-color: rgb(196 242 93 / 45%);
  background: rgb(196 242 93 / 8%);
}

.states .live strong::before {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(196 242 93 / 20%);
}

/* The setup check's spoken guidance. */
.bubbles {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bubbles li {
  justify-self: start;
  padding: 9px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  font-size: 0.92rem;
}

.bubbles .done {
  background: var(--pine-700);
  color: #ffffff;
  font-weight: 700;
}

/* The player's speeds. */
.speeds {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px;
  margin: 0;
  border-radius: 12px;
  background: var(--surface-2);
  list-style: none;
  font: 700 0.95rem/1 var(--mono);
  text-align: center;
}

.speeds li {
  padding: 11px 0;
  border-radius: 9px;
  color: var(--muted);
}

.speeds .on {
  background: var(--pine-900);
  color: var(--lime);
}

/* Frame stepping. */
.keys {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 0.85rem/1 var(--mono);
  color: var(--muted);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  border-bottom-width: 3px;
  background: var(--surface);
  color: var(--fg);
  font: 700 1rem/1 var(--mono);
}

.keys output {
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* The timeline with the swing's positions marked, as the web app's player marks them. */
.timeline {
  position: relative;
  height: 64px;
}

.timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
}

.timeline-track::before {
  content: '';
  position: absolute;
  inset: 0 38% 0 0;
  border-radius: 3px;
  background: var(--pine-600);
}

.timeline span:not(.timeline-track) {
  position: absolute;
  left: var(--at);
  bottom: calc(22px + var(--row) * 22px);
  min-width: 30px;
  padding: 0 5px;
  transform: translateX(-50%);
  border-radius: 6px;
  background: #1d2a22;
  box-shadow: inset 0 0 0 1px var(--mark);
  color: var(--mark);
  font: 700 0.7rem/19px var(--mono);
  text-align: center;
}

/* A position's tick, down from its label to across the track. */
.timeline span:not(.timeline-track)::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: calc(10px + var(--row) * 22px);
  margin-left: -1px;
  background: var(--mark);
}

.timeline span.here {
  background: var(--mark);
  color: var(--ink);
}

/* Sharing. */
.shares {
  margin: 0;
  padding: 0;
  list-style: none;
}

.shares li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--dark-rule);
  font-size: 0.92rem;
}

.shares li:last-child {
  border-bottom: 1px solid var(--dark-rule);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--pine-700);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
}

.avatar-link {
  background: rgb(196 242 93 / 16%);
  color: var(--lime);
}

.shares span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shares small {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.8rem;
}

.shares .tag {
  flex: none;
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--dark-rule);
  color: var(--on-dark-muted);
  font: 600 0.75rem/1 var(--mono);
}

/* The region. */
.region {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}

.region strong {
  display: block;
}

.region small {
  color: var(--muted);
}

.region-code {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--pine-900);
  color: var(--lime);
  font: 800 0.85rem/1 var(--mono);
}

/* Plans. */
.plans {
  display: grid;
  gap: 16px;
  max-width: 34rem;
  margin: 0 auto;
}

/* Three cards side by side, or one column: never two and one left alone. */
@media (min-width: 60rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: none;
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
}

.plan-featured {
  border-color: var(--pine-700);
  box-shadow:
    0 0 0 1px var(--pine-700),
    var(--shadow);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
}

.plan-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pine-900);
  color: var(--lime);
  font: 700 0.68rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-group {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--eyebrow);
  font: 700 0.72rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-group + .ticks {
  padding-top: 4px;
  border-top: 0;
}

.plan-action {
  margin-top: auto;
}

.plan .ticks:last-of-type {
  margin-bottom: 28px;
}

.plan-action-off {
  background: var(--surface-2);
  color: var(--muted);
  cursor: default;
}

.plan-action-off:hover {
  background: var(--surface-2);
}

.button-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--rule);
}

.button-outline:hover {
  background: var(--surface-2);
}

.price {
  margin: 18px 0 4px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan .note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.93rem;
}

.ticks {
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pine-700)
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.5 8.2l2.3 2.3 4.7-5" fill="none" stroke="%23ffffff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 16px no-repeat;
}

.plans-note {
  max-width: 40rem;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* The privacy promises. */
.promise {
  margin-top: 96px;
  padding: 88px 0;
  background:
    radial-gradient(40rem 24rem at 0% 100%, rgb(52 160 74 / 26%), transparent 70%), var(--pine-950);
  color: var(--on-dark);
}

.promise .section-head p {
  color: var(--on-dark-muted);
}

.promise .eyebrow {
  color: var(--lime);
}

.promises {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-rule);
  border: 1px solid var(--dark-rule);
}

@media (min-width: 40rem) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .promises {
    grid-template-columns: repeat(4, 1fr);
  }
}

.promises li {
  padding: 28px;
  background: var(--pine-950);
}

.promises h3 {
  margin-bottom: 8px;
}

.promises p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

.promises .icon {
  margin-bottom: 18px;
  background: rgb(196 242 93 / 12%);
}

.promise-link {
  margin: 28px 0 0;
}

.promise-link a {
  color: var(--lime);
  font-weight: 700;
}

/* Questions and answers. */
.faq {
  max-width: 48rem;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font: 600 1.3rem/1 var(--mono);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42rem;
  margin: -6px 0 24px;
  color: var(--muted);
}

/* The closing call to action. */
.cta {
  padding: 96px 0;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(36rem 20rem at 50% 120%, rgb(196 242 93 / 22%), transparent 70%),
    linear-gradient(160deg, var(--pine-800), var(--pine-950));
  color: var(--on-dark);
}

.cta-box h2 {
  margin: 0 auto 14px;
  max-width: 18ch;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.035em;
}

.cta-box p {
  max-width: 34rem;
  margin: 0 auto 28px;
  color: var(--on-dark-muted);
}

/* --- Documents: the legal pages -------------------------------------------------------------- */

.page-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(40rem 16rem at 10% 0%, rgb(52 160 74 / 10%), transparent 70%), var(--bg);
}

.page-head h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.page-head .summary {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.updated {
  display: inline-block;
  margin: 20px 0 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 0.78rem/1.3 var(--mono);
}

.doc-layout {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 96px;
}

@media (min-width: 60rem) {
  .doc-layout {
    grid-template-columns: 15rem minmax(0, 46rem);
    gap: 64px;
  }

  .doc-layout .toc {
    position: sticky;
    top: 92px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

.doc {
  max-width: 46rem;
  min-width: 0;
}

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

.doc h2 {
  padding-top: 8px;
  font-size: 1.5rem;
}

.doc h3 {
  margin-top: 1.6rem;
}

.doc li {
  margin: 6px 0;
}

.toc {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--rule);
  font-size: 0.93rem;
}

.toc h2 {
  margin: 0 0 10px;
  color: var(--muted);
  font: 700 0.75rem/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.35;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--muted);
  font: 600 0.78rem/1.6 var(--mono);
}

.toc a:hover {
  color: var(--accent);
}

/* A highlighted box inside a document. */
.callout {
  margin: 1.5rem 0;
  padding: 18px 22px;
  border-radius: var(--radius-small);
  border-left: 4px solid var(--pine-600);
  background: var(--surface-2);
}

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

.callout > :last-child {
  margin-bottom: 0;
}

/* Ways to do something, as numbered cards. */
.ways {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.ways li {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius-small);
  background: var(--surface);
  border: 1px solid var(--rule);
}

.ways h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.ways p {
  margin: 0;
  color: var(--muted);
}

.table {
  margin: 1.25rem 0;
  overflow-x: auto;
  border-radius: var(--radius-small);
  border: 1px solid var(--rule);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.5;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font: 700 0.72rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* On narrow screens each row becomes a card, with the column name above each value. */
@media (max-width: 40rem) {
  .table {
    border: 0;
    background: none;
    overflow: visible;
  }

  .table table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
  }

  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table tr {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
  }

  .table td {
    padding: 6px 0;
    border: 0;
  }

  .table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font: 700 0.7rem/1.4 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

/* The 404 page. */
.not-found {
  padding: 96px 0 120px;
  text-align: center;
}

.not-found .code {
  margin: 0 0 8px;
  color: var(--eyebrow);
  font: 800 clamp(4rem, 14vw, 7rem)/1 var(--mono);
  letter-spacing: -0.04em;
}

.not-found p {
  color: var(--muted);
}

.not-found .actions {
  margin-top: 28px;
}

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

  * {
    transition: none !important;
  }
}
