/* =========================================================
   Shared stylesheet for aipolicytemplate.io
   - Variables, base reset, header, footer: used by every page
   - Landing-page sections (.hero, .section, .card, ...): index.html
   - Page-specific styles scoped under .legal-wrap / .contact-wrap / .receipt-wrap
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg:          #FFFFFF;
  --bg-soft:     #FAFAF8;
  --bg-section:  #F7F7F4;
  --bg-grad-1:   #FFF8F0;
  --bg-grad-2:   #F4F1FF;
  --ink:         #0A0A0A;
  --ink-soft:    #2A2A2A;
  --ink-mute:    #6B7280;
  --ink-line:    #E7E5E4;
  --ink-faint:   #F1EFEC;
  --amber:       #B45309;
  --amber-soft:  #FFF8E8;
  --amber-bd:    #F2D9A8;
  --amber-ink:   #5C2E03;
  --indigo:      #4F46E5;
  --indigo-soft: #EEF0FF;
  --indigo-bd:   #C7CCFF;
  --sage:        #047857;
  --sage-soft:   #ECFDF5;
  --sage-bd:     #BBF7D0;
  --sage-ink:    #054F31;
  --coral:       #DB5E4D;
  --coral-soft:  #FFF1EE;
  --shadow-sm:   0 1px 2px rgba(10,10,10,0.04);
  --shadow:      0 6px 24px rgba(10,10,10,0.06);
  --shadow-md:   0 12px 40px rgba(10,10,10,0.08);
  --radius:      10px;
  --radius-lg:   16px;
  --radius-xl:   22px;
  --max:         1180px;
  --max-narrow:  720px;
  --gutter:      24px;
  --font:        'Lato', 'Helvetica Neue', Arial, sans-serif;
  --blue:        #4353FF;
  --blue-hover:  #3641D9;
  --blue-soft:   rgba(67, 83, 255, 0.10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.1;
}

/* ---------- Typography helpers ---------- */
.display-1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.display-1 strong { font-weight: 900; color: var(--blue); }
.display-2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.display-3 { font-size: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.eyebrow.accent { color: var(--coral); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(67, 83, 255, 0.25), 0 4px 14px rgba(67, 83, 255, 0.18);
}
.btn-primary:hover {
  background: var(--blue-hover);
  box-shadow: 0 2px 6px rgba(67, 83, 255, 0.35), 0 8px 22px rgba(67, 83, 255, 0.22);
}
.btn-light { background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(67, 83, 255, 0.25), 0 4px 14px rgba(67, 83, 255, 0.18); }
.btn-light:hover { background: var(--blue-hover); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn .arrow { width: 14px; height: 14px; }
.link-underline {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink-line);
  text-underline-offset: 4px;
}
.link-underline:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Badges ---------- */
.law-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-bd);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}
.law-badge svg { width: 12px; height: 12px; flex-shrink: 0; }
.word-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-bd);
  color: var(--indigo);
  font-size: 0.8rem;
  font-weight: 600;
}
.word-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

.price-attest {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: var(--sage-soft);
  border: 1px solid var(--sage-bd);
  color: var(--sage-ink);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 9px;
}
.price-attest svg { width: 16px; height: 16px; color: var(--sage); flex-shrink: 0; }

/* ---------- Site header (used by every page) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--ink-line);
}
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.nav-links {
  display: none; align-items: center; gap: 30px;
  font-size: 0.9rem; color: var(--ink-mute);
}
.nav-links a:hover { color: var(--ink); }
@media (min-width: 820px) { .nav-links { display: inline-flex; } }

/* Blog header variant: cluster nav links next to the CTA on the right */
.site-header--blog .nav-links { margin-left: auto; margin-right: 28px; }
.nav a.home-link { color: var(--ink-mute); font-size: 0.9rem; }
.nav a.home-link:hover { color: var(--ink); }

