/* ───────────────────────────────────────────────
   Vanta Flows — Phase 4 · Components
─────────────────────────────────────────────── */

/* ─── Theme toggle ─── */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--paper);
  transition: border-color .2s ease, background .2s ease;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--ink-soft); transition: transform .4s cubic-bezier(.4,.2,.2,1), opacity .3s ease; }
.theme-toggle .sun { position: absolute; }
.theme-toggle .moon { position: absolute; transform: rotate(-40deg) scale(.7); opacity: 0; }
html[data-theme="dark"] .theme-toggle .sun  { transform: rotate(40deg) scale(.7); opacity: 0; }
html[data-theme="dark"] .theme-toggle .moon { transform: rotate(0) scale(1); opacity: 1; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ─── Hero ─── */
.hero {
  padding: 104px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px), var(--line) calc(100% / 12)),
    linear-gradient(to right, transparent 0, transparent calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px), var(--line) calc(100% / 12));
  background-size: calc(100% / 1) 100%, calc(100% / 12) 100%;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.1) 100%);
}
html[data-theme="dark"] .hero-grid-bg { opacity: .35; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero-eyebrow .dash { width: 40px; height: 1px; background: var(--ink-soft); }
.hero-eyebrow .pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45,212,191,.2);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(45,212,191,.25); }
  50%      { box-shadow: 0 0 0 6px rgba(45,212,191,.05); }
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 7.5vw, 80px);
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 540px;
  text-wrap: pretty;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero .proof {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero .proof .star { color: var(--warning); letter-spacing: 1px; }

/* ─── Hero systems diagram ─── */
/* ─── Stat strip (dark band even in light mode) ─── */
.stat-strip {
  background: var(--ink-dark);
  color: #F1F5F9;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.stat-strip::before {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--grad);
}
.stat-strip .inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stat-strip .lead {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.stat-strip .s .n {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  display: block;
}
.stat-strip .s .l {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 8px;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .stat-strip .inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .stat-strip .inner { grid-template-columns: 1fr; gap: 24px; }
  .stat-strip .s .n { font-size: 36px; }
}

/* ─── ICP cards ─── */
.icp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.icp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.icp-card:hover { border-color: var(--line-strong); }
.icp-card h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 20px;
  font-weight: 500;
}
.icp-card h4 .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--grad);
  margin-right: 8px;
  vertical-align: middle;
}
.icp-card.neg h4 .dot { background: var(--error); opacity: .8; }
.icp-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.icp-card li {
  font-size: 14px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
  color: var(--ink);
}
.icp-card li::before {
  content: "›";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
  top: -1px;
}
.icp-card.neg li { color: var(--ink-soft); }
.icp-card.neg li::before { color: var(--ink-faint); content: "×"; }

