/* Overcaption marketing site: dark theme matching the app (subtitle-yellow accent).
   System fonts only: the site makes zero third-party requests. */

:root {
  --bg: #0d0f12;
  --bg-raise: #14171c;
  --bg-inset: #0a0c0e;
  --text: #e8eaed;
  --muted: #9aa1ab;
  --accent: #f2c84b;
  --accent-ink: #1a1608;
  --border: #262b33;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

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

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 17px;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand svg { display: block; }

.site-head nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-head nav a {
  font-family: var(--mono); font-size: 13.5px; color: var(--muted);
}
.site-head nav a:hover { color: var(--text); text-decoration: none; }
.site-head nav a[aria-current="page"] { color: var(--accent); }

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

.hero { padding: 88px 0 56px; text-align: center; }
.hero.compact { padding: 64px 0 40px; text-align: left; }

.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px);
  line-height: 1.12; letter-spacing: -0.025em; font-weight: 800;
  text-wrap: balance;
}

.hero .sub {
  margin: 20px auto 0; max-width: 680px;
  color: var(--muted); font-size: 18px;
  text-wrap: balance;
}
.hero.compact .sub { margin-left: 0; }

.kicker {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  margin-bottom: 14px;
}

.badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin: 26px 0 0;
}
.badges li {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 999px; padding: 4px 12px;
}

/* ---------- buttons + forms ---------- */

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; border: 0; border-radius: 8px;
  padding: 12px 22px; cursor: pointer;
}
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.btn-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0 10px;
}

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

main section { padding: 40px 0; }

h2.md {
  font-family: var(--mono); font-size: 21px; letter-spacing: -0.01em;
  margin-bottom: 20px;
}
h2.md::before { content: "## "; color: var(--accent); }

/* ---------- workflow steps ---------- */

.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  counter-reset: step;
}
.steps li {
  background: var(--bg-inset); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
}
.step-num {
  display: block; font-family: var(--mono); font-size: 13px;
  color: var(--accent); margin-bottom: 10px;
}
.steps h3 { font-size: 16px; margin-bottom: 8px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: 14.5px; }

/* ---------- feature grid ---------- */

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.card {
  background: var(--bg-raise); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 22px;
}
.card h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; }

/* ---------- lists ---------- */

.checklist { list-style: none; }
.checklist li {
  padding-left: 26px; position: relative; margin-bottom: 12px;
}
.checklist li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--mono);
}

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }

table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
th, td { text-align: left; padding: 11px 16px; vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  border-bottom: 1px solid var(--border); background: var(--bg-raise);
}
thead th.oc { color: var(--accent); }
tbody th { font-weight: 600; color: var(--text); width: 24%; }
tbody td { color: var(--muted); }
tbody td.oc { color: var(--text); background: color-mix(in srgb, var(--accent) 4%, transparent); }
tbody tr + tr th, tbody tr + tr td { border-top: 1px solid var(--border); }

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-raise); margin-bottom: 10px; padding: 0 18px;
}
summary {
  cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none;
}
summary::before {
  content: ">"; font-family: var(--mono); color: var(--accent); margin-right: 10px;
}
details[open] summary::before { content: "v"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); padding: 0 0 16px 24px; }

/* ---------- download section ---------- */

.cta {
  border-top: 1px solid var(--border);
  background: var(--bg-raise);
  padding: 56px 0; text-align: center; margin-top: 24px;
}
.cta h2 { font-size: 26px; letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin-top: 10px; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px; text-align: center;
}
.foot-tag { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 14px 0 18px; }
.foot-links a { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.foot-links a:hover { color: var(--accent); }

.fineprint {
  color: #6b7280; font-size: 12.5px; margin-top: 8px;
  max-width: 640px; margin-left: auto; margin-right: auto;
}

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

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  tbody th { width: auto; }
}

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

.hero-shot { max-width: 1160px; margin: 48px auto 0; padding: 0 24px; }
.hero-shot img {
  width: 100%; height: auto; display: block;
  border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.85);
}

/* ---------- nav CTA + language table ---------- */

.site-head nav a.nav-cta {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  border-radius: 8px; padding: 8px 16px;
}
.site-head nav a.nav-cta:hover { filter: brightness(1.07); color: var(--accent-ink); text-decoration: none; }

.lang-table td.yes { color: var(--accent); }
.lang-table td.no { color: var(--muted); opacity: 0.55; }
.lang-table td.soft { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.pro-tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: middle;
}

/* ---------- pricing cards ---------- */

.price-card { display: flex; flex-direction: column; }
.price-card .price {
  font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  margin: 10px 0 2px;
}
.price-card .price .per { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price-card .price-sub { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
/* NB: named .plan-cta, not .cta — .cta is the page-level download band and
   carries 56px padding + border-top that wrecked the cards (found live). */
.price-card .plan-cta { margin-top: auto; padding-top: 18px; }
.price-card .plan-cta .btn { display: block; width: 100%; text-align: center; margin: 0 0 10px; }
.price-card .plan-cta .btn-row { display: block; margin: 0; }
.price-card .checklist { font-size: 14.5px; margin-top: 6px; }
.price-card .checklist li { margin-bottom: 8px; }
.btn.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
}
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); filter: none; }

/* ---------- pricing page refinements ---------- */

/* Page-level currency footnote: present but whispering. */
.footnote-dim {
  font-size: 12.5px; color: var(--muted); opacity: 0.75;
  text-align: center; margin-top: 12px;
}

/* "What's in each": roomier checklists inside cards, Pro edged in accent.
   Longhand on purpose: the shorthand would zero the base .checklist li
   padding-left that keeps text clear of the absolutely-positioned arrow. */
.feature-card .checklist { font-size: 14.5px; }
.feature-card .checklist li { padding-top: 2px; padding-bottom: 2px; margin-bottom: 6px; }
.card.pro-edge { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .kicker { margin-bottom: 8px; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .steps.three { grid-template-columns: 1fr; } }

/* Breathing room when a checklist follows an intro paragraph (global reset
   zeroes p margins, which left lists glued to their lead-in line). */
p + .checklist { margin-top: 16px; }

/* Windows build unsigned yet: button present but inert, hover says so.
   Both labels share one grid cell so the button never changes width.
   TEMPORARY — delete this block when the Windows download goes live. */
.btn-soon { display: inline-grid; cursor: default; }
.btn-soon > span { grid-area: 1 / 1; }
.btn-soon::after { content: "Coming soon"; grid-area: 1 / 1; visibility: hidden; }
.btn-soon:hover { filter: saturate(0.55) brightness(0.92); }
.btn-soon:hover > span { visibility: hidden; }
.btn-soon:hover::after { visibility: visible; }
.price-card .plan-cta .btn-soon { display: grid; }