/* Brand + tagline stack used by the blog header */
.brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  color: var(--ink);
}
.brand-stack .brand {
  font-size: 1rem;
}
.brand-tagline {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-weight: 400;
  letter-spacing: 0;
}
.brand-stack:hover .brand-tagline { color: var(--ink-soft); }
@media (max-width: 540px) {
  .brand-tagline { display: none; }
}

/* ---------- Hero (index) ---------- */
.hero {
  position: relative;
  padding: 64px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(900px circle at 92% 8%,   rgba(67, 83, 255, 0.18) 0%, transparent 60%),
    radial-gradient(820px circle at 6% 92%,   rgba(167, 139, 250, 0.18) 0%, transparent 60%),
    radial-gradient(680px circle at 98% 78%,  rgba(34, 211, 238, 0.10) 0%, transparent 60%),
    radial-gradient(720px circle at 12% 18%,  rgba(244, 114, 182, 0.12) 0%, transparent 60%),
    radial-gradient(560px circle at 50% 58%,  rgba(4, 120, 87, 0.06) 0%, transparent 60%);
}
@media (min-width: 768px) { .hero { padding: 96px 0 80px; } }
.hero::before {
  content: ""; position: absolute;
  top: -180px; right: -200px;
  width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(67, 83, 255, 0.16), transparent 70%);
  pointer-events: none; z-index: 0;
  filter: blur(8px);
}
.hero::after {
  content: ""; position: absolute;
  bottom: -160px; left: -180px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.20), transparent 70%);
  pointer-events: none; z-index: 0;
  filter: blur(8px);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { max-width: 880px; }
.hero h1 .accent-claim {
  color: var(--amber);
  font-style: italic;
  font-weight: 600;
}
.hero-sub {
  margin-top: 22px; max-width: 680px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.55;
  font-weight: 400;
}
.hero-actions {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.hero-trust {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.85rem; color: var(--ink-mute);
}
.trust-item { display: inline-flex; align-items: center; gap: 7px; }
.trust-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage);
  display: inline-block;
}
.hero-badges {
  margin-bottom: 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}
.hero-content { min-width: 0; }
.hero-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}
.hero-preview-label {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--ink-line);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.hero-preview-label svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-preview .preview-frame {
  max-height: 540px;
  padding: 22px;
}
@media (min-width: 720px) {
  .hero-preview .preview-frame { padding: 28px; }
}
.hero-preview-caption {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- Generic sections (index) ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--ink-line); position: relative; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-soft { background: var(--bg-section); }
.section-title { max-width: 760px; }
.section-lede {
  margin-top: 20px; max-width: 620px;
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6;
}
.section-dark { background: var(--ink); color: var(--bg); border-top: none; }
.section-dark .eyebrow { color: rgba(255,255,255,0.6); }
.section-dark .section-lede { color: rgba(255,255,255,0.72); }

/* ---------- Cards (index) ---------- */
.card-grid {
  margin-top: 40px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
}
.card:hover { border-color: #C7C2BC; transform: translateY(-2px); }
.card-quote-mark {
  position: absolute;
  top: 16px; right: 18px;
  font-family: Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink-faint);
  font-weight: 700;
}
.card-quote { font-size: 0.97rem; line-height: 1.55; color: var(--ink); padding-right: 30px; }
.card-attr {
  margin-top: 14px;
  font-size: 0.825rem;
  color: var(--ink-mute);
  font-style: italic;
}
.closing-line { margin-top: 40px; max-width: 620px; font-size: 1.05rem; color: var(--ink-soft); }

.lead-statement {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 400;
  max-width: 760px;
}
.lead-statement + .lead-statement { margin-top: 28px; }
.lead-statement strong { font-weight: 700; }

