@font-face {
  font-family: Lexend;
  src: url('/assets/Lexend.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* A compact one-page introduction. The sample is an actual local exercise. */
:root {
  color-scheme: light dark;
  --paper: #fff;
  --ink: #242620;
  --muted: #62655e;
  --line: #dedfd9;
  --surface: #f4f5f1;
  --orange: #f95c2a;
  --accent-ink: #ba3b15;
  --action: #ba3b15;
  --on-action: #fff;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 5px; }
h1, h2, p { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; background: var(--paper); padding: 12px; transform: translateY(-160%); z-index: 2; }
.skip:focus { transform: translateY(0); }
.nav { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 700; letter-spacing: -.9px; }
.brand img { border-radius: 10px; }
.demo-link { display: inline-flex; align-items: center; gap: 18px; font-size: 14px; padding-block: 12px; }
.demo-link:hover { color: var(--accent-ink); }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: 56px 64px; }
.hero-copy { min-width: 0; }
.eyebrow { margin-bottom: 25px; color: var(--muted); font-size: 14px; line-height: 1.5; }
h1 { font-size: clamp(42px, 4.6vw, 64px); font-weight: 650; line-height: 1.08; letter-spacing: -.065em; }
h1 span { color: var(--accent-ink); }
.intro { max-width: 440px; font-size: 17px; line-height: 1.65; color: var(--muted); margin-top: 26px; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; min-height: 54px; padding: 14px 22px; border-radius: 12px; background: var(--action); color: var(--on-action); font-size: 16px; font-weight: 600; margin-top: 30px; white-space: nowrap; transition: transform 140ms ease; }
.primary:hover { transform: translateY(-2px); }
.demo { min-width: 0; background: var(--surface); padding: 24px; border-radius: 24px; scroll-margin-top: 24px; }
.demo-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 20px; font-size: 12px; line-height: 1.5; }
.sample-label { color: var(--muted); white-space: nowrap; }
.sample-card { position: relative; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); line-height: 1.5; }
#card-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.card-content { padding-block: 32px 16px; }
.card-content h2 { min-height: 112px; font-family: Lexend, sans-serif; font-size: clamp(22px, 2.1vw, 27px); font-weight: 700; line-height: 1.4; letter-spacing: -.7px; }
.answer-space { min-height: 86px; padding-top: 18px; }
.card-content p { font-size: 16px; line-height: 1.55; }
.card-controls { display: flex; align-items: center; gap: 14px; }
.card-controls button { background: var(--paper); border: 1px solid var(--line); border-radius: 9px; min-height: 46px; padding: 10px 14px; font-size: 13px; transition: background 140ms ease, border-color 140ms ease; }
.card-controls button:hover { background: var(--surface); border-color: var(--muted); }
#reveal { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#reveal span { font-size: 18px; line-height: 1; }
.card-controls #next { display: inline-flex; align-items: center; gap: 14px; border-color: transparent; }
.demo-caption { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.demo-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.how-it-works { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; border-top: 1px solid var(--line); padding-block: 30px 36px; align-items: start; }
.steps-intro { color: var(--muted); font-size: 14px; line-height: 1.6; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { display: flex; align-items: baseline; gap: 12px; }
.step-number { color: var(--accent-ink); font-size: 11px; font-variant-numeric: tabular-nums; }
.steps h2 { font-size: 14px; font-weight: 600; line-height: 1.6; }
.steps p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #181a18; --ink: #f2f4ef; --muted: #b0b5ac; --surface: #222520; --line: #3c4139; --accent-ink: #ff986f; --action: #ff986f; --on-action: #181a18; }
}
@media (prefers-reduced-motion: no-preference) {
  .sample-card.is-changing .card-content { animation: card-in 160ms both; }
  .card-content p:not([hidden]) { animation: answer-in 160ms both; }
  @keyframes card-in { from { opacity: .3; } to { opacity: 1; } }
  @keyframes answer-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .primary:hover { transform: none; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { grid-template-columns: 1.1fr 1fr; gap: 32px; }
  .demo { padding: 18px; }
  .sample-card { padding: 22px; }
  .demo-heading { flex-wrap: wrap; gap: 2px 12px; }
  .how-it-works { grid-template-columns: 1fr; gap: 24px; }
  .steps-intro br { display: none; }
  .desktop-break { display: none; }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 40px); }
  .nav { min-height: 80px; }
  .brand { font-size: 22px; }
  .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .demo-link { font-size: 12px; gap: 8px; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 32px 36px; }
  .eyebrow { font-size: 12px; margin-bottom: 20px; }
  h1 { font-size: clamp(36px, 8.6vw, 60px); }
  .intro { font-size: 16px; margin-top: 20px; }
  .primary { margin-top: 24px; min-height: 50px; }
  .demo { width: 100%; max-width: 520px; justify-self: center; }
  .demo-heading { flex-wrap: nowrap; margin-bottom: 16px; font-size: 11px; }
  .card-content { padding-top: 26px; }
  .card-content h2 { min-height: 94px; font-size: 23px; }
  .answer-space { min-height: 86px; }
  .how-it-works { padding-block: 26px; gap: 22px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li { gap: 18px; }
  .steps p { margin-top: 2px; font-size: 13px; }
  .footer { padding-block: 20px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .demo { padding: 14px; }
  .sample-card { padding: 18px; }
  .demo-heading { flex-wrap: wrap; }
  .card-controls { gap: 6px; }
  .card-controls button { padding-inline: 10px; }
}
@media (max-height: 760px) and (min-width: 768px) {
  .nav { min-height: 76px; }
  .hero { padding-block: 28px 36px; }
  .card-content { padding-top: 24px; }
  .card-content h2 { min-height: 100px; }
  .how-it-works { padding-block: 24px; }
  .footer { padding-block: 18px; }
}