/* ─── Services grid ─── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.svc {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 14px;
  min-height: 300px;
  position: relative;
  transition: background .2s ease;
}
.svc:last-child { border-right: none; }
.svc:hover { background: var(--canvas-2); }
.svc .n {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: .08em;
}
.svc h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
}
.svc p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.svc .feat {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ─── Process ─── */
.proc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.proc::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--blue), var(--deep-blue), transparent);
  opacity: .6;
}
.proc .step { position: relative; padding-top: 72px; }
.proc .step .num {
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  font-family: var(--f-mono);
  font-weight: 500;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink);
}
.proc .step:nth-child(1) .num {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -6px rgba(37,99,235,.4);
}
.proc .step h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 10px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.proc .step p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.proc .step .time {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ─── Cases ─── */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
  display: grid;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.case:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.case .idx {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.case h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
}
.case .problem {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.case .kpi {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
}
.case .kpi .n {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -.02em;
  line-height: .9;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case .kpi .l {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.case .more {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: .02em;
}
html[data-theme="dark"] .case .more { color: var(--teal); }

/* ─── Platforms ─── */
.plat {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.plat .p {
  padding: 32px 24px;
  background: var(--ink-dark-2);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  border-radius: 12px;
  text-align: center;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.plat .p:hover {
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  transform: scale(1.02);
}
.plat .p .nm {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.005em;
  color: #F1F5F9;
}
.plat .p .u {
  font-family: var(--f-mono);
  font-size: 10px;
  color: #94A3B8;
  margin-top: 8px;
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .plat { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Pricing tiers ─── */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  display: grid;
  gap: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.tier:hover { border-color: var(--line-strong); }
.tier.featured {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--paper), var(--paper)) padding-box,
              var(--grad) border-box;
  box-shadow: var(--shadow-md);
}
.tier .flag {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.tier h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0;
  letter-spacing: -.01em;
  color: var(--ink);
}
.tier .lead {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.tier .hd {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 0 0 12px;
}
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.tier li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}
.tier li::before {
  content: "›";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
  top: -1px;
}
html[data-theme="dark"] .tier li::before { color: var(--teal); }

/* ─── About ─── */
.about {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
.about h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 36px;
  margin: 0 0 16px;
  letter-spacing: -.01em;
  line-height: 1.1;
  color: var(--ink);
}
.about p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
  max-width: 64ch;
}
.about .verify {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
html[data-theme="dark"] .about .verify { color: var(--teal); }
.about .stats { display: grid; gap: 10px; align-self: start; }
.about .stats .s {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  background: var(--canvas);
}
.about .stats .s .n {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 24px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.about .stats .s .l {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ─── FAQ (accordion) ─── */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.faq details[open] { background: var(--canvas-2); }
.faq summary {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px;
  padding: 24px 16px 24px 0;
  list-style: none;
  cursor: pointer;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover .q { color: var(--blue); }
html[data-theme="dark"] .faq summary:hover .q { color: var(--teal); }
.faq .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: .08em;
}
.faq .q {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.005em;
  line-height: 1.25;
  color: var(--ink);
  transition: color .15s ease;
}
.faq .chev {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--ink-faint);
  justify-self: end;
  transition: transform .2s ease, color .2s ease;
}
.faq details[open] .chev { transform: rotate(45deg); color: var(--blue); }
html[data-theme="dark"] .faq details[open] .chev { color: var(--teal); }
.faq .answer {
  padding: 0 0 28px 84px;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}
/* Contact-page FAQ: inset Q-number from outer container edge */
.contact-faq .faq summary { padding-left: 32px; }
.contact-faq .faq .answer { padding-left: 116px; }

/* ─── Final CTA ─── */
.final {
  background: var(--ink-dark);
  color: var(--paper-dark);
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
}
.final-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  opacity: .35;
  pointer-events: none;
}
.final-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: end;
  position: relative;
  z-index: 1;
}
.final h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 56px;
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.02;
  text-wrap: balance;
}
.final h3 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final p {
  color: #94A3B8;
  font-size: 17px;
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 50ch;
}
.final-form {
  background: var(--ink-dark-2);
  border: 1px solid var(--ink-dark-3);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  gap: 14px;
  justify-self: end;
  width: 100%;
}
.final-form label {
  display: grid;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.final-form input,
.final-form textarea {
  background: var(--ink-dark);
  border: 1px solid var(--ink-dark-3);
  color: #F1F5F9;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  transition: border-color .2s ease;
}
.final-form input:focus,
.final-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.final-form textarea { min-height: 72px; resize: vertical; }
.final-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.final-form .submit {
  margin-top: 6px;
  justify-self: start;
  padding: 14px 24px;
}
.final-form .micro {
  font-family: var(--f-mono);
  font-size: 11px;
  color: #64748B;
  letter-spacing: .02em;
  margin-top: 2px;
}

/* ─── Footer ─── */
.footer {
  background: var(--ink-dark-2);
  color: #94A3B8;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #F1F5F9;
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13px; }
.footer ul a { transition: color .15s ease; }
.footer ul a:hover { color: #F1F5F9; }
.footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F1F5F9;
  margin-bottom: 16px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
}
.footer .tag {
  font-size: 13px;
  line-height: 1.6;
  max-width: 36ch;
  color: #94A3B8;
}
.footer .micro {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-dark-3);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: #64748B;
}

/* ═════════════════════════════════════════════════════════════
   PHASE 3A.5 — SERVICES + CONTACT LAYOUT
   Scoped under page-specific classes; safe for shared CSS file.
   ═════════════════════════════════════════════════════════════ */

.svc-overview, .svc-deep, .svc-compare, .svc-closing,
.contact-paths, .contact-flow, .contact-faq, .email-cta {
  scroll-margin-top: 100px;
}

/* Soft glow background — used on hero and key sections */
.bg-glow { position: relative; isolation: isolate; }
.bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(45, 212, 191, .08), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(37, 99, 235, .06), transparent 60%);
}

/* ── Services overview grid ── */
.svc-overview {
  padding: 64px 0 32px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.svc-overview-instr {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.svc-grid-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.svc-card-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
  background: var(--ink-dark-2);
  border: 1px solid var(--ink-dark-3);
  border-radius: 12px;
  color: #F1F5F9;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.svc-card-mini:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: 0 12px 30px -10px rgba(45,212,191,.18);
}
.svc-card-mini .badge {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.svc-card-mini .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -.005em;
  color: #F1F5F9;
  margin: 0;
}
.svc-card-mini .outcome {
  font-size: 13px;
  line-height: 1.5;
  color: #94A3B8;
  margin: 0;
  flex-grow: 1;
}
.svc-card-mini .pill {
  align-self: flex-start;
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink-dark-3);
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

/* ── Service deep-dive ── */
.svc-deep {
  padding: 96px 0;
  background: var(--ink-dark);
  color: #CBD5E1;
  border: none;
  position: relative;
}
.svc-deep--alt { background: var(--ink-dark-2); }
.svc-deep .container {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 64px;
  align-items: start;
}
.svc-deep__left {
  position: sticky;
  top: 100px;
  align-self: start;
}
.svc-deep__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.svc-deep__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  color: #F1F5F9;
}
.svc-deep__outcome {
  font-size: 15px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 24px;
}
.svc-deep__meta { display: grid; gap: 8px; }
.svc-deep__meta .pill {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--ink-dark-3);
  color: #CBD5E1;
  display: inline-flex;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  width: fit-content;
}
.svc-deep__meta .pill .label {
  color: var(--teal);
  text-transform: uppercase;
}
.svc-deep__right {
  font-size: 15px;
  line-height: 1.6;
  color: #CBD5E1;
}
.svc-deep__right > p { margin: 0 0 24px; color: #CBD5E1; }
.svc-deep__right > p:first-of-type { color: #E2E8F0; font-size: 16px; }
.svc-deep__right h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 24px 0 18px;
  font-weight: 500;
}
.deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.deliverable {
  padding: 16px 18px;
  border-left: 2px solid var(--ink-dark-3);
  background: rgba(28, 35, 51, .35);
  border-radius: 0 6px 6px 0;
  transition: border-color .2s ease, background .2s ease;
  font-size: 14px;
  line-height: 1.5;
  color: #CBD5E1;
}
.deliverable:hover {
  border-left-color: var(--teal);
  background: rgba(45, 212, 191, .04);
}
.deliverable .num {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--teal);
  letter-spacing: .08em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.svc-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(45, 212, 191, .2) 30%,
    rgba(37, 99, 235, .2) 70%,
    transparent 100%
  );
}

.svc-deep .btn-ghost {
  border-color: var(--ink-dark-3);
  color: #F1F5F9;
}
.svc-deep .btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Compare table ── */
.svc-compare {
  padding: 96px 0;
  background: var(--canvas);
}
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.compare thead { background: var(--canvas-2); }
.compare th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 14px 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.compare td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink);
}
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover { background: var(--canvas-2); }
.compare .code {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.compare .nm {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: block;
}
.compare .timeline,
.compare .price {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── Contact paths (equal-height cards) ── */
.contact-paths {
  padding: 96px 0;
  background: var(--canvas);
}
.path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.path-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  transition: border-color .2s ease;
}
.path-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 15px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45,212,191,.25), rgba(37,99,235,.15) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: .9;
}
.path-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.005em;
  margin: 0 0 10px;
  color: var(--ink);
}
.path-card .descr {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
}
.calendly-placeholder {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 36px 20px;
  background: var(--canvas);
  font-family: var(--f-mono);
  color: var(--ink-soft);
  text-align: center;
  min-height: 280px;
}
.calendly-placeholder .ico {
  font-family: var(--f-mono);
  font-size: 48px;
  color: var(--teal);
  opacity: .65;
  line-height: 1;
  letter-spacing: -.02em;
}
.calendly-placeholder .note {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

/* Calendly shell — paints --ink-dark behind the iframe so loading/empty states
   blend with our dark theme instead of bleeding white into the card. */
.calendly-shell {
  flex: 1 1 650px;
  min-height: 650px;
  align-self: stretch;
  background: var(--ink-dark);
  border-radius: 14px;
  overflow: hidden;
}
.path-card .calendly-inline-widget {
  width: calc(100% + 17px);
  height: 100%;
  min-height: 650px;
}
.benefits {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.benefits li {
  font-size: 13px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  font-variant-numeric: tabular-nums;
}
.benefits li::before {
  content: "·";
  color: var(--teal);
  position: absolute;
  left: 6px;
  top: -2px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

/* Contact form (inside .path-card) */
.contact-form {
  display: grid;
  gap: 14px;
  flex-grow: 1;
}
.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--canvas);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  transition: border-color .2s ease;
  text-transform: none;
  letter-spacing: 0;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}
.contact-form legend {
  padding: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* Pill checkboxes — pure CSS via :checked */
.tools-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-pill { position: relative; }
.tool-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tool-pill .label-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.tool-pill .label-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.tool-pill input:checked + .label-pill {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(45,212,191,.06);
}
.tool-pill input:focus-visible + .label-pill {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ── Contact flow (3 horizontal steps) ── */
.contact-flow {
  padding: 96px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 24px;
}
.flow-step { display: grid; gap: 12px; }
.flow-step .num {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 44px;
  line-height: .9;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.flow-step .tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.flow-step h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.005em;
  margin: 0;
  color: var(--ink);
}
.flow-step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.flow-connector {
  align-self: center;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, var(--line-strong) 50%, var(--line) 100%);
  position: relative;
  min-width: 32px;
}
.flow-connector::after {
  content: "→";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-55%);
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-faint);
  background: var(--canvas);
  padding: 0 4px;
}

