/* Splytin marketing site — web UX (editorial / Apple / Instagram craft) */
:root {
  --ink: #2c201a;
  --muted: #7b6b61;
  --cream: #fff7f0;
  --surface: #fffcf9;
  --mint: #4db6a3;
  --mint-glow: rgba(77, 182, 163, 0.45);
  --mint-soft: rgba(77, 182, 163, 0.12);
  --coral: #e97059;
  --butter: #f6c85f;
  --cocoa: #765b4b;
  --border: #f0e8e1;
  --field: #e9ded6;
  --night: #1a1411;
  --night-2: #2a1e19;
  --night-surface: #3a2a22;
  --night-ink: #fff4ea;
  --night-muted: #d5c4b7;
  --nav-h: 56px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --apple: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 600 18px/1.55 Nunito, system-ui, sans-serif;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 200;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 900;
}

.skip-link:focus { top: 1rem; }

[hidden] { display: none !important; }

/* ——— Global nav ——— */
.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background 0.45s var(--apple), border-color 0.45s var(--apple);
}

.topnav--light {
  color: var(--night-ink);
}

.topnav--dark,
.topnav.is-solid {
  background: rgba(255, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}

.topnav.is-solid {
  border-bottom-color: var(--border);
}

.topnav--overlay {
  background: transparent;
}

.topnav--overlay.is-solid {
  background: rgba(26, 20, 17, 0.82);
  border-bottom-color: rgba(255, 244, 234, 0.08);
}

.topnav-inner {
  width: min(100%, var(--max));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topnav-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.topnav-logo img { height: 26px; width: auto; }

/* CSS wordmark — typed Splyt + in (never an image) */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: Nunito, system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark--sm { font-size: 1.2rem; }
.wordmark--lg { font-size: 1.75rem; }

.wordmark-a { color: var(--ink); }
.wordmark-b { color: var(--mint); }

.wordmark--light .wordmark-a { color: var(--night-ink); }
.wordmark--light .wordmark-b { color: var(--mint); }

.topnav--hero {
  background: transparent;
  border-bottom-color: transparent;
}

.topnav--hero.topnav--hero-active {
  color: var(--night-ink);
}

.topnav--hero.is-solid {
  background: rgba(255, 247, 240, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
  color: var(--ink);
}

.topnav--hero.is-solid .wordmark-a { color: var(--ink); }

.nav-toggle {
  display: none;
  justify-self: start;
  align-items: center;
  min-height: 44px;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.topnav-center {
  justify-self: center;
}

.topnav--pages .topnav-center {
  justify-self: start;
}

.topnav-menu {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topnav-menu a,
.topnav-legal > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: inherit;
  opacity: 0.88;
  cursor: pointer;
  list-style: none;
}

.topnav-menu a:hover,
.topnav-legal > summary:hover { opacity: 1; }

.topnav--overlay .topnav-menu a,
.topnav--overlay .topnav-legal > summary {
  color: var(--night-ink);
}

.topnav-legal { position: relative; }

.topnav-legal > summary::-webkit-details-marker { display: none; }

.topnav-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 0.45rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(26, 20, 17, 0.14);
}

.topnav-drop a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--cocoa);
  opacity: 1;
}

.topnav-drop a:hover {
  background: var(--cream);
  color: var(--ink);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--apple), box-shadow 0.25s var(--apple);
}

.btn-fill {
  background: var(--ink);
  color: var(--cream);
}

.btn-fill:hover {
  color: var(--cream);
  transform: scale(1.02);
  box-shadow: 0 14px 40px rgba(26, 20, 17, 0.22);
}

.btn-line {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
  opacity: 0.9;
}

.btn-line:hover { opacity: 1; }

.btn-light {
  background: var(--night-ink);
  color: var(--night);
}

.btn-ghost-light {
  background: rgba(255, 244, 234, 0.08);
  color: var(--night-ink);
  box-shadow: inset 0 0 0 1px rgba(255, 244, 234, 0.2);
}

.btn-wide { min-width: 200px; }
.btn-block { width: 100%; }

/* ——— Splash hero ——— */
.splash {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--nav-h) + 2rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vw, 5rem);
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}

.splash-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-bg::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 80%;
  top: -20%;
  left: -20%;
  background:
    radial-gradient(ellipse 50% 60% at 30% 20%, var(--mint-glow), transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(246, 200, 95, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(77, 182, 163, 0.15), transparent 70%);
  animation: mesh-drift 18s var(--ease) infinite alternate;
}

.splash-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes mesh-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-2%, 1%) scale(1.03); }
}

.splash-grid {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: end;
}

