/* ============================================
   Family Court Solutions — Design System
   Calibrated to the book cover: sage, brass, integrity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette — pulled directly from the book cover */
  --sage:        #6dab9c;
  --sage-deep:   #2f7261;
  --sage-soft:   #e6f1ec;
  --forest:      #1f4e44;

  --copper:      #c46a3a;
  --copper-deep: #9a4f25;
  --copper-soft: #f5e1d2;

  --brass:       #d8a25b;
  --brass-soft:  #f7ecd8;

  --paper:      #fffdf7;
  --cream:      #f6f0e3;
  --cream-2:    #ede4d0;

  --ink:        #1f2a30;
  --ink-soft:   #4a5660;
  --line:       #d6dcdb;
  --line-soft:  #e8edec;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;

  --max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 6px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-deep); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--copper-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--sage-deep);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  margin-bottom: 0.75rem;
}

h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  font-variation-settings: "opsz" 72;
}

p { margin-bottom: 1rem; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
strong { color: var(--ink); font-weight: 600; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.logo {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-deep);
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-mark { width: 32px; height: 32px; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--sage-deep); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--copper);
}

.nav-cta {
  background: var(--copper);
  color: var(--paper) !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: var(--radius);
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--copper-deep);
  color: var(--paper) !important;
  transform: translateY(-1px);
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sage-deep);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 0.9rem; }
  .menu-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--copper);
  color: var(--paper);
  box-shadow: 0 4px 14px -4px rgba(154, 79, 37, 0.4);
}
.btn-primary:hover {
  background: var(--copper-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(154, 79, 37, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--sage-deep);
  border-color: var(--sage-deep);
}
.btn-secondary:hover {
  background: var(--sage-deep);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--sage-deep);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  font-weight: 600;
}
.btn-ghost::after { content: '→'; transition: transform 0.25s var(--ease); }
.btn-ghost:hover::after { transform: translateX(4px); }
.btn-ghost:hover { color: var(--copper-deep); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--cream) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 100%,
    rgba(47, 114, 97, 0.0) 0deg,
    rgba(47, 114, 97, 0.0) 7deg,
    rgba(47, 114, 97, 0.07) 7deg,
    rgba(47, 114, 97, 0.07) 14deg
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -15%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(196, 106, 58, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
}

.hero h1 { margin-bottom: 1.5rem; color: var(--sage-deep); }

.hero h1 em {
  color: var(--copper-deep);
  font-style: normal;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.18em;
  background: var(--brass);
  z-index: -1;
  opacity: 0.55;
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.hero-meta strong {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* ===== Book image ===== */
.book-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-frame img {
  max-width: min(420px, 100%);
  filter: drop-shadow(20px 30px 40px rgba(31, 78, 68, 0.3));
  border-radius: 4px;
  transition: transform 0.5s var(--ease);
}

.book-frame:hover img { transform: translateY(-4px); }

/* For "flat" book covers (no 3D wrap), apply a subtle realistic look */
.book-frame.flat img {
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(31, 78, 68, 0.05),
    8px 12px 24px -8px rgba(31, 78, 68, 0.25),
    20px 30px 60px -20px rgba(31, 78, 68, 0.35);
  filter: none;
}

/* ===== Endorsement strip ===== */
.endorsement-strip {
  background: var(--sage-deep);
  color: var(--paper);
  padding: 1.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.endorsement-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem 2.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  position: relative;
}

.endorsement-strip strong {
  color: var(--brass);
  font-weight: 600;
  margin-right: 0.4rem;
}

.endorsement-strip span { color: rgba(255,255,255,0.85); }

.endorsement-divider {
  width: 4px;
  height: 4px;
  background: var(--brass);
  border-radius: 50%;
  display: inline-block;
}

/* ===== Sections ===== */
.section-cream { background: var(--cream); }
.section-paper { background: var(--paper); }
.section-soft  { background: var(--sage-soft); }

.section-sage {
  background: var(--sage-deep);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.section-sage::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 100%,
    rgba(255, 255, 255, 0.0) 0deg,
    rgba(255, 255, 255, 0.0) 7deg,
    rgba(255, 255, 255, 0.04) 7deg,
    rgba(255, 255, 255, 0.04) 14deg
  );
  pointer-events: none;
}
.section-sage .container { position: relative; z-index: 1; }
.section-sage h2, .section-sage h3 { color: var(--paper); }
.section-sage p { color: rgba(255, 255, 255, 0.85); }
.section-sage .eyebrow { color: var(--brass); }

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.section-header.left { text-align: left; margin-left: 0; }

/* ===== Cards ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: 0 16px 32px -16px rgba(31, 78, 68, 0.18);
}

.card:hover::before { transform: scaleX(1); }
.card h3 { color: var(--sage-deep); margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--ink-soft); }

.card-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.card-number::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--brass);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ===== Pull quote ===== */
.pull-quote {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter);
}

.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  line-height: 1.3;
  color: var(--sage-deep);
  font-style: italic;
}

.pull-quote blockquote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--copper);
  display: block;
  line-height: 0.5;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.pull-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--forest);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { color: var(--paper); margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

.footer-col h4 {
  color: var(--brass);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-col a:hover { color: var(--copper); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  max-width: 720px;
  font-style: italic;
}

/* ===== Page header ===== */
.page-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.page-header::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 100%,
    rgba(47, 114, 97, 0.0) 0deg,
    rgba(47, 114, 97, 0.0) 7deg,
    rgba(47, 114, 97, 0.06) 7deg,
    rgba(47, 114, 97, 0.06) 14deg
  );
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1rem;
  max-width: 18ch;
  color: var(--sage-deep);
}