.contact-faq {
  padding: 96px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}

.email-cta {
  padding: 56px 0;
  background: var(--canvas);
  text-align: center;
  border-top: 1px solid var(--line);
}
.email-cta p {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: 0;
}
.email-cta a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity .15s ease;
}
.email-cta a:hover { opacity: .75; }

/* ── Responsive ── */
@media (max-width: 980px) {
  .svc-grid-mini { grid-template-columns: repeat(2, 1fr); }
  .svc-deep { padding: 64px 0; }
  .svc-deep .container { grid-template-columns: 1fr; gap: 32px; }
  .svc-deep__left { position: static; top: auto; }
  .svc-compare { padding: 64px 0; }
  .contact-paths,
  .contact-flow,
  .contact-faq { padding: 64px 0; }
  .path-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-connector { display: none; }
  .deliverables { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .svc-grid-mini { grid-template-columns: 1fr; }
  .svc-overview { padding: 48px 0 24px; }
  .svc-deep { padding: 48px 0; }
  .svc-compare { padding: 48px 0; }
  .contact-paths,
  .contact-flow,
  .contact-faq { padding: 48px 0; }
  .compare { font-size: 12px; }
  .compare th, .compare td { padding: 10px 12px; }
  .contact-form .row-2 { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 3B — PRODUCTS + CASE DETAIL + CASES INDEX
   Scoped under page-specific classes; safe in shared CSS.
   ═════════════════════════════════════════════════════════════ */

.tier-strip, .prod-tier, .prod-why, .prod-stack, .prod-matrix, .early-access,
.cs2-hero, .cs2-glance, .cs2-section, .cs2-result, .cs2-shift, .cs2-tech, .cs2-cta,
.cs-index-list, .cs-index-method, .cs-index-cta {
  scroll-margin-top: 100px;
}

/* ── Products: tier strip ── */
.tier-strip {
  padding: 32px 0 8px;
  background: var(--canvas);
}
.tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .15s ease, color .15s ease;
}
.tier-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.tier-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.tier-pill.is-live .dot    { background: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
.tier-pill.is-dev .dot     { background: var(--warning); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.tier-pill.is-planned .dot { background: var(--ink-faint); }
.tier-pill .count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}

/* ── Products: tier sections ── */
.prod-tier {
  padding: 96px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.prod-tier--alt { background: var(--canvas-2); }

.product-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.product-grid-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.product-grid-feature .product-card { max-width: 880px; }

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.status-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status--live    { background: rgba(16,185,129,.10); color: var(--success); }
.status--live::before    { background: var(--success); }
.status--dev     { background: rgba(245,158,11,.10); color: var(--warning); }
.status--dev::before     { background: var(--warning); }
.status--planned { background: var(--canvas-2); color: var(--ink-soft); }
.status--planned::before { background: var(--ink-faint); }

.product-card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.005em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.product-card .tagline {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.product-card .meta-block {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.product-card .meta-block .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}
.product-card .meta-block p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.pricing-block {
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink);
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.pricing-block .price-line .label-mono {
  color: var(--ink-faint);
  margin-right: 6px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .12em;
}

.product-card .launch-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--warning);
  font-variant-numeric: tabular-nums;
}

/* ── Products: founder quote ── */
.prod-why {
  padding: 96px 0;
  background: var(--ink-dark);
  color: var(--paper-dark);
  border-top: 1px solid var(--ink-dark-3);
}
.prod-why .container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}
.founder-photo-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px dashed var(--ink-dark-3);
  background: var(--ink-dark-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-faint);
  text-align: center;
}
.founder-photo-placeholder .ico {
  font-size: 32px;
  opacity: .55;
  letter-spacing: -.02em;
}
.founder-quote blockquote {
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.45;
  color: #F1F5F9;
  letter-spacing: -.005em;
}
.founder-quote cite {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ── Products: same stack note ── */
.prod-stack {
  padding: 96px 0 64px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.prod-stack .stack-note {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  text-align: center;
}

/* ── Products: custom vs product matrix ── */
.prod-matrix {
  padding: 96px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.matrix-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
}
.matrix-col h3 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  font-weight: 500;
}
.matrix-col h3 .nm {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: none;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-top: 6px;
}
.matrix-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.matrix-col li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}
.matrix-col li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-family: var(--f-mono);
  font-size: 12px;
}
.matrix-coda {
  margin-top: 32px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-soft);
}
.matrix-coda a { color: var(--teal); border-bottom: 1px solid currentColor; }

/* ── Products: early access form ── */
.early-access {
  padding: 96px 0;
  background: var(--ink-dark);
  color: var(--paper-dark);
  border-top: 1px solid var(--ink-dark-3);
}
.early-access .ea-shell {
  max-width: 640px;
  margin: 0 auto;
  background: var(--ink-dark-2);
  border: 1px solid var(--ink-dark-3);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  gap: 14px;
}
.early-access h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.005em;
  margin: 0 0 4px;
  color: #F1F5F9;
}
.early-access p.sub {
  margin: 0 0 12px;
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.55;
}
.early-access label {
  display: grid;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.early-access input[type="text"],
.early-access input[type="email"] {
  background: var(--ink-dark);
  border: 1px solid var(--ink-dark-3);
  color: #F1F5F9;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--f-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.early-access input:focus {
  outline: none;
  border-color: var(--teal);
}
.early-access fieldset {
  border: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}
.early-access legend {
  padding: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  color: #94A3B8;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.early-access .ea-checks {
  display: grid;
  gap: 8px;
}
.early-access .ea-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #CBD5E1;
}
.early-access .ea-checks input[type="checkbox"] { accent-color: var(--teal); }

/* ── Case Detail (cs2-*) ── */
.cs2-hero {
  background: var(--ink-dark);
  color: var(--paper-dark);
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-dark-3);
}
.cs2-hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 80% 20%, rgba(45,212,191,.08), transparent 60%),
    radial-gradient(500px 400px at 15% 80%, rgba(37,99,235,.06), transparent 60%);
}
.cs2-hero .container { position: relative; z-index: 1; }
.cs2-hero .back-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 28px;
  border-bottom: 1px solid transparent;
}
.cs2-hero .back-link:hover { border-bottom-color: var(--teal); }
.cs2-hero .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.cs2-hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: #F1F5F9;
  text-wrap: balance;
}
.cs2-hero .sub {
  font-size: 18px;
  line-height: 1.5;
  color: #CBD5E1;
  margin: 0 0 36px;
  max-width: 700px;
}
.cs2-stat-box {
  display: inline-grid;
  gap: 8px;
  padding: 24px 28px;
  background: var(--ink-dark-2);
  border: 1px solid var(--ink-dark-3);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
}
.cs2-stat-box .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94A3B8;
}
.cs2-stat-box .number {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.cs2-confid {
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-faint);
}

