/* The showcase page: the app's dark theme and blue (web/public/style.css), mobile first. */
:root {
  color-scheme: dark;
  --bg: #0e1621;
  --surface: #17212b;
  --surface-2: #202b36;
  --line: #2a3947;
  --text: #f1f5f9;
  --muted: #8aa0b4;
  --accent: #64b5ef;
  --accent-ink: #0b1620;
  --radius: 1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 Inter, system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 1.6rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
p { margin: 0; }
.muted { color: var(--muted); }

/* One column, 16px gutters on a phone */
.hero, main > section, .again, .foot { width: min(100% - 32px, 40rem); margin-inline: auto; }

/* Above the fold on a phone: name, headline, one line, the button; the clip right under them */
.hero { padding-top: 1.5rem; text-align: center; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--accent); letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; margin: 0.6rem 0 0.8rem; }
.lede { color: #c9d4de; max-width: 34rem; margin-inline: auto; }

.cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 1.5rem #64b5ef55;
}
.cta:focus-visible, summary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.clip { position: relative; margin: 1.75rem auto 0; max-width: 26rem; }
.clip video { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); background: #0b0d11;
              border: 1px solid var(--line); }

main > section { margin-top: 3.5rem; }

/* The form in Tally's dark theme, in the app's colours (site/README.md, "The form"), on a card of the app's surface
   so it's plain where it starts and ends: its embed is transparent, so it takes the card's colour */
.join { scroll-margin-top: 1rem; }
.form-card { margin-top: 1.25rem; padding: 1rem 1rem 0.5rem; border-radius: var(--radius); background: var(--surface);
             border: 1px solid var(--line); }
.form-card iframe { display: block; border: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: 1.1rem 1.1rem 1.1rem 3.4rem; background: var(--surface); border-radius: var(--radius);
            counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.05rem; width: 1.6rem; height: 1.6rem;
                    border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 700;
                    display: grid; place-items: center; font-size: 0.9rem; }
.steps p, .fact p, .faq p { color: #c9d4de; }
/* A step's own clip: smaller than the main one, played only when asked */
.step-clip { display: block; width: 100%; max-width: 20rem; margin-top: 0.9rem; aspect-ratio: 4 / 5;
             border-radius: var(--radius); background: #0b0d11; border: 1px solid var(--line); }

.facts { display: grid; gap: 1rem; }
.fact { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); }

.maker p { font-size: 1.05rem; }

.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 0.5rem; }

.again { text-align: center; margin-top: 2.5rem; }
.foot { margin-top: 3rem; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--muted);
        font-size: 0.9rem; text-align: center; }

@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
