/* =========================================================
   EndorseHQ — Shared Design System
   ========================================================= */

:root {
  --navy: #000b40;
  --ink: #0a1130;
  --blue: #1aabff;
  --blue-dark: #0a8fdc;
  --paper: #ffffff;
  --bone: #f6f5f0;
  --line: #e7e5dc;
  --mute: #6b7088;
  --rose: #d04050;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 48, 0.05), 0 2px 8px rgba(10, 17, 48, 0.04);
  --shadow-md: 0 6px 20px rgba(10, 17, 48, 0.08), 0 24px 48px rgba(10, 17, 48, 0.06);
  --shadow-lg: 0 18px 40px rgba(10, 17, 48, 0.12), 0 36px 80px rgba(10, 17, 48, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 28px; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
em.serif { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--navy); }

/* ============== NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo img { height: 28px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14px; color: var(--ink); font-weight: 500; opacity: 0.78; transition: opacity .15s ease; }
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--navy); }
.btn-dark { background: var(--navy); color: white; }
.btn-dark:hover { background: #001664; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-light { background: white; color: var(--navy); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--navy); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,171,255,0.35); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============== HERO (home + page heroes) */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(26,171,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0,11,64,0.05), transparent 60%),
    var(--paper);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,17,48,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,17,48,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(26,171,255,0.10); color: var(--blue-dark);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid rgba(26,171,255,0.22);
  margin-bottom: 28px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(26,171,255,0.18); }

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero h1 .accent { color: var(--blue); }
.hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--navy); }
.hero p.lede { font-size: 19px; color: var(--mute); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.micro { margin-top: 20px; font-size: 13.5px; color: var(--mute); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.micro .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* Page hero (centered, no right column) */
.page-hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(26,171,255,0.10), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,17,48,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,17,48,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 880px; margin: 0 auto 22px;
}
.page-hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: var(--navy); }
.page-hero p.lede { font-size: 19px; color: var(--mute); max-width: 680px; margin: 0 auto; }

/* Hero floating cards */
.hero-cards { position: relative; height: 540px; }
@media (max-width: 980px) { .hero-cards { height: 480px; } }
.card { background: white; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; box-shadow: var(--shadow-md); }
.t-card { position: absolute; width: 320px; }
.t-card .stars { display: flex; gap: 2px; margin-bottom: 10px; }
.t-card blockquote { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.t-card .placement {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26,171,255,0.10); color: var(--blue-dark);
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  margin-top: 14px; letter-spacing: 0.01em;
}
.t-card .placement svg { color: var(--blue); }
.t-1 { top: 10px; right: 0; z-index: 3; transform: rotate(2.5deg); }
.t-2 { top: 230px; left: 0; z-index: 2; transform: rotate(-3deg); }
.t-3 { top: 380px; right: 30px; z-index: 1; transform: rotate(1.5deg); }
.video-card {
  position: absolute; top: 80px; left: 90px;
  width: 220px; height: 280px; border-radius: 18px;
  background: linear-gradient(135deg, #2a3060 0%, var(--navy) 100%);
  box-shadow: var(--shadow-lg);
  z-index: 4; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transform: rotate(-5deg);
}
.video-card::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(26,171,255,0.25), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(26,171,255,0.15), transparent 50%);
}
.video-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 2;
}
.video-card .play::before {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
  border-left: 14px solid var(--navy);
}
.video-card .vtag {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  color: white; font-size: 12px; font-weight: 500; opacity: 0.9;
  display: flex; justify-content: space-between; align-items: center; z-index: 2;
}
.video-card .live {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.video-card .live .pulse { width: 6px; height: 6px; border-radius: 50%; background: #ff5470; box-shadow: 0 0 0 4px rgba(255,84,112,0.25); }

/* ============== MANIFESTO */
.manifesto { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.manifesto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 880px) { .manifesto-grid { grid-template-columns: 1fr; gap: 40px; } }
.manifesto h2 {
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.03em; line-height: 1.1;
  color: var(--navy); font-weight: 800;
}
.manifesto h2 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.manifesto-points { display: flex; flex-direction: column; gap: 24px; }
.point { display: flex; gap: 16px; }
.point .x {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(208,64,80,0.10); color: var(--rose);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.point h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.point p { font-size: 15px; color: var(--mute); line-height: 1.55; }

/* ============== SECTION COMMON */
.section { padding: 110px 0; }
.section-tight { padding: 80px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--navy); font-weight: 800; margin-bottom: 18px;
}
.section-head h2 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--navy); }
.section-head p { font-size: 18px; color: var(--mute); }

