/* ============================================================
   Zyla Studio — Marketing site
   Brand: peach #eabcaa · lavender #c4b3e0 · ink #15131a
   Type: Geist (one typeface, full stop)
   Gradient: Sunrise 135° (used sparingly)
   ============================================================ */

:root {
  --canvas:       #ffffff;
  --canvas-soft:  #f9fafb;   /* was cream #faf8f5 — now neutral gray-50 */
  --canvas-warm:  #f3f4f6;   /* was cream #f7f2eb — now neutral gray-100 */
  --ink:          #15131a;
  --ink-2:        #28242d;
  --rule:         #e7e6ea;
  --rule-strong:  #d4d3d8;

  --peach:        #eabcaa;
  --peach-soft:   #f6dccf;
  --peach-deep:   #d99672;
  --lavender:     #c4b3e0;
  --lavender-soft:#e1d6f2;
  --lavender-deep:#9c7fd4;

  --grad-sunrise: linear-gradient(135deg, #eabcaa 0%, #c4b3e0 100%);
  --grad-sunrise-soft: linear-gradient(135deg, #f6dccf 0%, #e1d6f2 100%);

  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --green-600: #16a34a;
  --red-600:   #dc2626;
  --amber-500: #f59e0b;
  --sky-400:   #38bdf8;
  --mint-400:  #a7f3d0;

  --f-geist: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max:    1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 12px -4px rgb(0 0 0 / 0.06);
  --shadow-lift: 0 6px 20px -6px rgb(0 0 0 / 0.10), 0 12px 32px -12px rgb(0 0 0 / 0.10);
  --shadow-pop:  0 12px 32px -8px rgb(0 0 0 / 0.14), 0 24px 64px -24px rgb(20 18 30 / 0.20);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--f-geist);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

/* ----- TYPE  ----------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.025em; font-weight: 600; line-height: 1.05; text-wrap: balance; }
p { margin: 0; color: var(--gray-700); line-height: 1.6; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gray-500);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--gray-400);
}
.eyebrow.no-rule::before { display: none; }
.eyebrow b { color: var(--ink); font-weight: 700; }

.lede { font-size: 19px; line-height: 1.55; color: var(--gray-700); max-width: 640px; }
.lede b { color: var(--ink); font-weight: 600; }

/* ----- LAYOUT ---------------------------------------------- */
.container {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
}
section.section {
  padding: 120px 0;
  position: relative;
}
section.section.tight  { padding: 80px 0; }
section.section.warm   { background: var(--canvas-warm); }
section.section.soft   { background: var(--canvas-soft); }
section.section.dark   { background: var(--ink); color: #fff; }
section.section.dark h1, section.section.dark h2, section.section.dark h3 { color: #fff; }
section.section.dark p { color: rgba(255,255,255,0.72); }

/* ----- NAV ------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: none;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.brandmark { display: inline-flex; align-items: center; gap: 0; height: 62px; }
.brandmark img { height: 68px; width: auto; display: block; transition: transform 200ms var(--ease-out); }
.brandmark:hover img { transform: scale(1.04); }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
}
.nav-links a { transition: color 150ms; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* Hamburger toggle — hidden on desktop, shown via the mobile media query. */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; flex: none;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, transform 150ms var(--ease-out);
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
.nav.is-open .nav-toggle .ico-bars { display: none; }
.nav.is-open .nav-toggle .ico-close { display: block; }

/* Mobile dropdown menu — hidden until revealed by the mobile media query. */
.nav-mobile {
  display: none;
  max-width: var(--max); margin: 0 auto;
  padding: 4px var(--gutter) 20px;
}
.nav-mobile__links { display: flex; flex-direction: column; }
.nav-mobile__links a {
  padding: 13px 4px; font-size: 16px; font-weight: 500;
  color: var(--gray-700); border-bottom: 1px solid var(--rule);
  transition: color 150ms;
}
.nav-mobile__links a:hover, .nav-mobile__links a.active { color: var(--ink); }
.nav-mobile__links a.active { font-weight: 600; }
.nav-mobile__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.nav-mobile__ctas .btn { width: 100%; justify-content: center; }
/* Mobile sub-menu items: indented under their parent link. */
.nav-mobile__links a.nav-mobile__child {
  padding-left: 22px; font-size: 15px; color: var(--gray-600);
}
.nav-mobile__links a.nav-mobile__child::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px;
  border-radius: 999px; background: var(--rule-strong); vertical-align: middle;
}

/* Header dropdown sub-menus (desktop). The parent link still navigates; the
   dropdown opens on hover and on keyboard focus. */
.nav-item.has-sub { position: relative; display: inline-flex; align-items: center; }
.nav-sub-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { opacity: 0.6; transition: transform 150ms var(--ease-out); }
.nav-item.has-sub:hover .nav-caret,
.nav-item.has-sub:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 10px;
  min-width: 240px; max-width: 320px; padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--canvas); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 150ms, transform 150ms var(--ease-out), visibility 150ms;
  z-index: 200;
}
/* Invisible bridge so the dropdown doesn't close while the cursor crosses the gap. */
.nav-dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-item.has-sub:hover .nav-dropdown,
.nav-item.has-sub:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown__links { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown__item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; white-space: nowrap;
  font-size: 14px; font-weight: 500; color: var(--gray-700);
}
.nav-dropdown__item:hover { background: var(--gray-100); color: var(--ink); }
.nav-dropdown__item.active { color: var(--ink); font-weight: 600; }
.nav-dropdown__icon {
  flex: none; width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  border-radius: 7px; background: var(--canvas-soft); overflow: hidden;
}
.nav-dropdown__icon img { width: 100%; height: 100%; object-fit: contain; }

/* Promo / CTA card inside the dropdown. */
.nav-dropdown__cta {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; padding: 14px;
  border-radius: 12px; white-space: normal;
  background: var(--canvas-soft); border: 1px solid var(--rule);
  color: var(--gray-700);
}
.nav-dropdown__links + .nav-dropdown__cta { margin-top: 6px; }
.nav-dropdown__cta:hover { border-color: var(--rule-strong); }
.nav-dropdown__cta strong { color: var(--ink); font-size: 14px; }
.nav-dropdown__cta-text { font-size: 12.5px; line-height: 1.45; color: var(--gray-600); }
.nav-dropdown__cta-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 4px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}

