/* gudtrms landing page. Same look as the judge view (judge/src/theme.css): warm linen and paper,
   an editorial serif, muted terracotta and sage, duct tape down the middle. Built for phones first. */
:root {
  --page: #f4eee5;
  --surface: #fffcf7;
  --surface-2: #f8f2e9;
  --line: #e7ddcf;
  --line-strong: #d7c8b4;

  --ink: #2a2320;
  --ink-2: #594d45;
  --ink-3: #74665c;

  --accent: #a0503a;
  --accent-soft: #f5e1d8;
  --deal: #46704f;
  --deal-soft: #e1ebdf;
  --nodeal: #a93a2c;
  --nodeal-soft: #f6ddd7;
  --tape: #efe5cf;
  --redact: #2a2320;

  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(72, 48, 28, 0.05), 0 4px 14px rgba(72, 48, 28, 0.06);
  --shadow-md: 0 2px 4px rgba(72, 48, 28, 0.05), 0 14px 36px rgba(72, 48, 28, 0.1);
  --shadow-lg: 0 6px 12px rgba(72, 48, 28, 0.06), 0 32px 80px rgba(72, 48, 28, 0.18);

  --gutter: 16px;
  /* Duct tape, as in the judge view: creases where it got pressed down unevenly, the fabric weave, a silver sheen */
  --duct-texture: repeating-linear-gradient(-14deg, transparent 0 70px, rgba(255,255,255,.2) 70px 73px, transparent 73px 150px, rgba(0,0,0,.12) 150px 152px, transparent 152px 230px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 4px);
  --duct-sheen: #858683, #b8b9b6 28%, #a2a3a0 52%, #c9cac7 68%, #8f908d;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(900px 600px at 12% 0%, rgba(245, 225, 216, 0.75), transparent 70%),
    radial-gradient(900px 700px at 92% 38%, rgba(225, 235, 223, 0.6), transparent 70%),
    var(--page);
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.serif { font-family: var(--font-display); font-optical-sizing: auto; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sprite { position: absolute; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid rgba(215, 200, 180, 0.55); }

/* Buttons (same as the judge view) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); text-decoration: none;
  font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-sm); white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, .link-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.primary:hover { background: #3d3430; }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.big { height: 58px; padding: 0 28px; font-size: 18px; }
.btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.nav-link { font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
@media (max-width: 480px) { .nav-link { display: none; } }
.logo { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; text-decoration: none; line-height: 1; }
.logo span { font-style: italic; font-weight: 400; color: var(--accent); }
/* The wordmark inside text: same as the logo, at the size of the text around it. */
.brand { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.02em; }
.brand i { font-weight: 400; color: var(--accent); }

/* Hero */
.hero { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.hero h1 {
  margin: 18px auto 0; max-width: 15ch; font-weight: 600; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(44px, 9.4vw, 104px);
}
.hero .lede { margin: 26px auto 0; max-width: 40em; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: center; }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-3); font-weight: 500; }
@media (min-width: 720px) { .hero { padding-top: 64px; padding-bottom: 56px; } }
@media (max-width: 539px) { .hero h1 .hl { display: block; } }

/* ---------- The line: two private lanes and the duct tape between them ---------- */
.line {
  display: grid; gap: 14px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'a b' 'mid mid';
}
.lane { grid-area: a; background: rgba(255, 252, 247, 0.7); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; min-width: 0; box-shadow: var(--shadow-sm); }
.lane-b { grid-area: b; }
.lane-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.lane-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.lane-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.lane-lock .icon { width: 13px; height: 13px; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 92%; padding: 8px 12px; border-radius: 18px; font-size: 13.5px; line-height: 1.35;
  opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--surface); border-bottom-right-radius: 6px; }
