/* Credit Midas — Origin-inspired single-page landing
   Responsive (mobile-first), atmospheric, editorial. */

:root {
  --cream:        oklch(0.972 0.012 85);
  --cream-deep:   oklch(0.945 0.018 80);
  --paper:        oklch(0.99 0.006 85);
  --ink:          oklch(0.20 0.018 60);
  --ink-soft:     oklch(0.38 0.018 60);
  --ink-faint:    oklch(0.58 0.014 60);
  --rule:         oklch(0.86 0.014 70);
  --rule-soft:    oklch(0.91 0.012 75);
  --gold:         oklch(0.68 0.115 78);
  --gold-deep:    oklch(0.55 0.110 70);
  --gold-soft:    oklch(0.92 0.06 85);

  /* Surfaces that flip to dark — tweakable via Tweaks panel.
     Default to the original warm-ink palette. Override by setting
     --dark-bg / --dark-fg on :root via inline style. */
  --dark-bg: var(--ink);
  --dark-fg: var(--cream);
  --dark-bg-2: color-mix(in oklab, var(--dark-bg), white 7%);
  --dark-bg-3: color-mix(in oklab, var(--dark-bg), white 18%);
  --dark-fg-muted: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 35%);

  --serif: 'Instrument Serif', 'Tiempos', 'Source Serif 4', Georgia, serif;
  --sans:  'DM Sans', 'Söhne', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --section-pad: clamp(24px, 5vw, 72px);
  --section-gap: clamp(72px, 10vw, 160px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.cm-app { overflow-x: hidden; }

/* ─── TYPE ──────────────────────────────────────────────────────── */
.cm-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.95;
  text-wrap: balance;
  color: var(--ink);
  margin: 0;
}
.cm-display em {
  font-style: italic;
  color: var(--gold-deep);
}
.cm-h1 { font-size: clamp(56px, 11vw, 168px); }
.cm-h2 { font-size: clamp(40px, 7vw, 96px); line-height: 0.98; }
.cm-h3 { font-size: clamp(28px, 4vw, 56px); line-height: 1.02; }

.cm-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cm-mono {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.cm-lede {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
  margin: 0;
}

/* ─── NAV ───────────────────────────────────────────────────────── */
.cm-nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: oklch(0.972 0.012 85 / .78);
  border-bottom: 1px solid var(--rule-soft);
}
.cm-nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--section-pad);
  gap: 16px;
}
.cm-wordmark {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.cm-wordmark .slash { color: var(--gold-deep); font-style: italic; }
.cm-wordmark .suffix {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-left: 6px;
  vertical-align: 4px;
}
.cm-nav-links {
  display: none;
  gap: 26px; align-items: center;
  font-size: 14px; color: var(--ink-soft);
}
.cm-nav-links a { color: inherit; text-decoration: none; transition: color .15s; }
.cm-nav-links a:hover { color: var(--ink); }
@media (min-width: 880px) { .cm-nav-links { display: flex; } }

.cm-nav-right { display: flex; align-items: center; gap: 12px; }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font-family: var(--sans);
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.cm-btn:hover { background: oklch(0.27 0.02 60); transform: translateY(-1px); }
.cm-btn-sm { height: 42px; padding: 0 18px; font-size: 13.5px; }
.cm-btn-lg { height: 60px; padding: 0 36px; font-size: 16.5px; }
.cm-btn .arrow {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  transform: translateY(-2px);
}
.cm-btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.cm-btn-ghost:hover { background: var(--ink); color: var(--cream); }

.cm-link {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.cm-link:hover { color: var(--ink); border-color: var(--ink); }

/* ─── LANG SWITCH ──────────────────────────────────────────────── */
.cm-lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  padding: 3px; height: 32px;
}
.cm-lang button {
  border: 0; padding: 0 11px; height: 100%;
  min-width: 32px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  background: transparent; border-radius: 999px;
  cursor: pointer; transition: background .15s, color .15s;
  display: flex; align-items: center; justify-content: center;
}
.cm-lang button:hover { color: var(--ink); }
.cm-lang button.on { background: var(--ink); color: var(--cream); }

/* ─── HERO ─────────────────────────────────────────────────────── */
.cm-hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) var(--section-pad) clamp(80px, 12vw, 160px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cm-hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.cm-hero .cm-h1 { max-width: 14ch; }
.cm-hero-lede { max-width: 540px; }
.cm-hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
}
.cm-hero-tagline {
  margin-top: 18px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.cm-hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: oklch(0.98 0.012 85 / .7);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.cm-hero-pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold-deep);
  animation: cm-pulse 2.6s ease-in-out infinite;
}
@keyframes cm-pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%     { transform: scale(1.4); opacity: .5; }
}