.splash-copy { max-width: 14ch; }

.splash-eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.splash h1 {
  margin: 0;
  font-size: clamp(3rem, 11vw, 5.75rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.splash-lead {
  max-width: 32ch;
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--night-muted);
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.splash-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--night-muted);
  max-width: 34ch;
}

.splash-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
}

.splash-orbit {
  position: absolute;
  inset: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--mint-glow), transparent 70%);
  filter: blur(40px);
  opacity: 0.6;
}

.splash-phone {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #4a3a32, #0d0a09);
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  animation: phone-float 5s var(--ease) infinite alternate;
}

@keyframes phone-float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

.splash-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--night-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.splash-scroll span {
  width: 1px;
  height: 32px;
  background: linear-gradient(var(--night-muted), transparent);
  animation: scroll-line 1.8s var(--ease) infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.35); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.splash-screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 9 / 17;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink);
}

.splash-cow {
  width: 72px;
  height: 72px;
  border-radius: 26px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 12px 32px rgba(44, 32, 26, 0.18);
}

.splash-screen .wordmark {
  margin-bottom: 1.25rem;
}

.splash-balance {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.splash-balance-sub {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ——— Statement band ——— */
.statement {
  padding: clamp(5rem, 14vw, 9rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  background: var(--cream);
}

.statement p {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.statement span {
  background: linear-gradient(120deg, var(--mint), #3a9a88);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ——— Bento ——— */
.bento-wrap {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3rem) clamp(5rem, 12vw, 8rem);
  background: var(--cream);
}

.bento-head {
  width: min(100%, var(--max));
  margin: 0 auto 2.5rem;
}

.bento-head h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.bento-head p {
  max-width: 40ch;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.bento {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.bento-cell {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 28px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.35s var(--apple), box-shadow 0.35s var(--apple);
}

@media (hover: hover) {
  .bento-cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(26, 20, 17, 0.1);
  }

  .bento-cell--night:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}

.bento-cell h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.bento-cell p {
  margin: 0.5rem 0 0;
  max-width: 28ch;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

.bento-cell--cream {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
}

.bento-cell--cream p { color: var(--muted); opacity: 1; }

.bento-cell--mint {
  background: linear-gradient(145deg, rgba(77, 182, 163, 0.28), rgba(77, 182, 163, 0.08));
  border: 1px solid rgba(77, 182, 163, 0.25);
  color: var(--ink);
}

.bento-cell--mint p { color: var(--cocoa); opacity: 1; }

.bento-cell--night {
  background: var(--night-2);
  color: var(--night-ink);
}

.bento-cell--night p { color: var(--night-muted); opacity: 1; }

.bento-cell--butter {
  background: linear-gradient(145deg, rgba(246, 200, 95, 0.35), rgba(246, 200, 95, 0.12));
  border: 1px solid rgba(246, 200, 95, 0.35);
  color: var(--ink);
}

.bento-cell--butter p { color: var(--cocoa); opacity: 1; }

.bento-num {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  opacity: 0.08;
}

/* ——— Scene (full bleed) ——— */
.scene {
  position: relative;
  padding: clamp(5rem, 12vw, 8rem) clamp(1.25rem, 5vw, 3rem);
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}

.scene-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.scene h2 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.scene-copy {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: var(--night-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.scene-tag {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 244, 234, 0.06);
  border: 1px solid rgba(255, 244, 234, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--night-muted);
}

/* ——— Use cases scroll ——— */
.uses {
  padding: clamp(4rem, 10vw, 6rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.uses-head {
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  width: min(100%, var(--max));
  margin: 0 auto 1.75rem;
}

.uses-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.uses-track {
  display: flex;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.uses-track::-webkit-scrollbar { display: none; }

.use-card {
  flex: 0 0 min(82vw, 320px);
  scroll-snap-align: start;
  padding: 2rem 1.75rem;
  border-radius: 24px;
  background: var(--cream);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--apple), box-shadow 0.35s var(--apple);
}

.use-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mint), transparent);
}

@media (hover: hover) {
  .use-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(26, 20, 17, 0.08);
  }
}

.use-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.use-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ——— Final CTA ——— */
.finale {
  padding: clamp(5rem, 14vw, 9rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--mint-soft), transparent 70%),
    var(--cream);
}

.finale h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.finale p {
  max-width: 36ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.finale-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ——— Footer ——— */
.site-footer {
  padding: 3rem clamp(1.25rem, 5vw, 3rem) 2.5rem;
  background: var(--night);
  color: var(--night-muted);
}

.footer-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.footer-logo .wordmark-a { color: var(--night-ink); }
.footer-logo .wordmark-b { color: var(--mint); }

.footer-tagline {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 28ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-ink);
}

.footer-col a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--night-muted);
}

.footer-col a:hover { color: var(--night-ink); }

.footer-base {
  width: min(100%, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 244, 234, 0.08);
  font-size: 0.68rem;
  line-height: 1.5;
}

/* ——— Inner pages ——— */
.page {
  padding: calc(var(--nav-h) + 3rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  min-height: 100svh;
}

.page-shell {
  width: min(100%, 640px);
  margin: 0 auto;
}

.page-shell--wide {
  width: min(100%, 720px);
}

.page-title {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page-intro {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.panel {
  margin-top: 2rem;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(26, 20, 17, 0.06);
}

.panel label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cocoa);
}

.panel-row {
  display: grid;
  gap: 0.65rem;
}

.panel input {
  width: 100%;
  min-height: 54px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--field);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel input:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-soft);
}

.field-help {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.field-error {
  margin: 0.55rem 0 0;
  color: var(--coral);
  font-size: 0.88rem;
  font-weight: 800;
}

.code-display {
  display: block;
  margin: 0 0 1rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: var(--mint-soft);
  font-size: clamp(1.6rem, 6vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.copy-status {
  min-height: 1.2rem;
  margin-top: 0.5rem;
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
}

.quiet-link {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.quiet-link a {
  color: var(--cocoa);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

.prose p { margin: 0.75rem 0 0; }

.prose ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.prose li { margin-top: 0.4rem; }

.prose a {
  color: var(--cocoa);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: var(--mint-soft);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.mt-sm { margin-top: 0.5rem; }
.mt-lg { margin-top: 1.5rem; }
.text-center { text-align: center; }

.code-hero {
  font-size: 1.5rem;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--apple), transform 0.8s var(--apple);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ——— Responsive ——— */
@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; }

  .topnav-inner {
    grid-template-columns: auto 1fr auto;
  }

  .topnav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(26, 20, 17, 0.12);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--apple), opacity 0.35s var(--apple);
  }

  .topnav--hero .topnav-menu {
    background: rgba(26, 20, 17, 0.96);
    border-bottom-color: rgba(255, 244, 234, 0.08);
  }

  .topnav--hero.is-solid .topnav-menu,
  .topnav--pages .topnav-menu {
    background: var(--surface);
  }

  .nav-open .topnav-menu {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .topnav-menu a,
  .topnav-legal > summary {
    justify-content: flex-start;
    padding: 0.65rem 0.75rem;
    font-size: 0.88rem;
  }

  .topnav-drop {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 0.75rem;
    background: transparent;
  }

  .topnav--hero .topnav-menu a,
  .topnav--hero .topnav-legal > summary {
    color: var(--night-ink);
  }

  .topnav--hero.is-solid .topnav-menu a,
  .topnav--hero.is-solid .topnav-legal > summary {
    color: var(--ink);
  }
}

@media (min-width: 720px) {
  .splash-grid {
    grid-template-columns: 1.05fr 0.85fr;
    align-items: center;
  }

  .splash-copy { max-width: none; }

  .splash-visual {
    justify-self: end;
    width: min(100%, 300px);
  }

  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-cell:nth-child(1) { grid-column: span 3; min-height: 240px; }
  .bento-cell:nth-child(2) { grid-column: span 3; min-height: 240px; }
  .bento-cell:nth-child(3) { grid-column: span 2; min-height: 220px; }
  .bento-cell:nth-child(4) { grid-column: span 2; min-height: 220px; }
  .bento-cell:nth-child(5) { grid-column: span 2; min-height: 220px; }

  .scene-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 960px) {
  .splash-visual { width: 320px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff4ea;
    --muted: #d5c4b7;
    --cream: #2a1e19;
    --surface: #3a2a22;
    --cocoa: #d5c4b7;
    --border: #5b463a;
    --field: #5b463a;
    --mint-soft: rgba(77, 182, 163, 0.16);
  }

  .topnav.is-solid {
    background: rgba(26, 20, 17, 0.88);
    border-bottom-color: var(--border);
  }

  .statement,
  .bento-wrap,
  .finale {
    background: var(--cream);
  }

  .uses {
    background: var(--surface);
  }

  .use-card {
    background: var(--night-2);
  }

  .btn-fill {
    background: var(--night-ink);
    color: var(--night);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash-bg::before { animation: none; }
  .splash-phone { animation: none; }
  .splash-scroll span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-fill:hover { transform: none; }
  .bento-cell:hover,
  .use-card:hover { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .topnav.is-solid { backdrop-filter: none; }
}
