/* QuoteNext marketing site. Same "quiet paper" tokens as the app, so the site and the product read as one thing. */
:root {
  --bg: #f4f2ec; --surface: #ffffff; --surface-2: #faf9f6; --ink: #16181d; --muted: #6b6f7a; --line: #e0ddd5; --desk: #d9d6cc; --mark-dot: #3ad17a;
  --accent: #2b47c9; --accent-ink: #ffffff; --accent-soft: #eef0fb;
  --proposed: #7c5ce6; --proposed-soft: #f7f5ff;
  --ok: #1f9d55; --ok-soft: #e6f6ec; --ok-ink: #1f7a45;
  --warn: #d98e04; --warn-soft: #fff4d6; --warn-ink: #a86a00;
  --bad: #d64545; --bad-soft: #fdf1f1;
  --font-display: "Manrope", system-ui, sans-serif; --font-body: "IBM Plex Sans", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius-s: 8px; --radius: 12px; --radius-l: 16px;
  --shadow-1: 0 1px 2px rgba(22,24,29,.04), 0 6px 18px rgba(22,24,29,.06);
  --shadow-2: 0 1px 2px rgba(22,24,29,.04), 0 12px 36px rgba(22,24,29,.08);
  --shadow-3: 0 1px 2px rgba(22,24,29,.06), 0 14px 40px rgba(22,24,29,.16);
  --shadow-accent: 0 6px 18px rgba(43,71,201,.22);
  --ease: cubic-bezier(.2,.7,.2,1); --dur-fast: 120ms; --dur: 240ms; --dur-slow: 450ms;
  --gutter: clamp(16px, 5vw, 72px); --measure: 62ch;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #151517; --surface: #1f1f22; --surface-2: #26262a; --ink: #f2f2f4; --muted: #a0a3ad; --line: #34343a; --desk: #0f0f11; --mark-dot: #66e3a0;
  --accent: #8ea6ff; --accent-ink: #0b1a3a; --accent-soft: #232a47;
  --proposed: #a68cff; --proposed-soft: #2a2440; --ok: #4cc07a; --ok-soft: #1d3327; --ok-ink: #4cc07a;
  --warn: #f0b03a; --warn-soft: #3b3012; --warn-ink: #f0b03a; --bad: #f07070; --bad-soft: #3d2222;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.35); --shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 12px 36px rgba(0,0,0,.4); --shadow-3: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5); --shadow-accent: 0 6px 18px rgba(142,166,255,.25);
} }
:root[data-theme="dark"] {
  --bg: #151517; --surface: #1f1f22; --surface-2: #26262a; --ink: #f2f2f4; --muted: #a0a3ad; --line: #34343a; --desk: #0f0f11; --mark-dot: #66e3a0;
  --accent: #8ea6ff; --accent-ink: #0b1a3a; --accent-soft: #232a47;
  --proposed: #a68cff; --proposed-soft: #2a2440; --ok: #4cc07a; --ok-soft: #1d3327; --ok-ink: #4cc07a;
  --warn: #f0b03a; --warn-soft: #3b3012; --warn-ink: #f0b03a; --bad: #f07070; --bad-soft: #3d2222;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.35); --shadow-2: 0 1px 2px rgba(0,0,0,.3), 0 12px 36px rgba(0,0,0,.4); --shadow-3: 0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.5); --shadow-accent: 0 6px 18px rgba(142,166,255,.25);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.55 var(--font-body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
header, main, footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; margin: 0; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; }
h1 .w { display: inline-block; animation: word-rise 700ms var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes word-rise { from { opacity: 0; transform: translateY(.45em) rotate(1.5deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-copy .lede, .hero-copy .hero-actions { animation: rise 700ms var(--ease) both; animation-delay: 420ms; }
.hero-copy .hero-actions { animation-delay: 540ms; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
a { color: var(--accent); }
.mono { font-family: var(--font-mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: var(--radius-s); z-index: 100; }
.skip:focus { left: 8px; }
section { padding: clamp(64px, 9vw, 128px) var(--gutter); }
section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 10px 18px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn:active { transform: none; box-shadow: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-accent); }
.btn.sm { min-height: 34px; padding: 6px 14px; font-size: 14px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 760px) { .topnav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 96px); max-width: 1320px; margin: 0 auto; }
.hero > * { max-width: none; margin: 0; min-width: 0; }
.lede { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

/* ---------- live demo ---------- */
.demo { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-3); overflow: hidden; font-size: 13px; line-height: 1.45; height: 584px; display: flex; flex-direction: column; }
.demo-titlebar { position: relative; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 14px; font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--muted); }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px 10px; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-title { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.demo-id { font-size: 11px; color: var(--muted); }
.demo-pills { display: flex; gap: 8px; }
.demo-pill { border: 1px solid var(--line); border-radius: 10px; padding: 5px 11px; font-weight: 600; font-size: 12px; background: var(--surface); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur-fast) var(--ease); }
.demo-pill.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.demo-pill.press { transform: scale(.96); }
.demo-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 2px; }
.demo-toggle i { font-style: normal; font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 8px; color: var(--muted); transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.demo-toggle i.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.demo.customer .demo-margin, .demo.customer .demo-threads { opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.demo.customer .demo-paper { grid-column: 1 / -1; transition: none; }
.demo.customer .demo-p.proposed { background: transparent; border-left-color: transparent; padding-left: 0; }
.demo-p.accepted { background: transparent !important; border-left: 0 !important; padding: 0 !important; }
.demo-margin, .demo-threads { transition: opacity var(--dur-slow) var(--ease); }
.demo-export { position: absolute; right: 18px; bottom: 16px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 12px; padding: 7px 14px; border-radius: 10px; box-shadow: var(--shadow-accent); animation: rise var(--dur) var(--ease) both; }
.demo-strip { display: flex; gap: 5px; padding: 10px 18px 0; }
.demo-strip i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background var(--dur-slow) var(--ease); }
.demo-strip i.ok { background: var(--ok); } .demo-strip i.warn { background: var(--warn); } .demo-strip i.bad { background: var(--bad); }
.demo-body { position: relative; flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; padding: 14px 18px 18px; }
.demo-drop { grid-column: 1 / -1; align-self: center; justify-self: center; width: 100%; max-width: 480px; min-height: 230px; border: 2px dashed var(--line); border-radius: var(--radius-l); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.demo-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.demo-drop.out { opacity: 0; }
.demo-drop[hidden] { display: none; }
.demo-paper { align-self: start; }
.demo-drop-hint { color: var(--muted); font-size: 14px; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 11px 5px 6px; font-size: 12px; font-weight: 500; background: var(--surface); box-shadow: var(--shadow-1); color: var(--ink); white-space: nowrap; }
.demo-chips .chip { animation: chip-land 520ms var(--ease) both; }
@keyframes chip-land { 0% { opacity: 0; transform: translateY(-46px) rotate(-6deg) scale(.9); } 60% { opacity: 1; transform: translateY(4px) rotate(1deg) scale(1.02); } 100% { transform: none; } }
.kb { flex: none; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 8.5px; font-weight: 800; color: #fff; font-style: normal; }
.k-pdf { background: var(--bad); } .k-docx { background: var(--accent); } .k-email { background: var(--muted); font-size: 11px; } .k-img { background: var(--warn); } .k-stl { background: var(--proposed); } .k-xlsx { background: var(--ok); }
.demo-paper { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 20px 22px; animation: rise var(--dur-slow) var(--ease) both; }
.demo-paper[hidden], .demo-margin[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.demo-sec + .demo-sec { margin-top: 14px; }
.demo-h { display: block; font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-bottom: 5px; }
.demo-p { font-size: 12.5px; line-height: 1.55; min-height: 1.5em; max-width: none; }
.demo-p:empty { display: none; }
.demo-p + .demo-p { margin-top: 6px; }
.demo-p.proposed:not(:empty) { background: var(--proposed-soft); border-left: 3px solid var(--proposed); padding: 7px 10px; border-radius: 8px; }
.demo-p .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: blink 900ms steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-p .lit { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); border-radius: 3px; }
.demo-margin { display: flex; flex-direction: column; gap: 8px; }
.dn { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; font-size: 11.5px; line-height: 1.4; animation: rise var(--dur) var(--ease) both; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dn b { display: block; font-size: 11.5px; font-weight: 700; margin-bottom: 2px; }
.dn.cite { border-left: 3px solid var(--ok); } .dn.cite b { color: var(--ok-ink); }
.dn.prop { border-left: 3px solid var(--proposed); } .dn.prop b { color: var(--proposed); }
.dn.q { border-left: 3px solid var(--warn); } .dn.q b { color: var(--warn-ink); }
.dn.lit { box-shadow: var(--shadow-2); transform: translateX(-3px); }
.dn .mini { display: flex; gap: 5px; margin-top: 6px; }
.dn .mini i { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line); }
.dn .mini i:first-child { background: var(--proposed); color: #fff; border-color: transparent; }
.dn.q .mini i:first-child { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.demo-threads { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.demo-threads path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .55; }
.demo-threads path.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: thread 700ms var(--ease) forwards; }
@keyframes thread { to { stroke-dashoffset: 0; } }
.demo-threads path.lit { opacity: 1; stroke-width: 2; }
.demo-replay { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; animation: rise var(--dur) var(--ease) both; }
.demo-replay:hover { color: var(--ink); }
.demo-replay[hidden] { display: none; }
@media (max-width: 560px) { .demo-toggle { display: none; } .demo { height: 640px; } .demo-body { grid-template-columns: 1fr; grid-template-rows: 1fr auto; } .demo-paper { overflow: hidden; } .demo-margin { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .dn { min-width: 170px; flex: none; } .demo-threads { display: none; } }

/* ---------- from RFQ to quote ---------- */
.third { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.third > * { max-width: none; margin: 0; min-width: 0; }
.third-copy p { margin-top: 20px; color: var(--muted); }
.third-copy p:last-child { color: var(--ink); font-weight: 600; }
.rfq { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.rfq-mail { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 16px 18px; font-size: 13.5px; transform: rotate(-1.5deg); }
.rfq-mail-head { font-size: 12px; color: var(--muted); }
.rfq-mail-head span { font-weight: 600; color: var(--ink); }
.rfq-mail-subj { font-weight: 600; margin: 6px 0 10px; }
.rfq-mail ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.6; }
.rfq-arrow { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 12px; }
.rfq-stack { position: relative; height: 220px; }
.rfq-page { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-1); padding: 16px 18px; font-size: 11.5px; }
.rfq-page:nth-child(2) { transform: translate(5px, 5px); z-index: -1; } .rfq-page:nth-child(3) { transform: translate(10px, 10px); z-index: -2; }
.rfq-page:nth-child(4) { transform: translate(15px, 15px); z-index: -3; } .rfq-page:nth-child(5) { transform: translate(20px, 20px); z-index: -4; }
.rfq-page b { display: block; font-family: var(--font-display); font-size: 14px; margin-bottom: 10px; }
.rfq-page i { display: block; font-style: normal; color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .04em; padding: 5px 0; border-top: 1px solid var(--line); }
.rfq-count { position: absolute; right: -8px; bottom: 6px; background: var(--ink); color: var(--bg); font-family: var(--font-display); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-2); }
.rfq.lit .rfq-mail { animation: nudge 600ms var(--ease); }
@keyframes nudge { 50% { transform: rotate(0deg) translateX(6px); } }
@media (max-width: 860px) { .third { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .rfq { grid-template-columns: 1fr; } .rfq-arrow svg { transform: rotate(90deg); } .rfq-stack { height: 200px; margin-right: 20px; } }

/* ---------- how it works ---------- */
.how { background: color-mix(in srgb, var(--surface) 78%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-head h2 { max-width: 22ch; }
.steps { list-style: none; margin: clamp(40px, 5vw, 72px) auto 0; padding: 0; display: grid; gap: clamp(48px, 6vw, 96px); }
.step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-n { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step-text p { margin-top: 10px; color: var(--muted); max-width: 42ch; }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; } .step:nth-child(even) .step-text { order: 0; } }

/* illustrations: small rendered app states, no screenshots */
.reveal { opacity: .2; transform: translateY(22px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.ill { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; min-height: 260px; display: flex; flex-direction: column; justify-content: center; gap: 16px; font-size: 13px; box-shadow: var(--shadow-1); }
.ill-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ill-dash { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.ill-btn { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 8px 16px; border-radius: 10px; box-shadow: var(--shadow-accent); }
.ill-prog { display: flex; gap: 6px; }
.seg { flex: 1; font-size: 11px; color: var(--muted); font-weight: 500; }
.seg b { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 6px; }
.seg.done { color: var(--ok-ink); } .seg.done b { background: var(--ok); }
.seg.on { color: var(--ink); font-weight: 600; } .seg.on b { background: var(--accent); }
.ill-lines { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; box-shadow: var(--shadow-1); }
.ill-lines i { display: block; height: 9px; width: var(--w); border-radius: 5px; background: var(--line); }
.ill-lines i.blink { width: 2px; height: 14px; background: var(--accent); animation: blink 900ms steps(1) infinite; }
.ill-q { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-1); }
.ill-q .qn { width: 22px; height: 22px; border-radius: 50%; background: var(--warn-soft); color: var(--warn-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.ill-q em { margin-left: auto; font-style: normal; color: var(--accent); font-weight: 600; }
.ill-instr { background: var(--surface); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow-1); }
.ill-instr > span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ill-type { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface-2); }
.ill-type i { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: blink 900ms steps(1) infinite; }
.ill-undo { align-self: flex-start; background: var(--ink); color: var(--bg); padding: 7px 12px; border-radius: 999px; font-size: 12px; }
.ill-undo u { text-decoration: none; font-weight: 700; margin-left: 4px; }
.ill-sheet { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); font-family: var(--font-mono); font-size: 11px; }
.ill-sheet .r { display: grid; grid-template-columns: 1fr 44px 56px 56px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.ill-sheet .r.h { background: var(--surface-2); font-weight: 600; color: var(--muted); }
.ill-sheet .r span:nth-child(n+2) { text-align: right; }
.ill-sheet .fill { background: var(--warn-soft); border-radius: 4px; color: var(--warn-ink); }
.ill-files { display: flex; gap: 8px; flex-wrap: wrap; }
.file { background: var(--surface); border-radius: 999px; padding: 5px 12px 5px 8px; font-size: 12px; font-weight: 500; box-shadow: var(--shadow-1); display: inline-flex; align-items: center; gap: 7px; }
.file::before { content: ""; width: 10px; height: 12px; border-radius: 2px; background: var(--accent); }
.file.pdf::before { background: var(--bad); }
.ill-frozen { align-self: stretch; text-align: center; font-size: 12px; padding: 8px; border-radius: 10px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; }

/* ---------- the margin ---------- */
.margin-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.margin-sec > * { max-width: none; margin: 0; min-width: 0; }
.margin-copy > p { margin-top: 20px; color: var(--muted); }
.legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.legend li { padding-left: 18px; border-left: 3px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--muted); }
.legend b { color: var(--ink); display: block; font-weight: 600; }
.legend .lg-cite { border-color: var(--ok); } .legend .lg-prop { border-color: var(--proposed); } .legend .lg-q { border-color: var(--warn); }
.sample { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; box-shadow: var(--shadow-2); position: sticky; top: 84px; }
.sample-paper { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-1); font-size: 15px; line-height: 1.75; }
.sample-paper p { max-width: none; }
.sample-paper p + .demo-h { margin-top: 18px; }
.s { cursor: default; border-radius: 4px; padding: 1px 2px; transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ok) 45%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.s.prop { text-decoration-color: color-mix(in srgb, var(--proposed) 55%, transparent); background: var(--proposed-soft); }
.s.q { text-decoration-color: var(--warn); text-decoration-style: wavy; }
.s.lit { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.s.prop.lit { background: var(--proposed-soft); box-shadow: 0 0 0 3px var(--proposed-soft); }
.sample-margin { display: flex; flex-direction: column; gap: 9px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; line-height: 1.4; opacity: .55; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.note b { display: block; font-weight: 700; margin-bottom: 2px; }
.note span { color: var(--muted); display: block; }
.note q { display: block; margin-top: 6px; font-style: italic; color: var(--ink); quotes: none; }
.note.cite { border-left: 3px solid var(--ok); } .note.cite b { color: var(--ok-ink); }
.note.prop { border-left: 3px solid var(--proposed); } .note.prop b { color: var(--proposed); }
.note.q { border-left: 3px solid var(--warn); } .note.q b { color: var(--warn-ink); }
.note.lit { opacity: 1; transform: translateX(-4px); box-shadow: var(--shadow-2); }
.sample:not(:hover) .note.rest { opacity: 1; }
.note-btns { display: flex; gap: 6px; margin-top: 8px; }
.note-btns i { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.note.prop .note-btns i:first-child { background: var(--proposed); color: #fff; border-color: transparent; }
@media (max-width: 960px) { .margin-sec { grid-template-columns: 1fr; } .sample { position: static; } }
@media (max-width: 600px) { .sample { grid-template-columns: 1fr; } .sample-margin { flex-direction: row; overflow-x: auto; } .note { min-width: 210px; } }

/* ---------- your machine ---------- */
.private { background: var(--ink); color: var(--bg); }
.private h2 { max-width: 20ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); }
.fact h3 { color: var(--bg); }
.fact p { margin-top: 10px; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 15.5px; }
.compare { margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-col { background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 16%, transparent); border-radius: var(--radius-l); padding: 14px; }
.cmp-head { font-family: var(--font-display); font-weight: 700; font-size: 15px; padding: 4px 8px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cmp-head small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmp-sec { border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 500; display: flex; justify-content: space-between; gap: 10px; }
.cmp-sec + .cmp-sec { margin-top: 6px; }
.cmp-sec small { font-weight: 400; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmp-sec.same { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.cmp-sec.changed { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn-soft); }
.cmp-sec.added { background: color-mix(in srgb, var(--ok) 26%, transparent); color: var(--ok-soft); }
.cmp-sec.removed { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad-soft); }
.compare figcaption { grid-column: 1 / -1; font-size: 14px; color: color-mix(in srgb, var(--bg) 60%, transparent); margin-top: 6px; }
@media (max-width: 600px) { .compare { grid-template-columns: 1fr; } }

/* ---------- your shop ---------- */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.shop > * { max-width: none; margin: 0; min-width: 0; }
.shop-copy p { margin-top: 20px; color: var(--muted); }
.pack { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-2); overflow: hidden; }
.pack-head { font-family: var(--font-mono); font-size: 12.5px; padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); }
.pack-list { list-style: none; margin: 0; padding: 8px 0; }
.pack-list li { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px 20px; font-size: 14.5px; line-height: 1.45; }
.pack-list li + li { border-top: 1px solid var(--line); }
.pack-list span { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.pack-list em { font-style: normal; color: var(--muted); }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* ---------- calculator + lead ---------- */
.cta { background: color-mix(in srgb, var(--surface) 78%, transparent); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cta > * { max-width: none; margin: 0; min-width: 0; }
.ask > p, .lead > p { margin-top: 16px; color: var(--muted); }
.ask-sentence { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; line-height: 1.5; color: var(--ink) !important; margin-top: 28px !important; max-width: 20em; }
.num { display: inline-block; }
.num input { width: 2.6em; font: inherit; font-weight: 800; text-align: center; color: var(--accent); background: var(--surface-2); border: 0; border-bottom: 3px solid var(--accent); border-radius: 8px 8px 0 0; padding: 0 2px 2px; margin: 0 2px; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num input:focus-visible { outline: none; background: var(--accent-soft); }
.ask-result { margin-top: 26px !important; font-size: 19px; color: var(--ink) !important; max-width: 30em; }
.ask-result strong { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums; }
.ask-fine { margin-top: 14px !important; font-size: 13.5px; }
@media (max-width: 960px) { .cta { grid-template-columns: 1fr; } }
.lead { background: var(--bg); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-2); position: relative; }
.field { display: grid; gap: 6px; margin-top: 16px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea { font: inherit; font-size: 15px; padding: 10px 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.field.bad input, .field.bad select { border-color: var(--bad); }
.lead .btn { margin-top: 22px; width: 100%; min-height: 46px; font-size: 16px; }
.lead-fine { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.lead-done { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); border-left: 3px solid var(--ok); background: var(--ok-soft); color: var(--ok-ink); font-size: 14.5px; line-height: 1.5; animation: rise var(--dur) var(--ease) both; }
.lead-done.bad { border-left-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.lead-done[hidden] { display: none; }
.lead-done pre { margin: 10px 0 0; white-space: pre-wrap; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink); background: var(--surface); padding: 10px 12px; border-radius: var(--radius-s); }
.lead-done a { color: inherit; font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding: 40px var(--gutter) 56px; border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; max-width: calc(1180px + 2 * var(--gutter)); margin: 0 auto; }
.foot p { font-size: 14px; color: var(--muted); }

/* The film */
.film-head { text-align: center; margin-bottom: 32px; }
.film-head p { margin: 10px auto 0; color: var(--muted); font-size: 17px; }
.player { position: relative; max-width: 960px; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-3); }
.player-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease), opacity var(--dur-slow) var(--ease); }
.player-btn:hover img { transform: scale(1.02); }
.player-ring { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-accent); transition: transform var(--dur) var(--ease); }
.player-ring svg { margin-left: 3px; }
.player-btn:hover .player-ring, .player-btn:focus-visible .player-ring { transform: scale(1.06); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* The honeypot: present for the Worker, absent for people. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
