/* kust.io — landing styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-muted: #F8FAFC;
  --cream-50: #FDFCFA;
  --cream-100: #FAF9F5;
  --cream-200: #F3F0E8;
  --cream-300: #EAE5D6;
  --cream-400: #D9D2BC;
  --cream-700: #67614F;
  --cream-900: #1F1D18;
  --fg: #0B0C10;
  --fg-2: #1F2937;
  --fg-3: #6B7280;
  --fg-4: #9CA3AF;
  --border: #E5E7EB;
  --border-soft: #F3F4F6;
  --ink: #0E0E0F;
  --sage: #CFE3C6;
  --sage-soft: #E4EFDD;
  --sage-deep: #9DBE8F;
  --clay-50: #FAF6F4;
  --clay-100: #F1E7E2;
  --clay-500: #C9A595;
  --clay-600: #A8867A;
  --violet-600: #7C3AED;
  --success-700: #15803D;
  --danger-700: #B91C1C;

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', 'Inter', ui-serif, Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .12);
  --shadow-xl: 0 40px 80px rgba(15, 23, 42, .18);

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; border-radius: 4px; }

/* ─── Layout helpers ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-size: 11px; line-height: 14px;
  text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--clay-500);
  display: inline-block;
}
.eyebrow.sage::before { background: var(--sage-deep); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 600; }
.display {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.display .em { font-family: var(--font-display); font-weight: 500; font-style: italic; font-feature-settings: "ss01"; }
.h-xl { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; text-wrap: balance; }
.h-lg { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.h-md { font-size: 22px; line-height: 28px; letter-spacing: -0.015em; font-weight: 600; }
.lede { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--fg-2); text-wrap: pretty; max-width: 62ch; }
.muted { color: var(--fg-3); }

/* ─── Top nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 250, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(253, 252, 250, 0.92); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--fg); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  font-family: var(--font-sans);
}
.brand-mark-live {
  display: inline-block;
  width: 30px; height: 30px;
  position: relative;
  --size: 30px;
}
.brand-dot { color: var(--clay-500); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--fg-2); font-weight: 500; padding: 6px 0; position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.has-menu::after { content: '▾'; margin-left: 4px; font-size: 9px; color: var(--fg-4); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 500;
  transition: all .18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg); color: #fff;
}
.btn-primary:hover { background: #1F2226; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { color: var(--fg-2); }
.btn-ghost:hover { background: var(--cream-200); color: var(--fg); }
.btn-outline {
  background: transparent; color: var(--fg);
  border-color: var(--border);
}
.btn-outline:hover { background: #fff; border-color: var(--fg-4); }
.btn-lg { padding: 14px 22px; font-size: 15px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 8px; } }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-top: 20px; }
.hero-sub { margin-top: 24px; max-width: 56ch; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  max-width: 560px;
}
.hero-meta div { display: flex; flex-direction: column; gap: 2px; }
.hero-meta strong { font-size: 22px; letter-spacing: -0.02em; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-meta span { font-size: 12px; color: var(--fg-3); }

/* Mascot stage */
.mascot-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.mascot-stage::before {
  content: '';
  position: absolute; inset: 6% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sage) 0%, var(--sage-soft) 38%, transparent 70%);
  filter: blur(10px);
  opacity: .82;
  animation: pulse 8s ease-in-out infinite;
}
.mascot-stage::after {
  content: '';
  position: absolute; bottom: 8%; left: 18%; right: 18%; height: 12%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.22), transparent 70%);
  filter: blur(8px);
  animation: shadowBob 5.4s ease-in-out infinite;
}
.mascot-img {
  position: relative; z-index: 2;
  width: 78%; height: auto;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.22));
  animation: bob 5.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes shadowBob {
  0%, 100% { transform: scaleX(1); opacity: .55; }
  50% { transform: scaleX(.82); opacity: .35; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .82; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* Orbiting feature chips around mascot */
.orbit {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 14px 8px 10px;
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.orbit .dot { width: 8px; height: 8px; border-radius: 50%; }
.orbit .dot.live { background: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,.12); animation: livepulse 1.6s ease-in-out infinite; }
.orbit .dot.sage { background: var(--sage-deep); }
.orbit .dot.clay { background: var(--clay-500); }
.orbit .dot.violet { background: var(--violet-600); }
@keyframes livepulse { 50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } }
.orbit.o1 { top: 6%; left: -6%; animation: float1 7s ease-in-out infinite; }
.orbit.o2 { top: 22%; right: -4%; animation: float2 8s ease-in-out infinite .8s; }
.orbit.o3 { bottom: 22%; left: -8%; animation: float1 9s ease-in-out infinite 1.6s; }
.orbit.o4 { bottom: 8%; right: 4%; animation: float2 7.5s ease-in-out infinite .4s; }
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@media (max-width: 600px) {
  .orbit { font-size: 11px; padding: 6px 10px 6px 8px; }
  .orbit.o1 { left: 0; }
  .orbit.o3 { left: -2%; }
}

/* hero ambient bg */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.hero-bg .blob {
  position: absolute; border-radius: 50%;
  background: var(--sage-soft);
  filter: blur(80px);
  opacity: .6;
}
.hero-bg .blob.b1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-bg .blob.b2 { width: 500px; height: 500px; bottom: -200px; left: -200px; background: var(--clay-100); opacity: .5; }

/* ─── Logo strip ─── */
.logos {
  padding: 32px 0 8px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream-100);
}
.logos-label {
  text-align: center; font-size: 12px; color: var(--fg-3); margin-bottom: 22px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
}
.marquee {
  display: flex; gap: 64px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 28px;
  opacity: .68;
}
.logo-item {
  font-weight: 700; letter-spacing: -0.02em;
  font-size: 19px; color: var(--cream-900);
  display: inline-flex; align-items: center; gap: 8px;
  filter: grayscale(1);
}
.logo-item .glyph {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border: 1.5px solid var(--cream-900); border-radius: 4px;
  font-size: 12px; font-weight: 800;
}