.page-header .lead { max-width: 60ch; }

/* ===== Prose ===== */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 3rem; margin-bottom: 1.25rem; font-size: clamp(1.6rem, 2.5vw, 2.15rem); }
.prose h3 { margin-top: 2.25rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 1.25rem 0 1.5rem 1.5rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.6rem; padding-left: 0.4rem; }
.prose ul li::marker { color: var(--copper); }

/* ===== Resource list ===== */
.resource-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.25s var(--ease), background 0.25s var(--ease);
}

.resource-row:hover { padding-left: 0.5rem; background: linear-gradient(90deg, var(--sage-soft), transparent); }
.resource-row:last-child { border-bottom: none; }

.resource-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--copper-soft);
  color: var(--copper-deep);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.resource-row h4 {
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sage-deep);
}

.resource-row p { font-size: 0.92rem; margin: 0; }

@media (max-width: 640px) {
  .resource-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .resource-tag { justify-self: start; }
}

/* ===== CTA Strip ===== */
.cta-strip {
  background: var(--sage-deep);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 100%,
    rgba(255, 255, 255, 0.0) 0deg,
    rgba(255, 255, 255, 0.0) 7deg,
    rgba(255, 255, 255, 0.05) 7deg,
    rgba(255, 255, 255, 0.05) 14deg
  );
  pointer-events: none;
}

.cta-strip::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(196, 106, 58, 0.25), transparent 65%);
  pointer-events: none;
}

.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: var(--paper); margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 56ch; margin: 0 auto 2rem; }

.cta-strip .btn-secondary {
  border-color: var(--paper);
  color: var(--paper);
}
.cta-strip .btn-secondary:hover { background: var(--paper); color: var(--sage-deep); }

/* ===== Audience grid ===== */
.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}

.audience-item {
  padding: 1.75rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.25s var(--ease);
  position: relative;
}

.audience-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--copper);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease);
}

.audience-item:hover { background: var(--sage-soft); }
.audience-item:hover::before { transform: scaleY(1); }

.audience-item h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 0.5rem;
}

.audience-item p { font-size: 0.92rem; margin: 0; }

/* ===== Comparison ===== */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  margin: 2.5rem 0;
}

@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

.compare-col { padding: 2rem; }
.compare-col + .compare-col { border-left: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .compare-col + .compare-col { border-left: none; border-top: 1px solid var(--line-soft); }
}

.compare-col h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--line-soft);
}

.compare-col.highlight { background: linear-gradient(180deg, var(--copper-soft), var(--paper) 60%); }
.compare-col.highlight h3 { color: var(--copper-deep); border-bottom-color: var(--copper); }

.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.compare-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.compare-col.highlight li::before { background: var(--copper); }

/* ===== Reveal ===== */
/* Default: visible. JS adds .js-reveal-enabled to <html> which then hides them. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js-reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js-reveal-enabled .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .js-reveal-enabled .reveal { opacity: 1; transform: none; }
}

/* ===== Social proof cards ===== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.proof-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}

.proof-card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(154, 79, 37, 0.25);
}

.proof-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--copper-soft);
  color: var(--copper-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-icon svg { width: 26px; height: 26px; }

.proof-card h4 {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.proof-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ===== Article / Blog Post ===== */
.article-header {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line-soft);
}

.article-header::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 140vmax;
  height: 140vmax;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 100%,
    rgba(47, 114, 97, 0.0) 0deg,
    rgba(47, 114, 97, 0.0) 7deg,
    rgba(47, 114, 97, 0.06) 7deg,
    rgba(47, 114, 97, 0.06) 14deg
  );
  pointer-events: none;
}

.article-header .container-narrow { position: relative; z-index: 1; }

.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  background: var(--copper-soft);
  color: var(--copper-deep);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
  max-width: 24ch;
  color: var(--sage-deep);
  line-height: 1.1;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta strong { color: var(--sage-deep); font-weight: 600; }

.article-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.article-body .prose {
  font-size: 1.08rem;
  line-height: 1.8;
}

.article-body .prose p { margin-bottom: 1.4rem; }
.article-body .prose p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.5em;
  float: left;
  line-height: 0.9;
  margin: 0.1em 0.1em 0 0;
  color: var(--copper-deep);
  font-variation-settings: "opsz" 144;
}

.article-body .prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--sage-deep);
}

.article-body .prose h3 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--sage-deep);
}

.article-body .prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--copper);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sage-deep);
  line-height: 1.5;
  font-variation-settings: "opsz" 72;
}

.article-body .prose blockquote p { color: var(--sage-deep); margin-bottom: 0.5rem; }
.article-body .prose blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-deep);
  font-weight: 600;
}

.article-body .prose hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

.article-end-cta {
  background: var(--sage-soft);
  border: 1px solid var(--sage);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0 1rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.article-end-cta img {
  max-width: 120px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 8px 16px -8px rgba(31, 78, 68, 0.3);
}

.article-end-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--sage-deep);
}

.article-end-cta p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

@media (max-width: 580px) {
  .article-end-cta { flex-direction: column; text-align: center; }
  .article-end-cta img { max-width: 100px; }
}

.related-articles {
  background: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line-soft);
}

.related-articles h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== Tactic boxes ===== */
.tactic-box {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--copper);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
  margin: 1.5rem 0;
}

.tactic-box h4 {
  color: var(--sage-deep);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.tactic-box .counter-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-deep);
  background: var(--copper-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.tactic-box p { font-size: 0.95rem; }
.tactic-box p:last-child { margin-bottom: 0; }