/* Mobile sub-menu icons + promo. */
.nav-mobile__icon {
  width: 22px; height: 22px; border-radius: 6px; object-fit: contain;
  vertical-align: middle; margin-right: 8px; background: var(--canvas-soft);
}
.nav-mobile__links a.nav-mobile__child:has(.nav-mobile__icon)::before { display: none; }
.nav-mobile__promo {
  display: flex; flex-direction: column; gap: 2px;
  margin: 8px 0 4px 22px; padding: 12px 14px;
  border-radius: 12px; background: var(--canvas-soft); border: 1px solid var(--rule);
}
.nav-mobile__promo strong { color: var(--ink); font-size: 15px; }
.nav-mobile__promo span { font-size: 13px; font-weight: 600; color: var(--ink); }

/* ----- BUTTONS --------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-geist);
  font-size: 14px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: transform 150ms var(--ease-out), background 150ms, border-color 150ms, color 150ms, box-shadow 200ms;
  white-space: nowrap;
  text-decoration: none;
  background: transparent; color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { color: var(--gray-700); }
.btn.ghost:hover { color: var(--ink); background: var(--gray-100); }
.btn.line {
  border-color: var(--rule-strong);
  background: #fff; color: var(--ink);
}
.btn.line:hover { border-color: var(--ink); }
.btn.primary {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 16px -8px rgba(20,18,30,0.4);
}
.btn.primary:hover { background: #000; box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 10px 24px -10px rgba(20,18,30,0.6); }
.btn.lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn .arr { transition: transform 200ms var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }

/* ----- HERO ------------------------------------------------ */
.hero {
  position: relative;
  /* pull up under the transparent nav so the gradient blobs bleed behind it */
  margin-top: -104px;
  padding: 192px 0 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero h1 {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.hero h1 .swap {
  position: relative; display: inline-block;
  color: var(--gray-300);
  text-decoration: line-through;
  text-decoration-thickness: 0.06em;
  text-decoration-color: var(--peach-deep);
}
.hero h1 .grad {
  background: var(--grad-sunrise);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  display: inline-block;
}
.hero .lede { margin-top: 28px; font-size: 20px; max-width: 540px; }
.hero .cta-row { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .trust {
  margin-top: 28px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--gray-500);
}
.hero .trust .dots { display: flex; }
.hero .trust .dots i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--peach); border: 2px solid #fff;
  margin-left: -6px;
}
.hero .trust .dots i:nth-child(1) { background: var(--peach); margin-left: 0; }
.hero .trust .dots i:nth-child(2) { background: var(--lavender); }
.hero .trust .dots i:nth-child(3) { background: var(--gray-800); }
.hero .trust .dots i:nth-child(4) { background: var(--mint-400); }
.hero .trust .dots i:nth-child(5) { background: var(--peach-soft); }

/* gradient blob behind hero */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  width: 520px; height: 520px;
  background: var(--peach);
  left: -180px; top: -120px;
  animation: float-a 14s ease-in-out infinite;
}
.hero::after {
  width: 480px; height: 480px;
  background: var(--lavender);
  right: -120px; top: 180px;
  animation: float-b 18s ease-in-out infinite;
}
.hero-inner { position: relative; z-index: 1; }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.05); }
}