/* Atmospheric background (clouds-y, drifting warm gradients) */
.cm-hero-bg {
  position: absolute; inset: -10% -10% 0 -10%;
  z-index: -1;
  pointer-events: none;
  filter: blur(0px);
  overflow: hidden;
}
/* Ambient looping MP4 — fills the hero, slightly tinted to keep
   the cream/ink palette intact regardless of source footage. */
.cm-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* preserve warmth even with neutral footage */
  filter: saturate(1.05) contrast(0.98);
}
.cm-hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .7;
  mix-blend-mode: multiply;
}
.cm-hero-bg .blob.b1 {
  left: -10%; top: -10%; width: 60vw; height: 60vw;
  background: radial-gradient(circle at 30% 30%,
    oklch(0.92 0.08 85 / .9), oklch(0.92 0.08 85 / 0) 60%);
  animation: cm-drift1 28s ease-in-out infinite;
}
.cm-hero-bg .blob.b2 {
  right: -15%; top: 10%; width: 55vw; height: 55vw;
  background: radial-gradient(circle at 30% 30%,
    oklch(0.88 0.10 70 / .8), oklch(0.88 0.10 70 / 0) 60%);
  animation: cm-drift2 32s ease-in-out infinite;
}
.cm-hero-bg .blob.b3 {
  left: 20%; bottom: -20%; width: 70vw; height: 70vw;
  background: radial-gradient(circle at 30% 30%,
    oklch(0.94 0.04 75 / .9), oklch(0.94 0.04 75 / 0) 60%);
  animation: cm-drift3 36s ease-in-out infinite;
}
@keyframes cm-drift1 {
  0%,100% { transform: translate(0,0)   rotate(0deg); }
  50%     { transform: translate(8%,4%) rotate(20deg); }
}
@keyframes cm-drift2 {
  0%,100% { transform: translate(0,0)    rotate(0deg); }
  50%     { transform: translate(-6%,8%) rotate(-15deg); }
}
@keyframes cm-drift3 {
  0%,100% { transform: translate(0,0)     rotate(0deg); }
  50%     { transform: translate(-4%,-6%) rotate(12deg); }
}

/* Soft grain over hero only */
.cm-grain {
  position: absolute; inset: 0; pointer-events: none;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: overlay;
}

/* ─── PHONE MOCKUP ──────────────────────────────────────────────── */
.cm-phone {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 320 / 660;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 36px 60px -20px oklch(0.30 0.04 60 / .35),
    0 12px 24px -8px oklch(0.30 0.04 60 / .25),
    0 0 0 1px oklch(0.30 0.04 60 / .15);
}
.cm-phone-screen {
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.cm-phone-notch {
  position: absolute;
  left: 50%; top: 10px;
  width: 110px; height: 28px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  z-index: 2;
}

/* ─── SECTIONS ──────────────────────────────────────────────────── */
.cm-section {
  padding: var(--section-gap) var(--section-pad);
  max-width: 1320px; margin: 0 auto;
}
.cm-section-header {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: clamp(40px, 6vw, 80px);
  max-width: 880px;
}
.cm-section-eyebrow {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--ink-soft);
}

