@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #fafafa;
  --card: #ffffff;
  --ink: #090b0c;
  --muted: #5c5c5c;
  --line: rgba(0, 0, 0, 0.12);
  --brand: #3f7eeb;
  --brand-hover: #548def;
  --link: #245fc7;
  --soft: #f1f2f4;
  --mark: #e5eefc;
  --ready: #1d5f35;
  --ready-bg: #e6f6ec;
  --review: #8a5a00;
  --review-bg: #fff3d6;
  --focus: rgba(63, 126, 235, 0.7);
  --font: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111213;
    --card: #1a1b1d;
    --ink: #ffffff;
    --muted: #a3a3a3;
    --line: rgba(255, 255, 255, 0.14);
    --link: #8db4f5;
    --soft: #222326;
    --mark: rgba(63, 126, 235, 0.22);
    --ready: #8fd9a8;
    --ready-bg: rgba(29, 95, 53, 0.35);
    --review: #ffd27a;
    --review-bg: rgba(138, 90, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
code {
  font: 500 0.9em ui-monospace, 'Cascadia Code', Consolas, monospace;
  background: var(--soft);
  padding: 2px 6px;
  border-radius: 4px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.fine { font-size: 0.92rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #090b0c;
  font: 600 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-hover); }
.btn.big { min-height: 50px; padding: 0 24px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 0.93rem; }
.btn.light { background: #fff; color: #0b2f6e; }
.btn.light:hover { background: #eaf1fd; }
.btn.ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn.quiet { background: var(--soft); color: var(--ink); }

/* header */
.top {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:not(.btn):hover { text-decoration: underline; }
.top.on-blue .nav a:not(.btn) { color: #fff; }

/* hero */
.hero-wrap { background: var(--brand); color: #fff; }
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px 56px;
}
.hero-copy { max-width: 760px; margin-bottom: 36px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; }
.lede { font-size: 1.18rem; margin: 20px 0 28px; max-width: 33em; color: #f2f6fe; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 0.95rem; color: #dce8fc; max-width: 34em; }
.hero-video { margin: 0 -28px; }
.hero-video video { display: block; width: 100%; height: auto; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* sections */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; border-top: 1px solid var(--line); }
#demo { border-top: 0; }
.sub { color: var(--muted); margin-bottom: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr); gap: 32px; }
.split > p { margin: 0; max-width: 38em; }
.plain { margin: 0; padding-left: 1.2em; }
.plain li { padding: 4px 0; }

/* demo */
.madlib {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 1.05rem;
}
.madlib select {
  font: 600 1rem var(--font);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
}
.madlib select option { color: #090b0c; }

.demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.ats {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.demo.open .ats { grid-column: 1; }
.ats-bar { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 0.85rem; color: var(--muted); }
.ats-body { padding: 24px 26px 26px; }
.ats-co { font-size: 0.9rem; color: var(--muted); margin: 0 0 4px; }
.ats-title { font-size: 1.4rem; margin-bottom: 18px; }
.ats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ats-grid label { display: grid; gap: 6px; font-size: 0.9rem; font-weight: 600; }
.ats-grid .wide { grid-column: 1 / -1; }
.ats-grid input:not([type]), .ats-grid textarea {
  font: 400 0.95rem var(--font);
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  resize: none;
}
.ats-grid .just { background: var(--mark); border-color: var(--brand); }
.ats-grid .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.ats-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.fake-submit { padding: 9px 16px; border-radius: 6px; background: var(--ink); color: var(--page); font-weight: 600; font-size: 0.95rem; }
.submit-note { font-size: 0.92rem; font-weight: 600; color: var(--link); visibility: hidden; }
.demo.filled .submit-note { visibility: visible; }

.panel {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.panel-sum { font-size: 0.85rem; color: var(--muted); margin: 10px 0 6px; }
.rows { list-style: none; padding: 0; margin: 0; max-height: 560px; overflow: auto; }
.rows li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.9rem; }
.row-state { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.row-state.ready { background: var(--ready-bg); color: var(--ready); }
.row-state.review { background: var(--review-bg); color: var(--review); }
.row-state input { margin: 0; accent-color: var(--brand); }
.rows small { display: block; color: var(--muted); font-size: 0.78rem; margin: 2px 0 6px; }
.row-value { font-size: 0.88rem; background: var(--soft); border-radius: 6px; padding: 7px 10px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; }

.platforms { margin: 28px 0 0; color: var(--muted); max-width: 46em; }

/* features */
#how h2 { margin-bottom: 8px; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 40px 0;
}
.feature + .feature { border-top: 1px solid var(--line); }
.feature-copy { max-width: 30em; padding-top: 8px; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; }
.feature-shot { margin: 0; }
.feature-shot img { display: block; width: 100%; max-width: 340px; height: auto; border: 1px solid var(--line); border-radius: 12px; }

/* install / faq */
.install { padding-left: 1.3em; margin: 0 0 14px; }
.install li { padding: 4px 0 4px 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; max-width: 44em; }

/* prose pages */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 800; }
.prose .lede { color: var(--muted); }
.prose h2 { font-size: 1.4rem; margin: 40px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }

/* footer */
.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot a { color: var(--muted); }

@media (max-width: 960px) {
  .hero { padding-top: 24px; padding-bottom: 32px; }
  .hero-copy { margin-bottom: 24px; }
  .hero-video { margin: 0 -24px; }
  .demo { grid-template-columns: 1fr; }
  .demo.open .ats { grid-column: 1; }
  .panel { grid-column: 1; grid-row: auto; position: static; }
  .feature { grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .split { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .brand img { height: 30px; }
  .cta .btn { flex: 1 1 100%; }
  .madlib .btn, .madlib select { width: 100%; }
  .ats-body { padding: 18px 16px; }
  .ats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Practice application: a real form for trying the installed extension. */
.practice { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.practice .ats { margin-top: 20px; }
.practice .ats-grid input[type="email"], .practice .ats-grid input[type="tel"], .practice .ats-grid input[type="url"],
.practice .ats-grid input[type="text"], .practice .ats-grid select, .practice .ats-grid input[type="file"] {
  font: 400 0.95rem var(--font);
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
}
.practice .ats-grid textarea { resize: vertical; }
.practice fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.practice legend { font-size: 0.9rem; font-weight: 600; padding: 0; margin-bottom: 6px; }
.practice .choices { display: flex; gap: 18px; font-weight: 500; }
.practice .choices label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.practice button[type="submit"] { padding: 9px 16px; border: 0; border-radius: 6px; background: var(--ink); color: var(--page); font: 600 0.95rem var(--font); cursor: pointer; }
.practice .practice-note { font-size: 0.92rem; font-weight: 600; color: var(--link); }
.practice .lede { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
