/* ==========================================================
   Proof Based Marketing — site styles
   Palette: deep indigo ink + signal orange + marker yellow
   ========================================================== */
:root {
  --ink: #16133a;
  --ink-2: #221e52;
  --text: #1e1b3a;
  --muted: #57546f;
  --bg: #fffdf9;
  --surface: #f6f2eb;
  --line: #e7e1d6;
  --accent: #ff5b2e;
  --accent-strong: #d63e14;
  --accent-soft: #ffe7de;
  --marker: #ffd84d;
  --proof: #12806f;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 19, 58, .06), 0 12px 32px -12px rgba(22, 19, 58, .18);
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  font: 600 1rem/1 var(--font-body);
  color: #fff; background: var(--accent-strong);
  border: 2px solid var(--accent-strong); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { color: #fff; background: #bd3410; border-color: #bd3410; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(214, 62, 20, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { display: inline-flex; }
.brand-name { font: 700 1.15rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--accent-strong); }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  position: relative; padding: .35rem 0;
  color: var(--muted); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap;
}
.site-nav a:not(.btn):hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 3px; background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(40rem 24rem at -10% 110%, #efeaff, transparent 60%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font: 600 .8rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong);
}
.section-dark .eyebrow { color: var(--accent); }

.marker {
  background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%);
  padding: 0 .08em; white-space: nowrap;
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 24rem; }
.proof-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 1.4rem 1.5rem 1.2rem;
  transform: rotate(1.5deg);
}
.proof-card-head { display: flex; align-items: center; gap: .35rem; margin-bottom: 1.1rem; }
.dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line); }
.dot:first-child { background: var(--accent); }
.proof-card-title { margin-left: .5rem; font: 600 .85rem/1 var(--font-body); color: var(--muted); }
.checklist { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.checklist li { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-weight: 500; color: var(--ink); }
.check {
  display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: #dcf3ee; color: var(--proof); font-size: .8rem; font-weight: 700;
}
.mini-chart { display: flex; align-items: flex-end; gap: .5rem; height: 7rem; padding: .5rem; background: var(--surface); border-radius: 12px; }
.bar { flex: 1; height: var(--h); background: #cfc9e8; border-radius: 6px 6px 3px 3px; }
.bar-hot { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); }
.chart-label { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); }