/* Card grid for feature trio */
.cm-feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 760px) {
  .cm-feature-row { grid-template-columns: repeat(3, 1fr); }
}
.cm-feature-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px oklch(0.40 0.04 60 / .15);
}
.cm-feature-card .preview {
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--cream-deep);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
}
.cm-feature-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.cm-feature-card p {
  font-size: 14px; line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
}

/* Two-col layout for product showcase */
.cm-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .cm-showcase { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .cm-showcase.flip { grid-template-columns: 1fr 1.05fr; }
  .cm-showcase.flip > :first-child { order: 2; }
}

.cm-showcase-visual {
  position: relative;
  background: var(--cream-deep);
  border-radius: 28px;
  border: 1px solid var(--rule);
  aspect-ratio: 5/4;
  overflow: hidden;
  display: grid; place-items: center;
  padding: 24px;
}

/* Score card refresh (used inside showcase) */
.cm-score-card {
  position: relative;
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-radius: 22px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  isolation: isolate;
}
.cm-score-num {
  font-family: var(--serif);
  font-size: clamp(78px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.cm-score-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 40%);
  text-transform: uppercase;
}
.cm-score-delta {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--gold);
}
.cm-score-bar {
  position: relative; height: 6px;
  background: var(--dark-bg-3);
  border-radius: 999px;
}
.cm-score-bar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  border-radius: 999px;
}
.cm-score-bar .marker {
  position: absolute; top: -3px; width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid var(--ink);
  transform: translateX(-50%);
  box-shadow: 0 0 0 0 oklch(0.78 0.14 78 / .55);
  animation: cm-marker-pulse 2.6s ease-in-out infinite;
}
@keyframes cm-marker-pulse {
  0%,100% { box-shadow: 0 0 0 0 oklch(0.78 0.14 78 / .55); }
  50%     { box-shadow: 0 0 0 8px oklch(0.78 0.14 78 / 0); }
}
.cm-score-axis {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9.5px;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 40%);
  letter-spacing: 0.06em;
}