/* ============== PILLARS (home + logic + toolkit) */
.pillars { display: flex; flex-direction: column; gap: 28px; }
.pillar {
  background: white; border: 1px solid var(--line); border-radius: 22px;
  padding: 44px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pillar:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
@media (max-width: 880px) { .pillar { grid-template-columns: 1fr; gap: 32px; padding: 32px; } }
.pillar-num { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.pillar-num .n {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  font-size: 56px; line-height: 1; color: var(--blue); letter-spacing: -0.02em;
}
.pillar-num .label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.pillar h3 {
  font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; line-height: 1.1;
  color: var(--navy); font-weight: 800; margin-bottom: 16px;
}
.pillar h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.pillar .lead { font-size: 16px; color: var(--mute); line-height: 1.6; }
.sub { display: flex; flex-direction: column; gap: 18px; }
.sub-item {
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px;
}
.sub-item .name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 15.5px; letter-spacing: -0.01em; }
.sub-item .name svg { color: var(--blue); }
.sub-item p { font-size: 14.5px; color: var(--mute); line-height: 1.55; }
.sub-item ul { list-style: none; margin-top: 10px; }
.sub-item ul li { font-size: 14.5px; color: var(--ink); padding: 6px 0 6px 22px; position: relative; line-height: 1.55; }
.sub-item ul li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

/* ============== DARK SLAB */
.dark {
  background: var(--navy); color: white;
  border-radius: 28px;
  margin: 0 28px; overflow: hidden; position: relative;
}
.dark::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 400px at 80% 0%, rgba(26,171,255,0.18), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(26,171,255,0.10), transparent 60%);
  pointer-events: none;
}
.dark-inner { position: relative; padding: 90px 60px; }
@media (max-width: 720px) { .dark-inner { padding: 70px 28px; } .dark { margin: 0 14px; } }
.dark .section-head h2 { color: white; }
.dark .section-head p { color: rgba(255,255,255,0.7); }
.dark .kicker { color: var(--blue); }

