/*
 * The marketing site. Light by default, which is the decision that shapes
 * everything else here: on white, weight and tracking do the work that colour
 * does on black. Headlines are 500, not 700 - a heavy headline on a light page
 * reads as shouting.
 */
:root {
  --bg: #f8fafb;
  --surface: #ffffff;
  --ink: #0a161f;
  --dim: #55646f;
  --dimmer: #8b97a1;
  --edge: rgba(10,22,31,.10);
  --edge-soft: rgba(10,22,31,.06);
  --accent: #02773b;
  --accent-hover: #015c2e;
  --accent-wash: #e8f4ed;
  --danger: #c8342f;
  --shadow: 0 1px 2px rgba(10,22,31,.04), 0 8px 24px -12px rgba(10,22,31,.14);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  -webkit-font-smoothing: antialiased; line-height: 1.6; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- nav ---- */
.nav {
  position: sticky; top: 14px; z-index: 30;
  display: flex; align-items: center; gap: 20px;
  width: min(1080px, calc(100% - 32px)); margin: 14px auto 0;
  padding: 9px 10px 9px 18px;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--edge-soft); border-radius: 999px; box-shadow: var(--shadow);
}
.nav nav { display: flex; gap: 24px; margin-left: 14px; }
.nav nav a, .nav .quiet { color: var(--dim); font-size: 14px; font-weight: 450; }
.nav nav a:hover, .nav .quiet:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 550; letter-spacing: -.015em; font-size: 16px; }
.mark { height: 25px; width: auto; display: block; flex: 0 0 auto; }

.pill {
  background: var(--accent); color: #fff; font-weight: 500; font-size: 14px;
  padding: 9px 18px; border-radius: 999px; white-space: nowrap; display: inline-block;
  transition: background .15s;
}
.pill:hover { background: var(--accent-hover); }
.pill.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--edge); }
.pill.ghost:hover { background: #f2f5f7; }
.pill.big { padding: 14px 34px; font-size: 15.5px; }

/* ---- layout ---- */
main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 92px 0; }
section + section { border-top: 1px solid var(--edge-soft); }
.band { background: var(--surface); border-radius: 20px; padding: 60px 44px; margin: 0 0 0; border: 1px solid var(--edge-soft); }
section.band { margin: 40px 0; border-top: 1px solid var(--edge-soft); }