.twocol {
  margin-top: 44px;
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .twocol { grid-template-columns: 1fr 1fr; gap: 48px; } }
.twocol h3 {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.twocol ul li {
  display: flex; gap: 12px;
  padding: 11px 0;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  line-height: 1.5;
}
.twocol .ic { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.ic-x  { color: #FB7185; }
.ic-ck { color: #34D399; }

.check-list {
  margin-top: 20px;
  max-width: 760px;
}
.check-list li {
  display: flex; gap: 14px;
  padding: 14px 0;
  color: rgba(255,255,255,0.92);
  font-size: 1.025rem;
  line-height: 1.5;
}
.check-list li strong { color: #fff; font-weight: 700; }
.check-list .ic { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; }

.grid-3 {
  margin-top: 44px;
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.who-card {
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.who-card:hover { border-color: #C7C2BC; transform: translateY(-2px); }
.who-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--indigo-soft);
  color: var(--indigo);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.who-card:nth-child(2n) .who-num { background: var(--amber-soft); color: var(--amber); }
.who-card:nth-child(3n) .who-num { background: var(--sage-soft); color: var(--sage); }
.who-card:nth-child(4n) .who-num { background: var(--coral-soft); color: var(--coral); }
.who-card h3 {
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 700;
}
.who-card p { font-size: 0.875rem; color: var(--ink-mute); line-height: 1.55; }

.inside-grid {
  margin-top: 48px;
  display: grid; gap: 28px 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .inside-grid { grid-template-columns: 1fr 1fr; } }
.inside-item {
  border-left: 2px solid var(--ink-line);
  padding-left: 20px;
}
.inside-item.is-appendix { border-left-color: var(--amber); }
.inside-item.is-appendix .inside-eyebrow { color: var(--amber); }
.inside-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.inside-item h3 {
  font-family: var(--font);
  font-size: 1.075rem;
  font-weight: 700;
  margin: 6px 0 8px;
  letter-spacing: -0.012em;
}
.inside-item p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.formats-line {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.5;
  text-align: center;
}
.formats-line strong { color: var(--ink); font-weight: 700; }

.screenshot-preview {
  margin: 56px auto 16px;
  max-width: 760px;
  text-align: center;
}
.preview-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-bd);
  color: var(--amber-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.preview-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.preview-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-line);
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.10);
  overflow: hidden;
  background: #fff;
  max-height: 800px;
  padding: 28px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}
@media (min-width: 720px) {
  .preview-frame { padding: 36px; }
}
.preview-frame::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 60%, #fff 100%);
  pointer-events: none;
}
.preview-image {
  width: 100%;
  aspect-ratio: 850 / 720;
  background-image: url("preview2.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: top center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.preview-check {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sage-ink);
}
.preview-check svg {
  width: 18px; height: 18px;
  color: var(--sage);
  flex-shrink: 0;
}
.preview-caption {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-mute);
  font-style: italic;
}

.steps {
  margin-top: 44px;
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--ink-line);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.step:nth-child(1) .step-num { background: var(--indigo); }
.step:nth-child(2) .step-num { background: var(--amber); }
.step:nth-child(3) .step-num { background: var(--sage); }
.step h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

.origin { max-width: var(--max-narrow); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.origin .body { margin-top: 28px; display: grid; gap: 18px; }
.origin .body p {
  font-size: 1.075rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.origin .body p strong { color: var(--ink); font-weight: 600; }
.origin .body p.kicker {
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--amber);
}

.compare-section .section-title { max-width: 760px; margin: 0 auto; }
.compare-table {
  margin: 44px auto 0;
  max-width: 960px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ink-line);
}
.compare-table thead th {
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 700;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--ink-line);
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .opt {
  font-weight: 700;
  color: var(--ink);
}
.compare-table .meta {
  color: var(--ink-soft);
}
.compare-table .row-winner {
  background: var(--sage-soft);
}
.compare-table .row-winner .opt,
.compare-table .row-winner .meta {
  color: var(--sage-ink);
}
.compare-table .row-winner td {
  border-top: 1px solid var(--sage-bd);
  border-bottom: 1px solid var(--sage-bd);
}
.compare-table .winner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  vertical-align: middle;
}
.compare-stack {
  display: none;
  margin: 32px auto 0;
  max-width: 540px;
  gap: 14px;
}
.compare-card {
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.compare-card.is-winner {
  background: var(--sage-soft);
  border-color: var(--sage-bd);
}
.compare-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.compare-card-head .opt { font-weight: 700; color: var(--ink); font-size: 1rem; }
.compare-card.is-winner .compare-card-head .opt { color: var(--sage-ink); }
.compare-card-row {
  display: flex; justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.compare-card.is-winner .compare-card-row { color: var(--sage-ink); }
.compare-card-row .label { color: var(--ink-mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.compare-card.is-winner .compare-card-row .label { color: var(--sage-ink); opacity: 0.75; }
@media (max-width: 720px) {
  .compare-table { display: none; }
  .compare-stack { display: grid; }
}

.pricing { text-align: center; }
.pricing .display-2 { margin: 0 auto; max-width: 720px; }
.pricing-format-line {
  margin: 16px auto 0; max-width: 560px;
  font-size: 1rem;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 10px;
  justify-content: center;
}
.pricing-format-line svg { width: 18px; height: 18px; color: var(--indigo); flex-shrink: 0; }
.price-card {
  margin: 36px auto 0;
  max-width: 460px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--blue));
}
.price-format-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-bd);
  color: var(--indigo);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.price-format-tag svg { width: 12px; height: 12px; flex-shrink: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price-now {
  font-family: var(--font);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.price-was { color: var(--ink-mute); text-decoration: line-through; font-size: 1rem; }
.price-meta { font-size: 0.875rem; color: var(--ink-mute); }
.price-note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 4px; }
.price-features {
  margin-top: 22px;
  display: grid; gap: 10px;
  font-size: 0.92rem;
}
.price-features li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink-soft);
}
.price-features .ic-ck {
  color: var(--sage);
  width: 16px; height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
}
.price-card .btn { width: 100%; justify-content: center; margin-top: 24px; }
.price-fineprint {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.bigquote-wrap {
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 0 var(--gutter);
}
.bigquote-mark {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--amber);
  margin-bottom: 8px;
}
.bigquote {
  font-family: var(--font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 760px;
  margin: 18px auto;
  letter-spacing: -0.01em;
}

.faq-list { margin-top: 36px; }
.faq-item {
  border-top: 1px solid var(--ink-line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--ink-line); }
.faq-summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none;
  gap: 22px;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-q {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.faq-toggle {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-mute);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
  line-height: 1;
}
.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--bg);
}
.faq-a {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.final-cta { text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(217,119,6,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta > .container-narrow { position: relative; z-index: 1; }
.final-cta .display-2 { margin: 0 auto; max-width: 720px; }
.final-cta .section-lede { margin: 18px auto 0; }
.final-cta .btn { margin-top: 30px; }
.final-cta .price-fineprint { margin-top: 14px; }
.section-dark .price-fineprint { color: rgba(255,255,255,0.55); }

/* ---------- Site footer (used by every page) ---------- */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--ink-line);
  padding: 64px 24px 32px;
  color: var(--ink-mute);
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
  }
}
.footer-brand-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.footer-brand-tagline {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 380px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-col-title {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-col ul {
  margin: 0; padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
}
.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-mute);
}
.footer-disclaimer {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 720px;
}

/* =========================================================
   Legal pages: terms.html, privacy.html, refund.html, license.html
   Scoped under .legal-wrap so the typography overrides do not
   leak onto other pages.
   ========================================================= */
.legal-wrap {
  max-width: 720px;
  margin: 56px auto;
  padding: 0 24px;
  line-height: 1.65;
}
@media (min-width: 768px) { .legal-wrap { margin: 88px auto; } }
.legal-wrap h1 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  margin: 0 0 8px;
}
.legal-wrap h2 {
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  margin: 36px 0 12px;
}
.legal-wrap p { margin: 0 0 14px; color: var(--ink-soft); }
.legal-wrap ul {
  padding-left: 22px;
  margin: 0 0 14px;
  color: var(--ink-soft);
  list-style: disc;
}
.legal-wrap ul li { margin-bottom: 6px; }
.legal-wrap .updated {
  color: var(--ink-mute);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-wrap a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-wrap a:hover { color: var(--ink); }

/* =========================================================
   Contact page: contact.html
   ========================================================= */
.contact-wrap {
  max-width: 620px;
  margin: 64px auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .contact-wrap { margin: 96px auto; } }
.contact-wrap h1 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  margin: 0 0 16px;
}
.contact-wrap .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 32px;
}
.contact-wrap .form-embed {
  background: var(--bg-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 360px;
  display: flex; align-items: center; justify-content: center;
}
.contact-wrap .form-placeholder {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 0.95rem;
}
.contact-wrap .help-text {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* =========================================================
   Receipt page: receipt84.html
   ========================================================= */
.receipt-wrap {
  max-width: 620px;
  margin: 64px auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .receipt-wrap { margin: 96px auto; } }
.receipt-wrap h1 {
  font-size: clamp(1.875rem, 3.6vw, 2.5rem);
  margin: 0 0 16px;
  text-align: center;
}
.receipt-wrap .lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 32px;
  text-align: center;
}
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1px solid var(--sage-bd);
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.success-icon svg { width: 32px; height: 32px; }
.receipt-card {
  background: var(--bg-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
}
.receipt-row {
  display: flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.95rem;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-label { color: var(--ink-mute); }
.receipt-value { color: var(--ink); font-weight: 600; }
.download-block {
  margin: 32px 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--ink-line);
  text-align: center;
}
.download-block h2 {
  font-family: var(--font); font-weight: 700; font-size: 1.25rem;
  margin: 0 0 8px;
}
.download-block p {
  color: var(--ink-mute); font-size: 0.95rem;
  margin: 0 0 20px;
}
.receipt-wrap .btn {
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  justify-content: center;
}
.receipt-wrap .btn svg { width: 18px; height: 18px; }
.btn-secondary {
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--ink-line);
}
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-soft); }
.download-row {
  display: flex; flex-wrap: nowrap; gap: 12px;
  justify-content: center; align-items: center;
}
.download-row .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 18px;
  white-space: nowrap;
  font-size: 0.95rem;
}
.download-or {
  color: var(--ink-mute);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.receipt-wrap .help-text {
  margin-top: 64px;
  font-size: 0.9rem;
  color: var(--ink-mute);
  text-align: center;
}
.receipt-wrap .help-text a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Blog index: blog.html
   ========================================================= */
.blog-wrap {
  max-width: 820px;
  margin: 64px auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .blog-wrap { margin: 96px auto 80px; } }

.blog-header { margin-bottom: 48px; }
.blog-header .display-2 { margin-top: 4px; max-width: 700px; }
.blog-lede {
  margin-top: 18px;
  max-width: 640px;
  font-size: 1.075rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  background: var(--bg);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.post-card:hover {
  border-color: #C7C2BC;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.post-card-link {
  display: block;
  padding: 28px 30px;
  color: inherit;
}
.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.post-card-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--ink);
}
.post-card-dek {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 16px;
}
.post-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
}
.post-card-cta .arrow { width: 14px; height: 14px; }
.post-card:hover .post-card-cta { color: var(--blue-hover); }

