/* ---------------------------------------------------------------------------
   Shared styling for Classi's static marketing pages.

   These pages are plain HTML on purpose: AI crawlers (GPTBot, ClaudeBot,
   PerplexityBot) do not execute JavaScript, so anything that only exists after
   the Vue bundle boots is invisible to them. Firebase Hosting serves real files
   before applying the "** -> /index.html" SPA rewrite, so every page under a
   directory here is delivered as static HTML with no JS at all.

   Type and colour follow the scrollytelling landing page (src/landing/), not
   theme.scss — the landing components set Satoshi everywhere, while theme.scss
   still documents an older Syne/Oxygen pairing that the landing does not use.
   Match src/landing/components/*.vue when changing anything here.
--------------------------------------------------------------------------- */

:root {
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --accent: #008b8b;
  --accent-hover: #006d6d;

  --ink: #1a1a1a;
  --ink-2: #666;
  --ink-3: #888;
  --ink-4: #999;

  --bg: #fff;
  --bg-warm: #faf9f6;
  --bg-warm-2: #f4f3f0;

  --line: rgba(0, 0, 0, 0.06);

  --pad-x: clamp(1.25rem, 4vw, 3rem);
  /* One column width for the whole page. The shell IS the reading measure:
     a second, narrower max-width on inner elements left-aligns the text
     inside a wider centred box, which reads as shoved to one side. */
  --shell: 800px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }

/* --- Shell ---------------------------------------------------------------
   One container, one width, one left edge. Do not add a max-width to
   anything inside it: a narrower inner width left-aligns that block within
   the wider centred shell, so the page looks pushed to the left. */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line);
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--font);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .a { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.btn-quiet {
  padding: 0.5rem 1.15rem;
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-weight: 500;
}
.btn-quiet:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* --- Sections ------------------------------------------------------------
   Alternating warm neutrals, matching the landing's section rhythm. */
section { padding-block: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: hidden; }
section.warm { background: var(--bg-warm); }
section.warmer { background: var(--bg-warm-2); }

/* Soft radial glow, as used behind the landing sections. */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 139, 139, 0.05) 0%, transparent 70%);
}
.glow-tr { width: 420px; height: 420px; top: -120px; right: -80px; }
.glow-bl {
  width: 380px; height: 380px; bottom: -140px; left: -100px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.025) 0%, transparent 70%);
}

/* --- Type ---------------------------------------------------------------- */
h1, h2, h3 { margin: 0; font-family: var(--font); color: var(--ink); }

h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 {
  font-weight: 700;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  letter-spacing: -0.02em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1.1rem;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.55;
}

.body-copy { color: var(--ink-2); font-size: 1.02rem; }
.body-copy strong { color: var(--ink); font-weight: 700; }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* --- Numbered steps ------------------------------------------------------ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.25rem;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: none; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.step h3 { margin-bottom: 0.35rem; }
.step p { color: var(--ink-2); margin: 0; }

/* --- Cards --------------------------------------------------------------- */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.75rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }

/* --- Comparison rows (mirrors SectionContrast) --------------------------- */
.compare { max-width: 720px; }
.compare-row { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: none; }
.compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
}
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 600px) { .compare-pair { grid-template-columns: 1fr; gap: 0.4rem; } }
.compare-old { font-weight: 400; color: var(--ink-3); margin: 0; }
.compare-new { font-weight: 500; color: var(--ink); margin: 0; }

/* --- Quotes (mirrors SectionProof) --------------------------------------- */
.quotes { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
figure.quote { margin: 0; }
figure.quote p {
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1rem;
}
figure.quote figcaption { font-size: 0.95rem; }
figure.quote figcaption strong { display: block; font-weight: 700; color: var(--ink); }
figure.quote figcaption span { color: var(--ink-3); }

/* --- Stat ---------------------------------------------------------------- */
.stat-line { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.stat-number {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-caption { color: var(--ink-3); font-size: 1rem; }

/* --- Q&A ----------------------------------------------------------------- */
.qa { max-width: var(--measure); }
.qa-item { padding: 1.75rem 0; border-top: 1px solid var(--line); }
.qa-item:first-child { border-top: none; padding-top: 0; }
.qa-item h3 { margin-bottom: 0.65rem; }
.qa-item p { color: var(--ink-2); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-tagline { color: var(--ink-2); max-width: 30ch; margin: 0.75rem 0 0; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.site-footer nav a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.site-footer nav a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.35rem;
  font-size: 0.85rem;
  color: var(--ink-4);
}