/* ─── Section base ─── */
section { padding: clamp(80px, 9vw, 140px) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: end; margin-bottom: 56px;
}
@media (max-width: 880px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }
.section-head .lede { margin-top: 0; }

/* ─── Workflow stepper ─── */
.workflow { background: var(--cream-100); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.step-tabs {
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 88px;
}
.step-tab {
  display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  text-align: left;
  border: 1px solid transparent;
  transition: all .2s ease;
  color: var(--fg-3);
}
.step-tab .num {
  font-family: var(--font-mono); font-size: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--border);
  color: var(--fg-3);
  transition: all .2s ease;
}
.step-tab .label { font-size: 15px; font-weight: 500; }
.step-tab:hover { background: #fff; color: var(--fg); }
.step-tab.active {
  background: #fff; border-color: var(--border); color: var(--fg);
  box-shadow: var(--shadow-xs);
}
.step-tab.active .num { background: var(--fg); color: #fff; border-color: var(--fg); }

.step-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  min-height: 460px;
  box-shadow: var(--shadow-sm);
  display: none;
  position: relative;
  overflow: hidden;
}
.step-panel.active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-panel h3 { font-size: 28px; letter-spacing: -0.025em; margin-bottom: 12px; }
.step-panel .body { color: var(--fg-2); font-size: 16px; line-height: 1.5; max-width: 56ch; }
.step-visual {
  margin-top: 28px;
  border-radius: var(--r-lg);
  background: var(--cream-100);
  border: 1px solid var(--border);
  padding: 20px;
  position: relative;
}

/* ─── Pillar cards ─── */
.pillars { background: var(--bg); }
.pillar {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border-soft);
}
.pillar:first-of-type { border-top: 0; padding-top: 16px; }
.pillar.reverse { grid-template-columns: 1.05fr 1fr; }
.pillar.reverse .pillar-copy { order: 2; }
.pillar.reverse .pillar-vis { order: 1; }
@media (max-width: 880px) {
  .pillar, .pillar.reverse { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; }
  .pillar.reverse .pillar-copy { order: 1; }
  .pillar.reverse .pillar-vis { order: 2; }
}
.pillar-copy h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.025em; }
.pillar-copy .lede { margin-top: 16px; }
.pillar-list {
  margin-top: 24px; list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.pillar-list li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  font-size: 15px; color: var(--fg-2); align-items: start;
}
.pillar-list li::before {
  content: ''; width: 14px; height: 14px; margin-top: 4px;
  background: var(--sage); border: 1.5px solid var(--sage-deep);
  border-radius: 50%;
}
.pillar-cta { margin-top: 28px; display: inline-flex; gap: 6px; align-items: center; font-weight: 500; font-size: 14px; color: var(--fg); border-bottom: 1px solid var(--fg); padding-bottom: 2px; transition: all .15s ease; }
.pillar-cta:hover { gap: 10px; }

.pillar-vis {
  background: var(--cream-100);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
}