.floating-tag {
  position: absolute; padding: .5rem .85rem; border-radius: 999px;
  font: 600 .8rem/1 var(--font-body); box-shadow: var(--shadow); white-space: nowrap;
}
.tag-one { top: -1rem; left: -1.5rem; background: var(--ink); color: #fff; transform: rotate(-4deg); }
.tag-two { bottom: -1rem; right: -1rem; background: var(--marker); color: var(--ink); transform: rotate(3deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section + .section:not(.section-dark):not(.section-tint) { border-top: 1px solid var(--line); }
.section-tint { background: var(--surface); }
.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.section-lede { font-size: 1.125rem; color: var(--muted); margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d9d1c3; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: .45rem; }

a.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
a.card:hover h3 { color: var(--accent-strong); }
.card-link { margin-top: auto; padding-top: 1.25rem; font-weight: 600; color: var(--accent-strong); }
.card-cta { background: var(--surface); border-style: dashed; border-color: #d6cdbd; }

.topic-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem; margin-bottom: 1.1rem;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong);
}
.topic-card:nth-child(3n+2) .topic-icon { background: #ece8ff; color: var(--ink-2); }
.topic-card:nth-child(3n) .topic-icon { background: #dcf3ee; color: var(--proof); }
.card-cta .topic-icon { background: var(--ink); color: #fff; }

.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-strong); }
.card-meta { font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem !important; }
.card-meta a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }

/* Dark framework band */
.section-dark { background: var(--ink); color: #d9d6ee; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: auto -10rem -16rem auto; width: 34rem; height: 34rem;
  background: radial-gradient(circle, rgba(255, 91, 46, .28), transparent 65%);
  pointer-events: none;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-lede { color: #bdb9da; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; position: relative; }
.step {
  padding: 1.9rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.step p { margin: 0; color: #c9c5e3; }
.step-num {
  display: block; margin-bottom: 1.1rem;
  font: 700 2.4rem/1 var(--font-display); color: var(--accent);
}

/* Start here */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
.split .section-head { margin-bottom: 0; position: sticky; top: 6.5rem; }
.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.question-list a {
  display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.6rem;
  background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--accent);
  text-decoration: none; transition: transform .2s ease, background .2s ease;
}
.question-list a:hover { background: var(--accent-soft); transform: translateX(4px); }
.question { font: 600 1.15rem/1.4 var(--font-display); color: var(--ink); }
.pill {
  align-self: flex-start; display: inline-block; padding: .3rem .7rem; border-radius: 999px;
  font: 600 .75rem/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: var(--accent-strong); border: 1px solid var(--accent-soft);
}
.pill-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }

/* Newsletter CTA */
.cta-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #3a1f4a 100%);
  color: #d9d6ee;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { margin: 0; color: #c9c5e3; font-size: 1.1rem; }
.signup { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input {
  flex: 1 1 14rem; min-width: 0; padding: .85rem 1.1rem;
  font: 500 1rem var(--font-body); color: var(--ink);
  border: 2px solid transparent; border-radius: 999px; background: #fff;
}
.signup input:focus { outline: none; border-color: var(--accent); }
.signup-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

/* ---------- Category pages ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(50rem 24rem at 90% -20%, var(--accent-soft), transparent 60%),
    radial-gradient(36rem 20rem at -10% 120%, #efeaff, transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { display: flex; align-items: flex-start; gap: 1.5rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: .4em; }
.page-hero .lede { margin-bottom: 0; }
.topic-icon-lg { width: 4.25rem; height: 4.25rem; border-radius: 18px; margin: .35rem 0 0; }
.topic-icon-lg svg { width: 32px; height: 32px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.75rem; font-size: .9rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.empty-state {
  display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  padding: 2rem; border: 2px dashed #d6cdbd; border-radius: var(--radius); background: #fff;
}
.empty-state p { margin: 0; color: var(--muted); font-size: 1.1rem; }

.focus-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.focus-grid li { padding: 1.6rem 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.focus-grid h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.focus-grid p { margin: 0; color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.15rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.chip svg { width: 18px; height: 18px; color: var(--accent-strong); }
.chip:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

/* ---------- Articles ---------- */
.article-header { max-width: 44rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem 0; }
.article-header h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.article-header .lede { margin-bottom: 1rem; }
.article-meta { color: var(--muted); font-size: .95rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.article .prose { padding-top: 2rem; }

/* ---------- Prose ---------- */
.prose { max-width: 44rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) 1.25rem; }
.prose h2 { font-size: 1.75rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.75; }
.prose li + li { margin-top: .35em; }
.prose blockquote {
  margin: 1.75em 0; padding: 1.25rem 1.5rem;
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0;
  color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote strong { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0 2em; }
.prose img { border-radius: 12px; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.prose thead th { background: var(--surface); color: var(--ink); font-weight: 600; }
.prose th, .prose td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 9rem; }
.prose code { background: var(--surface); padding: .1em .35em; border-radius: 5px; font-size: .92em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-brand { max-width: 26rem; }
.footer-brand p { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-content: flex-start; }
.footer-nav a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-strong); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.25rem; padding-bottom: 1.75rem; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav .btn { display: none; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-visual { max-width: 22rem; }
  .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .cta-panel { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; gap: .4rem 1rem; padding-top: .75rem; padding-bottom: .5rem; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: .1rem 1.25rem; }
  .site-nav a:not(.btn) { font-size: .92rem; }
}
@media (max-width: 640px) {
  .card-grid, .steps, .focus-grid { grid-template-columns: 1fr; }
  .page-hero-inner { flex-direction: column; gap: 1rem; }
  .tag-one { left: -.25rem; }
  .tag-two { right: -.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