.bubble.agent { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble.agent.no { background: var(--nodeal-soft); border-color: transparent; color: var(--nodeal); font-weight: 600; }
.bubble.agent.yes { background: var(--deal-soft); border-color: transparent; color: var(--deal); font-weight: 600; }
.bubble.shown { opacity: 1; transform: none; }

.mid { grid-area: mid; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 0 20px; }
/* Duct tape across the middle: a strip with ragged edges plus three crooked torn-off pieces slapped over it.
   Edge points come from the judge view's jitter (judge/src/components/TapeZone.tsx), so it looks the same.
   Phones: the strip runs across, behind the proposal card. Desktop (below): it runs down between the lanes. */
.duct { position: absolute; z-index: 0; left: -40px; right: -40px; top: 50%; height: 84px; translate: 0 -50%; rotate: -1.2deg; filter: drop-shadow(0 2px 3px rgba(40, 40, 40, 0.28)); }
.duct-strip {
  position: absolute; inset: 0;
  background-image: var(--duct-texture), linear-gradient(180deg, var(--duct-sheen));
  background-size: auto, auto, auto, 100% 50%; /* two sheens, like two pieces laid side by side */
  clip-path: polygon(0% 1.6%, 2.5% 6.7%, 5% 5.1%, 7.5% 4.1%, 10% 2.5%, 12.5% 7.4%, 15% 6.8%, 17.5% 4.5%, 20% 4.7%, 22.5% 4.7%, 25% 0.2%, 27.5% 5.3%, 30% 5.5%, 32.5% 3.6%, 35% 7.6%, 37.5% 3.1%, 40% 3.8%, 42.5% 2.1%, 45% 8.9%, 47.5% 6.4%, 50% 7.8%, 52.5% 7.7%, 55% 0.4%, 57.5% 5.7%, 60% 8.4%, 62.5% 2.1%, 65% 6.9%, 67.5% 1.4%, 70% 8.2%, 72.5% 1.6%, 75% 3.1%, 77.5% 5.1%, 80% 3.3%, 82.5% 3.6%, 85% 5.1%, 87.5% 1%, 90% 5.8%, 92.5% 8.6%, 95% 2.2%, 97.5% 2.4%, 100% 7%, 100% 96.2%, 97.5% 96.1%, 95% 95.8%, 92.5% 92.7%, 90% 93.5%, 87.5% 93.5%, 85% 98.3%, 82.5% 96.5%, 80% 99.7%, 77.5% 94.3%, 75% 99.9%, 72.5% 93.1%, 70% 95.1%, 67.5% 98.7%, 65% 94.8%, 62.5% 92.1%, 60% 96.3%, 57.5% 99.2%, 55% 99.1%, 52.5% 95.5%, 50% 95.3%, 47.5% 95.5%, 45% 91.7%, 42.5% 95.9%, 40% 91.4%, 37.5% 94%, 35% 93.3%, 32.5% 98.2%, 30% 92.7%, 27.5% 91.8%, 25% 96.6%, 22.5% 94.9%, 20% 94.8%, 17.5% 94.9%, 15% 94.9%, 12.5% 95.2%, 10% 91.5%, 7.5% 97%, 5% 96.7%, 2.5% 99.3%, 0% 99.8%);
}
.duct-patch {
  position: absolute; top: 50%; width: 130px; height: 44px; margin: -22px 0 0 -65px;
  background-image: var(--duct-texture), linear-gradient(90deg, var(--duct-sheen));
}
.duct-patch.p1 { left: 9%; rotate: 69deg; clip-path: polygon(7% 0%, 0.1% 12.5%, 1.9% 25%, 6.5% 37.5%, 7.5% 50%, 8.9% 62.5%, 4.8% 75%, 5.8% 87.5%, 8.9% 100%, 96% 100%, 99.4% 87.5%, 98.6% 75%, 94.5% 62.5%, 95% 50%, 97.4% 37.5%, 97.2% 25%, 95.9% 12.5%, 93% 0%); }
.duct-patch.p2 { left: 50%; rotate: 105deg; clip-path: polygon(4.2% 0%, 3% 12.5%, 6.8% 25%, 8.7% 37.5%, 2.4% 50%, 3.6% 62.5%, 8.1% 75%, 1.6% 87.5%, 6.1% 100%, 95.3% 100%, 91.4% 87.5%, 95.9% 75%, 99.6% 62.5%, 95.8% 50%, 98.4% 37.5%, 99.2% 25%, 97.2% 12.5%, 97.3% 0%); }
.duct-patch.p3 { left: 91%; rotate: 82deg; clip-path: polygon(7.2% 0%, 0.4% 12.5%, 0.9% 25%, 8.4% 37.5%, 0.7% 50%, 1.5% 62.5%, 6.2% 75%, 5% 87.5%, 2.5% 100%, 96% 100%, 95.2% 87.5%, 92.6% 75%, 98.8% 62.5%, 94.9% 50%, 97% 37.5%, 96.9% 25%, 95.2% 12.5%, 93.9% 0%); }
.mid > *:not(.duct) { position: relative; z-index: 1; }
.mid-label { background: var(--page); padding: 2px 10px; border-radius: 999px; }
.mid-note { font-size: 13px; color: var(--ink-3); font-weight: 500; text-align: center; background: var(--page); padding: 2px 10px; border-radius: 999px; }

.proposal {
  position: relative; width: min(100%, 300px); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px 16px;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); text-align: center;
  opacity: 0; transform: translateY(10px) rotate(-1deg); transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.proposal .r2 { display: none; }
.line[data-step='5'] .proposal .r1, .line[data-step='6'] .proposal .r1, .line[data-step='7'] .proposal .r1 { display: none; }
.line[data-step='5'] .proposal .r2, .line[data-step='6'] .proposal .r2, .line[data-step='7'] .proposal .r2 { display: inline; }
.line[data-step='3'] .proposal, .line[data-step='4'] .proposal, .line[data-step='5'] .proposal,
.line[data-step='6'] .proposal, .line[data-step='7'] .proposal { opacity: 1; transform: rotate(-1deg); }
.proposal-round { font-size: 11px; color: var(--accent); }
.proposal-body { margin-top: 4px; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.proposal-pay { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.verdicts { margin-top: 10px; display: flex; gap: 8px; justify-content: center; }
.verdict {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: 12px; font-weight: 700; color: var(--ink-3);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.verdict b { display: none; align-items: center; gap: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.verdict .icon { width: 14px; height: 14px; stroke-width: 3; }
.verdict.accept, .verdict.reject { color: var(--surface); border-style: solid; animation: slam 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
.verdict.accept { background: var(--deal); border-color: var(--deal); }
.verdict.reject { background: var(--nodeal); border-color: var(--nodeal); }
.verdict.accept .acc, .verdict.reject .rej { display: inline-flex; }
.verdict.accept .who, .verdict.reject .who { opacity: 0.85; }

.stamp {
  position: absolute; left: 50%; top: 30%; font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--deal); padding: 6px 14px; border-radius: 8px; border: 3px solid currentColor; outline: 2px solid currentColor; outline-offset: 4px;
  background: rgba(255, 252, 247, 0.92); box-shadow: var(--shadow-md); pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); transition: opacity 0.2s, transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.line[data-step='7'] .deal-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
@keyframes slam { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 860px) {
  .line { grid-template-columns: 1fr 300px 1fr; grid-template-areas: 'a mid b'; gap: 0; align-items: stretch; }
  .lane { padding: 22px; min-height: 360px; }
  .lane-name { font-size: 32px; }
  .lane-lock { font-size: 13px; }
  .lane-b .lane-head { align-items: flex-end; }
  .bubble { font-size: 15px; padding: 10px 14px; }
  .mid { justify-content: center; padding: 0 10px; }
  .duct { left: 50%; right: auto; top: -40px; bottom: -40px; width: 124px; height: auto; translate: -50% 0; rotate: 0.8deg; }
  .duct-strip {
    background-image: var(--duct-texture), linear-gradient(90deg, var(--duct-sheen));
    background-size: auto, auto, auto, 50% 100%;
    clip-path: polygon(1.3% 0%, 5.2% 2.5%, 4% 5%, 3.2% 7.5%, 1.9% 10%, 5.8% 12.5%, 5.3% 15%, 3.5% 17.5%, 3.7% 20%, 3.7% 22.5%, 0.1% 25%, 4.1% 27.5%, 4.3% 30%, 2.8% 32.5%, 5.9% 35%, 2.4% 37.5%, 3% 40%, 1.7% 42.5%, 6.9% 45%, 5% 47.5%, 6.1% 50%, 6% 52.5%, 0.3% 55%, 4.4% 57.5%, 6.5% 60%, 1.6% 62.5%, 5.4% 65%, 1.1% 67.5%, 6.4% 70%, 1.2% 72.5%, 2.4% 75%, 3.9% 77.5%, 2.6% 80%, 2.8% 82.5%, 4% 85%, 0.8% 87.5%, 4.5% 90%, 6.7% 92.5%, 1.7% 95%, 1.8% 97.5%, 5.5% 100%, 97% 100%, 96.9% 97.5%, 96.8% 95%, 94.3% 92.5%, 94.9% 90%, 94.9% 87.5%, 98.6% 85%, 97.2% 82.5%, 99.7% 80%, 95.6% 77.5%, 99.9% 75%, 94.6% 72.5%, 96.2% 70%, 99% 67.5%, 96% 65%, 93.9% 62.5%, 97.1% 60%, 99.4% 57.5%, 99.3% 55%, 96.5% 52.5%, 96.3% 50%, 96.5% 47.5%, 93.5% 45%, 96.8% 42.5%, 93.3% 40%, 95.3% 37.5%, 94.8% 35%, 98.6% 32.5%, 94.3% 30%, 93.6% 27.5%, 97.4% 25%, 96% 22.5%, 96% 20%, 96% 17.5%, 96% 15%, 96.2% 12.5%, 93.4% 10%, 97.7% 7.5%, 97.5% 5%, 99.5% 2.5%, 99.8% 0%);
  }
  /* Same pieces and angles as the judge view's PATCHES */
  .duct-patch { left: 50%; width: 180px; height: 52px; margin: -26px 0 0 -90px; }
  .duct-patch.p1 { top: 8%; left: calc(50% - 14px); rotate: -21deg; }
  .duct-patch.p2 { top: 46%; left: calc(50% + 12px); rotate: 15deg; }
  .duct-patch.p3 { top: 88%; left: calc(50% - 6px); rotate: -8deg; }
  .proposal { width: 280px; }
}

/* ---------- Sections ---------- */
.section { padding-top: 88px; }
.section h2 { margin-top: 10px; font-size: clamp(32px, 5.4vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; }

.features { margin-top: 36px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 4px;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon.sage { background: var(--deal-soft); color: var(--deal); }
.feature-icon .icon { width: 24px; height: 24px; }

/* How it works */
.how { display: grid; gap: 48px; align-items: center; }
@media (min-width: 940px) { .how { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; }
.step-n {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
  font-size: 24px; font-weight: 600; font-style: italic; color: var(--accent);
}
.steps h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.steps p { color: var(--ink-2); font-size: 16px; }

.agreement {
  position: relative; margin: 0; padding: 34px 28px 26px; background: #fffdf8; border-radius: 6px; box-shadow: var(--shadow-lg);
  rotate: 1.2deg; max-width: 520px; justify-self: center;
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(160, 80, 58, 0.1) 31px 32px);
}
.tape-piece {
  position: absolute; top: -14px; left: 50%; translate: -50% 0; rotate: -3deg; width: 120px; height: 30px;
  background: var(--tape); opacity: 0.95; box-shadow: 0 1px 2px rgba(72, 48, 28, 0.12);
}
.agreement ul { margin: 14px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.agreement li::marker { color: var(--accent); }
.signatures { margin-top: 22px; display: flex; gap: 28px; flex-wrap: wrap; border-top: 1px dashed var(--line-strong); padding-top: 14px; }
.signatures span { display: inline-flex; align-items: baseline; gap: 10px; }
.signatures i { font-family: var(--font-hand); font-style: normal; font-size: 30px; line-height: 1; }
.signatures b { font-size: 12px; letter-spacing: 0.1em; color: var(--deal); background: var(--deal-soft); padding: 3px 8px; border-radius: 999px; }

/* Sign up */
.signup { padding-bottom: 40px; }
.signup-card { max-width: 560px; margin: 0 auto; padding: 32px 22px; position: relative; }
@media (min-width: 560px) { .signup-card { padding: 40px; } }
.signup-card h2 { margin-top: 8px; font-size: clamp(32px, 6vw, 44px); }
.signup-sub { margin-top: 10px; color: var(--ink-2); }
#signup-form { display: flex; flex-direction: column; }
#signup-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input {
  height: 54px; padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 17px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #a99c90; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.field input[aria-invalid='true'] { border-color: var(--nodeal); }
.err { color: var(--nodeal); font-size: 14px; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 28px; width: 100%; }
.submit .busy { display: none; }
.submit[disabled] { opacity: 0.75; cursor: progress; }
.submit[disabled] .label { display: none; }
.submit[disabled] .busy { display: inline; }
.form-error { margin-top: 12px; color: var(--nodeal); font-weight: 600; font-size: 15px; text-align: center; }
.form-error:empty { display: none; }
.fine { margin-top: 16px; font-size: 14px; color: var(--ink-3); text-align: center; }

.done { text-align: center; display: flex; flex-direction: column; align-items: center; outline: none; }
.done[hidden] { display: none; }
.done-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: var(--deal); color: var(--surface); animation: slam 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }
.done-check .icon { width: 32px; height: 32px; stroke-width: 2.5; }
.done h2 { margin-top: 18px; margin-bottom: 22px; }
.line-label { font-size: 20px; color: var(--ink-2); }
.line-number { margin-top: 2px; font-size: clamp(30px, 7vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.start-btn { margin-top: 22px; width: 100%; height: 64px; font-size: 20px; }
.start-btn .icon { width: 22px; height: 22px; }
.code-alt { margin-top: 26px; width: 100%; border-top: 1px dashed var(--line-strong); padding-top: 16px; text-align: left; }
.code-alt summary { cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.code-alt p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.code-row { margin-top: 10px; display: flex; gap: 10px; }
.code-row input {
  width: 120px; height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 20px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.code-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); outline: none; }
.link-btn { margin-top: 18px; background: none; border: 0; padding: 4px; color: var(--ink-3); font-size: 14px; text-decoration: underline; cursor: pointer; }

/* Footer */
.footer { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-3); font-size: 14px; }
.footer .logo { font-size: 26px; color: var(--ink); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
