/* FFDraftPro — marketing site
 * Tokens are copied from the extension's theme.css: light on :root, dark via prefers-color-scheme.
 * No frameworks, no web fonts, no scripts.
 */
:root {
  color-scheme: light;
  --bg: #F2F4EE; --panel: #FFFFFF; --panel2: #F6F8F3; --panel3: #EDF0E9; --line: #D3D8CF; --line2: #E4E8DF;
  --text: #131C17; --text2: #2C3A32; --muted: #4E5D55; --dim: #6E7C74; --inverse: #FFFFFF;
  --accent: #0F7A3F; --accent-text: #0B6233; --accent-bg: #E1F2E7; --accent-line: #8FCBA4;
  --accent2: #1F5FA8; --accent2-text: #194E8A; --accent2-bg: #E5EEF9; --accent2-line: #9DBCE6;
  --gold: #8A6A00; --gold-bg: #FFF6D6; --gold-line: #D9B437;
  --focus: #1F5FA8;
  --radius: 10px; --radius-sm: 7px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(19, 28, 23, .06), 0 6px 18px rgba(19, 28, 23, .05);
  --shadow-pop: 0 10px 30px rgba(19, 28, 23, .18);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E1411; --panel: #161E19; --panel2: #1D2721; --panel3: #243029; --line: #2E3B34; --line2: #26322C;
    --text: #EAF0EB; --text2: #CBD5CE; --muted: #ADB9B1; --dim: #87948C; --inverse: #0E1411;
    --accent: #3FD27A; --accent-text: #6EE49C; --accent-bg: #163224; --accent-line: #2E6B48;
    --accent2: #6FB1FF; --accent2-text: #8EC2FF; --accent2-bg: #172A40; --accent2-line: #2F5A8A;
    --gold: #F0C948; --gold-bg: #2E2912; --gold-line: #6E5F1F;
    --focus: #8EC2FF;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-pop: 0 12px 34px rgba(0, 0, 0, .6);
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 24px + 3vw, 60px); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-size: clamp(27px, 20px + 1.4vw, 36px); letter-spacing: -.02em; }
h3 { font-size: 21px; letter-spacing: -.012em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent2-text); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent2); }
img { max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: .94em; color: var(--text); background: var(--panel3); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; }
b, strong { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 84px; }   /* clears the sticky header */
@media (max-width: 899px) { [id] { scroll-margin-top: 16px; } }

/* focus: always visible */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
main:focus-visible { outline: none; }

/* skip link */
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 200; padding: 12px 16px; border-radius: 8px; background: var(--accent); color: var(--inverse); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 8px; }

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

/* text links inside prose: 44px tall hit area without changing the line box */
.tl { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ------------------------------------------------------------------ layout */
.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(100% - 64px, 1180px); } }
section { padding-block: clamp(56px, 4vw + 32px, 104px); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 740px; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow .n { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.eyebrow .n::after { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); vertical-align: middle; margin-left: 10px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--text2); margin: 14px 0 0; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 20; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; min-height: 66px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand em { font-style: normal; color: var(--accent-text); }
.brand .sub { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; color: var(--text2); text-decoration: none; }
.nav a:hover { background: var(--panel2); color: var(--text); }
@media (max-width: 899px) {
  .top { position: static; }   /* the header wraps to two rows here; do not pin it */
  .nav { margin-left: -12px; width: calc(100% + 12px); }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--panel2); border-color: var(--dim); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--inverse); }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); border-color: var(--accent); color: var(--inverse); }
