/* /try/ shared base (16 Nov 2026). Tokens = useharris.com. Written for easy reading: big headings, short lines, one
   action per step. Buttons are pills, icon buttons circles. Each design (a.css, b.css, c.css) adds its own look and layout;
   this file holds only the parts all three share: type, the form controls and their states. */
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-grotesk-500-static.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/assets/fonts/hanken-grotesk-700-static.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --paper: #F6F6F3; --ink: #16151F; --slate: #4B4A57; --violet: #4C1FD1; --violet-down: #3B16A8; --green: #0B7A55; --red: #A3261B;
  --rule: #DCDBD3; --card: #FFFFFF; --tint: #ECE8FA; --night: #16151F;
  --body: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 16px; --max: 1240px;
  --bg: var(--paper); --fg: var(--ink); --muted: var(--slate); --panel: var(--card); --chip: var(--card); --chip-on: var(--violet); --accent: var(--violet);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 720px) { :root { --pad: 32px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 19px/1.55 var(--body); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
h1, h2, h3 { font-weight: 700; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--violet); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.small { font-size: 16px; }
svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: inherit; font: 700 20px/1 var(--body); letter-spacing: -.01em; }
.mark img { width: 34px; height: 34px; }
.toplink { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 700; font-size: 17px; color: inherit; }

/* pills and circles */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--violet); color: #fff; font: 700 18px/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .18s, transform .12s var(--ease), box-shadow .18s; }
.pill:hover { background: var(--violet-down); }
.pill:active { transform: scale(.97); }
.pill svg { width: 20px; height: 20px; }
.pill.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.pill.ghost:hover { background: var(--fg); color: var(--bg); }
.pill[disabled] { opacity: .7; cursor: progress; }
.circle { width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center; border: 0; padding: 0; cursor: pointer; flex: none;
  background: var(--violet); color: #fff; transition: background .18s, transform .12s var(--ease); }
.circle:hover { background: var(--violet-down); }
.circle:active { transform: scale(.94); }
.circle svg { width: 22px; height: 22px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* the form */
.steps { counter-reset: st; display: grid; }
.st { counter-increment: st; position: relative; }
.sth h2 { font-size: 30px; line-height: 1.1; }
.sth h2::before { content: counter(st); display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; margin-right: .4em; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8em; vertical-align: .12em; letter-spacing: 0; }
.hint { margin-top: 8px; color: var(--muted); font-size: 18px; max-width: 30em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input, .vc input, .ok input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--chip); color: var(--fg);
  font-weight: 700; font-size: 18px; cursor: pointer; box-shadow: inset 0 0 0 2px var(--rule); transition: background .15s, color .15s, transform .12s var(--ease), box-shadow .15s; }
.chip span svg { width: 0; height: 18px; opacity: 0; transition: width .15s, opacity .15s; }
.chip:hover span { box-shadow: inset 0 0 0 2px var(--accent); }
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--chip-on); color: #fff; box-shadow: none; }
.chip input:checked + span svg { width: 18px; opacity: 1; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.field { display: block; width: 100%; max-width: 30rem; min-height: 60px; padding: 0 20px; border-radius: 18px; border: 0; background: var(--panel); color: var(--fg);
  font-size: 22px; font-weight: 700; box-shadow: inset 0 0 0 2px var(--rule); transition: box-shadow .15s; }
.field::placeholder { color: #8B8A96; font-weight: 500; }
.field:focus { outline: none; box-shadow: inset 0 0 0 3px var(--accent); }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 3px var(--red); }
.elab { display: block; margin: 20px 0 8px; font-weight: 700; font-size: 18px; }
.elab span { font-weight: 500; color: var(--muted); }
#em { font-size: 19px; min-height: 54px; }
.ferr { margin-top: 10px; color: var(--red); font-weight: 700; font-size: 17px; }

.voices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.voice { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 0; border-radius: 999px; background: var(--chip); box-shadow: inset 0 0 0 2px var(--rule); transition: box-shadow .15s, background .15s; }
.voice:has(input:checked) { box-shadow: inset 0 0 0 3px var(--accent); }
.vc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 52px; padding-left: 16px; cursor: pointer; }
.vtick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--rule); flex: none; transition: background .15s; }
.vtick svg { width: 16px; height: 16px; opacity: 0; color: #fff; }
.vc input:checked ~ .vtick { background: var(--accent); box-shadow: none; }
.vc input:checked ~ .vtick svg { opacity: 1; }
.vc input:focus-visible ~ .vtext { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.vtext { display: grid; line-height: 1.2; }
.vtext b { font-size: 19px; }
.vtext small { font-size: 15px; color: var(--muted); }
.play .i-stop { display: none; }
.play.on .i-play { display: none; }
.play.on .i-stop { display: block; }
.play.on { background: var(--ink); animation: pulse 1.2s var(--ease) infinite; }
.play.none { background: var(--rule); color: var(--muted); }
.vnote { position: absolute; left: 56px; bottom: -22px; font-size: 14px; color: var(--muted); }
@keyframes pulse { 50% { transform: scale(1.08); } }

.ok { position: relative; display: flex; gap: 14px; align-items: flex-start; max-width: 34em; cursor: pointer; font-size: 19px; line-height: 1.45; font-weight: 700; }
.ok .box { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); box-shadow: inset 0 0 0 2px var(--slate); transition: background .15s, transform .12s var(--ease); }
.ok .box svg { width: 22px; height: 22px; color: #fff; opacity: 0; }
.ok input:checked + .box { background: var(--accent); box-shadow: none; }
.ok input:checked + .box svg { opacity: 1; }
.ok input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 3px; }
.ok:active .box { transform: scale(.92); }
.ok + .ferr + .small, .ok ~ .small { margin-top: 12px; }

.gowrap { display: grid; gap: 14px; justify-items: start; }
.go { min-height: 68px; padding: 0 40px; font-size: 22px; }
.go svg { width: 24px; height: 24px; }
.sending .go svg { animation: ring .5s ease-in-out infinite; }
@keyframes ring { 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.status { font-weight: 700; font-size: 19px; }
.status.bad { color: var(--red); }
.fine { font-size: 16px; color: var(--muted); max-width: 32em; }

.done { padding: 28px; border-radius: 32px; background: var(--panel); display: grid; gap: 14px; }
.done h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.done h2:focus { outline: none; }
.done p { font-size: 20px; max-width: 30em; }
.done .acts { margin-top: 8px; }

/* footer */
.foot { padding: 56px 0 64px; font-size: 16px; }
.foot .fname { font: 700 clamp(56px, 12vw, 160px)/.9 var(--body); letter-spacing: -.05em; margin-bottom: 18px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 12px; }
.foot a { color: inherit; display: inline-flex; min-height: 44px; align-items: center; }

/* entrances (only with script, never hiding content without it) */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
  .js .rise.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* British / American voice groups (16 Nov 2026) */
.voices .vgroup { grid-column: 1 / -1; margin: 6px 0 0; font-size: .95rem; font-weight: 700; opacity: .8; }

/* Founding 10 (27 Nov 2026): the block shows only once /assets/founding.js has found places left (html.founding-on). */
html:not(.founding-on) [data-founding] { display: none !important; }
.founding { margin-top: 44px; background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 36px); max-width: 36em; display: grid; gap: 12px; justify-items: start; }
.founding .fk { margin: 0; font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; }
.founding .fp { margin: 0; font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; }
.founding .fl { margin: 0; font-weight: 700; font-size: 20px; color: var(--violet); }
.founding .fc, .founding .ff { margin: 0; font-size: 18px; line-height: 1.45; }
.founding .ff { font-size: 16px; color: var(--slate); }
.founding .pill, .buy .founding .pill { background: var(--violet); color: #fff; margin-top: 6px; }
.founding .pill:hover, .buy .founding .pill:hover { background: var(--violet-down); color: #fff; }
.founding a:focus-visible, .buy .founding a:focus-visible { outline-color: var(--violet); }
