/* ─────────────────────────────────────────────
   EditKit.tools v4 — Cream + Bricolage
   Built on the design system. Local additions only.
   ───────────────────────────────────────────── */

@import url('colors_and_type.css');

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

:root {
  --hero-scale: 1;
  --display-weight: 800;
}
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Eyebrow / section tag ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
}
.eyebrow.terra { color: var(--terra); }
.eyebrow.ink { color: var(--ink-3); }
.eyebrow.ink::before { background: var(--terra); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--ui); font-size: 0.92rem; font-weight: 500;
  padding: 0.78rem 1.4rem; border-radius: var(--radius-sm);
  transition: all 0.2s ease; white-space: nowrap;
  border: 1.5px solid transparent; line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #222; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--border); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: var(--bg-raised); }
.btn--ghost-white { background: transparent; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); }
.btn--ghost-white:hover { color: #fff; border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.08); }

/* ── Top nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(247,246,242,0.92); }
.nav-inner { display: flex; align-items: center; gap: 1.4rem; height: 60px; }
.brand { display: flex; align-items: center; }

/* ── Animated brand logo (timeline-scroll lockup) ── */
.ek-logo { display: block; height: 26px; width: auto; }
.ek-mark-bg { fill: #1E1E1E; }
.ek-word { fill: var(--ink); }
.ek-tracks { animation: ekPlay 6s linear infinite; animation-delay: -2s; }
@keyframes ekPlay {
  from { transform: translateX(0); }
  to   { transform: translateX(-72px); }
}
@media (prefers-reduced-motion: reduce) { .ek-tracks { animation: none; } }
.nav-links { display: flex; gap: 0.15rem; margin-left: 1.2rem; }
.nav-link { font-size: 0.92rem; color: var(--ink-2); padding: 0.45rem 0.85rem; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.nav-link:hover { color: var(--ink); }
.nav-spacer { flex: 1; }

/* ── Hero ── */
.hero { position: relative; padding-top: clamp(3rem, 5vw, 4.5rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.hero-bloom {
  position: absolute; inset: -2rem clamp(-4rem, -6vw, -8rem); top: 1rem;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none; z-index: -1;
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.hero-h1 {
  font-family: var(--display); font-weight: var(--display-weight, 800);
  font-size: calc(clamp(2.6rem, 6.2vw, 5rem) * var(--hero-scale, 1));
  line-height: 0.94; letter-spacing: -0.035em;
  color: var(--ink); margin: 1.1rem 0 1.1rem;
  text-wrap: balance;
}
.hero-h1-em {
  font-style: italic;
  background: linear-gradient(180deg, var(--terra-3) 0%, var(--terra) 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-family: var(--ui); font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-2); line-height: 1.6; max-width: 52ch; margin: 0 auto;
  text-wrap: pretty;
}
.hero-actions { margin-top: 1.6rem; display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  margin-top: 1.1rem; display: flex; gap: 0.55rem; flex-wrap: wrap; justify-content: center;
  font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.01em;
}
.hero-trust > span { white-space: nowrap; }
.hero-trust .sep { color: var(--border); }

/* ── Mode tabs above prototype ── */
.mode-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg-raised); border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.mode-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.95rem; border-radius: 7px;
  font-size: 0.85rem; font-weight: 500; color: var(--ink-2);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  background: transparent; border: none;
  font-family: var(--ui);
}
.mode-tab:hover { color: var(--ink); }
.mode-tab .pip {
  width: 8px; height: 8px; border-radius: 50%; background: var(--app-color);
  box-shadow: 0 0 0 2px var(--app-bg);
}
.mode-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Mode color helper classes — used both on tabs and feature rows */
.mode--sheet  { --app-color: var(--app-seq); --app-bg: var(--app-seq-bg); }
.mode--klepto { --app-color: var(--app-kc);  --app-bg: var(--app-kc-bg); }
.mode--deja   { --app-color: var(--app-dv);  --app-bg: var(--app-dv-bg); }
.mode--red    { --app-color: var(--app-red); --app-bg: var(--app-red-bg); }

/* ── Mac window mockup ── */
.mock {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.05),
    0 12px 28px rgba(0,0,0,0.10),
    0 32px 72px rgba(0,0,0,0.12);
}
.mock-chrome {
  display: flex; align-items: center; gap: 1rem; padding: 0 0.9rem;
  height: 40px; background: #F0EFEE;
  border-bottom: 1px solid rgba(0,0,0,0.10);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots > span { width: 12px; height: 12px; border-radius: 50%; }
.mock-dots > span:nth-child(1) { background: #FF5F57; }
.mock-dots > span:nth-child(2) { background: #FFBD2E; }
.mock-dots > span:nth-child(3) { background: #28C840; }
.mock-title { flex: 1; text-align: center; font-size: 0.78rem; color: rgba(0,0,0,0.46); font-weight: 500; }
.mock-spacer { width: 52px; flex-shrink: 0; }
.mock-body { background: #F8F7F6; }

/* ── Features (alternating rows) ── */
.features { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.features-intro { text-align: center; max-width: 720px; margin: 0 auto clamp(3rem, 5vw, 4.5rem); }
.features-intro h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0.9rem 0 1rem; color: var(--ink);
  text-wrap: balance;
}
.features-intro p { font-size: 1.02rem; color: var(--ink-3); line-height: 1.65; text-wrap: pretty; }

.feat-row {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.feat-row + .feat-row { border-top: 1px solid var(--border); }
.feat-row.right .feat-copy { order: 2; }
.feat-row.right .feat-mock { order: 1; }
.feat-copy .feat-num {
  font-family: var(--display); font-weight: 800;
  font-size: 0.84rem; color: var(--app-color);
  letter-spacing: 0.06em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.55rem; margin-bottom: 1.2rem;
}
.feat-copy .feat-num::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--app-color);
  box-shadow: 0 0 0 4px var(--app-bg);
}
.feat-copy h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.028em; line-height: 1.04;
  color: var(--ink); margin-bottom: 1.1rem;
  text-wrap: balance;
}
.feat-copy p { font-size: 1rem; color: var(--ink-2); line-height: 1.65; max-width: 38ch; text-wrap: pretty; }
.feat-copy .feat-stats {
  margin-top: 2rem; display: flex; gap: 2.2rem; flex-wrap: wrap;
  padding-top: 1.6rem; border-top: 1px solid var(--border);
}
.feat-copy .feat-stat .val {
  font-family: var(--display); font-weight: 800;
  font-size: 1.8rem; letter-spacing: -0.025em; color: var(--ink);
  line-height: 1;
}
.feat-copy .feat-stat .lbl {
  font-family: var(--ui); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 0.45rem;
}

@media (max-width: 880px) {
  .feat-row { grid-template-columns: 1fr; gap: 2rem; }
  .feat-row.right .feat-copy,
  .feat-row.right .feat-mock { order: unset; }
}

/* ── Live mocks (per mode) ── */
.live-mock {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow-md);
  font-family: var(--mono); font-size: 11.5px;
  position: relative;
}
.lm-head {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 9px 12px; border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  white-space: nowrap;
}
.lm-head .lm-title { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.lm-head .led {
  width: 7px; height: 7px; border-radius: 50%; background: var(--app-color);
  box-shadow: 0 0 0 2px var(--app-bg);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.lm-title { font-family: var(--ui); font-size: 0.78rem; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.lm-meta { margin-left: auto; font-size: 11px; color: var(--ink-3); }

/* Sheet table */
.lm-table-head {
  display: grid; grid-template-columns: 38px 1fr 92px 56px;
  padding: 8px 12px; background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--ui); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.lm-row {
  display: grid; grid-template-columns: 38px 1fr 92px 56px;
  padding: 7px 12px; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
}
.lm-row:hover { background: var(--app-bg); }
.lm-row:nth-child(even) { background: rgba(0,0,0,0.012); }
.lm-row .tpill {
  display: inline-block; padding: 2px 6px; border-radius: 3px;
  font-size: 9.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em;
}
.lm-row .nm { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-row .tc, .lm-row .du { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lm-foot {
  padding: 8px 12px; border-top: 1px solid var(--border); background: var(--bg-raised);
  display: flex; gap: 12px; color: var(--ink-3);
  font-family: var(--ui); font-size: 0.72rem;
}
.lm-foot .acc { color: var(--app-color); font-weight: 600; margin-left: auto; }

/* Klepto progress */
.lm-pad { padding: 14px; }
.lm-pad .km { margin-bottom: 11px; }
.lm-pad .km:last-child { margin-bottom: 0; }
.lm-pad .km-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 5px;
}
.lm-pad .km-row .nm { color: var(--ink); font-weight: 500; font-size: 11.5px; }
.lm-pad .km-row .nm.done::before { content: '✓ '; color: var(--app-color); margin-right: 2px; }
.lm-pad .km-row .sz { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.lm-pad .km-bar { height: 4px; background: var(--bg-raised); border-radius: 2px; overflow: hidden; }
.lm-pad .km-bar .fill { height: 100%; background: var(--app-color); transition: width 0.4s; border-radius: 2px; }
.lm-pad .km-bar .fill.partial { background: var(--terra); }

/* DejaView grid */
.lm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 14px; }
.lm-grid .dv {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px;
}
.lm-grid .dv .nm { color: var(--ink); font-weight: 500; font-size: 11px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-grid .dv .eps { display: flex; gap: 4px; flex-wrap: wrap; }
.lm-grid .dv .eps span {
  padding: 2px 6px; border-radius: 3px; font-size: 9.5px;
  background: var(--app-bg); color: var(--app-color); font-weight: 600;
}
.lm-grid .dv .reuse { margin-top: 7px; color: var(--app-color); font-size: 11px; font-weight: 600; }

/* ── Free tools — editorial typographic list ── */
.tools-band {
  position: relative; z-index: 1;
  padding: clamp(4rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--border);
}
.tools-head {
  display: grid; grid-template-columns: 1fr; gap: 0.5rem;
  max-width: 720px; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.tools-head h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em; line-height: 1.02; margin-top: 0.6rem;
  color: var(--ink);
}
.tools-head p { color: var(--ink-2); max-width: 48ch; line-height: 1.6; margin-top: 0.5rem; }

.tools-list {
  list-style: none;
  border-top: 1px solid var(--border);
}
.tools-list li {
  border-bottom: 1px solid var(--border);
}
.tool-row {
  display: grid;
  grid-template-columns: 36px 130px minmax(140px, 1fr) minmax(280px, 2fr) 24px;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0.4rem;
  transition: padding 0.2s ease, background 0.2s ease;
  color: var(--ink);
}
.tool-row:hover {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(2px);
}
.tool-row .num {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: 0.04em;
}
.tool-row .cmd {
  font-family: var(--mono); font-size: 11.5px; color: var(--terra);
  letter-spacing: 0.02em;
}
.tool-row .nm {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  letter-spacing: -0.025em; color: var(--ink);
  line-height: 1.1;
}
.tool-row .desc {
  font-size: 0.92rem; color: var(--ink-2); line-height: 1.5;
  text-wrap: pretty;
}
.tool-row .open {
  justify-self: end;
  font-family: var(--display); font-weight: 700;
  font-size: 1.1rem; color: var(--ink-3);
  transition: color 0.2s ease, transform 0.2s ease;
}
.tool-row:hover .open { color: var(--accent); transform: translateX(3px); }
.tool-row:hover .nm { color: var(--accent); }

@media (max-width: 760px) {
  .tool-row {
    grid-template-columns: 36px 1fr 24px;
    grid-template-rows: auto auto;
    grid-template-areas:
      "num cmd  arr"
      "num name arr"
      "num desc arr";
    row-gap: 0.4rem;
  }
  .tool-row .num  { grid-area: num; }
  .tool-row .cmd  { grid-area: cmd; }
  .tool-row .nm   { grid-area: name; }
  .tool-row .desc { grid-area: desc; }
  .tool-row .open { grid-area: arr; align-self: center; }
}

/* ── Approach (cream editorial — lets bg breathe through) ── */
.approach {
  padding: clamp(5rem, 9vw, 7.5rem) 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.approach-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem); position: relative;
}
.approach-left { position: sticky; top: 90px; align-self: start; }
.approach-left h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.035em; line-height: 0.94; color: var(--ink);
  margin-top: 1rem;
  text-wrap: balance;
}
.approach-meta {
  margin-top: 2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: grid; gap: 0.65rem;
  max-width: 280px;
}
.approach-meta > div {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--ui); font-size: 0.85rem;
}
.approach-meta .k {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); flex: 0 0 60px;
}
.approach-meta .v { color: var(--ink); font-weight: 500; }

.approach-right {
  color: var(--ink-2); font-size: 1.08rem; line-height: 1.7;
  display: grid; gap: 1.3rem; max-width: 58ch;
}
.approach-right .lead {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--ink); line-height: 1.4; letter-spacing: -0.012em;
  text-wrap: pretty;
}
.approach-right p { text-wrap: pretty; }
.approach-quote {
  font-family: var(--display); font-weight: 800;
  font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--terra) !important;
  padding: 0.4rem 0 0.4rem 1.3rem;
  border-left: 2px solid var(--terra-3);
  margin: 0.4rem 0;
}

@media (max-width: 880px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-left { position: static; }
}

/* ── Download/CTA — type-driven, on cream ── */
.cta {
  padding: clamp(5rem, 9vw, 8rem) 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.cta-inner { text-align: left; max-width: 920px; margin: 0 auto; }
.cta-price {
  display: grid; grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin: 1.2rem 0 1.5rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border);
}
.cta-price-main { display: flex; align-items: baseline; gap: 0.8rem; }
.cta-price-main .amount {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(4rem, 11vw, 8rem);
  letter-spacing: -0.045em; line-height: 0.85;
  color: var(--ink);
  font-feature-settings: "tnum";
}
.cta-price-main .unit {
  font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--terra);
}
.cta-price-aside {
  display: grid; gap: 0.65rem; padding-bottom: 0.8rem;
}
.cta-price-aside > div {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--ui); font-size: 0.9rem;
}
.cta-price-aside .k {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); flex: 0 0 72px;
}
.cta-price-aside .v { color: var(--ink); font-weight: 500; }

.cta p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; max-width: 52ch; }
.cta-actions { margin-top: 1.8rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-meta {
  margin-top: 1.4rem; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.04em; color: var(--ink-3);
}

@media (max-width: 720px) {
  .cta-price { grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
}

/* ── Footer ── */
.foot {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.2rem;
  position: relative;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem; align-items: start;
}
.foot-brand .ek-logo { height: 24px; }
.foot-brand .ek-mark-bg { fill: #2C2C2E; }
.foot-brand .ek-word { fill: #fff; }
.foot-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.6; max-width: 30ch; margin-top: 0.8rem; }
.foot-col h4 {
  font-family: var(--ui); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.42); margin-bottom: 1rem;
}
.foot-col ul { list-style: none; display: grid; gap: 0.55rem; }
.foot-col a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.04em;
}
.foot-bottom .right { margin-left: auto; }

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

/* ── Features deep dive (inline tab panel) ── */
.features-deep {
  padding-top: clamp(4rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.features-deep-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.8rem, 3vw, 2.5rem);
}
.features-deep-head h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 0.9rem 0 0.6rem; color: var(--ink);
  text-wrap: balance;
}
.features-deep-head p { font-size: 1rem; color: var(--ink-3); line-height: 1.65; }
.features-deep-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
@keyframes deepFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.deep-fade-in { animation: deepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── ProductIntro — brief what-is-this section ── */
.prod-intro {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.prod-intro-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.prod-intro-lead {
  text-align: center;
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.prod-intro-lead .eyebrow { margin-bottom: 0.65rem; }
.prod-intro-body {
  font-family: var(--ui);
  font-size: 1rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
  text-wrap: pretty;
}
.prod-intro-tools {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.prod-intro-tool {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 clamp(1rem, 2vw, 1.75rem);
  border-right: 1px solid var(--border);
}
.prod-intro-tool:first-child { padding-left: 0; }
.prod-intro-tool:last-child { border-right: none; padding-right: 0; }
.prod-intro-tool-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.prod-intro-pip {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.prod-intro-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.prod-intro-desc {
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (max-width: 680px) {
  .prod-intro-tools { grid-template-columns: 1fr; }
  .prod-intro-tool { border-right: none; padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .prod-intro-tool:last-child { border-bottom: none; }
}

/* ── FeaturesShowcase — card selector + detail rows ── */
.feat-showcase {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  position: relative; z-index: 1;
}
.feat-showcase-head {
  text-align: center; max-width: 720px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.feat-showcase-head h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em; line-height: 1.02;
  margin: 0.9rem 0 1rem; color: var(--ink); text-wrap: balance;
}
.feat-showcase-head p {
  font-size: 1.02rem; color: var(--ink-3);
  line-height: 1.65; text-wrap: pretty;
}

.feat-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

.feat-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem 1.4rem;
  text-align: left; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.feat-card:hover {
  border-color: var(--app-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-card.active {
  border-color: var(--app-color);
  background: var(--app-bg);
  box-shadow: var(--shadow-md);
}

.feat-card-top {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.feat-card-pip {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.feat-card-label {
  font-family: var(--display); font-weight: 800;
  font-size: 1.15rem; letter-spacing: -0.02em; color: var(--ink);
}
.feat-card.active .feat-card-label { color: var(--app-color); }

.feat-card-sub {
  font-family: var(--ui); font-size: 0.82rem;
  color: var(--ink-3); line-height: 1.45; margin: 0;
}

/* Progress bar — anchored to bottom of active card */
.feat-card-prog {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--border);
}
@keyframes progFill {
  from { width: 0%; }
  to   { width: 100%; }
}
.feat-card-prog-fill {
  height: 100%; width: 0%;
  border-radius: 0 2px 2px 0;
  animation: progFill 7s linear forwards;
}

/* ── Carousel ── */
.feat-carousel {
  overflow: hidden;
}
.feat-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.feat-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
}
/* Carousel handles animation — override fade-up on rows inside slides */
.feat-carousel-slide .feat-row {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ── Carousel navigation ── */
.feat-carousel-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
}
.feat-carousel-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-raised); border: 1.5px solid var(--border);
  font-size: 1rem; color: var(--ink-2); cursor: pointer; flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.feat-carousel-arrow:hover {
  background: var(--card); border-color: var(--ink-3); color: var(--ink);
  transform: scale(1.08);
}
.feat-carousel-dots { display: flex; align-items: center; gap: 0.85rem; }
.feat-carousel-dot-group { display: flex; gap: 5px; }
.feat-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border); border: none; padding: 0; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.feat-carousel-dot.active { background: var(--dot-color); transform: scale(1.5); }
.feat-carousel-dot:hover:not(.active) { background: var(--ink-3); }

@media (max-width: 680px) {
  .feat-cards { grid-template-columns: 1fr; gap: 0.75rem; }
  .feat-carousel-dots { gap: 0.6rem; }
}

/* ── Fade-up ── */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.fade-up.in { opacity: 1; transform: none; }

/* ── Background sits behind everything ── */
#bg-mount > canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.page { position: relative; z-index: 1; }
