/* TenderNinja landing, "Pen and highlighter" (docs/design/tenderninja-concepts.md). Same tokens as
   frontend/src/theme-tenderninja.ts. Yellow is only ever a highlighter behind text; blue is the pen (actions).
   Layout: one 1120px column, left-aligned text, each feature a two-column split that stacks on phones. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FFFFFF; --band: #F7F7F4; --card: #FFFFFF; --ink: #1A1C22; --muted: #5A5F6B; --line: #E6E7EC; --line2: #CDD0D8;
  --pen: #2442D6; --on-pen: #FFFFFF; --pen-tint: #EEF1FD; --fit: #127055; --fit-tint: #E2F3EC; --warn: #8A5A00; --warn-tint: #FFF3C7;
  --hl: #FFE352; --dark: #1A1C22; --on-dark: #FFFFFF;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --quote: "Instrument Serif", Georgia, serif;
  --shadow: 0 1px 0 var(--line), 0 24px 50px rgb(26 28 34 / 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111318; --band: #15181E; --card: #1A1D24; --ink: #ECEDF1; --muted: #A4A9B4; --line: #2B2F38; --line2: #3A3F4A;
    --pen: #9AABFF; --on-pen: #111318; --pen-tint: #1F2540; --fit: #6FD3A8; --fit-tint: #173A2F; --warn: #E9BE5C; --warn-tint: #3A2F12;
    --hl: rgb(255 220 61 / 0.30); --dark: #ECEDF1; --on-dark: #111318;
    --shadow: 0 0 0 1px var(--line), 0 24px 50px rgb(0 0 0 / 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
a { color: var(--pen); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.03em; font-weight: 650; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; }
h3 { font-size: 20px; letter-spacing: -0.02em; }
p { margin: 0; }
.in { width: 100%; max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--card); padding: 8px 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.pri { background: var(--pen); color: var(--on-pen); }
.btn.pri:hover { filter: brightness(1.1); }
.btn.sec { border-color: var(--line2); color: var(--ink); }
.btn.sec:hover { border-color: var(--ink); }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand.small { font-size: 16px; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav nav a:hover { color: var(--ink); background: var(--band); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -0.04em; }
.sub { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

.doc-wrap { position: relative; margin: 0; padding-right: 28%; }
.doc { background: var(--card); border: 1px solid var(--line2); border-radius: 4px; padding: 28px 30px 30px; box-shadow: var(--shadow); }
.doc-h { font-family: var(--quote); font-style: italic; font-size: 24px; }
.doc-meta { font-size: 12px; color: var(--muted); margin: 2px 0 14px; }
.ln { display: block; height: 8px; border-radius: 4px; background: var(--line); margin: 10px 0; }
.w92 { width: 92%; } .w90 { width: 90%; } .w88 { width: 88%; } .w84 { width: 84%; } .w72 { width: 72%; } .w60 { width: 60%; } .w86 { width: 86%; }
.tx { font-family: var(--quote); font-style: italic; font-size: 19px; line-height: 1.45; margin: 12px 0; }
mark { color: inherit; padding: 0 2px; background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 88%, transparent 88%); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.notes { position: absolute; inset: 0 0 auto auto; width: 30%; height: 100%; }
.note { position: absolute; left: 14px; font-size: 14px; line-height: 1.35; color: var(--pen); }
.note b { display: block; font-weight: 650; }
.note::before { content: ""; position: absolute; left: -30px; top: 10px; width: 24px; border-top: 2px solid var(--pen); }
.n1 { top: 28%; } .n2 { top: 58%; }

.sources { background: var(--band); border-block: 1px solid var(--line); }
.sources .in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 18px; font-size: 15px; }
.pill { border: 1px solid var(--line2); border-radius: 999px; padding: 4px 14px; background: var(--card); font-size: 14px; }
.more { color: var(--muted); font-size: 14px; }

.block { padding-block: 80px; }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 40px 0 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-size: 14px; color: var(--muted); }
.steps h3 { margin: 4px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border-top: 1px solid var(--line); }
.split.flip > :first-child { order: 2; }
.t { font-size: 18px; color: var(--muted); margin-top: 16px; max-width: 48ch; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.example { font-size: 12px; color: var(--muted); margin-top: 12px; }

.why-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; }
.fit { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.bar { width: 48px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--fit); }
.why { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--on-pen); }
.ic.ok { background: var(--fit); } .ic.risk { background: var(--warn); }
.why blockquote { margin: 6px 0 4px; font-family: var(--quote); font-style: italic; font-size: 18px; line-height: 1.4; }
.src { font-size: 12.5px; color: var(--muted); }

.form-h { font-weight: 650; margin-bottom: 8px; }
.field { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.field .lbl { color: var(--muted); }
.field .val { font-weight: 600; }
.field .from { font-size: 12px; color: var(--fit); background: var(--fit-tint); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.field.todo .val { color: var(--warn); }
.field.todo .from { color: var(--warn); background: var(--warn-tint); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 17px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; }
.ticks li::before { content: "✓"; color: var(--fit); font-weight: 700; }

.chips { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.conn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--line2); border-radius: 999px; background: var(--card); font-size: 16px; font-weight: 600; }
.conn small { font-weight: 400; color: var(--muted); font-size: 14px; }
.d { width: 10px; height: 10px; border-radius: 50%; }
.d.mcp { background: var(--fit); } .d.key { background: var(--pen); } .d.payg { background: #FFDC3D; box-shadow: 0 0 0 1.5px #8A6A00; }

.prices { background: var(--band); border-top: 1px solid var(--line); padding-block: 80px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.plan.main { border: 2px solid var(--pen); }
.for { color: var(--muted); font-size: 15px; margin-top: 2px; }
.price { margin-top: 18px; color: var(--muted); }
.price span { font-size: 40px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.yr { font-size: 14px; color: var(--muted); }
.plan ul { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; }
.plan li::before { content: "✓"; color: var(--fit); font-weight: 700; }
.plan li.plus { display: block; font-weight: 600; }
.plan li.plus::before { content: none; }
.trial { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; background: var(--dark); color: var(--on-dark); border-radius: 12px; padding: 24px 28px; }
.trial p { max-width: 62ch; }
.trial .btn.pri { background: var(--on-dark); color: var(--dark); }

.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 18px; min-height: 44px; }
.faq details p { color: var(--muted); padding-bottom: 18px; max-width: 65ch; }

.foot { border-top: 1px solid var(--line); }
.foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 26px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  /* The resting state is fully highlighted; "backwards" only holds the empty start during the delay, so a page that
     never animates (print, screenshots, link previews) still shows the marks. */
  .doc mark { background-repeat: no-repeat; background-size: 100% 100%; animation: swipe 0.9s 0.4s ease-out backwards; }
  .doc mark.m2 { animation-delay: 1.2s; }
  @keyframes swipe { from { background-size: 0 100%; } }
}

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .nav nav a:not(:last-child) { display: none; }
}
@media (max-width: 560px) {
  .hero { padding-block: 40px; }
  .doc-wrap { padding-right: 0; }
  .notes { position: static; width: auto; display: grid; gap: 10px; margin-top: 16px; }
  .note { position: relative; left: 0; padding-left: 30px; }
  .note::before { left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .field { grid-template-columns: minmax(0, 1fr) auto; }
  .field .lbl { grid-column: 1 / -1; font-size: 13px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .block, .prices { padding-block: 56px; }
}