.dot-sep { color: var(--ink-line); }

/* =========================================================
   Blog post: ai-governance-template.html (and future posts)
   Sticky left rail with TOC + CTA, main content on the right.
   Uses a Stripe-style cool gray palette for surfaces/borders,
   distinct from the warm-toned palette used on the homepage.
   ========================================================= */
.post {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  --post-surface: #FAFBFC;
  --post-line:    #E5E7EB;
  --post-shadow:  0 1px 2px rgba(60, 66, 87, 0.05), 0 2px 6px rgba(60, 66, 87, 0.04);
}
@media (min-width: 768px) { .post { padding: 88px 24px 96px; } }

.post-header {
  margin: 0 0 48px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .post-header {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 56px;
  }
}
.post-header-content { max-width: 680px; }
.post-header-image {
  border-radius: 18px;
  overflow: hidden;
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  box-shadow: 0 1px 2px rgba(60, 66, 87, 0.06), 0 14px 32px rgba(60, 66, 87, 0.10);
}
.post-header-image img {
  width: 100%;
  height: auto;
  display: block;
}
.post-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.post-eyebrow a {
  color: var(--blue);
  font-weight: 700;
}
.post-eyebrow a:hover { text-decoration: underline; }

.post-header h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.post-dek {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 22px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 980px) {
  .post-layout {
    grid-template-columns: 280px 1fr;
    gap: 56px;
  }
}

