/* Tolk landing page. Geist, served from this site (assets/fonts, SIL Open
   Font License), so nothing is fetched from anyone else. The look follows the
   kit's own demo: warm paper, ink-black buttons, a two-tone headline, real
   screens in quiet frames. */

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --band: #efede8;
  --ink: #131417;
  --text: #34363c;
  --muted: #5b5e66;
  --line: #e1ded6;
  --line-strong: #cbc7bd;
  --accent: #2b45d4;
  --accent-soft: #e6e9fb;
  --button: #131417;
  --button-ink: #ffffff;
  --code-bg: #15161a;
  --code-ink: #e9e8e4;
  --code-muted: #8d9099;
  --stale-bg: #fbefd6;
  --stale-ink: #7a4d00;
  --glow: rgba(43, 69, 212, 0.16);
  --shadow: 0 1px 2px rgba(19, 20, 23, 0.05), 0 18px 40px -18px rgba(19, 20, 23, 0.22);
  --shadow-high: 0 2px 4px rgba(19, 20, 23, 0.06), 0 28px 60px -20px rgba(19, 20, 23, 0.32);
  --radius: 16px;
  --radius-small: 10px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #17181b;
    --band: #131417;
    --ink: #f1f0ec;
    --text: #cdcdcf;
    --muted: #9c9fa6;
    --line: #26282d;
    --line-strong: #383b42;
    --accent: #93a4ff;
    --accent-soft: #1d2140;
    --button: #f1f0ec;
    --button-ink: #0e0f11;
    --code-bg: #17181b;
    --stale-bg: #362a11;
    --stale-ink: #f1c879;
    --glow: rgba(147, 164, 255, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-high: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 60px -20px rgba(0, 0, 0, 0.8);
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img,
video {
  height: auto;
}

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

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

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

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.875rem, 1.25rem + 2.4vw, 3rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

p,
ul,
dl {
  margin: 0 0 1rem;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .wrap {
    padding-inline: 1.5rem;
  }
}

section[id] {
  scroll-margin-top: 5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.mark {
  width: 1.75rem;
  height: 1.75rem;
}

.mark-back {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.mark-front {
  fill: var(--accent);
}

.site-header ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-header nav a:not(.button):hover {
  color: var(--ink);
}

@media (max-width: 759px) {
  .site-header nav li:not(:last-child) {
    display: none;
  }
}

/* ------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  box-shadow: 0 8px 20px -10px rgba(19, 20, 23, 0.6);
}

@media (prefers-reduced-motion: no-preference) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.button:disabled {
  cursor: not-allowed;
  background: var(--line);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

/* An arrow after the main action, as on the demo's own buttons. */
.button-arrow::after {
  content: "→";
  font-weight: 400;
}

/* A second action beside the main one: same shape, no fill. */
.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.button-quiet:hover {
  box-shadow: inset 0 0 0 1px var(--ink);
}

.button-small {
  min-height: 2.375rem;
  padding: 0.4rem 1.05rem;
  font-size: 0.9375rem;
}

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

.hero {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7.5rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.3rem 0.85rem 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.5rem, 1.3rem + 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 1.75rem;
}

.soft {
  color: var(--muted);
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hint {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* -------------------------------------------------- screens in frames */

.hero-shot {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  margin-bottom: clamp(3.5rem, 2rem + 5vw, 6rem);
}

/* A soft light behind the demo, like the ring on Varde's speakers. */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 10% 6% 0;
  z-index: -1;
  background: radial-gradient(60% 55% at 50% 50%, var(--glow), transparent 70%);
  filter: blur(30px);
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.75rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--band);
}

.browser-bar > span {
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser-bar p {
  flex: 0 1 18rem;
  min-width: 0;
  margin: 0 auto;
  padding: 0.15rem 0.75rem;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.langs {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
}

.langs li {
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  color: var(--muted);
}

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

@media (max-width: 479px) {
  .browser-bar > span {
    display: none;
  }

  .browser-bar p {
    margin-left: 0;
  }
}

figcaption {
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-shot figcaption {
  text-align: center;
}

/* -------------------------------------------------------------- facts */

.facts ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0 0 clamp(2rem, 1rem + 3vw, 3.5rem);
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .facts ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.facts li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.facts strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ------------------------------------------------------------ stories */

.kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

.story {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

@media (min-width: 1000px) {
  .story {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4.5rem;
  }

  .story-flip {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .story-flip .story-text {
    order: 2;
  }
}

.story-text > p:not(.kicker),
.story-body > p {
  color: var(--muted);
  font-size: 1.125rem;
}

/* A recording at full width under its text, so the admin stays legible. */
.story-wide {
  gap: 3rem;
}

.story-wide .story-text {
  display: grid;
  gap: 0.5rem 4.5rem;
}

@media (min-width: 1000px) {
  .story-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-wide .story-text {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .story-wide .story-body {
    padding-top: 2.1rem;
  }
}

.story-head h2 {
  margin-bottom: 0;
}

.story-media {
  margin: 0;
}

.ticks,
.checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.ticks li,
.checklist li {
  position: relative;
  padding-left: 1.875rem;
}

.ticks li::before,
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.ticks li::after,
.checklist li::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.5em;
  width: 0.45rem;
  height: 0.25rem;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* The recordings: a quiet frame, and a pause button once main.js runs. */
.loop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.loop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loop-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 20, 23, 0.8);
  color: #ffffff;
  cursor: pointer;
}

.loop-toggle:hover {
  background: rgba(19, 20, 23, 0.94);
}

.loop-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent);
}

/* Pause: two bars. */
.loop-toggle::before {
  content: "";
  width: 0.75rem;
  height: 0.85rem;
  border-inline: 0.24rem solid currentColor;
}

/* Play: a triangle. */
.loop-toggle[data-state="paused"]::before {
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.8rem;
  border-color: transparent transparent transparent currentColor;
}

/* Two admin screens on top of each other. Padding as a share of the width
   keeps the overlap the same at every size. */
.stack {
  position: relative;
  padding-bottom: 33%;
}

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stack > .shot:first-child {
  width: 80%;
}

.shot-float {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  box-shadow: var(--shadow-high);
}

/* ----------------------------------------------------------- the kit */

.showcase {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
  background: var(--band);
  border-block: 1px solid var(--line);
}

.section-lede {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.gallery {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

@media (min-width: 760px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.modules li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.modules strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

/* -------------------------------------------------------- developers */

.developers {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

@media (min-width: 1000px) {
  .developers {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 4.5rem;
  }
}

.dev-text > p:not(.kicker) {
  color: var(--muted);
  font-size: 1.125rem;
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: var(--shadow-high);
}

.code-title {
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--code-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.code-card pre {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.7;
}

.code-card .c {
  color: var(--code-muted);
}

/* On a phone the long lines wrap instead of scrolling sideways. */
@media (max-width: 559px) {
  .code-card pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

.code-card .stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.code-card .stack li {
  padding: 0.2rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--code-ink);
  font-size: 0.8125rem;
}

/* -------------------------------------------------------- what you get */

.get {
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) clamp(4rem, 2.5rem + 5vw, 7rem);
}

.licences {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 760px) {
  .licences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.licence {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.checklist {
  gap: 0.8rem 2.5rem;
  margin: 2.5rem 0;
}

@media (min-width: 760px) {
  .checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.status-note {
  max-width: 48rem;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  color: var(--muted);
}

/* ----------------------------------------------------------- waitlist */

.waitlist {
  background: var(--band);
  border-block: 1px solid var(--line);
  padding-block: clamp(4rem, 2.5rem + 5vw, 6.5rem);
}

.waitlist-inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .waitlist-inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
  }
}

.waitlist-inner > div > p {
  color: var(--muted);
  max-width: 30rem;
}

.waitlist-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  box-shadow: var(--shadow);
}

.field label,
.choice legend {
  display: block;
  color: var(--ink);
  font-weight: 550;
  margin-bottom: 0.5rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.field-row input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.field-row input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field-row input:focus-visible {
  outline-offset: 1px;
  border-radius: 999px;
}

.field-row input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.choice {
  border: 0;
  padding: 0;
  margin: 1.25rem 0 0;
}

.choice legend {
  padding: 0;
}

.choice label {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  margin-top: 0.35rem;
  color: var(--muted);
  cursor: pointer;
}

.choice input {
  accent-color: var(--accent);
  margin: 0;
  transform: translateY(0.1em);
}

.optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}

.help {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.closed-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: var(--stale-bg);
  color: var(--stale-ink);
  border-radius: var(--radius-small);
}

.closed-note strong {
  color: inherit;
}

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

.faq {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(4rem, 2.5rem + 5vw, 7rem);
}

@media (min-width: 1000px) {
  .faq {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: 4.5rem;
  }
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

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

.faq-list summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}

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

/* A plus that turns into a minus. */
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.875rem;
  height: 1.5px;
  background: var(--muted);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq-list summary::after {
    transition: transform 0.2s ease;
  }
}

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

.faq-list details p {
  margin: -0.25rem 0 1.5rem;
  max-width: 42rem;
  color: var(--muted);
}

/* ------------------------------------------ the walkthrough, when set */

.video {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-high);
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: var(--band);
}

.video-facade small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
}

.play {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--button);
}

.play::after {
  content: "";
  position: absolute;
  left: 38%;
  top: 30%;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.5rem;
  border-color: transparent transparent transparent var(--button-ink);
}

/* ----------------------------------- after signing up and confirming */

.notice {
  max-width: 40rem;
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
  text-align: center;
}

.notice h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  letter-spacing: -0.035em;
}

.notice .lede {
  margin-inline: auto;
}

.notice > p:not(.lede):not(.notice-mark):not(.notice-actions) {
  color: var(--muted);
}

.notice-mark {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* An envelope while waiting, a tick once confirmed. */
.notice-mark span {
  position: relative;
  width: 1.6rem;
  height: 1.15rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.notice-mark span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.42rem;
  width: 1rem;
  height: 1rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg) scale(0.82);
}

.notice-mark.is-done span {
  width: 1.4rem;
  height: 0.75rem;
  border: 0;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  border-radius: 0;
  transform: translateY(-0.15rem) rotate(-45deg);
}

.notice-mark.is-done span::before {
  content: none;
}

/* The status code on the not-found page, large and quiet. */
.notice-code {
  margin-bottom: 1rem;
  color: var(--line-strong);
  font-family: var(--mono);
  font-size: clamp(4rem, 3rem + 5vw, 7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* ------------------------------------------------------------- prose */

.prose {
  max-width: 44rem;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.prose h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 2.25rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 2.5rem;
}

.footer-inner p {
  margin: 0;
  max-width: 44rem;
}

.footer-inner a {
  color: var(--ink);
}