/* At-a-glance strip */
.cs2-glance {
  background: var(--canvas);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.cs2-glance .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cs2-glance .item .label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.cs2-glance .item .value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.005em;
  color: var(--ink);
}

/* Long-form sections */
.cs2-section {
  padding: 80px 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.cs2-section--alt { background: var(--canvas-2); }
.cs2-section .container { max-width: 760px; }
.cs2-section .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
}
.cs2-section h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.cs2-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 18px;
}
.cs2-section p:last-child { margin-bottom: 0; }

.cs2-diagram {
  margin: 32px auto 0;
  width: 100%;
  max-width: 900px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 32px;
  background: var(--canvas-2);
  font-family: var(--f-mono);
  color: var(--ink-soft);
  text-align: center;
}
.cs2-diagram > svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}
/* Allow .cs2-section to widen its container only when it contains a diagram,
   while keeping prose paragraphs at a comfortable reading width. */
.cs2-section:has(.cs2-diagram) .container { max-width: 960px; }
.cs2-section:has(.cs2-diagram) .container > .eyebrow,
.cs2-section:has(.cs2-diagram) .container > h2,
.cs2-section:has(.cs2-diagram) .container > p {
  max-width: 760px;
}

/* Result block — big stat repeated */
.cs2-result {
  background: var(--ink-dark);
  color: var(--paper-dark);
  padding: 80px 0;
  border-bottom: 1px solid var(--ink-dark-3);
}
.cs2-result .container { max-width: 760px; }
.cs2-result .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 24px;
}
.cs2-result .big-number {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  margin: 0 0 24px;
}
.cs2-result p {
  font-size: 17px;
  line-height: 1.65;
  color: #CBD5E1;
  margin: 0;
  max-width: 60ch;
}

/* Code-style callout */
.cs2-callout {
  margin-top: 24px;
  background: var(--ink-dark-2);
  border-left: 3px solid var(--teal);
  border-radius: 0 6px 6px 0;
  padding: 20px 24px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.6;
  color: #CBD5E1;
}

/* Tech detail table */
.cs2-tech .stack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}
.cs2-tech .stack-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: grid;
  gap: 4px;
}
.cs2-tech .stack-list .role {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cs2-tech .stack-list .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.005em;
  color: var(--ink);
}

/* Final CTA on case-detail */
.cs2-cta {
  padding: 96px 0;
  background: var(--canvas);
  text-align: center;
}
.cs2-cta h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
}
.cs2-cta p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

/* ── Case Studies INDEX page ── */
.cs-index-list {
  padding: 64px 0 96px;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.case-row-list {
  display: grid;
  gap: 24px;
}
.case-row {
  display: grid;
  grid-template-columns: 80px 1fr 200px;
  gap: 32px;
  align-items: center;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.case-row:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(45,212,191,.12);
}
.case-row .badge {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.case-row .body h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin: 0 0 8px;
  color: var(--ink);
}
.case-row .body .outcome {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 8px;
}
.case-row .body .problem {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: 0;
}
.case-row .stat {
  text-align: right;
  display: grid;
  gap: 4px;
}
.case-row .stat .number {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.case-row .stat .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.case-row .arrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 8px;
  display: inline-block;
}

.cs-index-method {
  padding: 80px 0;
  background: var(--canvas-2);
  border-top: 1px solid var(--line);
}
.cs-index-method .container { max-width: 760px; }
.cs-index-method p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.cs-index-cta {
  padding: 96px 0;
  background: var(--canvas);
  text-align: center;
  border-top: 1px solid var(--line);
}
.cs-index-cta h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--ink);
}
.cs-index-cta p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 56ch;
}

/* ── Phase 3B Responsive ── */
/* ── Team section (homepage + reused on products.html founder block) ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.team-card { display: grid; gap: 16px; }
.team-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background: var(--canvas-2);
  box-shadow: 0 16px 40px -20px rgba(15, 23, 42, .18);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(45, 212, 191, .08));
  pointer-events: none;
}
.team-card .role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.team-card .name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0;
}
.team-card .brief {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
/* Dark-section variant — used inside .prod-why on products.html */
.prod-why .team-photo {
  border-color: var(--ink-dark-3);
  background: var(--ink-dark-2);
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 980px) {
  .product-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-grid-2 { grid-template-columns: 1fr; }
  .matrix-grid { grid-template-columns: 1fr; }
  .prod-tier { padding: 64px 0; }
  .prod-why { padding: 64px 0; }
  .prod-why .container { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo-placeholder { max-width: 200px; }
  .prod-stack { padding: 64px 0 48px; }
  .prod-matrix, .early-access { padding: 64px 0; }
  .cs2-glance .grid { grid-template-columns: repeat(2, 1fr); }
  .cs2-section { padding: 56px 0; }
  .cs2-result { padding: 56px 0; }
  .cs2-cta, .cs-index-cta { padding: 64px 0; }
  .case-row { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .case-row .stat { text-align: left; }
}
@media (max-width: 640px) {
  .product-grid-3 { grid-template-columns: 1fr; }
  .prod-tier { padding: 48px 0; }
  .prod-why, .prod-stack, .prod-matrix, .early-access { padding: 48px 0; }
  .cs2-glance .grid { grid-template-columns: 1fr; }
  .cs2-section { padding: 40px 0; }
  .cs2-result { padding: 48px 0; }
  .cs2-cta, .cs-index-cta { padding: 48px 0; }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 4A — FOUNDATION VISUAL EFFECTS
   ═════════════════════════════════════════════════════════════ */

/* 5. Master reduced-motion guard. Disables every animation/transition. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 1. Custom cursor — only applies on hover-capable, fine-pointer devices. */
@media (hover: hover) and (pointer: fine) {
  html.has-vf-cursor,
  html.has-vf-cursor body,
  html.has-vf-cursor * {
    cursor: none;
  }
  .vf-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    border: 1.5px solid #2DD4BF;
    border-radius: 50%;
    background: transparent;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    mix-blend-mode: difference;
    will-change: transform;
  }
  .vf-cursor.is-grow {
    width: 32px;
    height: 32px;
    background: rgba(45, 212, 191, 0.15);
  }
  .vf-cursor.is-out { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-cursor { display: none !important; }
  html.has-vf-cursor,
  html.has-vf-cursor body,
  html.has-vf-cursor * { cursor: auto !important; }
}

/* 2. Magnetic CTAs — smooth easing on enter and exit. */
@media (hover: hover) and (pointer: fine) {
  [data-magnetic] {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-magnetic] { transform: none !important; transition: none !important; }
}

/* 3. Counter suffix — appended via ::after so the gradient text-clip stays
      on a single element. JS only animates the textContent number itself. */
[data-counter][data-suffix]::after,
[data-counter-range][data-suffix]::after {
  content: attr(data-suffix);
}

/* 4. Scroll reveal — gated by .js class so a JS-disabled fallback shows
      content fully. The .js class is added synchronously by the inline
      theme-bootstrap script, before paint, so no flicker. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   PHASE 4B — ADVANCED VISUAL EFFECTS
   ═════════════════════════════════════════════════════════════ */

/* ── 3. Hero gradient mesh (homepage only — added via .hero-mesh wrapper) ── */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  opacity: 1;
}
.hero-mesh-blob--1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.10), transparent 60%);
  top: -10%; left: -10%;
  animation: hero-mesh-drift-1 24s ease-in-out infinite alternate;
}
.hero-mesh-blob--2 {
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.10), transparent 60%);
  top: 25%; right: -15%;
  animation: hero-mesh-drift-2 28s ease-in-out infinite alternate;
}
.hero-mesh-blob--3 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.06), transparent 60%);
  bottom: -15%; left: 25%;
  animation: hero-mesh-drift-3 32s ease-in-out infinite alternate;
}
@keyframes hero-mesh-drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(8%, 6%, 0) scale(1.15); }
}
@keyframes hero-mesh-drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6%, -4%, 0) scale(1.10); }
}
@keyframes hero-mesh-drift-3 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -8%, 0) scale(1.20); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mesh-blob { animation: none !important; }
}