.post-rail { display: grid; gap: 24px; }
@media (min-width: 980px) {
  .post-rail {
    position: sticky;
    top: 88px;
    align-self: start;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .post-rail::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

.post-toc {
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-radius: var(--radius-lg);
  padding: 18px 14px 14px;
  box-shadow: var(--post-shadow);
}
.post-toc-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin: 0 4px 10px;
}
.post-toc-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--blue));
  border-radius: 2px;
  flex-shrink: 0;
}
.post-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
}
.post-toc li { display: block; }
.post-toc a {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease, padding .15s ease;
  position: relative;
}
.post-toc a:hover {
  color: var(--ink);
  background: rgba(67, 83, 255, 0.08);
  padding-left: 14px;
}

.post-cta {
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--post-shadow);
}
.post-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #818CF8);
}
.post-cta-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.post-cta-headline {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin-bottom: 8px;
}
.accent-amber {
  color: var(--blue);
  font-weight: 800;
}
.post-cta-body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.post-cta-btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  padding: 10px 14px;
  font-size: 0.88rem;
  gap: 6px;
}
.post-cta-btn .arrow { width: 12px; height: 12px; }

/* Article body */
.post-content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.post-content .post-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
}
.post-content p {
  margin: 0 0 20px;
}
.post-content h2 {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
  margin: 48px 0 16px;
  scroll-margin-top: 88px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 32px 0 12px;
  scroll-margin-top: 88px;
}
.post-content ul,
.post-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  list-style: disc;
  color: var(--ink-soft);
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; line-height: 1.6; }
.post-content li > strong { color: var(--ink); font-weight: 700; }
.post-content strong { color: var(--ink); font-weight: 700; }
.post-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(67, 83, 255, 0.4);
}
.post-content a:hover { color: var(--blue-hover); text-decoration-color: currentColor; }
.post-content a.btn { text-decoration: none; }
.post-content a.btn-primary,
.post-content a.btn-light { color: #fff; }
.post-content a.btn-primary:hover,
.post-content a.btn-light:hover { color: #fff; }
.post-content em { font-style: italic; }

.post-content .quick-steps {
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px 44px;
  margin: 24px 0 32px;
  box-shadow: var(--post-shadow);
}

.post-content .post-disclaimer {
  margin: 8px 0 32px;
  padding: 16px 20px;
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--post-shadow);
}
.post-content .post-disclaimer .disclaimer-label {
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--blue);
  padding-top: 2px;
  white-space: nowrap;
}
.post-content .post-disclaimer p { margin: 0; }
.post-content .post-disclaimer p + p { margin-top: 8px; }
.post-content .post-disclaimer.is-footnote {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--ink-mute);
  background: transparent;
  border: 1px dashed var(--post-line);
  border-left-width: 1px;
  box-shadow: none;
}
.post-content .post-disclaimer.is-footnote .disclaimer-label { color: var(--ink-mute); }
.post-content .quick-steps li { padding-left: 4px; }

/* FAQ items inside the post body */
.post-content .faq-item {
  border-top: 1px solid var(--post-line);
  padding: 18px 0;
  margin: 0;
}
.post-content .faq-item:last-of-type { border-bottom: 1px solid var(--post-line); margin-bottom: 32px; }
.post-content .faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  gap: 22px;
}
.post-content .faq-summary::-webkit-details-marker { display: none; }
.post-content .faq-q {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.35;
}
.post-content .faq-a {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.97rem;
}

.post-end-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius-lg);
  text-align: center;
}
.post-end-cta-headline {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.012em;
  margin-bottom: 8px;
  color: #fff;
}
.post-end-cta-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 18px;
}
