/* AnvilHosted landing page — Anvil Coder's brand tokens (dark-factory/tokens/tokens.json). */
:root {
  color-scheme: light dark;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --radius-full: 9999px;
  --container: 72rem;

  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #e2e8f0;
  --border: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff1e8;
  --accent-contrast: #ffffff;
  --link: #2563eb;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.08), 0 1px 2px rgb(15 23 42 / 0.04);
  --shadow-lg: 0 10px 30px rgb(15 23 42 / 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --surface-2: #0b1220;
    --border: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #71829a;
    --accent: #fb923c;
    --accent-hover: #f97316;
    --accent-soft: #1c1108;
    --accent-contrast: #020617;
    --link: #60a5fa;
    --shadow: none;
    --shadow-lg: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 700; overflow-wrap: break-word; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
a { color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
/* the top bar is sticky: keep anchored headings below it */
section[id] { scroll-margin-top: 4.5rem; }
.accent { color: var(--accent); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--surface); padding: 0.75rem 1rem;
  border-radius: var(--radius); z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 650; text-decoration: none; letter-spacing: -0.01em; }
.brand__logo {
  display: grid; place-items: center; width: 1.85rem; height: 1.85rem;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast);
}
.brand__accent { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; margin-left: auto; font-size: 0.9375rem; }
.nav a { color: var(--text-muted); text-decoration: none; }
.nav a:hover { color: var(--link); }
.topbar .btn { margin-left: 1rem; }

@media (max-width: 46rem) {
  .nav { display: none; }
  .topbar .btn { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 550; font-size: 0.9375rem; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 0.7rem 1.25rem; font-size: 1rem; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(60rem 24rem at 50% -8rem, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero__inner { max-width: 52rem; }
/* like anvil-coder.tech's kicker: brand colour, uppercase, wide tracking */
.eyebrow {
  margin: 0 0 0.75rem; color: var(--accent); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8125rem;
}
.lede { font-size: clamp(1rem, 2vw, 1.1875rem); color: var(--text-muted); max-width: 44rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.hint { color: var(--text-subtle); font-size: 0.875rem; }

/* ---------- sections ---------- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.section--muted { background: var(--surface-2); }
.section__lede { color: var(--text-muted); max-width: 46rem; margin-bottom: 2rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--text-muted); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step__no {
  display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-bottom: 0.75rem;
  border-radius: var(--radius-full); background: var(--accent-soft); color: var(--accent);
  font-size: 0.875rem; font-weight: 650;
}

.stacks { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.stack { display: grid; gap: 0.25rem; }
.stack__mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; margin-bottom: 0.5rem;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 650;
}
.stack span:last-child { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 0.75rem; }
.plan--now { border-color: var(--accent); box-shadow: var(--shadow-lg); }
/* .card p sets a muted colour — these need to win over it, hence the extra class. */
.plan .plan__badge {
  align-self: flex-start; margin: 0; padding: 0.15rem 0.6rem; border-radius: var(--radius-full);
  background: var(--accent); color: var(--accent-contrast); font-size: 0.75rem; font-weight: 600;
}
.plan .plan__badge--soon { background: var(--surface-2); color: var(--text-muted); }
.plan .plan__price { color: var(--text); }
.plan__price { font-size: 1.75rem; font-weight: 650; margin: 0; letter-spacing: -0.02em; }
.plan__price span { font-size: 0.9375rem; font-weight: 400; color: var(--text-subtle); }
.plan .btn { margin-top: auto; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; color: var(--text-muted); font-size: 0.9375rem; }
.ticks li { padding-left: 1.4rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.38rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- facts + closing ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
}
.cta-band__inner h2 { margin-bottom: 0.25rem; }
.cta-band__inner p { color: var(--text-muted); margin: 0; }

.footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--text-subtle); font-size: 0.875rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer p { margin: 0; }
.footer a { color: var(--link); }
