/* Overdue — marketing landing page
   Built on the Overdue design system tokens (warm paper planner voice).
   Marketing scale is larger than app scale, but the same three type
   voices apply: quiet system sans, serif italic display, mono data.  */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

/* Accent: clay red */
:root { --accent: var(--overdue); }

img { display: block; max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ---------- Type voices ---------- */

.label {
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--ink-3);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--mono-size);
  letter-spacing: var(--mono-tracking);
  color: var(--ink-3);
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display em {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: var(--weight-semibold);
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.btn-ink {
  background: var(--pill-ink);
  color: var(--pill-ink-text);
}
.btn-ink:hover { background: #3a372d; }

.btn-quiet {
  background: var(--surface-card);
  color: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.btn-quiet:hover { background: var(--paper-raised); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 238, 231, 0.88);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: 16px;
  letter-spacing: -0.01em;
}

.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: var(--space-6);
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  transition: color var(--duration-fast) var(--ease-out);
}
.site-nav a:hover { color: var(--ink-1); }

.site-header .btn { height: 36px; padding: 0 var(--space-4); font-size: 13.5px; }

/* ---------- Hero ---------- */

.hero { padding: var(--space-12) 0 0; }

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-10);
}

.hero h1 { font-size: clamp(44px, 6vw, 68px); }

.hero .lede { max-width: 560px; }

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.hero-shot {
  margin-top: var(--space-10);
  position: relative;
}

.shot-card {
  background: var(--surface-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised), 0 24px 60px rgba(40, 35, 22, 0.10);
  overflow: hidden;
  border: 1px solid var(--hairline);
}

.shot-card img { width: 100%; height: auto; object-fit: cover; }

/* Hero screenshot pinned to its native aspect ratio so it scales
   proportionally at every viewport width */
.hero-shot img { aspect-ratio: 1976 / 1546; }

/* ---------- Sections ---------- */

.section { padding: var(--space-12) 0; }

.section-head {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-8);
  align-items: baseline;
  border-top: 1px solid var(--hairline-strong);
  padding-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.section-head .index {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.section-head .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.section h2.display { font-size: clamp(32px, 4vw, 44px); }

.section .lede { max-width: 620px; margin-top: var(--space-4); }

/* Three quiet columns */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.col h3 {
  font-size: 16px;
  font-weight: var(--weight-semibold);
  margin: 0 0 var(--space-2);
}

.col p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.col .mono { display: block; margin-bottom: var(--space-3); }

/* Editorial feature rows: copy beside a screenshot */
.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: center;
}

.feature-row.flip { grid-template-columns: 7fr 5fr; }
.feature-row.flip .feature-copy { order: 2; }

.feature-copy h2 { font-size: clamp(30px, 3.6vw, 40px); }

.feature-copy .lede { font-size: 16.5px; margin-top: var(--space-4); }

.fact-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
}

.fact-list li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
}

.fact-list li strong {
  color: var(--ink-1);
  font-weight: var(--weight-semibold);
}

.fact-check {
  width: 17px;
  height: 17px;
  margin-top: 1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fact-check::after {
  content: "";
  width: 7px;
  height: 4.5px;
  border-left: 1.5px solid var(--done);
  border-bottom: 1.5px solid var(--done);
  transform: rotate(-45deg) translate(0.5px, -0.5px);
}

/* Two-up small features */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.duo-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.duo-card .duo-copy { padding: var(--space-6) var(--space-6) var(--space-5); }

.duo-card h3 { margin: var(--space-2) 0 var(--space-2); font-size: 18px; }

.duo-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

.duo-shot {
  margin: 0 var(--space-6) var(--space-6);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  overflow: hidden;
  max-height: 320px;
}

.duo-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Privacy (dark ink panel) ---------- */

.privacy {
  background: var(--pill-ink);
  color: var(--pill-ink-text);
  border-radius: var(--radius-card);
  padding: var(--space-12) var(--space-10);
}

.privacy .label { color: #8f8a79; }

.privacy h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  color: var(--pill-ink-text);
  margin-top: var(--space-3);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-10);
  align-items: start;
}

.privacy-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy-facts li {
  padding: var(--space-4) 0;
  border-top: 1px solid #3b382e;
  font-size: 15px;
  line-height: 1.55;
  color: #c9c5b6;
}

.privacy-facts li:first-child { border-top: none; padding-top: 0; }

.privacy-facts strong { color: var(--pill-ink-text); font-weight: var(--weight-semibold); }

/* ---------- Download ---------- */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.dl-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.dl-card h3 { margin: 0; font-size: 18px; }

.dl-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }

.dl-card .btn { margin-top: var(--space-2); }

/* OS toggle: Windows / macOS segmented choice in the desktop card.
   Radios are visually hidden but focusable; CSS sibling selectors drive
   the selected segment and swap the download action, so no JS needed. */
.os-radio {
  position: absolute;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.os-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: var(--paper-sunken);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.os-toggle label {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  color: var(--ink-3);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out);
}

#os-windows:checked ~ .os-toggle label[for="os-windows"],
#os-mac:checked ~ .os-toggle label[for="os-mac"] {
  background: var(--pill-ink);
  color: var(--pill-ink-text);
}

#os-windows:focus-visible ~ .os-toggle label[for="os-windows"],
#os-mac:focus-visible ~ .os-toggle label[for="os-mac"] {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
}

/* "Coming soon" placeholder button */
.btn-soon {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: var(--ink-3);
  cursor: default;
}

.os-mac-soon { display: none; }
#os-mac:checked ~ .os-windows-dl { display: none; }
#os-mac:checked ~ .os-mac-soon { display: inline-flex; }

.dl-note {
  margin-top: var(--space-6);
  text-align: center;
}

/* E-ink section: portrait photo, kept modest */
.eink-row { align-items: center; }

.eink-row .btn { margin-top: var(--space-6); }

/* Feature-row index (number + label) — same recipe as .section-head */
.feature-copy .index {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.feature-copy .num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}

.eink-shot {
  justify-self: center;
  max-width: 420px;
  width: 100%;
}

.eink-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-raised), 0 24px 60px rgba(40, 35, 22, 0.18);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: var(--space-12);
  padding: var(--space-8) 0 var(--space-10);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.site-footer .brand { font-size: 14.5px; }

.site-footer nav { display: flex; gap: var(--space-5); margin-left: auto; }

.site-footer nav a {
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--ink-1); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-3); }
  .cols-3, .duo, .download-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.flip, .privacy-grid { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .privacy { padding: var(--space-8) var(--space-6); }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-ctas .btn { justify-content: center; }
}
