/* ============================================================
   HeroScript — Marketing Site Design System
   The HeroScript Standard: Ivory · Burgundy · Onyx · Brass
   Burgundy is a signature, never decoration.
   ============================================================ */

:root {
  --forest: #6E1E2A;        /* burgundy — signature accent */
  --forest-dark: #571620;   /* deep burgundy */
  --forest-deep: #241D19;   /* onyx — dark sections */
  --coral: #A08447;         /* brass — warm secondary accent */
  --coral-dark: #7E6636;    /* dark brass */
  --deep: #26201B;          /* onyx — body text */
  --warm-grey: #EDE7DC;     /* linen hairline */
  --cloud: #F7F3EC;         /* ivory — page background */
  --sage: #F1EAE0;          /* linen — tint sections */
  --stone: #DCD5C8;         /* stone — borders */
  --amber: #A08447;
  --amber-tint: #F5EFE2;
  --text-muted: #6D6157;    /* warm grey-brown */
  --white: #FFFFFF;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(38, 32, 27, 0.07);
  --shadow-md: 0 6px 24px rgba(38, 32, 27, 0.09);
  --shadow-lg: 0 18px 50px rgba(38, 32, 27, 0.14);
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--deep);
  background: var(--cloud);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow--coral { color: var(--coral-dark); }
.eyebrow--light { color: #C6AE8E; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section-head h2 { margin-bottom: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--forest);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--forest-dark); box-shadow: var(--shadow-md); }

.btn--secondary {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn--secondary:hover { background: var(--sage); }

.btn--ghost-light {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.2); }

.btn--lg { padding: 18px 38px; font-size: 1.08rem; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stone);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--deep);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-mark {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
  color: var(--forest);
}
.footer .nav__logo-mark { color: #C6AE8E; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--deep);
  padding: 9px 3px;
  margin: 0 12px;
  position: relative;
  transition: color 0.15s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1.5px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__links a:hover { color: var(--forest); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active { color: var(--forest); font-weight: 600; }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 22px; font-size: 0.92rem; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--deep);
  border-radius: 2px;
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero--home {
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(110, 30, 42, 0.06), transparent 60%),
    radial-gradient(700px 420px at -8% 100%, rgba(160, 132, 71, 0.07), transparent 60%),
    var(--cloud);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: inherit; font-style: normal; }
.hero .lede { margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__note { font-size: 0.88rem; color: var(--text-muted); margin-top: 18px; }

/* Hero visual card stack */
.hero__visual { position: relative; }
.mock-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  border: 1px solid var(--stone);
}
.mock-card__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mock-card__title { font-weight: 700; font-size: 0.95rem; }
.pill {
  font-size: 0.66rem; font-weight: 600;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.pill--green { background: var(--sage); color: var(--forest); }
.pill--coral { background: #F3ECDC; color: var(--coral-dark); }
.pill--amber { background: var(--amber-tint); color: var(--amber); }

.mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--warm-grey);
  font-size: 0.9rem;
}
.mock-row:last-child { border-bottom: none; }
.mock-row__med { font-weight: 600; }
.mock-row__sub { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.mock-row__price { font-weight: 700; color: var(--forest); }
.mock-row__strike { text-decoration: line-through; color: var(--text-muted); font-weight: 400; font-size: 0.8rem; margin-right: 8px; }

.float-chip {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--stone);
  padding: 12px 16px;
  font-size: 0.83rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--forest); flex-shrink: 0; }
.float-chip--tl { top: -24px; left: -30px; }
.float-chip--br { bottom: -20px; right: -18px; }
.float-chip .dot--coral { background: var(--coral); }

/* ---------- Stat bar ---------- */
.stats {
  background: var(--forest-deep);
  color: var(--white);
  padding: 52px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.stat__num .accent { color: var(--coral); }
.stat__label { font-size: 0.88rem; color: #B3A697; margin-top: 6px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--sage); }
.section--white { background: var(--white); }
.section--dark { background: var(--forest-deep); color: var(--white); }
.section--dark .lede { color: #B3A697; }
.section--dark h2 { color: #fff; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #C9C0B2; }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--text-muted); font-size: 0.96rem; }

.card__icon {
  color: var(--forest);
  display: flex;
  align-items: flex-end;
  height: 40px;
}
.card__icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}
.card__icon--coral { color: var(--coral-dark); }
.card__num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--coral);
}

/* Audience path cards */
.path-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--forest); }
.path-card h3 { margin: 16px 0 10px; }
.path-card p { color: var(--text-muted); font-size: 0.95rem; flex-grow: 1; }
.path-card__link {
  margin-top: 22px;
  font-weight: 700;
  color: var(--forest);
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
}
.path-card:hover .path-card__link { color: var(--coral-dark); }

