/* ===========================================================
   Stop It / Start It - shared landing styles
   Quiet, clean, trust-oriented. Mobile-first.
   =========================================================== */

:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --text: #17211b;
  --muted: #5f6f66;
  --line: #dce7df;
  --green: #2f9e64;
  --green-dark: #257a4e;
  --teal: #168a8a;
  --warning: #b36b00;
  --warning-bg: #fdf6ec;

  /* Accent is the primary brand color. Stop It -> green. */
  --accent: var(--green);
  --accent-dark: var(--green-dark);
  --accent-soft: #e8f4ec;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 33, 27, 0.04), 0 8px 24px rgba(23, 33, 27, 0.05);
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Start It theme: teal-led, calm trust accent. */
body.theme-start {
  --accent: var(--teal);
  --accent-dark: #0f6d6d;
  --accent-soft: #e4f1f1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 248, 0.9);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.brand .badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .btn { color: #fff; }

@media (max-width: 720px) {
  .nav a.nav-link { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 32em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero-figure { order: -1; }
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 42em; margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.muted { color: var(--muted); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 14px;
  font-size: 1.2rem;
}

/* Topic cards (link cards) */
a.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
a.topic-card:hover {
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
a.topic-card .thumb { aspect-ratio: 16 / 10; background: var(--accent-soft); overflow: hidden; }
a.topic-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
a.topic-card .body { padding: 16px 18px 18px; }
a.topic-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
a.topic-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
a.topic-card .arrow { margin-top: 12px; color: var(--accent-dark); font-weight: 600; font-size: 0.9rem; }

/* ---------- Stop -> Start swap rows ---------- */
.swap-list { display: grid; gap: 14px; }
.swap-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.swap-row .from, .swap-row .to { font-size: 0.98rem; }
.swap-row .from { color: var(--muted); }
.swap-row .to { color: var(--text); font-weight: 600; }
.swap-row .sep {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}
@media (max-width: 560px) {
  .swap-row { grid-template-columns: 1fr; text-align: left; gap: 6px; }
  .swap-row .sep { display: none; }
  .swap-row .to::before { content: "\2192  "; color: var(--accent); }
}

/* ---------- Feature preview band ---------- */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Article / topic page ---------- */
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 28px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

.article { padding: 12px 0 40px; }
.article .container { max-width: 760px; }
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 16px 0 10px;
  letter-spacing: -0.01em;
}
.article .lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 8px; }
.article h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.article h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }

.track-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  gap: 10px;
}
.track-list li {
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.track-list li::before { content: "\2713"; color: var(--accent-dark); font-weight: 700; }

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  background: var(--warning-bg);
  border: 1px solid #f0dcc0;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: #6b4d1f;
  margin: 28px 0;
}
.disclaimer.strong { border-color: #e7c79a; }
.disclaimer .label {
  display: inline-block;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: 4px;
}

/* ---------- Waitlist form ---------- */
.waitlist {
  background: var(--accent-soft);
}
.waitlist .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.waitlist h2 { margin: 0 0 6px; text-align: center; }
.waitlist .sub { text-align: center; color: var(--muted); margin: 0 0 24px; }

.form-row { margin-bottom: 16px; }
.form-row label.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.form-row input[type="email"],
.form-row input[type="text"],
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}
@media (max-width: 480px) { .checkbox-grid { grid-template-columns: 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text);
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }

.form-success {
  display: none;
  text-align: center;
  padding: 12px 0;
}
.form-success .check-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid; place-items: center;
  font-size: 1.6rem;
  margin: 0 auto 14px;
}
.form-success h3 { margin: 0 0 6px; }
.form-success p { margin: 0; color: var(--muted); }
.form.is-submitted .form-fields { display: none; }
.form.is-submitted .form-success { display: block; }
.field-error { color: #b3261e; font-size: 0.82rem; margin-top: 4px; display: none; }
.field-error.show { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer .col h4 { margin: 0 0 10px; color: var(--text); font-size: 0.95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px;
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.85rem; }

/* ---------- Related links ---------- */
.related { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .related { grid-template-columns: 1fr; } }
.related a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.related a:hover { border-color: var(--accent); text-decoration: none; }
.related a span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.center { text-align: center; }
.mt-32 { margin-top: 32px; }
