/* SalePilot presell site — design system
   Fonts: Bricolage Grotesque (display, self-hosted OFL) + Public Sans (text, self-hosted OFL)
   Signature component: the Flight Path (Scheduled -> Live -> Reverted) */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — computed contrast verified against paper/ink pairs */
  --ink: #12141f;
  --ink-soft: #363a4d;
  --paper: #fbf8f2;
  --paper-dim: #f1ebdd;
  --paper-card: #ffffff;
  --line: rgba(18, 20, 31, 0.14);
  --line-soft: rgba(18, 20, 31, 0.08);
  --accent: #c43d14;         /* coral-signal, computed 5.2:1 white-on-accent */
  --accent-ink: #ffffff;     /* text placed on --accent */
  --accent-soft: #fbe3d8;
  --accent-text: #8a2f10;    /* accent-family text on --accent-soft, computed 6.9:1 */
  --teal: #0d6e63;           /* automation / revert-to-normal */
  --teal-soft: #dcefeb;
  --gold: #a9781f;           /* footer eyebrow, on ink footer bg use --gold-onink */
  --gold-onink: #e9c26a;
  --focus: #1450c9;

  --font-display: "Bricolage", "Arial Black", system-ui, sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.1; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .wrap { padding-inline: 32px; } }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-s); z-index: 200; transition: top .15s ease;
  font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-text); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 0 #a8380f; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 #a8380f; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 3px 0 0 #a8380f; }
