/* twelvehands.ai in the Twelvehands identity (design/identity-twelvehands): Stone neutrals, teal ink,
   Hanken Grotesk, Newsreader and IBM Plex Mono, all self-hosted. Dark sections use the dark tokens;
   light sections the light ones. One accent, used for the primary button and focus. */
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f3f2ef; --side: #ecebe7; --panel: #faf9f7; --card: #ffffff; --ink: #1d1c1a; --muted: #6b6862; --body: #4a4844;
  --line: #d6d4cf; --accent: #1e5b5d; --accent-ink: #ffffff; --err: #b3361f; --err-bg: #f7e4df;
  --d-bg: #121211; --d-panel: #1c1b1a; --d-ink: #e9e7e3; --d-muted: #a19d96; --d-line: #32302d; --d-accent: #7cc3bf; --d-accent-ink: #0c1a1a;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --r: 6px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
:is(a, button, input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }
.dark { background: var(--d-bg); color: var(--d-ink); --accent: var(--d-accent); --accent-ink: var(--d-accent-ink); }
.band { background: var(--side); }

/* nav */
.nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 22px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 var(--sans); letter-spacing: -0.02em; }
.mark { width: 24px; height: 24px; flex: none; }
.mark .m { stroke: currentColor; }
.mark .a { stroke: var(--accent); }
.nav-links { display: flex; gap: 24px; font-size: 15px; color: var(--d-muted); flex-wrap: wrap; margin-left: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: var(--r); font: 600 16px/1 var(--sans); border: 1px solid transparent; cursor: pointer; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--d-line); font-weight: 400; }

/* type */
h1, h2, .serif { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(52px, 8.4vw, 116px); line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.kicker { font: 650 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.num { font: 500 13px/1 var(--mono); color: var(--muted); }

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: clamp(48px, 9vw, 120px); }
.hero h1 { max-width: 1000px; }
.hero p { font-size: clamp(18px, 1.6vw, 21px); color: var(--d-muted); max-width: 640px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-shot { width: 100%; max-width: 1200px; margin-top: clamp(28px, 5vw, 64px); border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--d-line), 0 -20px 80px rgba(124, 195, 191, 0.08); }

/* sections */
.section { padding-block: clamp(72px, 10vw, 140px); display: flex; flex-direction: column; gap: 56px; }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 64px; align-items: end; }
.intro p { font-size: 19px; color: var(--body); }
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 48px; border-top: 1px solid var(--line); list-style: none; margin: 0; padding: 0; }
.jobs li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.jobs .num { padding-top: 4px; }
.jobs b { display: block; font-size: 18px; font-weight: 600; }
.jobs span.d { display: block; font-size: 15px; color: #5b5953; margin-top: 4px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--panel); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card .num { color: var(--accent); }
.card .serif { font-size: 26px; line-height: 1.15; }
.card p { font-size: 15.5px; color: var(--body); }
.shot { margin: 0; display: grid; gap: 10px; }
.shot img { border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.08); }
.caption { font-size: 14px; color: var(--muted); }
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); border-block: 1px solid var(--line); }
.funnel div { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 6px; }
.funnel .serif { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.funnel span:last-child { font-size: 15px; color: #5b5953; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.quotes .serif { font-size: 26px; line-height: 1.25; }
.quotes .from { font-size: 14px; color: var(--muted); }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; padding-bottom: clamp(72px, 10vw, 140px); }
.audiences > div { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.audiences .serif { font-size: 32px; line-height: 1.12; }
.audiences p { font-size: 16px; color: var(--body); }

/* call to action and footer */
.cta { padding-block: clamp(72px, 10vw, 128px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.cta h2 { font-size: clamp(44px, 6vw, 84px); line-height: 1; max-width: 900px; }
.cta p { font-size: 19px; color: var(--d-muted); max-width: 600px; }
.foot { padding-block: 28px 40px; border-top: 1px solid var(--d-line); display: flex; gap: 24px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--d-muted); }
.foot .lockup { font-size: 16px; color: var(--d-ink); gap: 8px; }
.foot .lockup .mark { width: 18px; height: 18px; }
.foot .spacer { flex: 1; }

/* request a demo */
.demo-page { min-height: 100vh; display: flex; flex-direction: column; }
.demo-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px; align-items: start; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); }
.demo-grid h1 { font-size: clamp(48px, 6.4vw, 88px); line-height: 1; }
.demo-copy { display: flex; flex-direction: column; gap: 28px; }
.demo-copy > p { font-size: 19px; color: var(--d-muted); max-width: 520px; }
.next { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--d-line); max-width: 520px; }
.next li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--d-line); }
.next .num { color: var(--d-accent); padding-top: 4px; }
.next b { display: block; font-weight: 600; }
.next span.d { display: block; font-size: 15px; color: var(--d-muted); }
.form-card { background: var(--panel); color: var(--ink); border-radius: 12px; padding: clamp(24px, 3vw, 36px); --accent: #1e5b5d; --accent-ink: #ffffff; }
.form-card form, .form-card .sent { display: flex; flex-direction: column; gap: 18px; }
.form-card .title { font-family: var(--serif); font-size: 28px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 580; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input, .field textarea { height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; padding: 0 12px; font: 400 15px/1.4 var(--sans); color: var(--ink); }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.chips legend { font-size: 14px; font-weight: 580; margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; cursor: pointer; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { font-size: 14px; color: var(--err); background: var(--err-bg); padding: 8px 12px; border-radius: var(--r); }
.form-card .submit { height: 48px; border: none; font-size: 16px; }
.form-card .small { font-size: 13px; color: var(--muted); }
.sent .mark { width: 40px; height: 40px; color: var(--ink); }
.sent .serif { font-size: 32px; line-height: 1.15; }
.sent p { font-size: 16px; color: var(--body); }
.sent .again { align-self: flex-start; height: 44px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; font: 15px var(--sans); cursor: pointer; color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 640px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
