/* ChatNEC landing · paper + serif, single light theme */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ecebe6;
  --card: #f7f6f1;
  --card-bright: #fdfcf9;
  --ink: #1c1b18;
  --muted: #6e6b63;
  --faint: #96938a;
  --line: #d8d5cc;
  --green: #3d7a4e;
  --amber: #a97b22;
  --red: #b0433b;
  --radius: 10px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section { scroll-margin-top: 4rem; }

a { color: inherit; }

h1, h2, h3, .step-num {
  font-family: var(--serif);
  font-weight: 460;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------ buttons ------------------------------ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.55em 1.25em;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.pill:hover { background: #33312c; transform: translateY(-1px); }
.pill-lg { font-size: 1.0625rem; padding: 0.7em 1.5em; }
.pill-sm { font-size: 0.8125rem; padding: 0.45em 1.1em; }
.pill .arrow { transition: transform 0.15s ease; }
.pill:hover .arrow { transform: translateX(3px); }

.ghost {
  font-size: 0.8125rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45em 1.1em;
}

/* -------------------------------- nav -------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 540;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9375rem;
}
.nav-links a:not(.pill) {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:not(.pill):hover { color: var(--ink); }

/* ------------------------------- hero -------------------------------- */

.hero { padding-top: 64px; }

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }

.rotator-line { display: block; min-height: 1.05em; white-space: nowrap; }
.rotator {
  display: inline-block;
  font-size: 0.82em;
  font-style: italic;
  color: var(--faint);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.rotator.is-out { opacity: 0; transform: translateY(0.35em); }

.hero-aside { display: flex; flex-direction: column; gap: 20px; padding-bottom: 0.5rem; }
.hero-aside > p:first-child { color: var(--muted); }
.hero-aside .pill-lg { align-self: flex-start; }
.pilot-line { font-size: 0.875rem; color: var(--faint); }

/* ------------------------------ mockups ------------------------------ */

.mock {
  background: var(--card-bright);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px -30px rgba(28, 27, 24, 0.25);
  font-size: 0.9375rem;
}

/* findings snapshot */
.mock-findings { max-width: 780px; margin: 0 auto; }

.mock-findings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.mock-kicker { display: block; font-weight: 600; }
.mock-sub { display: block; font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }

.chip {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25em 0.8em;
}
.chip-draft { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }

.mock-findings-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.mock-findings-stats > div { padding: 16px 24px; }
.mock-findings-stats > div + div { border-left: 1px solid var(--line); }
.stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.stat-value { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.stat-red { color: var(--red); }

.mock-findings-lines { list-style: none; }
.mock-findings-lines li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 24px;
}
.mock-findings-lines li + li { border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.mock-findings-lines li > span:nth-child(2) { flex: 1; }
.line-amount { color: var(--muted); font-variant-numeric: tabular-nums; }

.rag {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  transform: translateY(-1px);
}
.rag-green { background: var(--green); }
.rag-amber { background: var(--amber); }
.rag-red { background: var(--red); }

.mock-findings-foot {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--card);
  border-radius: 0 0 calc(var(--radius) + 4px) calc(var(--radius) + 4px);
}

/* tool grid */
.mock-tools { padding: 24px; }
.mock-tools-title { font-weight: 600; margin-bottom: 16px; }
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tool-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-head { display: flex; justify-content: space-between; align-items: center; }
.tool-card svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-name { font-weight: 600; font-size: 0.9375rem; }
.tool-meta { font-size: 0.8125rem; color: var(--muted); }
.mock-tools-foot { margin-top: 14px; font-size: 0.8125rem; color: var(--faint); }

/* document chase */
.mock-chase { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.chase-msg { display: flex; gap: 12px; align-items: flex-start; }
.chase-msg img { border-radius: 50%; margin-top: 2px; }
.chase-msg p { color: var(--ink); }
.chase-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--faint);
  font-size: 0.875rem;
  background: var(--card);
}
.chase-actions { display: flex; align-items: center; gap: 12px; }

/* ---------------------------- sections ------------------------------- */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 36px;
}

.feature { padding-top: 96px; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.feature-grid-flip .feature-copy { order: 2; }
.feature-grid-flip .mock { order: 1; }

.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 20px; }
.feature-copy p { color: var(--muted); }
.feature-copy p + p { margin-top: 14px; }

/* steps */
.steps { padding-top: 96px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-num {
  display: block;
  font-size: 2.4rem;
  font-style: italic;
  color: var(--faint);
  margin-bottom: 10px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9375rem; }

/* trust */
.trust { padding-top: 96px; }
.trust h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 36px; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.trust-item { background: var(--card); padding: 24px 22px; }
.trust-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.trust-item p { color: var(--muted); font-size: 0.9375rem; }

/* faq */
.faq { padding-top: 96px; }
.faq-list { max-width: none; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-of-type { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 2px;
  font-family: var(--serif);
  font-size: 1.25rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-mark {
  flex: none;
  position: relative;
  width: 14px; height: 14px;
}
.faq-mark::before, .faq-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--muted);
  transition: transform 0.2s ease;
}
.faq-mark::before { width: 14px; height: 1.5px; }
.faq-mark::after { width: 1.5px; height: 14px; }
details[open] .faq-mark::after { transform: rotate(90deg); }
.faq-list details p { padding: 0 2px 20px; color: var(--muted); max-width: 60ch; }

/* closer */
.closer {
  padding-top: 128px;
  padding-bottom: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.closer h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.closer h2 em { color: var(--faint); }

/* footer */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-rock { animation: rock-spin 60s linear infinite; }
@keyframes rock-spin { to { transform: rotate(360deg); } }
.footer-meta { text-align: left; font-size: 0.875rem; color: var(--muted); }
.footer-meta a { color: var(--ink); text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-meta p { margin-top: 6px; }

/* ------------------------------ motion ------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotator { transition: none; }
  .footer-rock { animation: none; }
  .pill, .pill .arrow { transition: none; }
}

/* ---------------------------- responsive ----------------------------- */

@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid-flip .feature-copy { order: 1; }
  .feature-grid-flip .mock { order: 2; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .feature, .steps, .trust, .faq { padding-top: 72px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.pill) { display: none; }
  .hero { padding-top: 40px; }
  .tool-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .mock-findings-stats { grid-template-columns: 1fr; }
  .mock-findings-stats > div + div { border-left: none; border-top: 1px solid var(--line); }
  .footer { flex-direction: column; }
}