.btn--primary:visited { color: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost:visited { color: var(--ink); }
.btn--onink { background: var(--gold-onink); color: #201603; box-shadow: 0 6px 0 0 #8a6218; }
.btn--onink:hover { transform: translateY(-2px); }
.btn--onink:visited { color: #201603; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* ---------- header / nav (signature system 11) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 248, 242, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
.brand:visited .brand__word { color: var(--ink); }

.nav { display: none; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  border-radius: 999px; position: relative;
}
.nav__link:hover { background: var(--paper-dim); color: var(--ink); }
.nav__link:visited { color: var(--ink-soft); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }
.nav__cta { margin-left: 6px; }

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-s);
  border: 2px solid var(--line); background: transparent; cursor: pointer;
}
.nav__toggle svg { width: 22px; height: 22px; }

.nav-mobile {
  display: none; flex-direction: column; gap: 2px; padding: 10px 0 18px;
  border-top: 1px solid var(--line);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile__link {
  min-height: 48px; display: flex; align-items: center; padding: 0 6px;
  text-decoration: none; font-weight: 600; color: var(--ink); border-radius: var(--radius-s);
}
.nav-mobile__link:visited { color: var(--ink); }
.nav-mobile__link:hover { background: var(--paper-dim); }
.nav-mobile__link[aria-current="page"] { background: var(--accent-soft); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav__toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- status strip ---------- */
.status-strip {
  background: var(--ink); color: #f4f1ea; font-size: 13.5px; font-weight: 600;
  text-align: center; padding: 9px 16px; letter-spacing: 0.01em;
}
.status-strip strong { color: var(--gold-onink); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text);
  background: var(--accent-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title { font-size: clamp(2.1rem, 6vw, 3.4rem); margin-bottom: 18px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: 14px; color: var(--ink-soft); }

.hero__art { position: relative; }
.mock {
  background: var(--paper-card); border-radius: var(--radius-l); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(18,20,31,.35);
  overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock__body { padding: 22px; }
.mock__heading { font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.mock__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.mock__row:last-child { border-bottom: none; }
.mock__badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.mock__badge--live { background: var(--accent-soft); color: #8a2f10; }
.mock__badge--sched { background: #fef3d6; color: #7a5a0c; }
.mock__badge--clean { background: var(--teal-soft); color: var(--teal); }

/* decorative ghost numerals / ornament */
.ornament-num {
  position: absolute; font-family: var(--font-display); font-weight: 800;
  color: var(--ink); opacity: 0.05; font-size: 240px; line-height: 1; pointer-events: none;
  z-index: 0; top: -60px; right: -20px;
}

/* ---------- Flight Path signature component ---------- */
.flightpath { display: flex; align-items: center; gap: 0; margin: 0; list-style: none; padding: 0; }
.flightpath__node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.flightpath__dot {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--paper-card); border: 2px solid var(--line); flex-shrink: 0;
}
.flightpath__dot svg { width: 20px; height: 20px; }
.flightpath__node--sched .flightpath__dot { border-color: #c99a2e; color: #a9781f; background: #fef3d6; }
.flightpath__node--live .flightpath__dot { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.flightpath__node--reverted .flightpath__dot { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.flightpath__label { font-size: 13px; font-weight: 700; text-align: center; color: var(--ink-soft); }
.flightpath__node[aria-current="step"] .flightpath__label { color: var(--ink); }
.flightpath__line { flex: 0 0 auto; width: 100%; max-width: 72px; height: 2px; margin-top: -26px; position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.flightpath--compact .flightpath__dot { width: 30px; height: 30px; }
.flightpath--compact .flightpath__dot svg { width: 14px; height: 14px; }
.flightpath--compact .flightpath__label { font-size: 11.5px; }
.flightpath--compact .flightpath__line { margin-top: -18px; max-width: 36px; }

.stagetag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 999px;
}
.stagetag--setup { background: #fef3d6; color: #7a5a0c; }
.stagetag--live { background: var(--accent-soft); color: #8a2f10; }
.stagetag--plans { background: var(--teal-soft); color: var(--teal); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--dim { background: var(--paper-dim); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section__lede { color: var(--ink-soft); font-size: 17px; }

/* feature grid + connector lines (point 17) */
.feature-grid { display: grid; gap: 20px; grid-template-columns: 1fr; position: relative; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.feature-card__text { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.feature-card--cta { background: var(--ink); color: #fff; align-items: flex-start; justify-content: center; }
.feature-card--cta .feature-card__title { color: #fff; }
.feature-card--cta .feature-card__text { color: #cfd0dc; }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 30px; }
.plan-card--pro { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft) inset; }
.plan-card__name { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.plan-card__price { font-size: 34px; font-weight: 800; font-family: var(--font-display); margin-bottom: 4px; }
.plan-card__price small { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.plan-card__list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan-card__list li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card__list svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }

/* ---------- signup ---------- */
.signup {
  background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 40px 28px;
  position: relative; overflow: hidden;
}
.signup__grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .signup__grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.signup__title { font-size: clamp(1.5rem, 3.6vw, 2rem); color: #fff; }
.signup__text { color: #cfd0dc; font-size: 16px; }
.signup__form { display: flex; flex-direction: column; gap: 12px; }
.signup__row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 500px) { .signup__row { flex-direction: row; } }
.signup__input {
  flex: 1; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: 16px; font-family: var(--font-text);
}
.signup__input::placeholder { color: #a9abbd; }
.signup__input:focus-visible { outline-color: var(--gold-onink); border-color: var(--gold-onink); }
.signup__legal { font-size: 13px; color: #9799ab; }
.signup__status { font-size: 14.5px; font-weight: 600; min-height: 22px; }
.signup__status[data-state="ok"] { color: #7fe0c9; }
.signup__status[data-state="err"] { color: #ff9c85; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- callout (screenshot placeholder) ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper-dim);
  border: 1px dashed var(--line); border-radius: var(--radius-m); padding: 18px 20px; margin: 22px 0;
  font-size: 14.5px; color: var(--ink-soft);
}
.callout__icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.callout strong { color: var(--ink); }

.callout--howto {
  background: var(--teal-soft); border-style: solid; border-color: var(--teal);
}

/* ---------- guides index ---------- */
.guide-list { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  display: flex; flex-direction: column; gap: 10px; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(18,20,31,.4); }
.guide-card:visited { color: var(--ink); }
.guide-card__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--ink-soft); }
.guide-card__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.guide-card__excerpt { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* ---------- article ---------- */
.article-head { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.article-head__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.breadcrumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { text-decoration: none; font-weight: 600; }
.breadcrumbs a:visited { color: var(--ink-soft); }
.article-head__title { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }

.article-body { max-width: 720px; margin: 0 auto; padding: 40px 0 20px; font-size: 18px; line-height: 1.75; }
.article-body h2 { font-size: 26px; margin-top: 1.6em; }
.article-body h3 { font-size: 20px; margin-top: 1.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body p { margin-bottom: 1.1em; }
.article-body strong { color: var(--ink); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article-body th { background: var(--paper-dim); font-family: var(--font-display); }
.article-body code { background: var(--paper-dim); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }

.article-crosslinks {
  max-width: 720px; margin: 0 auto; padding: 30px 0 60px; display: grid; gap: 16px;
}
@media (min-width: 640px) { .article-crosslinks { grid-template-columns: 1fr 1fr; } }
.crosslink {
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; background: var(--paper-card);
}
.crosslink:visited { color: var(--ink); }
.crosslink:hover { border-color: var(--accent); }
.crosslink__dir { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--accent); }
.crosslink--next { text-align: right; align-items: flex-end; }

/* ---------- footer (ink + gold, point 17) ---------- */
.site-footer { background: var(--ink); color: #cfd0dc; padding: 60px 0 30px; margin-top: 40px; }
.footer__eyebrow { color: var(--gold-onink); text-transform: uppercase; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; display: block; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.footer__word { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 19px; }
.footer__blurb { font-size: 14.5px; color: #9799ab; max-width: 32ch; }
.footer__col-title { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { text-decoration: none; font-size: 14.5px; color: #cfd0dc; }
.footer__links a:visited { color: #cfd0dc; }
.footer__links a:hover { color: var(--gold-onink); }

.footer__ledger { border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; margin-bottom: 26px; }
.footer__ledger .flightpath__label { color: #9799ab; }
.footer__ledger .flightpath__node[aria-current="step"] .flightpath__label { color: #fff; }

.footer__legal { border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px; text-align: center; font-size: 13px; color: #83859a; }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 100px; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 8rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.notfound__title { font-size: 24px; margin-bottom: 12px; }
.notfound__text { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 28px; }

/* ---------- motion (IO reveal, transform/opacity only) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