/* Chat mockup */
.cm-chat {
  width: 100%;
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px;
}
.cm-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px; line-height: 1.45;
  font-family: var(--sans);
}
.cm-bubble.in {
  background: var(--cream-deep);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.cm-bubble.out {
  background: var(--ink);
  color: var(--cream);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.cm-bubble .name {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.cm-bubble.out .name { color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 40%); }

/* Testimonials */
.cm-tests {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 760px) {
  .cm-tests { grid-template-columns: repeat(3, 1fr); }
}
.cm-test-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.cm-test-stars { display: flex; gap: 2px; color: var(--gold-deep); }
.cm-test-stars svg { width: 14px; height: 14px; }
.cm-test-quote {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0;
}
.cm-test-who {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Plans grid */
.cm-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 880px) {
  .cm-plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.cm-plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cm-plan:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -20px oklch(0.40 0.04 60 / .18); }
.cm-plan.popular {
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-color: var(--dark-bg);
}
.cm-plan .ribbon {
  position: absolute; top: -12px; left: 24px;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cm-plan h3 {
  font-family: var(--serif);
  font-size: 32px; letter-spacing: -0.015em;
  margin: 0;
}
.cm-plan .price {
  font-family: var(--serif);
  font-size: 64px; letter-spacing: -0.04em;
  line-height: 1;
}
.cm-plan .price-note {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
}
.cm-plan.popular .price-note { color: oklch(0.78 0.014 60); }
.cm-plan ul {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.cm-plan.popular ul { color: oklch(0.88 0.014 60); }
.cm-plan li {
  display: flex; gap: 8px; align-items: flex-start;
}
.cm-plan li::before {
  content: '✓';
  color: var(--gold-deep);
  font-weight: 600;
  flex: 0 0 auto;
}
.cm-plan.popular li::before { color: var(--gold); }
.cm-plan .cm-btn { margin-top: auto; width: 100%; }
.cm-plan.popular .cm-btn {
  background: var(--gold);
  color: var(--ink);
}
.cm-plan.popular .cm-btn:hover { background: oklch(0.74 0.13 78); }

/* Founder section */
.cm-founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .cm-founder { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}
.cm-founder-portrait {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-width: 420px;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
}

/* Placeholder (striped) */
.cm-ph {
  position: relative;
  background: var(--cream-deep);
  border: 1px dashed var(--rule);
  display: grid; place-items: center;
  overflow: hidden;
  width: 100%; height: 100%;
}
.cm-ph::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 10px,
    oklch(0.88 0.014 75 / .55) 10px 11px
  );
}
.cm-ph .lbl {
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  background: var(--cream);
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  letter-spacing: 0.04em;
  z-index: 1;
}

/* Final CTA + form */
.cm-cta {
  background: var(--dark-bg);
  color: var(--dark-fg);
  border-radius: 36px;
  padding: clamp(40px, 6vw, 80px) var(--section-pad);
  margin: 0 var(--section-pad) var(--section-gap);
  max-width: 1200px; margin-inline: auto;
  position: relative; overflow: hidden;
  isolation: isolate;
}
.cm-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 880px) {
  .cm-cta-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.cm-cta h2 { color: var(--cream); }
.cm-cta h2 em { color: var(--gold); }
.cm-cta-lede {
  font-size: 17px; line-height: 1.5;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 25%);
  text-wrap: pretty;
  max-width: 420px;
}

/* Form */
.cm-form {
  display: flex; flex-direction: column;
  background: var(--dark-bg-2);
  border-radius: 22px;
  padding: 28px;
  border: 1px solid var(--dark-bg-3);
}
.cm-field { padding: 14px 0; border-top: 1px solid var(--dark-bg-3); }
.cm-field:first-of-type { border-top: 0; padding-top: 4px; }
.cm-field-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.cm-field-num {
  font-family: var(--mono);
  font-size: 10px;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 55%);
  letter-spacing: 0.08em;
}
.cm-field-label {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--dark-fg);
}
.cm-field-help {
  font-size: 12px; line-height: 1.4;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 40%);
  margin: 2px 0 8px;
}
.cm-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--dark-fg), var(--dark-bg) 80%);
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--dark-fg);
  outline: none;
}
.cm-input::placeholder { color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 65%); }
.cm-input:focus { border-bottom-color: var(--gold); }
.cm-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--dark-fg), var(--dark-bg) 80%);
  border-radius: 999px;
  background: transparent;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 25%);
  font-family: var(--sans); font-size: 12.5px;
  cursor: pointer;
  transition: all .15s;
}
.cm-chip:hover { border-color: var(--dark-fg); color: var(--dark-fg); }
.cm-chip.on {
  background: var(--dark-fg); color: var(--dark-bg); border-color: var(--dark-fg);
}
.cm-cta-foot {
  font-family: var(--mono); font-size: 10.5px;
  color: color-mix(in oklab, var(--dark-fg), var(--dark-bg) 55%);
  text-align: center;
  letter-spacing: 0.06em;
  margin-top: 14px;
}

/* Footer */
.cm-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  padding: 48px var(--section-pad) 32px;
}
.cm-footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .cm-footer-inner { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.cm-footer h4 {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 12px;
}
.cm-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cm-footer a { color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.cm-footer a:hover { color: var(--ink); }
.cm-footer-bottom {
  max-width: 1320px; margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}

/* Reveal helper */
.cm-reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(.22,.61,.36,1), transform 700ms cubic-bezier(.22,.61,.36,1);
}
.cm-reveal.in { opacity: 1; transform: translateY(0); }

/* Parallax phone tilt */
.cm-tilt {
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