/* ─── Mocks shared ─── */
.mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.mock-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.mock-head .title { font-size: 13px; font-weight: 600; }
.mock-head .meta { font-size: 11px; color: var(--fg-3); }

/* chat */
.chat-bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px; line-height: 1.45;
  max-width: 75%;
}
.chat-row { display: flex; margin: 8px 0; gap: 8px; align-items: flex-end; }
.chat-row.them { justify-content: flex-start; }
.chat-row.you { justify-content: flex-end; }
.chat-bubble.them { background: var(--cream-100); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.you { background: var(--fg); color: #fff; border-bottom-right-radius: 4px; }
.chat-row .av {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sage); display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--cream-900); flex-shrink: 0;
}

/* live coach */
.coach-strip {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  background: var(--cream-100); border-radius: var(--r-md); padding: 10px;
  align-items: center;
}
.waveform {
  display: flex; gap: 2px; align-items: center; height: 40px;
}
.waveform span {
  display: block; width: 3px; background: var(--fg); border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1) { height: 20%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 50%; animation-delay: .1s; }
.waveform span:nth-child(3) { height: 80%; animation-delay: .2s; }
.waveform span:nth-child(4) { height: 65%; animation-delay: .3s; }
.waveform span:nth-child(5) { height: 95%; animation-delay: .4s; }
.waveform span:nth-child(6) { height: 40%; animation-delay: .5s; }
.waveform span:nth-child(7) { height: 70%; animation-delay: .6s; }
.waveform span:nth-child(8) { height: 30%; animation-delay: .7s; }
.waveform span:nth-child(9) { height: 60%; animation-delay: .8s; }
.waveform span:nth-child(10) { height: 50%; animation-delay: .9s; }
@keyframes wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1.2); } }
.suggest-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px;
  font-size: 13px; box-shadow: var(--shadow-xs);
  animation: slideIn .4s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.suggest-card .tag {
  display: inline-block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--cream-100); color: var(--cream-900);
  margin-bottom: 6px;
}
.suggest-card .tag.warn { background: #FEF3C7; color: #92400E; }
.suggest-card .tag.good { background: #DCFCE7; color: var(--success-700); }

/* persona grid */
.persona-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.persona-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px;
}
.persona-card .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  margin-bottom: 4px;
}
.persona-card .av.v2 { background: linear-gradient(135deg, var(--clay-100), var(--clay-500)); }
.persona-card .av.v3 { background: linear-gradient(135deg, var(--cream-200), var(--cream-400)); }
.persona-card .name { font-weight: 600; font-size: 13px; }
.persona-card .meta { color: var(--fg-3); font-size: 11px; }
.persona-card .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.persona-card .tag { font-size: 10px; padding: 2px 6px; background: var(--cream-100); border-radius: 4px; }

/* insight cards */
.insight-stack { display: flex; flex-direction: column; gap: 10px; }
.insight-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 14px;
  display: grid; grid-template-columns: 1fr 80px; gap: 14px; align-items: center;
}
.insight-card .body { font-size: 13px; }
.insight-card .body strong { display: block; font-weight: 600; margin-bottom: 2px; }
.insight-card .body span { color: var(--fg-3); font-size: 11px; }
.insight-card .bar {
  width: 80px; height: 6px; background: var(--cream-200); border-radius: 99px;
  position: relative; overflow: hidden;
}
.insight-card .bar::after {
  content: ''; position: absolute; inset: 0; right: auto;
  width: var(--v, 75%); background: var(--success-700);
  border-radius: 99px;
}

/* UX heatmap */
.heatmap {
  position: relative;
  background: var(--cream-50);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  aspect-ratio: 16/10;
  padding: 16px;
  overflow: hidden;
}
.heatmap .frame {
  height: 100%; display: flex; flex-direction: column; gap: 8px;
}
.heatmap .frame .bar { height: 10px; border-radius: 4px; background: var(--border-soft); }
.heatmap .frame .bar.w-30 { width: 30%; }
.heatmap .frame .bar.w-60 { width: 60%; }
.heatmap .frame .bar.w-80 { width: 80%; }
.heatmap .frame .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; margin-top: 8px; }
.heatmap .frame .block { background: var(--border-soft); border-radius: 6px; }
.heatmap .hot {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239,68,68,.6), rgba(239,68,68,.1) 60%, transparent 75%);
  pointer-events: none;
  animation: hotpulse 3s ease-in-out infinite;
}
.heatmap .hot.h1 { width: 140px; height: 140px; top: 14%; left: 8%; }
.heatmap .hot.h2 { width: 90px; height: 90px; top: 38%; right: 12%; animation-delay: .6s; }
.heatmap .hot.h3 { width: 110px; height: 110px; bottom: 12%; left: 28%; animation-delay: 1.2s; background: radial-gradient(closest-side, rgba(245,158,11,.55), rgba(245,158,11,.08) 60%, transparent 75%); }
@keyframes hotpulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }

