/* Tokens come from /shared/theme.css (NEW-03 — single brand source).
 * Backward-compat aliases (--bg, --surface, --accent, --border, --radius,
 * --shadow, --font, --mono) are defined there so every selector below
 * resolves identically — just sourced from the canonical palette. */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
}
header.nav .container {
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-weight: 700; letter-spacing: -0.01em; font-size: 20px; }
.wordmark .dot { color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:hover { text-decoration: none; opacity: .92; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.hero { padding: 80px 0 56px; }
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px;
}
.hero p.sub { font-size: 19px; color: var(--ink-soft); max-width: 640px; margin: 0 0 32px; }
section { padding: 56px 0; }
section h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 20px; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  max-width: 520px;
}
.price-card .toggle {
  display: inline-flex; gap: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px; margin-bottom: 24px;
}
.price-card .toggle button {
  border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: transparent; font-size: 14px; font-weight: 600;
}
.price-card .toggle button.active { background: var(--ink); color: #fff; }
.price-card .amount { font-size: 44px; font-weight: 700; }
.price-card .amount small { font-size: 16px; color: var(--ink-soft); font-weight: 500; }
.price-card ul { padding-left: 20px; color: var(--ink-soft); margin: 16px 0 24px; }
.price-card li { margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps .step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.steps .step b { display: block; margin-bottom: 8px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-grid .card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.trust-grid .card b { display: block; margin-bottom: 6px; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
details { border-top: 1px solid var(--border); padding: 16px 0; }
details summary { font-weight: 600; cursor: pointer; }
details p { color: var(--ink-soft); margin: 8px 0 0; }
footer {
  padding: 48px 0 64px; border-top: 1px solid var(--border); color: var(--ink-soft);
  font-size: 14px;
}
footer a { color: var(--ink-soft); text-decoration: underline; }
.kbd {
  font-family: var(--mono); background: var(--surface);
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border);
}
.form-page {
  max-width: 640px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
}
.form-page label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form-page input, .form-page textarea, .form-page select {
  width: 100%; padding: 12px; font-size: 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); font-family: inherit;
}
.form-page textarea { min-height: 140px; resize: vertical; }
.form-page .row { display: flex; gap: 12px; }
.form-page .row > * { flex: 1; }
.hint { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }
.banner-ok {
  background: #eaf6ef; color: #1c5b38; padding: 12px 16px; border-radius: 10px;
  margin: 12px 0;
}
.banner-err {
  background: #fbeaea; color: #872525; padding: 12px 16px; border-radius: 10px;
  margin: 12px 0;
}
.hr-space { padding: 8px 0; }

/* ═══ NEW-04 — info-page redesign accents ═══════════════════════════ */

/* H1 emphasis — the orange accent matches the marketing wordmark dot. */
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--orange-flag);
}

/* ─── Scroll-reveal motion ───────────────────────────────────────── */
/* Initial state: opacity 0 + small upward translate. The JS toggles
   `.revealed` when the element scrolls into view; prefers-reduced-motion
   short-circuits by adding `.revealed` immediately to every target. */
.reveal,
.reveal-stagger {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 600ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.revealed,
.reveal-stagger.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Preview mockup section (mobile-phone frame) ────────────────── */
#preview-mockup {
  padding: var(--gap-10) 0;
  background: var(--whisper);
  border-top: 1px solid var(--taupe);
  border-bottom: 1px solid var(--taupe);
}
#preview-mockup h2 { margin: 0 0 var(--gap-3); }
#preview-mockup p.sub {
  font-size: var(--text-body-lg);
  color: var(--ink-soft);
  margin: 0 0 var(--gap-7);
  max-width: 56ch;
}
.phone-frame { display: flex; flex-direction: column; align-items: center; margin-top: var(--gap-6); }
.phone-bezel {
  position: relative;
  width: 320px;
  height: 640px;
  border: 12px solid var(--ink);
  border-radius: 44px;
  background: var(--canvas);
  box-shadow:
    rgba(17, 17, 17, 0.12) 0px 26px 60px -6px,
    rgba(17, 17, 17, 0.06) 0px 8px 16px -4px,
    rgba(17, 17, 17, 0.05) 0px 0px 0px 1px inset;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-bezel iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--canvas); }
.phone-placeholder {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  margin: var(--gap-6) auto 0;
  max-width: 36ch;
}
@media (max-width: 640px) {
  .phone-bezel { width: 260px; height: 520px; border-width: 10px; border-radius: 36px; }
  .phone-notch { width: 90px; height: 18px; }
}

/* ═══ NEW-05 — success-page live publish timeline ═══════════════════ */

.timeline-card {
  background: var(--canvas);
  border: 1px solid var(--taupe);
  border-radius: var(--r-card);
  padding: var(--gap-7) var(--gap-6);
  margin: var(--gap-7) 0 var(--gap-6);
  max-width: 560px;
  box-shadow: var(--shadow-card);
}
.timeline-list { list-style: none; padding: 0; margin: 0; }
.timeline-step {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  padding: var(--gap-3) 0;
  position: relative;
}
.timeline-step + .timeline-step::before {
  /* Connector line between dots. Switches to accent when the previous
     step is complete to convey forward motion. */
  content: "";
  position: absolute;
  top: -8px;
  left: 7px;
  width: 2px;
  height: 18px;
  background: var(--taupe);
}
.timeline-step.status-complete + .timeline-step::before { background: var(--orange-flag); }
.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--taupe);
  border: 2px solid var(--taupe);
  flex-shrink: 0;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.timeline-step.status-complete .timeline-dot {
  background: var(--orange-flag);
  border-color: var(--orange-flag);
}
.timeline-step.status-active .timeline-dot {
  background: var(--canvas);
  border-color: var(--orange-flag);
  box-shadow: 0 0 0 6px rgba(232, 64, 13, 0.12);
  animation: timelinePulse 1600ms ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .timeline-step.status-active .timeline-dot { animation: none; }
}
@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(232, 64, 13, 0.12); }
  50%      { box-shadow: 0 0 0 9px rgba(232, 64, 13, 0.20); }
}
.timeline-label { flex: 1; font-size: 15.5px; color: var(--ink); font-weight: 600; }
.timeline-step.status-pending .timeline-label { color: var(--ink-mute); font-weight: 500; }
.timeline-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.timeline-eta { margin: var(--gap-5) 0 0; font-size: 13.5px; color: var(--ink-mute); }
.timeline-escalation {
  margin: var(--gap-3) 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: var(--gap-3) var(--gap-4);
  background: var(--whisper);
  border-left: 3px solid var(--orange-flag);
  border-radius: 4px;
}