/* Checklist */
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1rem;
}
.check-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  display: grid; place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}
.check-list strong { display: block; }
.check-list span.sub { color: var(--text-muted); font-size: 0.92rem; }

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split h2 { margin-bottom: 18px; }
.split .lede { margin-bottom: 28px; font-size: 1.08rem; }

/* Steps (numbered timeline) */
.steps { display: grid; gap: 0; counter-reset: step; max-width: 780px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding-bottom: 40px;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 64px;
  bottom: 8px;
  width: 2px;
  background: var(--stone);
}
.step:last-child::before { display: none; }
.step__num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--forest);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  z-index: 1;
}
.step h3 { margin-bottom: 8px; padding-top: 12px; }
.step p { color: var(--text-muted); }

/* Quote / banner */
.quote-banner {
  background: var(--forest-deep);
  border-radius: var(--radius-lg);
  color: var(--white);
  padding: 72px 56px;
  text-align: center;
}
.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 500;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 20px;
}
.quote-banner blockquote .accent { color: var(--coral); font-style: italic; }
.quote-banner cite {
  color: #B3A697;
  font-style: normal;
  font-size: 0.92rem;
  display: inline-block;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  letter-spacing: 0.01em;
}

/* Catalog chips */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--white);
  border: 1px solid var(--stone);
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
}
.chip--featured { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- CTA section ---------- */
.cta-section {
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(110,30,42,0.28), transparent 55%),
    var(--forest-deep);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 18px; }
.cta-section p { color: #B3A697; max-width: 560px; margin: 0 auto 36px; font-size: 1.12rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.9rem; }
.form-field label .req { color: var(--forest); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1.5px solid var(--stone);
  border-radius: 10px;
  background: var(--cloud);
  color: var(--deep);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(110, 30, 42, 0.10);
  background: #fff;
}
.form-field .error-msg { color: var(--forest-dark); font-size: 0.82rem; display: none; }
.form-field.invalid input, .form-field.invalid select { border-color: var(--forest-dark); }
.form-field.invalid .error-msg { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
}
.form-success .big-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 2rem;
  display: grid; place-items: center;
  margin: 0 auto 24px;
}
.form-success h3 { font-size: 1.6rem; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); }

.form-note { font-size: 0.83rem; color: var(--text-muted); margin-top: 18px; text-align: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--forest-deep);
  color: #BDB2A4;
  padding: 72px 0 36px;
  font-size: 0.92rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand .nav__logo { color: #fff; margin-bottom: 14px; }
.footer__brand p { max-width: 300px; }
.footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer a { color: #BDB2A4; text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #8A7E70;
}

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-table th, .compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--warm-grey);
  font-size: 0.95rem;
}
.compare-table th { background: var(--forest-deep); color: #fff; font-weight: 600; }
.compare-table th:last-child { background: var(--forest); }
.compare-table td:last-child { background: var(--sage); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .x { color: var(--forest); font-weight: 700; }
.compare-table .yes { color: var(--forest); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--forest); font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 26px 24px; color: var(--text-muted); }

/* ---------- Utilities ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.text-center { text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__visual { max-width: 520px; }
  .float-chip--tl { left: 0; }
  .float-chip--br { right: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .quote-banner { padding: 48px 28px; }

  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--cloud);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--stone);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 14px 16px; border-radius: 10px; margin: 0; }
  .nav__links a::after { display: none; }
  .nav__links a:hover, .nav__links a.active { background: var(--sage); }
  .nav__toggle { display: block; }
  .nav__cta .btn--secondary { display: none; }

  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step__num { width: 48px; height: 48px; font-size: 1.15rem; }
  .step::before { left: 23px; top: 48px; }
}