/* kustik */
.kustik-mock {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-md);
}
.kustik-msg {
  background: var(--cream-100); border-radius: var(--r-md);
  padding: 10px 12px; font-size: 13px;
}
.kustik-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.kustik-chip {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 6px 10px;
  font-size: 12px; display: inline-flex; gap: 4px;
}

/* ─── Methodology ─── */
.method { background: var(--cream-100); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.method-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-top: 40px;
}
@media (max-width: 960px) { .method-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .method-grid { grid-template-columns: 1fr; } }
.method-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 220px;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.method-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--fg-4); }
.method-card .tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--fg-3); font-weight: 500;
}
.method-card h4 { font-size: 17px; letter-spacing: -0.015em; }
.method-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fg-3); }
.method-card .glyph {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream-100);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 18px;
  font-style: italic; font-weight: 600;
  margin-bottom: auto;
  border: 1px solid var(--border);
}

/* ─── Philosophy editorial ─── */
.philosophy {
  background: var(--ink); color: var(--cream-100);
  position: relative; overflow: hidden;
}
.philosophy::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(207,227,198,0.08), transparent 50%);
}
.philosophy .wrap { position: relative; }
.philosophy-grid {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 64px; align-items: center;
}
@media (max-width: 880px) { .philosophy-grid { grid-template-columns: 1fr; } }
.philosophy h2 {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
.philosophy .eyebrow { color: var(--cream-400); }
.philosophy .eyebrow::before { background: var(--sage-deep); }
.philosophy p { font-size: 18px; line-height: 1.6; color: var(--cream-400); max-width: 52ch; margin-top: 24px; }
.philosophy .mascot-still { position: relative; aspect-ratio: 1/1; }
.philosophy .mascot-still img { width: 100%; filter: drop-shadow(0 30px 60px rgba(207,227,198,.12)); }

/* ─── Testimonials ─── */
.cases { background: var(--cream-50); }
.case-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px;
}
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr; } }
.case-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 24px;
  transition: all .2s ease;
}
.case-card:hover { box-shadow: var(--shadow-md); border-color: var(--fg-4); }
.case-card.featured {
  background: var(--ink); color: var(--cream-100);
  border-color: var(--ink);
}
.case-card.featured .quote { font-size: 22px; line-height: 1.4; }
.case-card.featured .person .name { color: #fff; }
.case-card.featured .person .role { color: var(--cream-400); }
.quote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 18px; line-height: 1.5;
  flex: 1;
}
.case-card .person {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
}
.case-card .person .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clay-100), var(--clay-500));
  display: grid; place-items: center;
  font-weight: 600; color: #fff; font-size: 14px;
}
.case-card .person .av.v2 { background: linear-gradient(135deg, var(--sage), var(--sage-deep)); color: var(--cream-900); }
.case-card .person .av.v3 { background: linear-gradient(135deg, var(--cream-200), var(--cream-400)); color: var(--cream-900); }
.case-card .person .name { font-size: 14px; font-weight: 600; }
.case-card .person .role { font-size: 12px; color: var(--fg-3); }
.case-stat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
}
.case-stat div { font-size: 12px; color: var(--cream-400); }
.case-stat strong {
  display: block;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  color: #fff; font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

/* ─── Pricing ─── */
.pricing { background: var(--cream-100); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pricing-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-full); margin-top: 24px;
}
.pricing-toggle button {
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--fg-3);
  transition: all .15s ease;
}
.pricing-toggle button.active { background: var(--fg); color: #fff; }
.pricing-toggle .save {
  font-size: 11px; padding: 2px 8px;
  background: var(--sage); color: var(--cream-900);
  border-radius: var(--r-full); margin-left: 4px;
  font-weight: 600;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.plan.featured {
  background: var(--ink); color: var(--cream-100);
  border-color: var(--ink);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.plan.featured .plan-feat li::before { background: var(--sage); border-color: var(--sage-deep); }
.plan.featured .plan-feat li { color: var(--cream-400); }
.plan.featured .price-currency { color: var(--cream-400); }
.plan-badge {
  position: absolute; top: -10px; left: 24px;
  font-size: 11px; padding: 4px 10px;
  background: var(--sage); color: var(--cream-900);
  border-radius: var(--r-full); font-weight: 600;
  letter-spacing: 0.02em;
}
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-3); }
.plan.featured .plan-name { color: var(--cream-400); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price .num { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price .per { font-size: 13px; color: var(--fg-3); }
.plan.featured .plan-price .per { color: var(--cream-400); }
.plan .desc { font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.plan.featured .desc { color: var(--cream-400); }
.plan-feat { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feat li { font-size: 13px; display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; color: var(--fg-2); }
.plan-feat li::before {
  content: ''; width: 12px; height: 12px; margin-top: 4px;
  border: 1.5px solid var(--sage-deep); background: var(--sage);
  border-radius: 50%;
}
.plan .btn { width: 100%; justify-content: center; }
.plan.featured .btn-outline { color: #fff; border-color: rgba(255,255,255,0.25); }
.plan.featured .btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ─── For who ─── */
.audience {
  background: var(--bg);
}
.audience-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px;
}
@media (max-width: 960px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: var(--cream-100); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  transition: all .2s ease;
}
.audience-card:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.audience-card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage); display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 18px; color: var(--cream-900);
}
.audience-card h4 { font-size: 17px; letter-spacing: -0.015em; }
.audience-card p { margin: 0; font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.audience-card .quote { font-size: 13px; color: var(--fg-2); font-style: italic; line-height: 1.45; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-family: var(--font-sans); }

/* ─── Blog ─── */
.blog { background: var(--cream-100); border-top: 1px solid var(--border); }
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px;
}
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .2s ease;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 16/10;
  background: var(--cream-200);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
}
.blog-thumb.v1 { background: linear-gradient(135deg, var(--sage), var(--sage-soft)); }
.blog-thumb.v2 { background: linear-gradient(135deg, var(--clay-100), var(--clay-500)); }
.blog-thumb.v3 { background: linear-gradient(135deg, var(--ink), var(--cream-700)); color: var(--cream-100); }
.blog-thumb .big {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: 64px; letter-spacing: -0.02em; opacity: .85;
}
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: 11px; color: var(--fg-3); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.blog-card h4 { font-size: 18px; letter-spacing: -0.015em; line-height: 1.25; }
.blog-card p { margin: 0; font-size: 14px; color: var(--fg-3); line-height: 1.5; }
.blog-card .more {
  font-size: 13px; font-weight: 500;
  display: inline-flex; gap: 4px; align-items: center;
  margin-top: auto; padding-top: 8px;
}

/* ─── FAQ ─── */
.faq { background: var(--bg); }
.faq-list { display: flex; flex-direction: column; margin-top: 40px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 24px 0;
  display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 16px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.015em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 24px; font-weight: 300; color: var(--fg-3);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer {
  padding: 0 0 24px;
  font-size: 15px; line-height: 1.55; color: var(--fg-3);
  max-width: 70ch;
}

/* ─── CTA ─── */
.cta-final {
  background: var(--cream-100); position: relative; overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--sage), transparent 50%);
  opacity: .5;
}
.cta-final .wrap { position: relative; }
.cta-final .mascot-mini {
  width: 180px; margin: 0 auto 24px;
  animation: bob 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.18));
}
.cta-final h2 { max-width: 16ch; margin: 0 auto; }
.cta-final p { margin: 20px auto 36px; max-width: 56ch; }
.cta-final .row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-final .tiny { font-size: 12px; color: var(--fg-3); margin-top: 18px; }

/* ─── Footer ─── */
footer { background: var(--ink); color: var(--cream-400); padding: 80px 0 32px; }
footer a { color: var(--cream-400); }
footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h5 {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--cream-400); margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a { font-size: 14px; }
.footer-brand p { font-size: 14px; max-width: 32ch; margin: 16px 0 0; line-height: 1.55; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: #fff; color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  flex-wrap: wrap; gap: 16px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.16,.84,.3,1), transform .9s cubic-bezier(.16,.84,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Marker glyph (for sectioned dividers) */
.glyph-k {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--fg); color: #fff;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: 13px;
}

/* SOP / data flow tag */
.tag-pill {
  display: inline-flex; gap: 6px; align-items: center;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  background: var(--cream-100); border: 1px solid var(--border);
}
.tag-pill .dot { width: 6px; height: 6px; border-radius: 50%; }

/* Subtle particle accent (for philosophy/cta-final) */
.dots {
  position: absolute; pointer-events: none;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  opacity: .25;
}
.dots span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

/* Selection */
::selection { background: var(--sage); color: var(--cream-900); }
