/* Project Onyx — landing page. Static, one stylesheet, mobile-first.
   Inter via Google Fonts is the only external resource. */

:root {
  --onyx: #0f1420;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #5b6472;
  --border: #e5e8ef;
  --on-dark-muted: #b7bfcc;
  --on-dark-border: rgba(255, 255, 255, 0.14);
  --max: 1120px;
  --gutter: 24px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 20, 32, 0.04), 0 10px 30px rgba(15, 20, 32, 0.08);
  --shadow-dark: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--onyx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; min-width: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

section[id] { scroll-margin-top: 72px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--onyx); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip:focus { top: 12px; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 8px;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  background: var(--blue); color: #fff;
  transition: background-color 120ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-hover); color: #fff; text-decoration: none; }
.btn-sm { padding: 9px 14px; font-size: 15px; }
.btn-lg { padding: 14px 24px; font-size: 17px; }
.link-quiet { font-weight: 500; color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.link-quiet:hover { color: var(--on-dark-muted); }

/* Header: wordmark + button on phones; nav joins at 900px */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding-top: 10px; padding-bottom: 10px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--onyx); white-space: nowrap;
}
.wordmark:hover { text-decoration: none; color: var(--onyx); }
.mark { width: 14px; height: 14px; background: var(--onyx); border-radius: 3px; flex: none; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav a { display: inline-block; padding: 10px 2px; margin: -10px -2px; color: var(--onyx); font-weight: 500; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { color: var(--blue); text-decoration: none; }

/* Hero */
.hero { background: var(--onyx); color: #fff; padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted); margin-bottom: 16px;
}
.hero h1 { font-size: 32px; line-height: 1.12; letter-spacing: -0.025em; }
.hero .sub { font-size: 17px; color: #c9d0dc; margin: 18px 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.demo-note { font-size: 14px; color: var(--on-dark-muted); margin-top: 14px; }
.hero-shot { margin: 0 auto; max-width: 300px; width: 100%; }
.hero-shot figcaption { margin-top: 12px; font-size: 14px; color: var(--on-dark-muted); text-align: center; }

/* Screenshot frames */
.frame {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.frame img { width: 100%; height: auto; }
.hero .frame { border-color: var(--on-dark-border); box-shadow: var(--shadow-dark); }
/* Phone shots: a 9:16 window onto the top of the screenshot, so the crop
   follows the column width instead of a fixed pixel height. */
.frame-phone { aspect-ratio: 3 / 5; }
.frame-phone img.crop-top { margin-top: -7.6%; } /* skip the app's Quick add bar (55 of 720px) */

/* Fact strip */
.facts { background: var(--card); border-bottom: 1px solid var(--border); }
.facts ul { display: grid; gap: 18px 32px; padding: 24px 0; }
.facts strong { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.facts span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }

/* Sections: alternating bands, no stacked hairlines */
.section { padding: 60px 0; }
.band { background: var(--card); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section h2 { font-size: 28px; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 18px; margin-top: 10px; }

.cards { display: grid; gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 22px 24px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--muted); }
.aside { color: var(--muted); font-size: 15px; margin-top: 20px; }

/* A day with Onyx: timeline stops */
.stop { padding: 36px 0; border-top: 1px solid var(--border); }
.stop:last-child { padding-bottom: 0; }
.stop-row { display: grid; gap: 18px; }
.stop-time { display: flex; align-items: center; gap: 12px; align-self: start; }
.stop-time .time {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: var(--onyx); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.stop-time .where { font-size: 14px; color: var(--muted); line-height: 1.4; }
.stop-body { display: grid; gap: 24px; align-items: start; }
.stop-text h3 { font-size: 22px; margin-bottom: 12px; }
.stop-text p { font-size: 16.5px; }
.stop-body .frame-phone { max-width: 300px; width: 100%; margin: 0 auto; }
.stop figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.stop figcaption strong { color: var(--onyx); font-weight: 600; }
.stop-body figure figcaption { text-align: center; }
.stop-figure { margin-top: 24px; }

.chips-label {
  display: block; margin-top: 20px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li {
  font-size: 14px; line-height: 1.3; padding: 6px 11px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--onyx);
}
.band .chips li { background: var(--bg); }

/* Feature grid */
.features { display: grid; gap: 16px; align-items: start; }
.stack { display: grid; gap: 16px; }
.features .card h3 { font-size: 17px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.features li { position: relative; padding-left: 16px; font-size: 15.5px; line-height: 1.45; margin-bottom: 8px; color: var(--onyx); }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  background: var(--blue); border-radius: 1px;
}
.features li:last-child { margin-bottom: 0; }

/* More screens */
.screens { margin-top: 44px; }
.screens-title { font-size: 20px; margin-bottom: 18px; }
.screens figure + .screens-pair, .screens-pair { margin-top: 24px; }
.screens-pair { display: grid; gap: 24px; align-items: start; }
.screens figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.screens figcaption strong { color: var(--onyx); font-weight: 600; }

/* Pricing */
.price-card {
  display: grid; gap: 28px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 8px; }
.amount { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.per { font-size: 17px; color: var(--muted); }
.price-line { font-size: 18px; font-weight: 500; margin-bottom: 22px; }
.price-card .demo-note { color: var(--muted); }
.check-list li { position: relative; padding-left: 28px; font-size: 16px; }
.check-list li + li { margin-top: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--blue);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* Founder note: a plain block with a left rule, not a card */
.note { max-width: 640px; border-left: 4px solid var(--onyx); padding-left: 20px; }
.note h2 { margin-bottom: 16px; }
.note p { font-size: 18px; }
.note .sig { color: var(--muted); font-size: 16px; font-weight: 500; margin-top: 18px; }

/* FAQ: open list, full container width */
.faq { display: grid; gap: 0 40px; }
.faq > div { padding: 18px 0; border-top: 1px solid var(--border); }
.faq h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.faq p { font-size: 16px; color: var(--muted); }

/* Contact */
.contact p { font-size: 17px; }
.contact[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--onyx); color: var(--on-dark-muted); padding: 28px 0; font-size: 14px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--on-dark-muted); }

/* Wider screens */
@media (min-width: 640px) {
  .facts ul { grid-template-columns: 1fr 1fr; }
  .screens-pair { grid-template-columns: 1fr 1fr; }
  .price-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 36px; align-items: center; }
  .faq { grid-template-columns: 1fr 1fr; }
}

/* The three cards and the text-beside-phone layout need ~768px before the
   text column stays readable; below that they stack as on a phone. */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .stop-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .stop-wide .stop-body { grid-template-columns: minmax(0, 1fr); }
  .stop-body .frame-phone { margin: 0; }
  .stop-body figure figcaption { text-align: left; }
}

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  .header-inner { min-height: 64px; }
  .site-nav { display: block; margin-left: auto; }
  section[id], #main { scroll-margin-top: 80px; }

  .hero { padding: 56px 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; }
  .hero h1 { font-size: 44px; }
  .hero .sub { font-size: 19px; }
  .hero-shot { margin: 0; }
  .facts ul { grid-template-columns: repeat(4, 1fr); }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .section h2 { font-size: 34px; }

  .stop { padding: 44px 0; }
  .stop:first-of-type { border-top: 0; padding-top: 0; }
  .stop-row { grid-template-columns: 150px minmax(0, 1fr); gap: 32px; }
  .stop-time { position: sticky; top: 88px; display: block; }
  .stop-time .where { display: block; margin-top: 10px; }
  .stop-body { gap: 48px; }
  .stop-text h3 { font-size: 24px; }
  .stop-wide .stop-text { max-width: 760px; }
  .stop-figure { margin-top: 32px; }

  .features { grid-template-columns: repeat(3, 1fr); }
  .screens { margin-top: 56px; }
  .screens-pair { gap: 28px; }
  .price-card { padding: 44px; }
  .amount { font-size: 60px; }
  .note { padding-left: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
