/* BulkPilot presell site — design system
   Fonts: Clash Display (display, self-hosted, Fontshare free-commercial) + Satoshi (text, self-hosted, Fontshare free-commercial)
   Signature component: the Tier Ladder (Buy 1 -> Buy 2 -> Buy 3, price stepping down)
   Brand: dark teal #0F3D39, light teal paper #F0F7F6, white */

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — computed contrast verified against paper/ink pairs, see DESIGN.md */
  --ink: #0f2422;
  --ink-soft: #3d524f;
  --paper: #f0f7f6;
  --paper-dim: #e2eeec;
  --paper-card: #ffffff;
  --line: rgba(15, 61, 57, 0.16);
  --line-soft: rgba(15, 61, 57, 0.08);
  --teal: #0f3d39;           /* brand — primary buttons, header/footer ink */
  --teal-ink: #ffffff;       /* text placed on --teal */
  --teal-soft: #dcefec;
  --teal-text: #0b2d2a;      /* teal-family text on teal-soft, computed AA */
  --amber: #8a5a12;          /* savings / tier callouts */
  --amber-soft: #fbead0;
  --amber-text: #6b4409;
  --gold-onink: #e7c67a;     /* eyebrow/ledger text on dark teal footer */
  --focus: #1450c9;

  --font-display: "Clash Display", "Arial Black", system-ui, sans-serif;
  --font-text: "Satoshi", 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(--teal); 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(--teal); color: var(--teal-ink); box-shadow: 0 6px 0 0 #071e1b; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 0 0 #071e1b; }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 3px 0 0 #071e1b; }
.btn--primary:visited { color: var(--teal-ink); }
.btn--ghost { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn--ghost:hover { background: var(--teal); color: #fff; }
.btn--ghost:visited { color: var(--teal); }
.btn--onink { background: var(--gold-onink); color: #201603; box-shadow: 0 6px 0 0 #a3843f; }
.btn--onink:hover { transform: translateY(-2px); }
.btn--onink:visited { color: #201603; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--disabled {
  background: var(--paper-dim); color: var(--ink-soft); box-shadow: none;
  border: 2px dashed var(--line); cursor: default; pointer-events: none;
}
.btn--disabled:hover { transform: none; }

/* ---------- header / nav (signature system 11) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 247, 246, 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; border-radius: 9px; }
.brand__word { font-family: var(--font-display); font-weight: 700; 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(--teal-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(--teal-soft); }

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

/* ---------- status strip ---------- */
.status-strip {
  background: var(--teal); color: #f4f8f7; 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.1fr 0.9fr; 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(--teal-text);
  background: var(--teal-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(--teal); }
.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; align-items: center; }
.hero__actions--center { justify-content: center; }
.hero__note { font-size: 14px; color: var(--ink-soft); }

.hero__art { position: relative; }
.shot-frame {
  background: var(--paper-card); border-radius: var(--radius-l); border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(15,61,57,.35);
  overflow: hidden;
}
.shot-frame__bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.shot-frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-frame img { width: 100%; height: auto; display: block; }

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

/* ---------- Tier Ladder signature component ---------- */
.tierladder { display: flex; align-items: flex-end; gap: 0; margin: 0; list-style: none; padding: 0; }
.tierladder__step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tierladder__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; font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.tierladder__step--1 .tierladder__dot { border-color: var(--line); color: var(--ink-soft); background: var(--paper-dim); }
.tierladder__step--2 .tierladder__dot { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.tierladder__step--3 .tierladder__dot { border-color: var(--amber); color: var(--amber-text); background: var(--amber-soft); }
.tierladder__label { font-size: 13px; font-weight: 700; text-align: center; color: var(--ink-soft); }
.tierladder__step[aria-current="step"] .tierladder__label { color: var(--ink); }
.tierladder__price { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.tierladder__line { flex: 0 0 auto; width: 100%; max-width: 72px; height: 2px; margin-bottom: 30px; position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.tierladder--compact .tierladder__dot { width: 30px; height: 30px; font-size: 12px; }
.tierladder--compact .tierladder__label { font-size: 11.5px; }
.tierladder--compact .tierladder__line { margin-bottom: 20px; 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--free { background: var(--paper-dim); color: var(--ink-soft); }
.stagetag--tier2 { background: var(--teal-soft); color: var(--teal-text); }
.stagetag--tier3 { background: var(--amber-soft); color: var(--amber-text); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--dim { background: var(--paper-dim); }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__kicker { color: var(--teal); 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(--teal-soft); color: var(--teal);
}
.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(--teal); color: #fff; align-items: flex-start; justify-content: center; }
.feature-card--cta .feature-card__title { color: #fff; }
.feature-card--cta .feature-card__text { color: #cfe6e2; }
.feature-card--cta .feature-card__icon--onink { background: rgba(255,255,255,.14); color: var(--gold-onink); }

/* 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(--teal); box-shadow: 0 0 0 3px var(--teal-soft) inset; }
.plan-card__name { font-family: var(--font-display); font-size: 20px; margin-bottom: 6px; }
.plan-card__price { font-size: 34px; font-weight: 700; 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; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; }
.faq-item { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 4px 22px; }
.faq-item__q {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--teal); flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] .faq-item__q::after { transform: rotate(45deg); }
.faq-item__q:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.faq-item__a { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 20px; }

/* ---------- callout ---------- */
.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); }

/* ---------- article ---------- */
.article-head { padding: 44px 0 30px; border-bottom: 1px solid var(--line); }
.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: 100%; 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 code { background: var(--paper-dim); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.article-body a { color: var(--teal); font-weight: 600; }
.article-body a:visited { color: var(--teal); }
.article-body a:hover { color: var(--amber-text); }

/* ---------- footer (ink teal + gold, point 17) ---------- */
.site-footer { background: var(--teal); color: #cfe6e2; 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; } }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.footer__mark { width: 34px; height: 34px; border-radius: 9px; }
.footer__word { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 19px; }
.footer__blurb { font-size: 14.5px; color: #a9c4bf; 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: #cfe6e2; }
.footer__links a:visited { color: #cfe6e2; }
.footer__links a:hover { color: var(--gold-onink); }

.footer__ledger { border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; margin-bottom: 26px; }
.footer__ledger .tierladder__label { color: #a9c4bf; }
.footer__ledger .tierladder__price { color: #7d9d97; }
.footer__ledger .tierladder__step[aria-current="step"] .tierladder__label { color: #fff; }

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

/* dark surface: default focus blue fails 3:1 on teal — override to gold */
.site-footer :focus-visible { outline-color: var(--gold-onink); }

/* ---------- 404 ---------- */
.notfound { padding: 90px 0 100px; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 8rem); font-weight: 700; color: var(--teal); 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; }
.notfound__mark { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; }

/* ---------- 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; }
.stack-lg { margin-top: 34px; }
.stack-md { margin-top: 18px; }
.center-narrow { max-width: 640px; margin-inline: auto; }
.feature-card__icon--numeral { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