/* The hero already has overflow: hidden and z-index: 0 inherent;
   the mesh sits behind .hero-grid-bg and content. */
.hero { position: relative; }
.hero > .container,
.hero > .hero-grid-bg { position: relative; z-index: 1; }

/* ── 2. Hover tilt on case study cards ── */
@media (hover: hover) and (pointer: fine) {
  [data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
  }
  /* Existing .case has cursor: pointer + transition transform — preserved.
     The JS sets transform inline so it overrides the existing hover lift. */
}
@media (prefers-reduced-motion: reduce) {
  [data-tilt] {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* ── 4. Internal-navigation fade ── */
/* No CSS needed here — JS sets body.style.opacity inline at click time.
   The body itself doesn't need a default transition; JS sets one before fading. */
@media (prefers-reduced-motion: reduce) {
  body { opacity: 1 !important; transition: none !important; }
}

/* ═════════════════════════════════════════════════════════════
   SPRINT 1 — PREMIUM POLISH PASS
   Tasks 1, 2, 4, 5, 6, 8, 9, 10, 11 — scoped under new classes.
   ═════════════════════════════════════════════════════════════ */

/* Task 1 — Founder thesis section (homepage) */
.thesis {
  padding: 120px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.thesis::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 500px at 20% 30%, rgba(45, 212, 191, 0.05), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(37, 99, 235, 0.04), transparent 60%);
}
.thesis .container { max-width: 720px; position: relative; z-index: 1; }
.thesis-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 16px;
}
.thesis h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.thesis p.body {
  font-family: var(--f-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 32px;
}

/* Task 2 — Services engagement pricing block */
.svc-engage {
  padding: 96px 0;
  background: var(--canvas-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.engage-col {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.engage-col .label-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}
.engage-col .range {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 34px);
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.engage-col .range-alt {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  margin: 0 0 6px;
}
.engage-col .descr {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 6px 0 0;
}
.engage-col .sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: 0;
}
.engage-coda {
  margin-top: 32px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.engage-coda a {
  color: var(--teal);
  border-bottom: 1px solid currentColor;
}

/* Task 4 — "What we won't do" list */
.svc-wont {
  padding: 96px 0;
  background: var(--canvas);
  border-top: 1px solid var(--line);
}
.svc-wont .container { max-width: 820px; }
.wont-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.wont-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.wont-list li:last-child { border-bottom: 1px solid var(--line); }
.wont-list .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.wont-list h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.005em;
  margin: 0 0 8px;
  color: var(--ink);
}
.wont-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Task 5 — Platform logo wrapper.
   SVGs use currentColor so they inherit the wrapper's color and adapt to theme.
   Wrapper enforces consistent visual height across all 4 cards. */
.plat-logo {
  color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.plat-logo svg {
  width: auto;
  height: 40px;
  max-width: 200px;
  display: block;
}
.plat .p:hover .plat-logo {
  color: var(--teal);
  transform: scale(1.04);
}

/* Task 6 — Inline FAQ blocks (services + products).
   Reuses existing .faq pattern; adds breathing room from container edges. */
.inline-faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.inline-faq summary { padding: 24px 16px 24px 32px; }
.inline-faq .answer { padding: 0 16px 28px 116px; }
.inline-faq-head {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 48px 0 16px;
}

/* Task 8 — Currency dual display: secondary line treatment */
.price-alt {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-faint);
  opacity: 0.7;
  margin-top: 4px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

/* Task 9 — Footer trust signals row */
.footer-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-dark-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: #94A3B8;
  text-transform: uppercase;
}
.footer-trust .sep { color: #475569; }
@media (max-width: 640px) {
  .footer-trust { flex-direction: column; gap: 8px; }
  .footer-trust .sep { display: none; }
}

/* Task 7 — Reusable signature line */
.signature-line {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  opacity: 0.85;
  margin: 0;
}

/* Task 10 — 404 page hero */
.nf-hero {
  padding: 140px 0 96px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.nf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at 75% 30%, rgba(45, 212, 191, 0.06), transparent 60%),
    radial-gradient(600px 400px at 25% 80%, rgba(37, 99, 235, 0.05), transparent 60%);
}
.nf-hero .container { max-width: 720px; text-align: center; position: relative; z-index: 1; }
.nf-hero .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 18px;
  font-variant-numeric: tabular-nums;
}
.nf-hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--ink);
  text-wrap: balance;
}
.nf-hero .sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 36px;
  text-wrap: pretty;
}
.nf-hero .cta-row { justify-content: center; }

/* Task 11 — Vertical rhythm responsive for .sec
   .sec is the original section primitive used across many pages.
   Adding tablet/mobile breakpoints to standardize the rhythm. */
@media (max-width: 980px) {
  .sec { padding: 64px 0; }
  .thesis { padding: 80px 0; }
  .svc-wont, .svc-engage { padding: 64px 0; }
  .engage-grid { grid-template-columns: 1fr; }
  .nf-hero { padding: 96px 0 64px; }
}
@media (max-width: 640px) {
  .sec { padding: 48px 0; }
  .thesis { padding: 56px 0; }
  .svc-wont, .svc-engage { padding: 48px 0; }
  .wont-list li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .nf-hero { padding: 72px 0 48px; }
}

/* ═════════════════════════════════════════════════════════════
   TEXTURE + DEPTH PASS — barely perceptible by design.
   Cumulative effect should make the surface feel layered, not flat.
   ═════════════════════════════════════════════════════════════ */