/* ----- HERO BOARD (animated whiteboard preview) ----------- */
.hero-board {
  position: relative;
  aspect-ratio: 5/4.6;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.hero-board .grid-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, var(--gray-300) 1px, transparent 0);
  background-size: 22px 22px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 100%);
}
.hero-board .tag {
  position: absolute; top: 14px; left: 16px;
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-600);
}
.hero-board .tag .live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.hero-board .toolbar {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 12px;
  padding: 6px;
  display: flex; gap: 4px;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.3);
}
.hero-board .toolbar button {
  background: transparent; border: 0;
  color: rgba(255,255,255,0.7);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  cursor: pointer;
}
.hero-board .toolbar button.active { background: rgba(255,255,255,0.12); color: #fff; }
.hero-board .toolbar button:hover { color: #fff; }

/* board cards floating in */
.b-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  animation: card-in 700ms var(--ease-out) backwards;
}
.b-card .b-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gray-500);
  margin-bottom: 10px;
}
.b-card .b-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.b-card .big-num { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.b-card .delta { font-size: 11.5px; font-weight: 500; }
.b-card .delta.up { color: var(--green-600); }
.b-card .delta.dn { color: var(--red-600); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* mini chart bars */
.spark {
  display: flex; gap: 3px; align-items: flex-end; height: 28px; margin-top: 8px;
}
.spark i {
  flex: 1; background: var(--ink);
  border-radius: 2px 2px 0 0;
  opacity: 0.85;
  animation: spark-grow 800ms var(--ease-out) backwards;
}
.spark i.grad { background: var(--grad-sunrise); opacity: 1; }
@keyframes spark-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

/* sankey-ish path on board */
.flow-svg { position: absolute; inset: 0; pointer-events: none; }
.flow-svg path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ----- SECTION HEADERS ------------------------------------ */
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head h2 {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.0; margin: 14px 0 16px;
}
.sec-head p { font-size: 18px; color: var(--gray-700); }

/* ----- PROBLEM SECTION (death to dashboards) ------------- */
.problem-stage {
  position: relative;
  min-height: 460px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.problem-stage .chaos {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
}
.problem-stage .chaos .tile {
  background: var(--canvas-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 9px; color: var(--gray-500);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}
.problem-stage .chaos .tile::after {
  content: '';
  position: absolute; left: 8px; right: 8px; bottom: 8px;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--gray-200) 0 4px, transparent 4px 7px);
  border-radius: 2px;
}
.problem-stage .veil {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 60%, #fff 100%);
}
.problem-stage .verdict {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 32px;
}
.problem-stage .verdict .strike {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
.problem-stage .verdict .strike s {
  color: var(--gray-400);
  text-decoration-color: var(--peach-deep);
  text-decoration-thickness: 0.05em;
}
.problem-stage .verdict .alt {
  margin-top: 14px;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  background: var(--grad-sunrise);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.problem-stage .verdict p {
  margin-top: 18px;
  max-width: 460px;
  font-size: 16px;
}

/* ----- FEATURES GRID -------------------------------------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.feat {
  background: #fff;
  padding: 32px 28px 36px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: background 200ms;
}
.feat:hover { background: var(--canvas-soft); }
.feat .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--canvas-warm);
  display: grid; place-items: center;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.feat:hover .icon {
  transform: scale(1.12) rotate(-2deg);
  box-shadow: 0 8px 20px -6px rgba(20,18,30,0.18);
}
.feat .icon.peach   { background: var(--peach-soft); }
.feat .icon.lav     { background: var(--lavender-soft); }
.feat .icon.ink     { background: var(--ink); color: #fff; }
.feat .icon.grad    { background: var(--grad-sunrise); color: var(--ink); }
.feat h3 { font-size: 19px; line-height: 1.2; letter-spacing: -0.02em; }
.feat p { font-size: 14.5px; color: var(--gray-600); }
.feat .tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-500);
  margin-top: auto;
}

/* ----- STEPS (how it works) ------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step .num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gray-500);
}
.step h3 { font-size: 22px; margin: 14px 0 8px; letter-spacing: -0.022em; }
.step p { font-size: 14.5px; color: var(--gray-600); }
.step .demo {
  margin-top: 22px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--canvas-soft);
  height: 130px;
  position: relative;
  overflow: hidden;
}

/* ----- LOGO STRIP ----------------------------------------- */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.logo-strip .glyph {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--gray-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.logo-strip .glyph svg { width: 22px; height: 22px; }

/* ----- TESTIMONIAL ---------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
.quote {
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px;
  background: #fff;
  display: flex; flex-direction: column;
  gap: 18px;
}
.quote.feature { background: var(--ink); color: #fff; border-color: var(--ink); }
.quote.feature p { color: rgba(255,255,255,0.85); }
.quote p { font-size: 17px; line-height: 1.45; color: var(--ink); }
.quote.feature p { font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; }
.quote .who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.quote .who .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--peach);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.quote.feature .who .av { background: var(--peach); }
.quote .who .name { font-size: 13.5px; font-weight: 600; }
.quote .who .role { font-size: 12px; color: var(--gray-500); }
.quote.feature .who .role { color: rgba(255,255,255,0.6); }

/* ----- PRICING ------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex; flex-direction: column;
  gap: 22px;
  position: relative;
}
.tier.featured {
  background: var(--ink); color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.tier.featured .price, .tier.featured h3 { color: #fff; }
.tier.featured p, .tier.featured li { color: rgba(255,255,255,0.78); }
.tier .ribbon {
  position: absolute; top: -10px; right: 24px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad-sunrise);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
}
.tier h3 { font-size: 20px; letter-spacing: -0.02em; }
.tier .price {
  font-size: 48px; font-weight: 600; letter-spacing: -0.04em;
  line-height: 1; color: var(--ink);
}
.tier .price .unit {
  font-size: 14px; font-weight: 500; color: var(--gray-500);
  letter-spacing: 0;
}
.tier.featured .price .unit { color: rgba(255,255,255,0.6); }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier li {
  font-size: 14px; color: var(--gray-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.tier li svg {
  flex: none; width: 16px; height: 16px; color: var(--ink);
  margin-top: 3px;
}
.tier.featured li svg { color: var(--peach); }

/* Highlighted ("headline") features — emphasised, above the full list. */
.tier__highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier__highlights li {
  font-size: 14px; font-weight: 600; color: var(--ink);
  display: flex; gap: 10px; align-items: flex-start;
}
.tier__highlights li svg { flex: none; width: 16px; height: 16px; color: #e8893b; margin-top: 2px; }
.tier.featured .tier__highlights li { color: #fff; }
.tier.featured .tier__highlights li svg { color: var(--peach); }
/* Divide the highlights from the standard list that follows. */
.tier__highlights + ul { padding-top: 18px; border-top: 1px solid var(--rule); }
.tier.featured .tier__highlights + ul { border-top-color: rgba(255,255,255,0.16); }

.ta-feats--highlight li { font-weight: 600; color: var(--ink); }
.ta-feats--highlight li svg { color: #e8893b; }

.tier .pcta { margin-top: auto; }

/* Agency — full-width row underneath the three core tiers */
.tier-agency {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tier-agency::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 6px;
  background: linear-gradient(180deg, var(--peach), var(--lavender));
}
.tier-agency .ta-flag { padding-left: 8px; }
.tier-agency .ta-ribbon {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  color: var(--ink);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.tier-agency h3 {
  font-size: 26px; letter-spacing: -0.025em;
  margin: 0 0 8px; color: var(--ink);
}
.tier-agency p {
  font-size: 14px; line-height: 1.55;
  color: var(--gray-600); margin: 0; max-width: 380px;
}
.tier-agency .ta-feats {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.tier-agency .ta-feats li {
  font-size: 14px; color: var(--gray-700);
  display: flex; gap: 10px; align-items: flex-start;
}
.tier-agency .ta-feats li svg {
  flex: none; width: 16px; height: 16px; color: var(--ink);
  margin-top: 3px;
}
.tier-agency .ta-cta {
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end; text-align: right;
}
.tier-agency .ta-cta .price {
  font-size: 36px; font-weight: 600; letter-spacing: -0.035em;
  color: var(--ink); line-height: 1;
}
.tier-agency .ta-cta .price .unit {
  font-size: 13px; font-weight: 500; color: var(--gray-500);
  letter-spacing: 0;
}
@media (max-width: 900px) {
  .tier-agency { grid-template-columns: 1fr; gap: 22px; padding: 26px 24px; }
  .tier-agency .ta-feats { grid-template-columns: 1fr; }
  .tier-agency .ta-cta { align-items: flex-start; text-align: left; }
}

/* ----- FOOTER -------------------------------------------- */
footer.foot {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
footer.foot .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
footer.foot h4 {
  color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer.foot a { color: rgba(255,255,255,0.7); font-size: 14px; display: block; padding: 6px 0; transition: color 150ms; }
footer.foot a:hover { color: #fff; }
footer.foot .brand img { height: 73px; filter: brightness(1); }
footer.foot .brand p { color: rgba(255,255,255,0.6); font-size: 14px; margin-top: 14px; max-width: 320px; }
footer.foot .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}

/* ----- REVEAL ANIM (on scroll) ---------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
.reveal.d5 { transition-delay: 400ms; }

/* ----- BANNER / CTA STRIP --------------------------------- */
.cta-strip {
  border-radius: 20px;
  padding: 56px 48px;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-strip h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; letter-spacing: -0.03em; }
.cta-strip p { color: rgba(255,255,255,0.75); font-size: 17px; max-width: 520px; }
.cta-strip .row { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .row .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-strip .row .btn.primary:hover { background: var(--peach); border-color: var(--peach); }
.cta-strip .row .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.cta-strip .row .btn.line:hover { border-color: #fff; }
.cta-strip::before {
  content: ''; position: absolute;
  right: -120px; top: -100px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: var(--grad-sunrise);
  opacity: 0.5;
  filter: blur(50px);
}
.cta-strip > * { position: relative; }

/* ----- SUB-PAGE HEAD -------------------------------------- */
.page-head {
  padding: 120px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-head .eyebrow { margin-bottom: 24px; }
.page-head h1 {
  font-size: clamp(48px, 7vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin-bottom: 24px;
}
.page-head p { font-size: 19px; max-width: 600px; color: var(--gray-700); }
.page-head::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: var(--peach);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  right: -200px; top: -250px;
  pointer-events: none;
}
.page-head::after {
  content: ''; position: absolute;
  width: 460px; height: 460px;
  background: var(--lavender);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  right: 120px; top: -120px;
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }

/* ----- RESPONSIVE ----------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  footer.foot .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  /* Collapse the desktop links + CTAs into the hamburger menu. */
  .nav-toggle { display: inline-grid; }
  .nav .nav-cta { display: none; }
  .nav.is-open { background: var(--canvas); border-bottom: 1px solid var(--rule); }
  .nav.is-open .nav-mobile { display: block; }
  section.section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  footer.foot .grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip { padding: 36px 28px; }
}

/* ============================================================
   Block-page extras (consolidated from per-page inline styles)
   ============================================================ */

/* ----- Product split feature ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > div:first-child { order: 2; }
.split .copy h3 { font-size: clamp(28px, 3.5vw, 44px); letter-spacing: -0.03em; line-height: 1.0; margin-bottom: 18px; }
.split .copy .eyebrow { margin-bottom: 18px; }
.split .copy p { font-size: 17px; }
.split .copy ul { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.split .copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--gray-700); }
.split .copy li svg { flex: none; color: var(--ink); margin-top: 3px; }

.demo-frame { background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-pop); position: relative; aspect-ratio: 5/4; }
.demo-frame .head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule); background: var(--canvas-soft); }
.demo-frame .head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.demo-frame .head .title { margin-left: 12px; font-size: 12px; font-weight: 500; color: var(--gray-600); letter-spacing: -0.005em; }
.demo-frame .body { position: relative; height: calc(100% - 36px); background: #fff; }
.demo-frame .grid-bg { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--gray-300) 1px, transparent 0); background-size: 22px 22px; opacity: 0.4; }

/* ----- Integrations grid --------------------------------- */
.intg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.intg { aspect-ratio: 1.4 / 1; background: #fff; border: 1px solid var(--rule); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; padding: 12px; transition: transform 200ms var(--ease-out), border-color 200ms; }
.intg:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 10px 24px -10px rgba(20,18,30,0.18); }
.intg .gl { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 11px; color: #fff; letter-spacing: -0.02em; transition: transform 220ms var(--ease-out); }
.intg:hover .gl { transform: scale(1.18) rotate(-3deg); }
.intg .nm { font-size: 11.5px; font-weight: 500; color: var(--gray-700); }

/* ----- Pricing billing toggle ---------------------------- */
.billing-toggle { display: inline-flex; background: var(--canvas-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; margin: 0 auto; }
.billing-toggle button { background: transparent; border: 0; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 18px; border-radius: 999px; color: var(--gray-600); cursor: pointer; transition: background 200ms, color 200ms; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button.on { background: var(--ink); color: #fff; }
.billing-toggle .save { font-size: 10.5px; font-weight: 600; background: var(--peach); color: var(--ink); padding: 2px 7px; border-radius: 999px; letter-spacing: 0.04em; }

/* ----- Pricing currency switcher -------------------------- */
.pricing-controls { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 48px; }
.currency-toggle { display: inline-flex; background: var(--canvas-soft); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; margin: 0 auto; }
.currency-toggle button { background: transparent; border: 0; font-family: inherit; font-size: 13px; font-weight: 500; padding: 7px 15px; border-radius: 999px; color: var(--gray-600); cursor: pointer; transition: background 200ms, color 200ms; display: inline-flex; gap: 5px; align-items: center; }
.currency-toggle button.on { background: var(--ink); color: #fff; }
.currency-toggle .cur-sym { font-weight: 700; }

/* ----- FAQ ----------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 22px 0; cursor: pointer; }
.faq details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 500; color: var(--ink); letter-spacing: -0.015em; }
.faq details summary::-webkit-details-marker { display: none; }
.faq details summary .ico { width: 24px; height: 24px; border-radius: 50%; background: var(--canvas-warm); display: grid; place-items: center; transition: transform 200ms, background 200ms; flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); background: var(--peach-soft); }
.faq details p { font-size: 15px; color: var(--gray-700); margin-top: 14px; max-width: 760px; }

/* ----- Pricing compare table ----------------------------- */
.compare { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.compare thead th { background: var(--canvas-soft); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); }
.compare thead th.feat { width: 38%; }
.compare tbody td { color: var(--gray-700); }
.compare tbody td:first-child { color: var(--ink); font-weight: 500; }
.compare tr:last-child td { border-bottom: 0; }
.compare .check { color: var(--green-600); }
.compare .x { color: var(--gray-400); }
.compare .ftr-head { background: var(--canvas-warm); }
.compare .ftr-head td { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); }

/* ----- About founders ------------------------------------ */
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1080px; margin: 0 auto; }
.founder { background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 220ms, transform 220ms var(--ease-out), box-shadow 220ms; }
.founder:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(20,18,30,0.18); }
.founder .portrait { aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden; color: var(--ink); font-size: 64px; font-weight: 600; letter-spacing: -0.03em; }
.founder .portrait.peach { background: var(--peach-soft); }
.founder .portrait.lav   { background: var(--lavender-soft); }
.founder .portrait.warm  { background: var(--canvas-warm); }
.founder .portrait::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.06) 1px, transparent 0); background-size: 16px 16px; pointer-events: none; }
.founder .portrait .placeholder-tag { position: absolute; bottom: 14px; left: 14px; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 10.5px; font-weight: 500; color: var(--gray-600); background: rgba(255,255,255,0.7); backdrop-filter: blur(6px); padding: 4px 8px; border-radius: 6px; letter-spacing: 0; text-transform: none; }
.founder .info { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.founder .info .name { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.founder .info .role { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); margin-top: -8px; }
.founder .info .bio { font-size: 14.5px; line-height: 1.6; color: var(--gray-500); font-style: italic; }
.founder .info .meta { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--rule); font-size: 12.5px; color: var(--gray-500); }
.founder .info .meta span b { color: var(--ink); font-weight: 500; }

/* ----- Contact form + channels --------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 36px; box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--gray-700); margin-bottom: 6px; letter-spacing: -0.005em; }
.field input, .field textarea, .field select { width: 100%; font-family: inherit; font-size: 14.5px; padding: 11px 14px; border: 1px solid var(--rule-strong); border-radius: 8px; background: #fff; color: var(--ink); transition: border-color 150ms, box-shadow 150ms; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--peach); box-shadow: 0 0 0 3px rgba(234,188,170,0.3); }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.helper { font-size: 12.5px; color: var(--gray-500); margin-top: 6px; }
.form-foot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }

.reach { display: grid; gap: 18px; }
.reach-card { border: 1px solid var(--rule); border-radius: 14px; background: #fff; padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: border-color 200ms, transform 200ms var(--ease-out), box-shadow 200ms; }
.reach-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(20,18,30,0.18); }
.reach-card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--peach-soft); display: grid; place-items: center; flex: none; color: var(--ink); transition: transform 220ms var(--ease-out); }
.reach-card:hover .ic { transform: scale(1.15) rotate(-3deg); }
.reach-card .ic.lav { background: var(--lavender-soft); }
.reach-card .ic.warm { background: var(--canvas-warm); }
.reach-card .ic.ink { background: var(--ink); color: #fff; }
.reach-card .ti { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px; }
.reach-card h4 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; }
.reach-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 8px; }
.reach-card a.link { font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--peach); padding-bottom: 1px; }

.thanks { display: none; background: var(--ink); color: #fff; border-radius: 14px; padding: 28px 28px 32px; margin-top: 24px; }
.thanks h4 { color: #fff; font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.thanks p { color: rgba(255,255,255,0.75); }
.thanks.on { display: block; animation: thanks-in 500ms var(--ease-out); }
@keyframes thanks-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > div:first-child { order: 0; }
  .intg-grid { grid-template-columns: repeat(3, 1fr); }
  .founders { grid-template-columns: 1fr; max-width: 480px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Blog
   ============================================================ */
.container--narrow { max-width: 760px; }

.blog-cats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 48px;
}
.blog-cats a {
  font-size: 13px; font-weight: 500;
  color: var(--gray-700);
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.blog-cats a:hover { border-color: var(--ink); color: var(--ink); }
.blog-cats a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.blog-empty {
  text-align: center; padding: 64px 24px;
  border: 1px dashed var(--rule);
  border-radius: 16px;
}
.blog-empty h3 { font-size: 22px; margin-bottom: 8px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 200ms, transform 200ms var(--ease-out), box-shadow 200ms;
}
.post-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 14px 32px -14px rgba(20,18,30,0.18); }
.post-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--canvas-soft); }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__placeholder { width: 100%; height: 100%; background: var(--grad-sunrise); opacity: 0.55; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gray-500);
}
.post-card__cat:hover { color: var(--ink); }
.post-card h2 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--peach-deep); }
.post-card p { font-size: 14px; color: var(--gray-600); }
.post-card__meta {
  margin-top: auto;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 12px; color: var(--gray-500);
}

.blog-pagination { margin-top: 48px; display: flex; justify-content: center; font-size: 14px; }
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 8px;
  margin: 0 3px;
  color: var(--gray-700);
  background: #fff;
}
.blog-pagination .active span, .blog-pagination [aria-current=page] span { background: var(--ink); color: #fff; border-color: var(--ink); }
.blog-pagination a:hover { border-color: var(--ink); color: var(--ink); }

/* Post detail */
.post__head { padding: 120px 0 32px; text-align: center; }
.post__head h1 { font-size: clamp(36px, 5.5vw, 56px); letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 16px; }
.post__head .post__lede { font-size: 19px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }
.post__meta-top { display: flex; justify-content: center; margin-bottom: 18px; }
.post__cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--peach-deep);
  border-bottom: 1px solid transparent;
}
.post__cat:hover { border-bottom-color: var(--peach-deep); }
.post__byline {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
  font-size: 13px; color: var(--gray-500);
}
.post__byline .post__author { color: var(--ink); font-weight: 600; }

.post__hero { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin: 24px 0 48px; }

.post__body {
  padding: 32px 0 80px;
  font-size: 18px; line-height: 1.7;
  color: var(--gray-800);
}
.post__body > * + * { margin-top: 1.2em; }
.post__body h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; margin-top: 1.6em; }
.post__body h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin-top: 1.4em; }
.post__body p { color: var(--gray-800); }
.post__body a { color: var(--ink); border-bottom: 1px solid var(--peach); }
.post__body a:hover { border-bottom-color: var(--ink); }
.post__body ul, .post__body ol { padding-left: 1.4em; }
.post__body li + li { margin-top: 0.4em; }
.post__body blockquote {
  border-left: 3px solid var(--peach);
  margin-left: 0; padding-left: 20px;
  font-style: italic; color: var(--gray-700);
}
.post__body code {
  background: var(--canvas-warm);
  padding: 1px 6px; border-radius: 4px;
  font-size: 0.92em;
}
.post__body pre {
  background: var(--gray-900); color: var(--gray-100);
  padding: 18px 20px; border-radius: 12px;
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.post__body pre code { background: transparent; padding: 0; color: inherit; }
.post__body img { max-width: 100%; height: auto; border-radius: 12px; }

@media (max-width: 980px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Landing layout (stripped chrome)
   ============================================================ */
.nav--landing { padding: 12px 0; border-bottom: 1px solid var(--rule); background: #fff; }
.nav--landing .nav-inner { padding-top: 0; padding-bottom: 0; }
footer.foot--landing { background: #fff; color: var(--gray-500); padding: 32px 0; border-top: 1px solid var(--rule); }
footer.foot--landing .bottom { border-top: 0; padding-top: 0; color: var(--gray-500); }
footer.foot--landing .bottom span { color: var(--gray-500); }

/* ============================================================
   DARK THEME — "Wine Twilight"
   Activated via <html data-theme="dark">. Re-maps the token
   layer to an indigo-ink palette and patches the components
   that hardcode #fff / var(--ink) as a fill.
   Built from the design bundle's dark.css (Brand Guidelines v2.1).
   ============================================================ */
:root[data-theme="dark"] {
  --canvas:       #100d16;
  --canvas-soft:  #181421;
  --canvas-warm:  #201b2b;
  --ink:          #f4f1f7;
  --ink-2:        #c5bfd0;
  --rule:         rgba(255,255,255,0.09);
  --rule-strong:  rgba(255,255,255,0.16);

  /* brand tones hold; soften the deep variants for dark surfaces */
  --peach:        #eabcaa;
  --peach-soft:   #2f2230;
  --peach-deep:   #f0c8b6;
  --lavender:     #c4b3e0;
  --lavender-soft:#241f37;
  --lavender-deep:#c9bbe8;

  --grad-sunrise: linear-gradient(135deg, #eabcaa 0%, #c4b3e0 100%);
  --grad-sunrise-soft: linear-gradient(135deg, #c79bb0 0%, #a094d4 100%);

  /* inverted gray ramp: 50–200 read as surfaces, 500–900 as text */
  --gray-50:  #181421;
  --gray-100: #201b2b;
  --gray-200: #2a2436;
  --gray-300: #4f4862;
  --gray-400: #756e86;
  --gray-500: #9089a0;
  --gray-600: #b3acc0;
  --gray-700: #cdc7d8;
  --gray-800: #e4e0ec;
  --gray-900: #f4f1f7;

  --green-600: #5ad38a;
  --red-600:   #f87171;
  --amber-500: #fbbf24;

  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 4px 14px -4px rgb(0 0 0 / 0.55);
  --shadow-lift: 0 8px 24px -8px rgb(0 0 0 / 0.6), 0 18px 48px -16px rgb(0 0 0 / 0.7);
  --shadow-pop:  0 22px 60px -16px rgb(0 0 0 / 0.75), 0 30px 80px -24px rgb(0 0 0 / 0.85);
}

/* surfaces that hardcode #fff become the soft canvas */
:root[data-theme="dark"] .btn.line,
:root[data-theme="dark"] .hero-board,
:root[data-theme="dark"] .b-card,
:root[data-theme="dark"] .problem-stage,
:root[data-theme="dark"] .feat,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .quote,
:root[data-theme="dark"] .tier,
:root[data-theme="dark"] .tier-agency,
:root[data-theme="dark"] .demo-frame,
:root[data-theme="dark"] .demo-frame .body,
:root[data-theme="dark"] .intg,
:root[data-theme="dark"] .compare,
:root[data-theme="dark"] .founder,
:root[data-theme="dark"] .form,
:root[data-theme="dark"] .reach-card,
:root[data-theme="dark"] .blog-cats a,
:root[data-theme="dark"] .post-card,
:root[data-theme="dark"] .blog-pagination a,
:root[data-theme="dark"] .blog-pagination span,
:root[data-theme="dark"] .nav--landing,
:root[data-theme="dark"] footer.foot--landing { background: var(--canvas-soft); }

:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .field select { background: var(--canvas-warm); color: var(--ink); }

/* primary action flips to the peach accent (wine-twilight CTA) */
:root[data-theme="dark"] .btn.primary,
:root[data-theme="dark"] .cta-strip .row .btn.primary,
:root[data-theme="dark"] .billing-toggle button.on,
:root[data-theme="dark"] .currency-toggle button.on,
:root[data-theme="dark"] .blog-cats a.active,
:root[data-theme="dark"] .blog-pagination .active span,
:root[data-theme="dark"] .blog-pagination [aria-current=page] span {
  background: var(--peach); color: #1a1018; border-color: var(--peach);
}
:root[data-theme="dark"] .btn.primary:hover,
:root[data-theme="dark"] .cta-strip .row .btn.primary:hover { background: var(--peach-deep); border-color: var(--peach-deep); }

/* elevated "ink fill" surfaces keep depth instead of inverting to light */
:root[data-theme="dark"] section.section.dark,
:root[data-theme="dark"] footer.foot { background: #0b0910; }
:root[data-theme="dark"] .quote.feature,
:root[data-theme="dark"] .tier.featured { background: var(--canvas-warm); border-color: var(--rule-strong); }
:root[data-theme="dark"] .cta-strip { background: linear-gradient(135deg, #7a2e48 0%, #2a1e5a 100%); }
:root[data-theme="dark"] .hero-board .toolbar { background: var(--canvas-warm); }
:root[data-theme="dark"] .feat .icon.ink,
:root[data-theme="dark"] .reach-card .ic.ink { background: var(--canvas-warm); color: var(--peach); }

/* decorative gradients/veils that fade to white must fade to canvas */
:root[data-theme="dark"] .problem-stage .veil {
  background: radial-gradient(ellipse at center, rgba(16,13,22,0) 0%, rgba(16,13,22,0.55) 60%, var(--canvas) 100%);
}
:root[data-theme="dark"] .hero .trust .dots i { border-color: var(--canvas); }
:root[data-theme="dark"] .founder .portrait .placeholder-tag { background: rgba(0,0,0,0.45); color: var(--gray-700); }
:root[data-theme="dark"] .hero::before { opacity: 0.4; }
:root[data-theme="dark"] .hero::after { opacity: 0.45; }

/* code blocks stay dark in dark mode */
:root[data-theme="dark"] .post__body pre { background: #0b0910; color: var(--gray-800); }
:root[data-theme="dark"] .post__body code { background: var(--canvas-warm); }

/* ----- THEME TOGGLE BUTTON -------------------------------- */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background 150ms, border-color 150ms, color 150ms, transform 150ms var(--ease-out);
}
.theme-toggle:hover { background: var(--gray-100); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ============================================================
   Secondary CMS pages — personas, help, security, status,
   changelog, partners, legal. Token-driven so dark mode works.
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; letter-spacing: -0.02em; margin: 34px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p { font-size: 16px; color: var(--gray-700); margin-bottom: 12px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { font-size: 16px; margin: 6px 0; line-height: 1.6; color: var(--gray-700); }
.prose a { color: var(--ink); border-bottom: 1px solid var(--peach); }
.prose a:hover { border-bottom-color: var(--ink); }
.prose .updated { font-size: 13px; color: var(--gray-500); margin-bottom: 28px; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.topic-card h3 { font-size: 16px; letter-spacing: -0.01em; margin-bottom: 14px; }
.topic-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topic-card a { font-size: 14px; color: var(--gray-700); }
.topic-card a:hover { color: var(--ink); }
@media (max-width: 900px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .topic-grid { grid-template-columns: 1fr; } }

.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { background: var(--canvas-soft); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; }
.promise .n { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peach-deep); }
.promise h3 { font-size: 18px; margin: 8px 0 6px; }
@media (max-width: 760px) { .promise-row { grid-template-columns: 1fr; } }

.status-board { border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; margin-bottom: 32px; }
.status-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--gray-700); }
.status-row:last-child { border-bottom: 0; }
.status-row .ok { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green-600); }
.status-row .ok .d { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }

.timeline { display: grid; gap: 28px; }
.release { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 26px 28px; }
.release .date { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-500); }
.release h3 { font-size: 21px; margin: 8px 0 6px; letter-spacing: -0.02em; }
.release ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.release li { font-size: 14.5px; color: var(--gray-700); display: flex; gap: 10px; align-items: baseline; }
.rel-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; flex: none; }
.rel-tag.new { background: var(--peach-soft); color: var(--peach-deep); }
.rel-tag.improved { background: var(--lavender-soft); color: var(--lavender-deep); }
.rel-tag.fixed { background: var(--canvas-warm); color: var(--gray-600); }

.policy-list { display: grid; gap: 12px; }
.policy-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px 24px; transition: border-color 200ms, transform 200ms var(--ease-out); }
.policy-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.policy-card h3 { font-size: 17px; margin-bottom: 4px; }
.policy-card p { font-size: 14px; color: var(--gray-600); }
.policy-card .go { flex: none; color: var(--gray-400); }

/* dark surfaces for the new cards */
:root[data-theme="dark"] .topic-card,
:root[data-theme="dark"] .status-board,
:root[data-theme="dark"] .release,
:root[data-theme="dark"] .policy-card { background: var(--canvas-soft); }
