/*
 * One stylesheet for every page.
 *
 * The site is plain HTML with no build step — Cloudflare serves these files as
 * they are, so nothing can fail at deploy time. Shared CSS lives here rather
 * than in each page, because duplicated styles are what actually rot when a
 * site grows.
 */

:root {
  color-scheme: light dark;
  --bg: #fafbfc;
  --panel: #ffffff;
  --text: #171b20;
  --muted: #67707a;
  --line: #e2e5ea;
  --accent: #4e93db;
  --accent-ink: #ffffff;
  --glow: rgba(78, 147, 219, 0.13);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101418;
    --panel: #171c22;
    --text: #eef1f5;
    --muted: #9aa3ad;
    --line: #262d35;
    --accent: #7fb3e3;
    --accent-ink: #0d1116;
    --glow: rgba(127, 179, 227, 0.1);
  }
}

* { box-sizing: border-box; }

/* Nothing on this site is meant to scroll sideways. A guard rather than a
 * fix: the header below is sized to fit, and this keeps a future overflow
 * from silently cutting content off the edge of a phone screen. */
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 54rem; margin: 0 auto; padding: 0 1.5rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand .tile {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.42rem;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand .tile svg { width: 1.2rem; height: 1.2rem; fill: var(--accent-ink); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a:not(.btn) { font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--text); }
.nav a.btn { text-decoration: none; }

/* On a phone the brand, two links and the call to action do not fit on one
 * line — they ran off the right edge in Safari, where a sticky header cannot
 * be scrolled sideways to reveal what is missing.
 *
 * The button is what gives way: every page already leads with the same call
 * to action a thumb's reach below, so the header copy is the redundant one. */
@media (max-width: 30rem) {
  .site-header .wrap { gap: 1rem; padding: 0 1.1rem; }
  .nav { gap: 1.1rem; }
  .nav a.btn { display: none; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-secondary { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-sm { font-size: 0.88rem; padding: 0.5rem 1rem; }

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

.hero {
  padding: 5rem 0 2.5rem;
  background: radial-gradient(60rem 22rem at 50% -6rem, var(--glow), transparent 70%);
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.hero p:not(.hero-note) {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 auto 2.75rem;
  max-width: 34rem;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin: 3rem 0 0; font-size: 0.86rem; color: var(--muted); }

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

section { padding: 3.5rem 0; }
.hero + section { padding-top: 1.5rem; }
section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 640;
  margin: 0 0 0.6rem;
}
section .sub { color: var(--muted); margin: 0 0 2rem; max-width: 34rem; }

.page-title { padding: 3.5rem 0 0; }
.page-title h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 0 0 0.75rem;
}
.page-title p { color: var(--muted); margin: 0; max-width: 36rem; font-size: 1.05rem; }

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

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 40rem) { .cards { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 620; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}
.card .icon svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

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

ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
ol.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.9rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps strong { display: block; font-weight: 620; margin-bottom: 0.15rem; }
ol.steps span { color: var(--muted); font-size: 0.95rem; }

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

.plans { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 40rem) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.plan .label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 650;
}
.plan .amount { font-size: 2.4rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.plan .per { color: var(--muted); font-size: 0.92rem; font-weight: 400; }
.plan .save { color: var(--accent); font-size: 0.88rem; font-weight: 600; }
.plan .btn { margin-top: 0.9rem; }

/* --- misc -------------------------------------------------------------- */

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.12em 0.4em;
}

.prose p { color: var(--muted); max-width: 38rem; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