/* ── 1. Grain overlay ────────────────────────────────────────
   Fixed-position SVG turbulence over the whole viewport. Effective
   visible alpha ≈ 0.5 × 0.04 = 0.02, then 'overlay' blend roughly
   doubles the perceived contrast on dark surfaces. Light mode uses
   'multiply' at lower opacity so it doesn't muddy white. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
html[data-theme="light"] body::before {
  opacity: 0.18;
  mix-blend-mode: multiply;
}
/* Make sure interactive overlays (cursor, tweaks panel, calendly shell)
   sit above the grain. Cursor is already z-index 9999, tweaks panel is
   high; nav and content stay below the grain (which is fine — grain has
   pointer-events: none). */

/* ── 2. Card depth ──────────────────────────────────────────
   Top inset white = subtle "lit" highlight (visible mainly on dark
   cards). Outer 1px + 8/24 ambient shadow = soft drop. Background
   gets a 2.5% white→1% gradient overlaid via background-image (works
   on both light and dark fills without changing the underlying colour). */
.case,
.case-row,
.product-card,
.icp-card,
.tier,
.path-card,
.engage-col,
.matrix-col,
.svc-card-mini,
.plat .p,
.tier-pill {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 24px -8px rgba(0, 0, 0, 0.10);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
}
/* Already-dark cards: keep the existing dark fill below the gradient overlay
   by also setting background-color to the original token (not relying on
   shorthand). Existing rules already set background; the gradient is layered
   on top via background-image. */

/* FAQ accordion: lighter touch — only apply the top-edge highlight when open. */
.faq details[open] {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Refined low-opacity borders on the cards above. Existing borders use
   var(--line) at full opacity; reduce slightly for a quieter edge. */
.case,
.case-row,
.product-card,
.path-card,
.engage-col,
.matrix-col {
  border-color: color-mix(in srgb, var(--line) 80%, transparent);
}

/* ── 3. Section horizon — bottom-edge teal gradient ─────────
   Adds a subtle stacked-material feel between sections. Uses :where()
   for low specificity so individual sections can still override. */
:where(.sec, .svc-deep, .svc-overview, .svc-compare, .svc-engage,
  .svc-wont, .svc-closing, .stat-strip, .thesis, .prod-tier, .prod-why,
  .prod-stack, .prod-matrix, .early-access, .contact-paths, .contact-flow,
  .contact-faq, .email-cta, .cs2-hero, .cs2-glance, .cs2-section,
  .cs2-result, .cs2-cta, .cs-index-list, .cs-index-method, .cs-index-cta,
  .nf-hero, .final, .hero) {
  position: relative;
}
:where(.sec, .svc-deep, .svc-overview, .svc-compare, .svc-engage,
  .svc-wont, .svc-closing, .stat-strip, .thesis, .prod-tier, .prod-why,
  .prod-stack, .prod-matrix, .early-access, .contact-paths, .contact-flow,
  .contact-faq, .email-cta, .cs2-hero, .cs2-glance, .cs2-section,
  .cs2-result, .cs2-cta, .cs-index-list, .cs-index-method, .cs-index-cta,
  .nf-hero, .hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(45, 212, 191, 0.08) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── 4. Button depth refinement ─────────────────────────────
   .btn-primary already has inset + drop. Add a soft teal glow,
   tighten the active feedback so the press feels physical. */
.btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 4px 12px rgba(45, 212, 191, 0.15),
    0 8px 20px -8px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 20px rgba(45, 212, 191, 0.25),
    0 14px 28px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(45, 212, 191, 0.18),
    0 4px 12px -4px rgba(37, 99, 235, 0.40);
}

/* ── 5. Hero gradient refinement (non-homepage heroes) ──────
   .bg-glow already exists on services/products/case-studies/contact heroes.
   Dial the opacities down slightly so they read as ambient depth rather
   than visible glow — keeps the homepage's animated mesh as the
   "loudest" hero treatment. */
.bg-glow::before {
  background:
    radial-gradient(600px 400px at 75% 30%, rgba(45, 212, 191, 0.06), transparent 60%),
    radial-gradient(500px 400px at 20% 80%, rgba(37, 99, 235, 0.04), transparent 60%);
}

/* ═════════════════════════════════════════════════════════════
   PRODUCTION HERO DEMO — 3-scene loop
   Adapted from prototype. Hardcoded brand colors preserved.
   Site theme variables used for container chrome only.
   ═════════════════════════════════════════════════════════════ */

.demo-container {
  width: 100%;
  max-width: 540px;
  height: 420px;
  background: var(--ink-dark-2); /* themed: was #111827 */
  border: 1px solid rgba(45, 212, 191, 0.15);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.demo-header {
  height: 36px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  position: relative;
  z-index: 10;
}

.demo-container .demo-label {
  font-family: var(--f-mono); /* themed: was ui-monospace, 'SF Mono', monospace */
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--teal); /* themed: was #2DD4BF */
  font-weight: 500;
}

/* Scoped to .demo-header to avoid clashing with any other .demo-dots elsewhere */
.demo-header .demo-dots {
  display: flex;
  gap: 6px;
  position: static;
  z-index: auto;
  transform: none;
}

.demo-header .demo-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
}

.demo-container .scene {
  position: absolute;
  inset: 36px 0 30px 0;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.demo-container .scene.active {
  opacity: 1;
}

.scene-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.scene-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.4s ease;
}

.scene-indicator span.active {
  background: var(--teal); /* themed: was #2DD4BF */
}

/* SCENE 1 — Monday board (always white; depicts real Monday UI) */
.monday-board {
  background: #FFFFFF; /* hardcoded: depicts Monday.com UI which is always white */
  border-radius: 8px;
  padding: 14px;
  width: 280px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.board-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 10px;
}