.ana-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .ana-grid { grid-template-columns: 1fr; } }
.ana-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px; padding: 32px;
}
.ana-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; color: white; }
.ana-card p { font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.ana-card .chart {
  margin-top: 24px; height: 110px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.ana-card .bar { position: absolute; bottom: 16px; width: 12%; background: var(--blue); border-radius: 4px 4px 0 0; opacity: 0.85; }
.ana-card .bar.b1 { left: 5%; height: 35%; }
.ana-card .bar.b2 { left: 19%; height: 55%; }
.ana-card .bar.b3 { left: 33%; height: 42%; }
.ana-card .bar.b4 { left: 47%; height: 70%; }
.ana-card .bar.b5 { left: 61%; height: 60%; opacity: 1; box-shadow: 0 0 0 2px rgba(26,171,255,0.3); }
.ana-card .bar.b6 { left: 75%; height: 85%; }
.ana-card .bar.b7 { left: 89%; height: 95%; }
.ana-card .donut {
  margin-top: 12px;
  width: 110px; height: 110px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 65%, rgba(255,255,255,0.12) 65% 100%);
  position: relative;
}
.ana-card .donut::after {
  content: '65%'; position: absolute; inset: 18px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: white;
}

/* ============== AUDIENCE / TWO-CARDS */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .audience { grid-template-columns: 1fr; } }
.audience-card {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px; transition: border-color .2s ease, transform .2s ease;
}
.audience-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.audience-card .badge { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 14px; }
.audience-card h3 { font-size: 24px; letter-spacing: -0.02em; color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.audience-card p { font-size: 15.5px; color: var(--mute); line-height: 1.6; }

/* ============== PRICING */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: white; border: 1px solid var(--line); border-radius: 22px;
  padding: 40px; display: flex; flex-direction: column;
}
.plan.featured {
  background: var(--navy); color: white; border-color: var(--navy);
  box-shadow: var(--shadow-lg); position: relative;
}
.plan.featured::after {
  content: '7-day free trial'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white; font-size: 11px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.plan .name { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 8px; }
.plan.featured .name { color: var(--blue); }
.plan .price { font-size: 56px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.plan.featured .price { color: white; }
.plan .price .per { font-size: 15px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.plan.featured .price .per { color: rgba(255,255,255,0.55); }
.plan .price.custom { font-size: 36px; }
.plan .desc { font-size: 15px; color: var(--mute); margin: 16px 0 28px; min-height: 48px; }
.plan.featured .desc { color: rgba(255,255,255,0.7); }
.plan ul { list-style: none; margin: 0 0 32px; }
.plan li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; padding: 9px 0; color: var(--ink);
}
.plan.featured li { color: rgba(255,255,255,0.88); }
.plan li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan .footnote { font-size: 12.5px; color: var(--mute); margin-top: 12px; text-align: center; }
.plan.featured .footnote { color: rgba(255,255,255,0.55); }

/* ============== FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
details.faq { border-bottom: 1px solid var(--line); padding: 20px 0; }
details.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 600; color: var(--navy);
  letter-spacing: -0.005em;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .ico {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease, color .2s ease;
  color: var(--navy); flex-shrink: 0; margin-left: 16px;
}
details.faq[open] summary .ico { transform: rotate(45deg); background: var(--navy); color: white; border-color: var(--navy); }
details.faq p { color: var(--mute); margin-top: 12px; font-size: 15.5px; line-height: 1.65; padding-right: 44px; }

/* ============== FINAL CTA */
.cta-final {
  background: var(--bone);
  border-radius: 28px; margin: 0 28px;
  padding: 88px 40px; text-align: center;
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .cta-final { margin: 0 14px; padding: 60px 24px; } }
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,17,48,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,17,48,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, black, transparent 70%);
}
.cta-final h2 {
  position: relative;
  font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.05;
  color: var(--navy); margin-bottom: 18px; font-weight: 800;
}
.cta-final h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.cta-final p { position: relative; font-size: 18px; color: var(--mute); margin-bottom: 32px; max-width: 580px; margin-left: auto; margin-right: auto; }
.cta-final .buttons { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-final .micro { position: relative; justify-content: center; margin-top: 24px; }

/* ============== FOOTER */
footer { padding: 60px 0 40px; border-top: 1px solid var(--line); margin-top: 80px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.foot ul { list-style: none; }
.foot li { padding: 6px 0; }
.foot li a { font-size: 14.5px; color: var(--mute); }
.foot li a:hover { color: var(--navy); }
.foot p { font-size: 14px; color: var(--mute); max-width: 320px; }
.foot-logo { height: 28px; margin-bottom: 18px; }
.foot-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--mute); font-size: 13px;
}
.star { color: var(--blue); }

/* ============== FLOAT ANIM */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}
.t-1 { --r: 2.5deg; animation: float 7s ease-in-out infinite; }
.t-2 { --r: -3deg; animation: float 8s ease-in-out infinite -2s; }
.t-3 { --r: 1.5deg; animation: float 9s ease-in-out infinite -4s; }
.video-card { --r: -5deg; animation: float 6s ease-in-out infinite -3s; }
@media (prefers-reduced-motion: reduce) {
  .t-1, .t-2, .t-3, .video-card { animation: none; }
}

/* =========================================================
   Page-specific blocks
   ========================================================= */

/* ============== LOGIC: Silent Exit feature */
.silent-exit {
  background: var(--navy); color: white;
  border-radius: 28px;
  margin: 0 28px;
  padding: 80px 60px;
  position: relative; overflow: hidden;
}
@media (max-width: 720px) { .silent-exit { margin: 0 14px; padding: 60px 28px; } }
.silent-exit::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(800px 500px at 80% 0%, rgba(208,64,80,0.20), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(26,171,255,0.10), transparent 60%);
  pointer-events: none;
}
.silent-exit-inner { position: relative; max-width: 800px; }
.silent-exit .tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,84,112,0.95); margin-bottom: 18px;
}
.silent-exit h2 {
  font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.05;
  color: white; font-weight: 800; margin-bottom: 24px;
}
.silent-exit h2 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.silent-exit p { font-size: 17.5px; color: rgba(255,255,255,0.78); line-height: 1.65; margin-bottom: 14px; }
.silent-exit p:last-child { margin-bottom: 0; }

