/* Fed -> Private design system. Tokens first; every color below comes from a token. */
:root {
  --ink: #16263d;
  --paper: #fbfbf9;
  --surface: #ffffff;
  --muted: #5b6676;
  --line: #e4e6ea;
  --accent: #b9791a;
  --accent-ink: #8a5a10;
  --on-accent: #ffffff;
  --good: #2f7d5b;
  --good-soft: #e6f2ec;
  --shadow: 0 8px 28px rgba(22, 38, 61, 0.1);
  --serif: Newsreader, Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ecf1f8;
    --paper: #0e1826;
    --surface: #16233a;
    --muted: #9aa7b8;
    --line: #263347;
    --accent: #e0a33c;
    --accent-ink: #e0a33c;
    --on-accent: #0e1826;
    --good: #6fc79b;
    --good-soft: #15301f;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.55rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.65rem, 1.35rem + 1vw, 1.875rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.375rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.5; color: var(--muted); }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
.label { font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.eyebrow { color: var(--accent-ink); margin-bottom: 14px; display: block; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
section.block { padding: 56px 0; }
@media (min-width: 820px) { section.block { padding: 88px 0; } }
.narrow { max-width: 760px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.wordmark { font: 600 1.375rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark .arrow { color: var(--accent); }
.site-header nav a { color: var(--ink); font-weight: 500; }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Buttons: label is 19px/600 so white-on-gold counts as large text (3.6:1 >= 3:1); hover goes to accent-ink (5.9:1). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 1.1875rem/1.2 var(--sans); padding: 14px 22px; border-radius: 8px; border: 2px solid transparent;
  background: var(--accent); color: var(--on-accent); text-decoration: none; transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.secondary { background: transparent; border-color: var(--ink); color: var(--ink); font-size: 1rem; padding: 10px 16px; }
.btn.secondary:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .hero { padding: 72px 0 80px; } .hero .grid { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.hero h1 { margin-bottom: 18px; }
.hero .actions { margin: 26px 0 12px; }

/* Before -> After diff (signature component) */
.diff { display: grid; gap: 10px; align-items: stretch; }
@media (min-width: 820px) { .diff { grid-template-columns: 1fr 28px 1fr; } }
.diff .panel { font: 400 0.8125rem/1.6 var(--mono); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.diff .before { background: transparent; color: var(--muted); }
.diff .before p { opacity: 0.9; }
.diff .before s { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.diff .after { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.diff .panel .label { display: block; margin-bottom: 10px; }
.diff .panel p { margin: 0 0 10px; max-width: none; }
.diff .panel p:last-child { margin-bottom: 0; }
.diff .panel .role { font-weight: 600; }
.diff .go { display: grid; place-items: center; font: 600 1.5rem/1 var(--serif); color: var(--accent); }
@media (max-width: 819px) { .diff .go { transform: rotate(90deg); height: 24px; } }
.chip { background: var(--good-soft); color: var(--ink); border-bottom: 2px solid var(--good); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.chip.todo { background: transparent; border-bottom: 2px dashed var(--accent-ink); }
.diff-caption { margin: 14px 0 0; }
@keyframes rise { from { opacity: 0.35; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.diff .before { animation: rise 0.25s ease both; }
.diff .go { animation: rise 0.25s ease 0.2s both; }
.diff .after { animation: rise 0.25s ease 0.4s both; }

/* Trust strip */
.trust { border-block: 1px solid var(--line); padding: 18px 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .trust ul { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.trust svg { flex: none; width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 0.85rem var(--mono); color: var(--accent-ink); margin-bottom: 8px; letter-spacing: 0.08em; }
.steps strong { display: block; font: 600 1.25rem/1.25 var(--serif); margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* Comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 28px; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); background: var(--paper); }
.compare thead th:last-child { color: var(--ink); }
.compare td:first-child { font-weight: 500; width: 42%; }
.compare td.us { display: flex; gap: 8px; align-items: flex-start; }
.compare .tick { flex: none; width: 20px; height: 20px; stroke: var(--good); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.compare td.them { color: var(--muted); }
@media (max-width: 560px) { .compare td:first-child { width: auto; } .compare th, .compare td { padding: 12px; } }

/* Cards / lists */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card.lift { box-shadow: var(--shadow); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.6em; border-radius: 2px; background: var(--accent); }
.checklist strong { font-weight: 600; }
.price { display: grid; gap: 14px; justify-items: start; }
.price .amount { font: 600 3rem/1 var(--serif); }
.price .amount small { font: 400 1rem var(--sans); color: var(--muted); margin-left: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font: 600 1.125rem/1.35 var(--serif); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem/1 var(--sans); color: var(--accent-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Tool flow */
.tool { padding: 40px 0 72px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .tool-card { padding: 32px; } }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; margin-bottom: 8px; }
textarea, input[type="email"], select, input[type="text"] {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--muted); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 260px; resize: vertical; font-family: var(--mono); font-size: 0.875rem; line-height: 1.6; }
.help { margin: 8px 0 0; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--paper); border-radius: 10px; padding: 14px 16px; margin-top: 16px; }
.notice.error { border-left-color: var(--ink); }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 16px 0 12px; }
.progress i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 3px; animation: slide 1.6s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.progress-text { font-weight: 500; min-height: 1.6em; }

/* Document ("after") styling for resume text */
.doc { font: 400 0.9375rem/1.65 var(--mono); }
.doc h3 { font: 600 0.8rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc h3:first-child { margin-top: 0; }
.doc p { margin: 0 0 10px; max-width: 72ch; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc em { color: var(--muted); }
.doc strong { font-weight: 600; }
.doc .ph { background: transparent; border-bottom: 2px dashed var(--accent-ink); }
.preview-tag { display: inline-block; margin-bottom: 14px; color: var(--accent-ink); border: 1px solid var(--accent-ink); border-radius: 4px; padding: 2px 8px; }
.convert { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px; }

/* Result */
.result-grid { display: grid; gap: 20px; }
.section-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.section-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-card.flag { border-left: 4px solid var(--accent); }
.status-card { text-align: left; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px; font-weight: 500; z-index: 20; animation: rise 0.2s ease both; }

/* GS page */
.gs-form { display: grid; gap: 14px; }
@media (min-width: 720px) { .gs-form { grid-template-columns: 1fr 1fr; align-items: end; } }
.gs-result dl { display: grid; gap: 14px; margin: 16px 0 0; }
.gs-result dt { font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.gs-result dd { margin: 4px 0 0; font-size: 1.125rem; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
.gs-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); }
.gs-table th, .gs-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gs-table thead th { font: 500 0.78rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.gs-table tr.hit td { background: var(--good-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .noprint, .toast { display: none !important; }
  body { background: #fff; color: #000; }
  .section-card, .tool-card { border: 0; box-shadow: none; padding: 0; }
}

/* GS tables: stack into labeled cards on narrow screens (no sideways scroll) */
@media (max-width: 600px) {
  .gs-table { min-width: 0; }
  .gs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gs-table, .gs-table tbody, .gs-table tr, .gs-table th, .gs-table td { display: block; width: 100%; }
  .gs-table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 10px 14px; background: var(--surface); }
  .gs-table tr.hit { background: var(--good-soft); }
  .gs-table th[scope="row"] { font: 600 1.125rem/1.3 var(--serif); padding: 4px 0 6px; border: 0; }
  .gs-table td { border: 0; padding: 4px 0; background: transparent !important; }
  .gs-table td::before { content: attr(data-label); display: block; font: 500 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
}
.steps + p { margin-top: 24px; }