.demo-container .monday-icon {
  width: 18px;
  height: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.demo-container .monday-icon span {
  height: 3px;
  border-radius: 2px;
}

.demo-container .monday-icon span:nth-child(1) { background: #FF3D57; }
.demo-container .monday-icon span:nth-child(2) { background: #FDAB3D; }
.demo-container .monday-icon span:nth-child(3) { background: #00CA72; }

.board-title {
  font-size: 13px;
  font-weight: 600;
  color: #1F2937;
  font-family: var(--f-body);
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
}

.task-name {
  font-size: 12px;
  color: #374151;
  font-family: var(--f-body);
}

.status-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  color: #FFFFFF;
  transition: background 0.5s ease, transform 0.4s ease;
  min-width: 80px;
  text-align: center;
  font-family: var(--f-body);
}

.status-done    { background: #00CA72; }
.status-working { background: #FDAB3D; }
.status-stuck   { background: #E2445C; }

.task-row.updating {
  animation: rowPulse 0.6s ease 1.5s;
}

@keyframes rowPulse {
  0%, 100% { background: transparent; }
  50%      { background: rgba(45, 212, 191, 0.08); }
}

.slack-notif {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(120%, -50%);
  width: 220px;
  background: #1A1D29; /* hardcoded: depicts Slack dark UI which stays dark in real life */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s;
}

.slack-notif.show {
  transform: translate(0, -50%);
  opacity: 1;
}

.slack-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.slack-channel {
  font-size: 11px;
  font-weight: 600;
  color: #D1D5DB;
  font-family: var(--f-body);
}

.slack-time {
  font-size: 9px;
  color: #6B7280;
  margin-left: auto;
  font-family: var(--f-body);
}

.slack-message {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.slack-bot-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #FF3D57;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  font-family: var(--f-body);
}

.slack-content { flex: 1; }

.slack-bot-name {
  font-size: 11px;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 2px;
  font-family: var(--f-body);
}

.slack-text {
  font-size: 11px;
  color: #D1D5DB;
  line-height: 1.4;
  font-family: var(--f-body);
}

.slack-text .check {
  color: #00CA72;
  font-weight: 700;
}

/* SCENE 2 — Make.com */
.make-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.make-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.make-modules {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
}

.make-module {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #1F2937;
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.make-module.show {
  opacity: 1;
  transform: scale(1);
}

.make-module-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  font-family: var(--f-body);
}

.make-line {
  position: absolute;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  transform: translateY(-50%);
  width: 0;
  transition: width 0.6s ease;
}

.make-line.show { width: 50px; }
.make-line-1 { left: 70px; }
.make-line-2 { left: 190px; }

.make-data-packet {
  position: absolute;
  top: 50%;
  left: 35px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  transform: translateY(-50%);
  opacity: 0;
}

.make-data-packet.travel {
  opacity: 1;
  animation: dataTravel 3s ease;
}

@keyframes dataTravel {
  0%   { left: 35px;  opacity: 0; }
  10%  { opacity: 1; }
  33%  { left: 155px; }
  50%  { left: 155px; transform: translateY(-50%) scale(1.4); }
  66%  { left: 155px; transform: translateY(-50%) scale(1); }
  90%  { left: 275px; opacity: 1; }
  100% { left: 275px; opacity: 0; }
}

.icon-monday-mini {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
}

.icon-monday-mini span {
  height: 6px;
  border-radius: 3px;
}

.icon-monday-mini span:nth-child(1) { background: #FF3D57; }
.icon-monday-mini span:nth-child(2) { background: #FDAB3D; }
.icon-monday-mini span:nth-child(3) { background: #00CA72; }

.icon-filter {
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  align-items: center;
}

.icon-filter span {
  border-radius: 2px;
  background: linear-gradient(135deg, #6D00CC, #9747FF);
}

.icon-filter span:nth-child(1) { width: 26px; height: 4px; }
.icon-filter span:nth-child(2) { width: 18px; height: 4px; }
.icon-filter span:nth-child(3) { width: 10px; height: 4px; }

.icon-slack-mini {
  width: 30px;
  height: 30px;
  position: relative;
}

.slack-quad {
  position: absolute;
  border-radius: 3px;
}

.slack-q1 { top: 0;     left: 8px; width: 6px;  height: 14px; background: #36C5F0; }
.slack-q2 { top: 8px;   right: 0;  width: 14px; height: 6px;  background: #2EB67D; }
.slack-q3 { bottom: 0;  right: 8px; width: 6px;  height: 14px; background: #ECB22E; }
.slack-q4 { bottom: 8px; left: 0;  width: 14px; height: 6px;  background: #E01E5A; }

.make-module-success {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00CA72;
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--f-body);
}

.make-module-success.show {
  opacity: 1;
  transform: scale(1);
}

/* SCENE 3 — Invoice pipeline */
.invoice-pipeline {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.invoice-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
}

.invoice-flow {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

.pdf-icon {
  width: 56px;
  height: 70px;
  background: #F1F5F9; /* hardcoded: depicts a real PDF document */
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s, transform 0.5s ease;
}

.pdf-icon.show {
  opacity: 1;
  transform: translateX(0);
}

.pdf-icon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: #CBD5E1;
  border-bottom-left-radius: 4px;
}

.pdf-label {
  background: #EF4444;
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--f-body);
}

.invoice-arrow {
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.invoice-arrow.show { opacity: 1; }

.claude-card {
  width: 80px;
  height: 80px;
  background: rgba(217, 119, 87, 0.1);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s, transform 0.5s ease;
}

.claude-card.show {
  opacity: 1;
  transform: scale(1);
}

.claude-asterisk {
  width: 28px;
  height: 28px;
  color: #D97757;
}

.claude-card.pulse .claude-asterisk {
  animation: claudePulse 1s ease infinite;
}

@keyframes claudePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.claude-label {
  font-size: 9px;
  color: #D97757;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: var(--f-body);
}

.demo-container .monday-card {
  width: 130px;
  background: #FFFFFF; /* hardcoded: depicts Monday.com UI */
  border-radius: 6px;
  padding: 10px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s, transform 0.5s ease;
}

.demo-container .monday-card.show {
  opacity: 1;
  transform: translateX(0);
}

.monday-card-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 6px;
}

.monday-card-title {
  font-size: 10px;
  font-weight: 600;
  color: #1F2937;
  font-family: var(--f-body);
}

.monday-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 9px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s ease;
}

.monday-field.show {
  opacity: 1;
  transform: translateY(0);
}

.monday-field-label {
  color: #6B7280;
  font-family: var(--f-body);
}

.monday-field-value {
  color: #1F2937;
  font-weight: 600;
  font-family: var(--f-mono);
  font-size: 8.5px;
}

.monday-status-pending {
  background: #FDAB3D;
  color: white;
  font-size: 8px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--f-body);
}

/* prefers-reduced-motion: skip animations, show all scenes statically */
@media (prefers-reduced-motion: reduce) {
  .demo-container .scene { transition: none; opacity: 1 !important; position: static !important; }
  .demo-container .scene.active { opacity: 1; }
  .demo-container .pdf-icon,
  .demo-container .claude-card,
  .demo-container .monday-card,
  .demo-container .make-module,
  .demo-container .make-line,
  .demo-container .invoice-arrow,
  .demo-container .monday-field,
  .demo-container .slack-notif {
    opacity: 1 !important;
    transform: none !important;
  }
  .demo-container .make-data-packet { display: none; }
}

/* Responsive — fit narrower hero columns on tablet, hide entirely below 480px */
@media (max-width: 980px) {
  .demo-container { max-width: 100%; height: 380px; }
  .monday-board   { width: 240px; }
}
@media (max-width: 720px) {
  .demo-container { height: 360px; }
  .monday-board   { width: 220px; }
  .slack-notif    { width: 200px; right: 16px; }
}
@media (max-width: 480px) {
  /* Below 480px the demo is too cramped to read — let the hero text take full width. */
  .demo-container { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FLAGSHIP CARD — App Design (Tier 1 lead, custom build)
   Two-column desktop layout: content left, MoveM8 logo right.
   Stacks logo above content on tablet/mobile.
   ═══════════════════════════════════════════════════════════════ */
.flagship-card {
  position: relative;
  margin-bottom: 28px;
  padding: 40px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 12px 32px -10px rgba(0, 0, 0, 0.14);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
}
.flagship-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  pointer-events: none;
}

.flagship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.flagship-content { min-width: 0; }
.flagship-content > * + * { margin-top: 20px; }

.flagship-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.flagship-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.18);
}

.flagship-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -.01em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}

.flagship-lead {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.flagship-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}

.flagship-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: var(--teal);
  text-decoration: none;
  width: fit-content;
  transition: all 200ms ease;
}
.flagship-proof-pill:hover {
  background: rgba(45, 212, 191, 0.14);
  border-color: rgba(45, 212, 191, 0.45);
}

.flagship-included { margin-top: 28px; }
.flagship-included-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
  font-weight: 500;
}
.flagship-included-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.flagship-included-list li { margin-bottom: 6px; }
.flagship-included-list li::marker { color: var(--teal); }

.flagship-price {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flagship-price-label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--teal);
}
.flagship-price-value {
  font-size: 16px;
  color: var(--ink);
}

.flagship-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.link-secondary {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-secondary:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.flagship-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.movem8-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: transform 300ms ease;
}
.movem8-card:hover { transform: translateY(-4px); }
.movem8-card:hover .movem8-logo {
  box-shadow:
    0 24px 60px -12px rgba(139, 92, 246, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.movem8-logo {
  width: 220px;
  height: 220px;
  border-radius: 22%;
  display: block;
  box-shadow:
    0 18px 40px -10px rgba(59, 130, 246, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: box-shadow 300ms ease;
}
.movem8-caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 980px) {
  .flagship-card { padding: 32px; }
  .flagship-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .flagship-visual { order: -1; }
  .flagship-title { font-size: 28px; }
  .movem8-logo {
    width: 140px;
    height: 140px;
  }
}
@media (max-width: 640px) {
  .flagship-card { padding: 24px; border-radius: 14px; }
  .flagship-title { font-size: 24px; }
  .flagship-cta-row { gap: 16px; }
  .movem8-logo { width: 132px; height: 132px; }
}

/* Shared inline icon — defensive sizing so an unstyled inline SVG
   (e.g., CSS slow to load) can't expand to the viewport size. */
.icon-external {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS — homepage, Upwork verified reviews
   3-up grid on desktop; 4th card spans the row beneath.
   ═══════════════════════════════════════════════════════════════ */
.testimonials .sec-head { margin-bottom: 28px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 8px 24px -10px rgba(0, 0, 0, 0.10);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  transition: border-color .2s ease, transform .2s ease;
}
.testimonial-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.testimonial-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 32px;
}
.testimonial-card--wide .t-quote-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.testimonial-card--wide .t-meta-col {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.testimonial-stars {
  font-family: var(--f-mono);
  letter-spacing: .14em;
  color: var(--warning);
  font-size: 14px;
  line-height: 1;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
}

.testimonial-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-card--wide .testimonial-meta {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.testimonial-meta .project {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.testimonial-meta .engagement {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.testimonial-verified {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
}
.testimonial-verified::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

/* ── Testimonials stat strip ── */
.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.testimonial-stats .s { text-align: center; }
.testimonial-stats .n {
  display: block;
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.testimonial-stats .l {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

.upwork-link {
  text-align: center;
  margin: 24px 0 0;
}
.upwork-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.upwork-link a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

@media (max-width: 980px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-card--wide {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-card--wide .t-meta-col {
    width: auto;
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .testimonial-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-stats { grid-template-columns: 1fr; gap: 22px; }
  .testimonial-stats .n { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV — hamburger button + full-screen overlay
   Active at ≤980px. Desktop nav (.nav-links + audit CTA) hides at
   the same breakpoint. Single switch, no in-between tablet layout.
   ═══════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop, visible on tablet/mobile */
.nav-hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Responsive switch ─ single breakpoint at 980px */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right > .btn-primary { display: none; }
  .nav-hamburger { display: inline-block; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  background: var(--ink-dark);
  color: var(--paper-dark);
  opacity: 0;
  transform: translateY(-24px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s linear .3s;
}
.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .3s ease-out, transform .3s ease-out, visibility 0s linear 0s;
}

/* Subtle grain matching body::before so the overlay doesn't read as flat */
.mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  mix-blend-mode: overlay;
}

/* Header bar inside the overlay — same rhythm as the site nav */
.mobile-nav-header {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.mobile-nav-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-header .logo {
  color: var(--paper-dark);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -.005em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mobile-nav-header .logo .logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad);
  display: inline-block;
}
.mobile-nav-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-nav-controls .theme-toggle {
  /* Inherits base .theme-toggle styles; override ink colors for dark overlay */
  color: var(--paper-dark);
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
}
.mobile-nav-controls .theme-toggle svg { stroke: var(--paper-dark); }
.mobile-nav-close {
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--paper-dark);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto;
}

/* Stacked links — Rajdhani 32px, generous spacing */
.mobile-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 32px;
  position: relative;
}
.mobile-nav-links a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -.005em;
  color: var(--paper-dark);
  text-decoration: none;
  position: relative;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease-out, transform .35s ease-out, color .2s ease;
}
.mobile-nav.is-open .mobile-nav-links a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open .mobile-nav-links a:nth-child(1) { transition-delay: 60ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(2) { transition-delay: 120ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(3) { transition-delay: 180ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(4) { transition-delay: 240ms; }
.mobile-nav.is-open .mobile-nav-links a:nth-child(5) { transition-delay: 300ms; }
.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible,
.mobile-nav-links a.active {
  color: var(--teal);
}
.mobile-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* CTA block */
.mobile-nav-cta {
  padding: 0 32px 24px;
  flex-shrink: 0;
}
.mobile-nav-cta .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
}

/* Footer line — mono, low opacity */
.mobile-nav-footer {
  padding: 16px 32px 32px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.4);
  flex-shrink: 0;
}

/* Body scroll lock when overlay is open */
body.has-mobile-nav-open { overflow: hidden; }

/* Reduced motion — fade only, no slide, no stagger */
@media (prefers-reduced-motion: reduce) {
  .mobile-nav {
    transition: opacity .15s ease-out, visibility 0s linear .15s;
    transform: none;
  }
  .mobile-nav.is-open {
    transform: none;
    transition: opacity .15s ease-out, visibility 0s linear 0s;
  }
  .mobile-nav-links a {
    transition: opacity .15s ease, color .2s ease !important;
    transform: none !important;
  }
  .mobile-nav.is-open .mobile-nav-links a {
    transition-delay: 0ms !important;
  }
  .nav-hamburger .bar { transition: none; }
}

/* Hard hide hamburger above the breakpoint to prevent any leak */
@media (min-width: 981px) {
  .nav-hamburger { display: none !important; }
  .mobile-nav { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE GRID COLLAPSES — catch-all for 2-col grids that lacked a
   responsive override. Single breakpoint at 720px so tablets keep
   the desktop 2-col where they have room for it.
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .icp { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .final-inner { grid-template-columns: 1fr; gap: 32px; }
  .final-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