.btn svg { width: 18px; height: 18px; flex: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.fine { font-size: 15px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(44px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero .grid { display: grid; gap: 36px 48px; align-items: center; }
@media (min-width: 1100px) { .hero .grid { grid-template-columns: minmax(0, 1fr) 420px; } }
.hero h1 { margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero h1 .l { display: block; }
.hero .sub { font-size: clamp(18px, 16px + .5vw, 21px); line-height: 1.5; color: var(--text2); max-width: 46ch; margin: 0; }
.hero .shot { margin-top: clamp(36px, 5vw, 60px); }

/* stat strip — reads like the roster progress cells in the app */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) and (max-width: 1099px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 15px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.stats span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); }

/* ------------------------------------------------------------------ screenshots */
.shot { margin: 0; }
.shot .frame { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.hero .shot .frame { box-shadow: var(--shadow-pop); }
.shot img { display: block; width: 101.3%; max-width: none; height: auto; }   /* the frame clips the app window's own scrollbar off the right edge */
.shot figcaption { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ features */
.feature { display: grid; gap: 24px; align-items: center; padding-block: clamp(28px, 4vw, 52px); border-top: 1px solid var(--line2); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:last-child { padding-bottom: 0; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
  .feature:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .feature:nth-child(even) .shot { order: -1; }
}
.tag { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 4px 11px; border-radius: 999px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent-text); font-size: 14px; font-weight: 700; }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.feature h3 { font-size: clamp(24px, 18px + 1vw, 30px); margin-bottom: 12px; }
.feature .copy > p { color: var(--text2); }
.specs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.specs li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.specs li::before { content: ""; position: absolute; left: 0; top: .58em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.specs b { color: var(--text); }
.mini { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.mini li { counter-increment: s; position: relative; padding-left: 46px; min-height: 34px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.mini li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent-text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.mini b { color: var(--text); }

/* ------------------------------------------------------------------ install */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li { counter-increment: st; position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 88px; box-shadow: var(--shadow); font-size: 16px; line-height: 1.5; color: var(--text2); }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 22px; top: 17px; font-size: 36px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.steps .t { display: block; margin-bottom: 4px; font-size: 17px; color: var(--text); }
.steps strong { color: var(--text); }
@media (max-width: 479px) {
  .steps li { padding: 16px 16px 16px 70px; }
  .steps li::before { left: 16px; top: 15px; font-size: 30px; }
}
.then { margin-top: 32px; }
.then h3 { font-size: 19px; margin-bottom: 12px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.flow li { display: inline-flex; align-items: center; gap: 8px; }
.flow li + li::before { content: "\2192"; color: var(--muted); font-weight: 700; }
.flow .chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 15px; font-weight: 700; color: var(--text2); }
.flow .chip.last { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); }
@media (max-width: 559px) {
  .flow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flow li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flow li + li::before { content: "\2193"; padding-left: 14px; }
}
.notes { display: grid; gap: 14px; margin-top: 32px; }
@media (min-width: 760px) { .notes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 16px; line-height: 1.5; color: var(--text2); }
.note h3 { font-size: 17px; margin-bottom: 6px; }

/* ------------------------------------------------------------------ cards (model, privacy) */
.cards { display: grid; gap: 14px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards.two { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.card p { font-size: 16px; line-height: 1.55; color: var(--text2); }
.formula { display: inline-block; margin: 0 0 14px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--panel3); border: 1px solid var(--line2); font-size: 15px; font-weight: 700; color: var(--text); }
.formula i { font-style: normal; color: var(--muted); font-weight: 600; }
.card dl { margin: 0; display: grid; gap: 4px; }
.card dt { font-weight: 700; }
.card dd + dt { margin-top: 12px; }
.card dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text2); }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 24px 40px; }
@media (min-width: 760px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq h3 { font-size: 19px; margin-bottom: 6px; }
.faq p { font-size: 16px; line-height: 1.55; color: var(--text2); }

/* ------------------------------------------------------------------ footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 15px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; }
.foot .brand { font-size: 17px; margin-right: 8px; }
.foot .brand .mark { width: 24px; height: 24px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-weight: 600; }
.foot .sep { color: var(--muted); }
.disc { margin: 4px 0 0; }

/* ------------------------------------------------------------------ 404 */
.oops { padding-block: clamp(64px, 10vw, 140px); min-height: 60vh; }
.oops .copy { max-width: 640px; }
.oops h1 { margin: 0 0 16px; }
.oops p { font-size: 19px; color: var(--text2); }