h1 {
  font-size: clamp(40px, 6.6vw, 70px); line-height: 1.03; letter-spacing: -.038em;
  margin: 0 0 22px; font-weight: 500;
}
h2 { font-size: clamp(25px, 3.2vw, 36px); letter-spacing: -.03em; margin: 0 0 14px; font-weight: 500; line-height: 1.15; }
h3 { font-size: 16.5px; letter-spacing: -.012em; margin: 0 0 8px; font-weight: 550; }
h4 { font-size: 12px; color: var(--dimmer); margin: 0 0 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
p { margin: 0 0 14px; color: var(--dim); }
.lead { font-size: clamp(16.5px, 1.9vw, 19px); color: var(--dim); max-width: 58ch; line-height: 1.55; }
.sub { color: var(--dim); margin-bottom: 30px; max-width: 60ch; }
.tiny { font-size: 13px; color: var(--dimmer); }
.small { font-size: 12.5px; }
.dim { color: var(--dim); }
.cta { margin: 32px 0 12px; }

/* ---- hero, with the arcs productbyte uses to stop the whitespace feeling empty ---- */
.hero { text-align: center; padding: 96px 0 78px; position: relative; overflow: hidden; }
.hero .lead { margin: 0 auto; }
.hero .arcs {
  position: absolute; inset: -40px 0 auto; width: 100%; height: 420px;
  pointer-events: none; z-index: -1; opacity: .55;
}
.closing { text-align: center; }

/* ---- the demo ---- */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 8px 0 26px; align-items: stretch; }
.pane {
  margin: 0; background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 16px;
  padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.pane figcaption {
  display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--dim);
  margin-bottom: 15px; font-weight: 450;
}
.tick { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.tick.ok { background: var(--accent); }
.tick.bad { background: var(--danger); }
/* The terminal stays dark: that is what a terminal looks like, and the contrast
   against the empty white browser beside it is the entire argument. */
.term {
  font-family: var(--mono); font-size: 12.5px; background: #0e1a24; color: #dbe4ea;
  border-radius: 11px; padding: 16px; flex: 1; line-height: 1.75;
}
.term .dim { color: #7d8f9c; }
.good { color: #4ade80; }
.verdict { font-size: 13px; font-weight: 550; margin-top: 13px; }
.verdict.good { color: var(--accent); }
.verdict.bad { color: var(--danger); }
.screen { border: 1px solid var(--edge); border-radius: 11px; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.chrome { display: flex; gap: 6px; padding: 10px 12px; background: #f1f4f6; border-bottom: 1px solid var(--edge-soft); }
.chrome i { width: 9px; height: 9px; border-radius: 99px; background: #cdd6dd; }
.blank { flex: 1; min-height: 104px; background: #fff; }
.aside { max-width: 66ch; font-size: 15px; }

/* ---- cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow);
}
.card p { margin: 0; font-size: 14.5px; }
a.card.link { transition: box-shadow .16s, transform .16s; display: block; }
a.card.link:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(10,22,31,.05), 0 14px 32px -14px rgba(10,22,31,.22); }
a.card.link h3::after { content: ' \2192'; color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 26px; }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(162px, 1fr)); gap: 12px; }
.plan {
  background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow);
}
.plan.free { border-color: rgba(2,119,59,.35); background: var(--accent-wash); }
.plan-name { font-size: 12px; color: var(--dimmer); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.plan-price { font-size: 28px; letter-spacing: -.035em; font-weight: 500; }
.plan-price span { font-size: 13px; color: var(--dimmer); font-weight: 400; letter-spacing: 0; }
.plan-detail { font-size: 13px; color: var(--dim); flex: 1; line-height: 1.5; }
.plan .pill { text-align: center; margin-top: 8px; }

/* ---- faq ---- */
.faq details { border-bottom: 1px solid var(--edge-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--accent); margin-right: 12px; font-weight: 500; }
.faq details[open] summary::before { content: '\2212'; }
.faq p { margin: 12px 0 0 25px; font-size: 14.5px; }

/* ---- prose pages ---- */
.prose { padding: 60px 0 92px; max-width: 740px; }
.prose h2 { margin-top: 48px; }
.prose p { font-size: 16px; }
.crumbs { font-size: 13px; color: var(--dimmer); margin-bottom: 24px; }
.crumbs a:hover { color: var(--ink); }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--edge-soft); }
ul.plain a { color: var(--dim); }
ul.plain a:hover { color: var(--accent); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--edge-soft); border-radius: 16px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 480px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--edge-soft); }
tr:last-child td { border-bottom: 0; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--dimmer); font-weight: 600; }
td:first-child { color: var(--dim); }
td.us { color: var(--accent); font-weight: 500; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--edge-soft); padding: 52px 0 64px; margin-top: 40px; }
.foot-grid {
  width: min(1080px, calc(100% - 32px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px;
}
.foot-grid p { font-size: 13.5px; margin-top: 14px; max-width: 40ch; }
.foot-grid a { display: block; color: var(--dim); font-size: 13.5px; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
footer > .small { width: min(1080px, calc(100% - 32px)); margin: 44px auto 0; color: var(--dimmer); }

@media (max-width: 780px) {
  .demo, .split, .foot-grid { grid-template-columns: 1fr; }
  .nav nav { display: none; }
  section { padding: 62px 0; }
  .band { padding: 40px 22px; }
  .hero { padding: 62px 0 52px; }
}

/* ---- the front-door demo ---- */
.try {
  display: flex; gap: 10px; max-width: 520px; margin: 32px auto 12px;
  background: var(--surface); border: 1px solid var(--edge); border-radius: 999px;
  padding: 6px 6px 6px 20px; box-shadow: var(--shadow);
}
.try input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font: inherit; font-size: 15.5px; color: var(--ink);
}
.try input::placeholder { color: #a7b2bb; }
/* Same reason as the app: under 16px, iOS zooms the page on focus. */
@media (pointer: coarse) { .try input { font-size: 16px; } }
.try button { border: 0; cursor: pointer; font-family: inherit; }
.try:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash), var(--shadow); }

.trying { display: flex; align-items: center; gap: 16px; padding: 18px 4px; }
.trying p { margin: 4px 0 0; }
.spinner {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 99px;
  border: 2.5px solid var(--accent-wash); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.result { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.result-head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.result-head .item-title { font-size: 17px; font-weight: 550; letter-spacing: -.015em; }
.result-head .tiny { margin-top: 2px; }
.verdict-card { padding: 22px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { background: var(--bg); border: 1px solid var(--edge-soft); border-radius: 10px; padding: 10px 12px; }
.fact-value { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.fact-label { font-size: 11px; color: var(--dimmer); margin-top: 1px; }

.findings { display: flex; flex-direction: column; gap: 8px; }
.finding {
  margin: 0; font-size: 14px; padding-left: 20px; position: relative; color: var(--dim); line-height: 1.5;
}
.finding::before { content: '·'; position: absolute; left: 6px; color: var(--dimmer); }
.finding.good { color: var(--ink); }
.finding.good::before { content: '\2713'; color: var(--accent); left: 2px; font-size: 12px; }
.finding.bad { color: var(--danger); }
.finding.bad::before { content: '\2717'; color: var(--danger); left: 2px; font-size: 12px; }
.finding.warn::before { content: '!'; color: #b45309; left: 6px; font-weight: 700; font-size: 12px; }

.result-shot { margin: 0; }
.result-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--edge); display: block; }
.result-shot figcaption { margin-top: 8px; }

.result-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--edge-soft);
}

@media (max-width: 780px) {
  .result { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .try { flex-direction: column; border-radius: 16px; padding: 14px; }
  .try input { padding: 4px 6px; }
}