/* ============== LOGIC: 4 logic blocks */
.logic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .logic-grid { grid-template-columns: 1fr; } }
.logic-card {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.logic-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.logic-card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--navy); color: white;
  font-family: 'Instrument Serif', serif; font-style: italic; font-size: 20px;
  margin-bottom: 22px;
}
.logic-card h3 { font-size: 22px; letter-spacing: -0.02em; color: var(--navy); font-weight: 800; margin-bottom: 14px; line-height: 1.15; }
.logic-card .body { font-size: 15px; color: var(--mute); line-height: 1.65; margin-bottom: 16px; }
.logic-card .label-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 14px; background: var(--bone); border-radius: 12px; border-left: 3px solid var(--blue); }
.logic-card .label-row .lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); flex-shrink: 0; }
.logic-card .label-row .txt { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

/* ============== ABOUT: Team */
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: white; border: 1px solid var(--line); border-radius: 20px;
  padding: 36px;
  transition: border-color .2s ease, transform .2s ease;
}
.team-card:hover { border-color: var(--navy); transform: translateY(-3px); }
.team-card .portrait {
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, #1c2566 100%);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Instrument Serif', serif; font-style: italic; font-size: 36px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(0,11,64,0.12);
}
.team-card .name { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.team-card .name .sep { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--blue); margin: 0 8px; }
.team-card .role { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-dark); margin-top: 6px; margin-bottom: 14px; }
.team-card p { font-size: 15.5px; color: var(--mute); line-height: 1.65; }

/* ============== ABOUT: Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .principles { grid-template-columns: 1fr; } }
.principle {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; position: relative;
}
.principle .pnum {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 44px; line-height: 1; color: var(--blue); margin-bottom: 18px;
}
.principle h4 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.01em; }
.principle p { font-size: 15px; color: var(--mute); line-height: 1.65; }

/* ============== INSIGHTS GRID */
.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 980px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insights-grid { grid-template-columns: 1fr; } }
.insight-card {
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.insight-card:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.insight-card .tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: 14px;
}
.insight-card h3 {
  font-size: 20px; line-height: 1.25; letter-spacing: -0.015em;
  color: var(--navy); font-weight: 700; margin-bottom: 16px;
}
.insight-card .read {
  margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.insight-card .read svg { transition: transform .15s ease; }
.insight-card:hover .read svg { transform: translateX(3px); }
.insight-card.featured {
  grid-column: span 3;
  background: var(--navy); color: white; border-color: var(--navy);
  position: relative; overflow: hidden;
  padding: 48px;
}
@media (max-width: 980px) { .insight-card.featured { grid-column: span 2; } }
@media (max-width: 640px) { .insight-card.featured { grid-column: span 1; padding: 32px; } }
.insight-card.featured::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(700px 350px at 100% 0%, rgba(26,171,255,0.20), transparent 60%);
  pointer-events: none;
}
.insight-card.featured > * { position: relative; }
.insight-card.featured .tag { color: var(--blue); }
.insight-card.featured h3 { color: white; font-size: 32px; max-width: 720px; }
.insight-card.featured .read { color: white; }

/* ============== SITEMAP */
.sitemap-grid { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 48px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 880px) { .sitemap-grid { grid-template-columns: 1fr; gap: 32px; } }
.sitemap-block h3 {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.sitemap-block ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sitemap-block li a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  font-size: 16px; font-weight: 500; color: var(--ink);
  letter-spacing: -0.005em;
  transition: color .15s ease, transform .15s ease;
}
.sitemap-block li a:hover { color: var(--blue-dark); transform: translateX(3px); }
.sitemap-block li a::before {
  content: '→'; color: var(--mute); font-weight: 600; opacity: 0.5;
  transition: color .15s ease;
}
.sitemap-block li a:hover::before { color: var(--blue); opacity: 1; }

/* ============== PROSE (legal pages) */
.prose-page { padding: 80px 0 100px; }
.prose-page .meta {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute); margin-bottom: 16px;
}
.prose-page h1 {
  font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.03em;
  color: var(--navy); font-weight: 800; line-height: 1.05;
  margin-bottom: 24px;
}
.prose-page .intro { font-size: 18px; color: var(--mute); line-height: 1.65; margin-bottom: 24px; }
.prose {
  font-size: 16px; color: var(--ink); line-height: 1.7;
}
.prose h2 {
  font-size: 22px; font-weight: 800; color: var(--navy);
  margin-top: 48px; margin-bottom: 16px; letter-spacing: -0.015em;
}
.prose h2:first-of-type { margin-top: 32px; }
.prose h3 {
  font-size: 16px; font-weight: 700; color: var(--navy);
  margin-top: 28px; margin-bottom: 10px; letter-spacing: -0.005em;
}
.prose p { margin-bottom: 14px; color: var(--ink); }
.prose p.muted { color: var(--mute); }
.prose ul { margin: 8px 0 18px 22px; }
.prose ul li { padding: 4px 0; }
.prose a { color: var(--blue-dark); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--navy); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }
.prose .callout {
  background: var(--bone); border-left: 3px solid var(--blue);
  padding: 18px 22px; border-radius: 8px;
  margin: 18px 0;
  font-size: 15px; color: var(--ink);
}
.prose strong { color: var(--navy); font-weight: 700; }

/* TOC for legal pages */
.toc {
  position: sticky; top: 100px;
  background: var(--bone); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px;
}
.toc h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: t; }
.toc ol li { counter-increment: t; padding: 5px 0; }
.toc ol li::before {
  content: counter(t) ".  ";
  color: var(--blue); font-weight: 700; font-size: 13px;
}
.toc ol li a { font-size: 14px; color: var(--ink); }
.toc ol li a:hover { color: var(--blue-dark); }

.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
@media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; gap: 32px; } .toc { position: static; } }

/* ============== BLOG POST */
.post-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(26,171,255,0.08), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.post-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,17,48,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,17,48,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 0%, black 0%, transparent 70%);
  pointer-events: none;
}
.post-hero .wrap { position: relative; max-width: 800px; }
.post-hero .crumb { font-size: 13px; color: var(--mute); margin-bottom: 22px; }
.post-hero .crumb a { color: var(--mute); border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.post-hero .crumb a:hover { color: var(--navy); border-bottom-color: var(--blue); }
.post-hero .crumb .sep { margin: 0 8px; color: var(--line); }
.post-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-dark);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(26,171,255,0.10); border: 1px solid rgba(26,171,255,0.22);
  margin-bottom: 22px;
}
.post-hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}
.post-hero h1 em { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 14px; color: var(--mute);
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.post-body { padding: 64px 0 80px; }
.post-body .wrap { max-width: 760px; }
.post-body .prose p { font-size: 17.5px; line-height: 1.75; color: var(--ink); margin-bottom: 22px; }
.post-body .prose h2 { font-size: 26px; margin-top: 56px; margin-bottom: 18px; letter-spacing: -0.02em; }
.post-body .prose h2:first-of-type { margin-top: 40px; }
.post-body .prose h3 { font-size: 19px; margin-top: 36px; margin-bottom: 12px; }
.post-body .prose ul, .post-body .prose ol { margin: 8px 0 22px 22px; }
.post-body .prose ul li, .post-body .prose ol li { padding: 6px 0; font-size: 17px; line-height: 1.65; }
.post-body .prose ol { counter-reset: l; list-style: none; margin-left: 0; }
.post-body .prose ol li { counter-increment: l; padding-left: 38px; position: relative; }
.post-body .prose ol li::before {
  content: counter(l);
  position: absolute; left: 0; top: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bone); border: 1px solid var(--line);
  color: var(--navy); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.post-body .prose blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--blue);
  background: var(--bone);
  border-radius: 0 12px 12px 0;
  font-size: 18px; line-height: 1.6;
  color: var(--ink);
}
.post-body .prose blockquote p:last-child { margin-bottom: 0; }
.post-body .prose strong { color: var(--navy); font-weight: 700; }
.post-body .prose em { font-style: italic; }
.post-body .prose a { color: var(--blue-dark); border-bottom: 1px solid currentColor; }
.post-body .prose a:hover { color: var(--navy); }

.post-cta {
  margin-top: 48px;
  padding: 36px 32px;
  background: var(--navy); color: white;
  border-radius: 22px;
  position: relative; overflow: hidden;
}
.post-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 90% 0%, rgba(26,171,255,0.20), transparent 60%);
  pointer-events: none;
}
.post-cta > * { position: relative; }
.post-cta .lbl { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.post-cta h3 { font-size: 24px; letter-spacing: -0.02em; color: white; font-weight: 800; margin-bottom: 10px; line-height: 1.2; }
.post-cta h3 em { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.post-cta p { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.post-cta .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.post-cta .note { color: rgba(255,255,255,0.55); font-size: 12.5px; margin-top: 16px; }

/* Read next */
.read-next {
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--line);
}
.read-next .lbl {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mute); margin-bottom: 22px;
}
.read-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .read-next-grid { grid-template-columns: 1fr; } }
.read-next-card {
  background: white; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.read-next-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.read-next-card .dir { font-size: 12px; color: var(--mute); margin-bottom: 8px; font-weight: 500; }
.read-next-card h4 { font-size: 17px; line-height: 1.3; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
