/* Siling' landing - Quiet Ledger Financial Operating System */
:root {
  --mkoko: #0E4F43;
  --mkoko-pressed: #0A3B32;
  --mkoko-tint: #E3EEE9;
  --brass: #B8935A;
  --brass-light: #D8B788;
  --brass-tint: #F3ECE0;
  --ink: #14201C;
  --ink60: #4E5D57;
  --ink38: #8A968F;
  --surface: #F7F8F7;
  --card: #FFFFFF;
  --line: #E7EAE8;
  --sage: #4E9C7E;
  --r-card: 14px;
  --r-btn: 12px;
  --sora: "Sora", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, monospace;
  --max: 90rem;
  --max-editorial: 78rem;
  --max-read: 42rem;
  --pad: clamp(1.5rem, 5vw, 4rem);
  color-scheme: light;
}

[data-theme="dark"] {
  --mkoko: #3D8F7E;
  --mkoko-pressed: #2F7366;
  --mkoko-tint: #1A2E29;
  --brass: #C9A66A;
  --brass-tint: #2A2418;
  --ink: #EEF2F0;
  --ink60: #A8B5AF;
  --ink38: #7A8A83;
  --surface: #0F1815;
  --card: #1B2A25;
  --line: #2A3A34;
  --sage: #6BB894;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}
.wrap-editorial {
  width: min(100% - 2 * var(--pad), var(--max-editorial));
  margin-inline: auto;
}
.wrap-bleed {
  width: 100%;
  padding-inline: var(--pad);
}

.section {
  padding: clamp(5.5rem, 12vw, 10rem) 0;
  position: relative;
}
.section-immersive {
  padding: clamp(6.5rem, 14vw, 11rem) 0;
}

.kicker {
  font-family: var(--sora);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkoko);
  margin: 0 0 1.25rem;
}

.section h2,
.display {
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(2.35rem, 5.8vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink60);
  max-width: 38rem;
  margin: 0;
  line-height: 1.55;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sora);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--r-btn);
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--mkoko);
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 79, 67, 0.22);
}
.btn-primary:hover { background: var(--mkoko-pressed); }
.btn-ghost {
  background: transparent;
  color: var(--ink60);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}
.btn-ghost:hover { color: var(--ink); }

/* Nav */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 1.15rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo {
  font-family: var(--sora);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--mkoko);
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(10px);
  color: var(--ink60);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  color: var(--mkoko);
  border-color: var(--mkoko-tint);
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }
.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mkoko);
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--card); border-color: var(--mkoko-tint); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - 4.25rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 0;
  background:
    radial-gradient(ellipse 34% 46% at 74% 40%, rgba(14, 79, 67, 0.16), transparent 70%),
    radial-gradient(ellipse 24% 30% at 70% 50%, rgba(184, 147, 90, 0.09), transparent 74%),
    radial-gradient(ellipse 36% 30% at 6% 92%, rgba(184, 147, 90, 0.04), transparent 58%),
    linear-gradient(180deg, #F5F7F6 0%, var(--surface) 58%, #EEF1EF 100%);
}
[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 34% 46% at 74% 40%, rgba(61, 143, 126, 0.22), transparent 70%),
    radial-gradient(ellipse 24% 30% at 70% 50%, rgba(184, 147, 90, 0.1), transparent 74%),
    radial-gradient(ellipse 36% 30% at 6% 92%, rgba(184, 147, 90, 0.05), transparent 58%),
    linear-gradient(180deg, #0C1411 0%, var(--surface) 58%, #0A1210 100%);
}
.hero-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  gap: clamp(2.25rem, 5.5vw, 3.5rem);
  align-items: center;
  width: min(100% - 2 * var(--pad), var(--max-editorial));
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3.5rem, 9vw, 6rem);
}
.hero-copy {
  max-width: 36rem;
}
@media (min-width: 960px) {
  .hero-stage {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.15rem, 2.6vw, 2.35rem);
  }
}
.hero-brand {
  font-family: var(--sora);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--mkoko);
  margin: 0 0 0.28rem;
}
.hero-brand .logo-apos {
  color: var(--brass);
  font-weight: 700;
}
.hero h1 {
  font-family: var(--sora);
  font-weight: 700;
  font-size: clamp(2.05rem, 4.8vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.038em;
  margin: 0 0 1.35rem;
  color: var(--ink);
}
.hero-sub {
  margin: 0 0 1.35rem;
  font-family: var(--sora);
  font-weight: 500;
  font-size: clamp(1.18rem, 2.3vw, 1.4rem);
  line-height: 1.35;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 28ch;
}
.hero-support {
  margin: 0 0 2.25rem;
  font-size: clamp(0.98rem, 1.7vw, 1.06rem);
  line-height: 1.55;
  color: var(--ink60);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.7rem;
}
.hero-actions .btn-ghost {
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 42%, var(--ink60));
}
.hero-actions .btn-ghost:hover {
  color: var(--ink);
}
.hero-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  justify-self: center;
  isolation: isolate;
}
@media (min-width: 960px) {
  .hero-phone-wrap {
    justify-self: start;
    margin-inline-start: -0.35rem;
    /* Optical align with full headline block, not wordmark top */
    margin-top: 16px;
  }
}
.hero-phone {
  position: relative;
  z-index: 2;
  width: min(100%, 312px);
  animation: hero-phone-float 7s ease-in-out infinite;
}

/* Ambient focal field around phone - layered glow + money converging */
.hero-phone-ambient {
  position: absolute;
  inset: -26% -38% -18% -38%;
  z-index: 0;
  pointer-events: none;
}
.hero-ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-ambient-glow--core {
  inset: 18% 22% 22% 22%;
  background: radial-gradient(ellipse 54% 50% at 50% 40%, rgba(14, 79, 67, 0.4), transparent 66%);
  filter: blur(16px);
  animation: hero-glow-breathe 6.5s ease-in-out infinite;
}
.hero-ambient-glow--mid {
  inset: 4% 6% 10% 6%;
  background:
    radial-gradient(ellipse 58% 52% at 48% 38%, rgba(14, 79, 67, 0.18), transparent 72%),
    radial-gradient(ellipse 38% 34% at 54% 56%, rgba(184, 147, 90, 0.12), transparent 74%);
  filter: blur(34px);
  opacity: 0.92;
  animation: hero-glow-breathe 8.2s ease-in-out infinite reverse;
}
.hero-ambient-glow--haze {
  inset: -12% -16% -6% -16%;
  background: radial-gradient(ellipse 72% 64% at 50% 44%, rgba(14, 79, 67, 0.055), transparent 76%);
  filter: blur(58px);
  opacity: 0.85;
}
[data-theme="dark"] .hero-ambient-glow--core {
  background: radial-gradient(ellipse 54% 50% at 50% 40%, rgba(61, 143, 126, 0.46), transparent 66%);
}
[data-theme="dark"] .hero-ambient-glow--mid {
  background:
    radial-gradient(ellipse 58% 52% at 48% 38%, rgba(61, 143, 126, 0.22), transparent 72%),
    radial-gradient(ellipse 38% 34% at 54% 56%, rgba(184, 147, 90, 0.11), transparent 74%);
}
[data-theme="dark"] .hero-ambient-glow--haze {
  background: radial-gradient(ellipse 72% 64% at 50% 44%, rgba(61, 143, 126, 0.08), transparent 76%);
}
.hero-ambient-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mkoko);
  opacity: 0.28;
  animation: hero-particle-drift 8s ease-in-out infinite;
}
.hero-ambient-particle.p1 { top: 22%; left: 18%; width: 3px; height: 3px; animation-delay: 0s; }
.hero-ambient-particle.p2 { top: 28%; right: 16%; background: var(--brass); opacity: 0.34; animation-delay: -1.6s; }
.hero-ambient-particle.p3 { top: 62%; left: 12%; width: 4px; height: 4px; opacity: 0.2; animation-delay: -3.2s; }
.hero-ambient-particle.p4 { bottom: 26%; right: 20%; background: var(--brass); width: 3px; height: 3px; opacity: 0.28; animation-delay: -4.8s; }
.hero-ambient-particle.p5 { top: 48%; left: 28%; opacity: 0.22; animation-delay: -2.4s; }
.hero-ambient-flows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}
.hero-ambient-flows .flow-line {
  stroke: var(--mkoko);
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
  opacity: 0.475;
  stroke-dasharray: 5 14;
  animation: hero-flow-drift 10s ease-in-out infinite;
}
.hero-ambient-flows .f2 {
  stroke: var(--brass);
  opacity: 0.4;
  animation-delay: -3.4s;
  animation-duration: 11.5s;
}
.hero-ambient-flows .f3 {
  opacity: 0.3;
  animation-delay: -6.2s;
  animation-duration: 12.5s;
}

/* Hero phone mockup - Safe to spend first */
.hero-phone .ui-safe-hero {
  background: linear-gradient(160deg, #0E4F43 0%, #0A3B32 100%);
  color: #fff;
  border-radius: 14px;
  padding: 16px 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 12px 26px rgba(14, 79, 67, 0.26);
}
.hero-phone .ui-safe-label {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 236, 224, 0.88);
}
.hero-phone .ui-safe-amount {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 5px 0 6px;
  color: #fff;
}
.hero-phone .ui-safe-note {
  font-size: 9px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}
.hero-phone .ui-cycle {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.hero-phone .ui-cycle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hero-phone .ui-cycle-label {
  font-size: 9px;
  color: var(--ink38);
}
.hero-phone .ui-cycle-days {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2px;
}
.hero-phone .ui-cycle-days .mono {
  color: var(--brass);
  font-size: 18px;
}
.hero-phone .ui-cycle-ring {
  /* PD-007: open arc, never a filled donut. Gap ~90° at lower-left. */
  --cycle: 70;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
}
.hero-phone .ui-cycle-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    var(--mkoko) 0 calc(var(--cycle) * 0.75%),
    var(--mkoko-tint) 0 75%,
    transparent 75%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4.5px));
  pointer-events: none;
}
.hero-phone .ui-cycle-ring::before {
  content: none;
}
.hero-phone .ui-cycle-ring-label {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 7px;
  line-height: 1.15;
  color: var(--ink38);
}
.hero-phone .ui-cycle-ring-label strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.hero-phone .ui-cycle-bar {
  display: flex;
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mkoko-tint);
  margin: 8px 0 5px;
}
.hero-phone .ui-cycle-bar span {
  background: linear-gradient(90deg, var(--mkoko), var(--brass));
  border-radius: 4px;
}
.hero-phone .ui-cycle-meta {
  font-size: 8px;
  color: var(--sage);
  font-weight: 500;
}
.hero-phone .ui-insight {
  background: color-mix(in srgb, var(--mkoko-tint) 70%, var(--card));
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}
.hero-phone .ui-insight-kicker {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mkoko);
  margin-bottom: 3px;
}
.hero-phone .ui-insight-text {
  font-size: 9px;
  line-height: 1.35;
  color: var(--ink60);
}

/* Transform-only: never park critical hero copy at opacity:0 via
   animation-fill-mode:both — embedded browsers can freeze on the
   "from" frame and leave a blank-looking page (nav + glow only). */
@keyframes fade-up {
  from {
    transform: translateY(14px);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes hero-glow-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes hero-particle-drift {
  0%, 100% { transform: translateY(0); opacity: 0.18; }
  50% { transform: translateY(-10px); opacity: 0.38; }
}
@keyframes hero-flow-drift {
  0%, 100% { stroke-dashoffset: 28; opacity: 0.25; }
  45%, 55% { stroke-dashoffset: 0; opacity: 0.525; }
}
@keyframes hero-phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-copy > * {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.26s; }
.hero-phone-wrap {
  animation: fade-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}
/* ---------- MANIFESTO ---------- */
.manifesto {
  padding: clamp(9rem, 20vw, 15rem) var(--pad);
  text-align: left;
  background: var(--card);
  border-block: 1px solid var(--line);
}
.manifesto.manifesto-center { text-align: center; }
.manifesto.manifesto-dark {
  background: var(--mkoko);
  border-color: transparent;
  color: #fff;
}
.manifesto.manifesto-dark .manifesto-line { color: #fff; }
.manifesto.manifesto-dark .manifesto-aside { color: rgba(255, 255, 255, 0.65); }
.manifesto-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}
.manifesto-line {
  font-family: var(--sora);
  font-weight: 700;
  font-size: clamp(2.75rem, 8.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  max-width: 16ch;
  margin: 0;
  color: var(--ink);
}
.manifesto.manifesto-center .manifesto-line {
  margin-inline: auto;
  max-width: 18ch;
}
.manifesto-aside {
  margin: 2.5rem 0 0;
  max-width: 26rem;
  color: var(--ink60);
  font-size: 1.05rem;
  line-height: 1.45;
}
.manifesto.manifesto-center .manifesto-aside {
  margin-inline: auto;
}
.manifesto-brand {
  font-family: var(--sora);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.8vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--ink);
}

/* ---------- DEFINE (What is Siling'?) ---------- */
.define {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, color-mix(in srgb, var(--mkoko) 8%, transparent), transparent 65%),
    var(--surface);
  border-block: 1px solid var(--line);
  /* Optical center: nudge category block ~24px above geometric mid */
  padding-top: calc(clamp(5.5rem, 12vw, 10rem) - 1.5rem);
  padding-bottom: calc(clamp(5.5rem, 12vw, 10rem) + 1.5rem);
}
.define-inner {
  max-width: 38rem;
}
.define .define-inner h2,
.define-inner h2 {
  /* Hold "A Financial Operating" as one line for the FOS break experiment */
  max-width: 22ch;
}
.define-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink60);
  margin: 0;
  max-width: 34rem;
}

/* ---------- PROBLEM ---------- */
.problem {
  background: var(--surface);
}
.problem-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
}
@media (min-width: 880px) {
  .problem-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: clamp(3.5rem, 8vw, 7rem);
    align-items: end;
  }
}
.problem-visual {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.problem h2 {
  font-size: clamp(2.23rem, 5.5vw, 3.8rem);
}
.problem-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.4rem;
  max-width: 38ch;
}
.problem-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  align-items: start;
  color: var(--ink60);
  font-size: 0.98rem;
  line-height: 1.55;
  padding: 0;
  border: none;
  max-width: none;
}
.problem-point-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: color-mix(in srgb, var(--brass) 92%, var(--ink));
  padding-top: 0.28rem;
  position: relative;
}
/* Thin brass tick under the editorial index */
.problem-point-num::after {
  content: "";
  display: block;
  width: 0.7rem;
  height: 1px;
  margin: 0.55rem auto 0;
  background: color-mix(in srgb, var(--brass) 72%, transparent);
}
.problem-point-body {
  min-width: 0;
}
.problem-points strong {
  display: block;
  font-family: var(--sora);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
  font-size: 1.04rem;
  letter-spacing: -0.022em;
  line-height: 1.3;
}
.problem-points li:first-child strong {
  font-size: 1.12rem;
  letter-spacing: -0.028em;
}
.problem-points li:nth-child(even) strong {
  font-weight: 500;
}
.problem-point-body p {
  margin: 0;
  max-width: 34ch;
}
.problem-points li:last-child .problem-point-body p {
  color: color-mix(in srgb, var(--ink60) 90%, var(--ink38));
}
.pull-line {
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  letter-spacing: -0.025em;
  color: var(--mkoko);
  margin: 2rem 0 0;
  max-width: 22ch;
  line-height: 1.3;
}

/* Cash flow cycle viz - iconic mid-cycle fog */
.cycle-chaos {
  width: 100%;
  max-width: 38ch;
  margin: 0;
  padding: 0;
}
.cycle-chaos-kicker {
  font-family: var(--sora);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mkoko);
  margin: 0 0 0.7rem;
}
.cycle-chaos-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cycle-chaos-caption {
  margin: 1.15rem 0 0;
  padding: 0 0 0 0.85rem;
  border-left: 1.5px solid color-mix(in srgb, var(--brass) 48%, transparent);
}
.cycle-chaos-title {
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  max-width: 28ch;
}
.cycle-chaos-sub {
  font-size: 0.92rem;
  color: var(--ink38);
  margin: 0;
  line-height: 1.5;
  max-width: 34ch;
}

.cycle-track {
  stroke: color-mix(in srgb, var(--line) 55%, transparent);
}
.cycle-dot-in { fill: var(--mkoko); }
.cycle-dot-in-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--mkoko) 32%, transparent);
  stroke-width: 1.25;
}
.cycle-dot-next {
  fill: color-mix(in srgb, var(--ink38) 38%, transparent);
}
.cycle-label {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--ink60);
}
.cycle-label-fog {
  fill: color-mix(in srgb, var(--ink60) 78%, var(--ink));
  fill-opacity: 0.88;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.cycle-label-in { font-weight: 500; fill: var(--ink60); }
.cycle-label-next {
  fill: color-mix(in srgb, var(--ink60) 78%, var(--ink38));
}

.problem-visual .cycle-chaos + .problem-points {
  margin-top: 2.85rem;
}

@media (max-width: 879px) {
  .cycle-chaos {
    width: 100%;
    max-width: 38ch;
    margin-inline: auto;
  }
  .cycle-chaos-caption {
    text-align: left;
    max-width: 34ch;
    margin-inline: auto;
  }
  .cycle-chaos-kicker {
    text-align: center;
  }
  .problem-points {
    margin-top: 2.15rem;
    gap: 2rem;
    margin-inline: auto;
  }
}

/* ---------- DEMO ---------- */
.demo {
  background: var(--card);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.demo-layout {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .demo-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 300px);
    gap: clamp(3rem, 7vw, 6rem);
  }
}
.demo-steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.demo-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink38);
  transition: color 0.35s ease;
  cursor: pointer;
}
.demo-step:last-child { border-bottom: none; }
.demo-step .n {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
}
.demo-step .t {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.demo-step .d {
  grid-column: 2;
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 0.2rem;
}
.demo-step.is-active { color: var(--ink); }
.demo-step.is-active .n { color: var(--mkoko); }

/* Phone - used sparingly */
.phone {
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.2;
  background: #0B1613;
  border-radius: 36px;
  padding: 10px;
  box-shadow:
    0 0 0 1px rgba(20, 32, 28, 0.12),
    0 28px 60px rgba(20, 32, 28, 0.18);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #0B1613;
  border-radius: 20px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  background: #F7F8F7;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  position: relative;
  --mkoko: #0E4F43;
  --mkoko-tint: #E3EEE9;
  --brass: #B8935A;
  --brass-tint: #F3ECE0;
  --ink: #14201C;
  --ink60: #4E5D57;
  --ink38: #8A968F;
  --surface: #F7F8F7;
  --card: #FFFFFF;
  --line: #E7EAE8;
  --sage: #4E9C7E;
  color: var(--ink);
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px 4px;
  font-family: var(--sora);
  font-weight: 600;
  font-size: 10px;
  color: var(--ink);
}
.phone-body {
  flex: 1;
  padding: 4px 12px 12px;
  overflow: hidden;
}
.phone-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 2px;
  margin: 4px 8px 8px;
  padding: 6px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  text-align: center;
  font-size: 8px;
  color: var(--ink38);
  box-shadow: 0 4px 12px rgba(20, 32, 28, 0.08);
}
.phone-nav .plan {
  width: 34px;
  height: 34px;
  margin: -14px auto 2px;
  border-radius: 50%;
  background: var(--mkoko);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 6px 14px rgba(14, 79, 67, 0.35);
}
.phone-nav .active { color: var(--mkoko); font-weight: 600; }
.phone-nav > div:not(.active) { color: var(--ink60); }
.phone-nav > div.active { color: var(--mkoko); }

.ui-hi { font-family: var(--sora); font-weight: 600; font-size: 13px; margin: 4px 0 10px; }
.ui-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.ui-muted { color: var(--ink38); font-size: 9px; }
.ui-amount {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 2px 0 6px;
}
.ui-bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--mkoko-tint);
  margin: 8px 0 4px;
}
.ui-bar span { background: var(--mkoko); }
.ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.ui-row:last-child { border-bottom: none; }
.ui-chip {
  display: inline-block;
  background: var(--brass-tint);
  color: var(--brass);
  font-weight: 600;
  font-size: 9px;
  padding: 5px 8px;
  border-radius: 8px;
}
.ui-brass {
  background: linear-gradient(135deg, #C4A06A, var(--brass));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 8px;
}
.sms-toast {
  margin: 8px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(20, 32, 28, 0.08);
}
.sms-toast .from {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 10px;
  color: var(--mkoko);
}
.sms-toast .body {
  margin-top: 4px;
  font-size: 9px;
  color: var(--ink60);
  line-height: 1.35;
}

.demo-phone-wrap {
  justify-self: center;
  width: min(100%, 260px);
}
.demo-phone-wrap .phone { width: 100%; }
.demo-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.demo-frame.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- JOURNEY ---------- */
.journey {
  background: var(--surface);
}
.journey-track {
  margin-top: 3.5rem;
  display: grid;
  gap: 0;
  counter-reset: journey;
}
@media (min-width: 900px) {
  .journey-track {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }
}
.journey-step {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  counter-increment: journey;
  position: relative;
}
@media (min-width: 900px) {
  .journey-step {
    border-top: none;
    border-left: 1px solid var(--line);
    padding: 0 1.35rem;
  }
  .journey-step:first-child {
    border-left: none;
    padding-left: 0;
  }
}
.journey-step::before {
  content: counter(journey, decimal-leading-zero);
  font-family: var(--mono);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mkoko);
  display: block;
  margin-bottom: 1.1rem;
}
.journey-step h3 {
  font-family: var(--sora);
  font-size: clamp(1.05rem, 1.4vw, 1.15rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.journey-step p {
  margin: 0;
  color: var(--ink60);
  font-size: 0.98rem;
}

/* ---------- FOS SYSTEM STRIP ---------- */
.fos-system {
  background: #0B1613;
  color: #EEF2F0;
  overflow: hidden;
}
.fos-system .kicker { color: var(--brass); }
.fos-system h2 { color: #fff; max-width: 18ch; }
.fos-system .lead { color: rgba(238, 242, 240, 0.68); }
.fos-rail {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .fos-rail {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
  }
}
.fos-node {
  padding: 1.15rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.fos-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(184, 147, 90, 0.7), transparent);
  opacity: 0;
  animation: node-scan 7s ease-in-out infinite;
}
.fos-node:nth-child(2)::before { animation-delay: 0.4s; }
.fos-node:nth-child(3)::before { animation-delay: 0.8s; }
.fos-node:nth-child(4)::before { animation-delay: 1.2s; }
.fos-node:nth-child(5)::before { animation-delay: 1.6s; }
.fos-node:nth-child(6)::before { animation-delay: 2s; }
.fos-node:nth-child(7)::before { animation-delay: 2.4s; }
.fos-node .n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(238, 242, 240, 0.4);
  margin-bottom: auto;
}
.fos-node h3 {
  font-family: var(--sora);
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0.75rem 0 0.35rem;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
}
.fos-node p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(238, 242, 240, 0.55);
  line-height: 1.4;
}
@keyframes node-scan {
  0%, 100% { opacity: 0; }
  40%, 55% { opacity: 1; }
}

/* ---------- PRODUCT SURFACES ---------- */
.surfaces {
  background: var(--surface);
}
.surface-stack {
  margin-top: 3.5rem;
  display: grid;
  gap: clamp(4rem, 10vw, 6.5rem);
}
.surface-row {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.surface-row--teach {
  align-items: start;
}
@media (min-width: 900px) {
  .surface-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6.5rem);
  }
  .surface-row.is-flip .surface-copy { order: 2; }
  .surface-row.is-flip .surface-viz { order: 1; }
  .surface-row--teach .surface-viz--teach {
    padding-top: 0.15rem;
  }
}
.surface-metric {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--mkoko);
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}
.surface-copy h3 {
  font-family: var(--sora);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 16ch;
  line-height: 1.15;
}
.surface-copy p {
  margin: 0;
  color: var(--ink60);
  max-width: 34rem;
  font-size: 1.08rem;
}
.surface-viz {
  min-height: 280px;
  display: grid;
  place-items: center;
}
.surface-viz--teach {
  min-height: 0;
  place-items: start stretch;
  width: 100%;
}
.surface-viz svg,
.viz-panel {
  width: 100%;
  max-width: 440px;
}

/* Safe-to-spend teaching cascade: money in → commitments → goals → remaining */
.safe-cascade {
  margin: 0;
  width: 100%;
  max-width: 420px;
}
.safe-cascade-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.safe-cascade-step {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding-left: 1.15rem;
}
.safe-cascade-rail {
  position: absolute;
  left: 0.28rem;
  top: 1.35rem;
  bottom: -1.15rem;
  width: 1px;
  background: color-mix(in srgb, var(--mkoko) 20%, var(--line));
}
.safe-cascade-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mkoko-tint);
  border: 1.5px solid color-mix(in srgb, var(--mkoko) 45%, var(--line));
  box-sizing: border-box;
}
.safe-cascade-step.is-in::before {
  background: color-mix(in srgb, var(--mkoko) 55%, var(--mkoko-tint));
  border-color: var(--mkoko);
}
.safe-cascade-step.is-out::before {
  background: color-mix(in srgb, var(--brass) 35%, var(--brass-tint));
  border-color: color-mix(in srgb, var(--brass) 70%, var(--line));
}
.safe-cascade-step.is-result .safe-cascade-rail {
  display: none;
}
.safe-cascade-step.is-result::before {
  top: 0.55rem;
  background: var(--mkoko);
  border-color: var(--mkoko);
}
.safe-cascade-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.safe-cascade-label {
  font-family: var(--sora);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  color: var(--ink60);
}
.safe-cascade-amt {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink38);
  font-variant-numeric: tabular-nums;
}
.safe-cascade-bar {
  display: block;
  height: 6px;
  width: var(--w, 100%);
  max-width: 100%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--mkoko-tint) 88%, var(--line));
}
.safe-cascade-step.is-in .safe-cascade-label {
  color: var(--ink);
  font-weight: 600;
}
.safe-cascade-step.is-in .safe-cascade-amt {
  color: var(--ink);
  font-weight: 600;
}
.safe-cascade-step.is-in .safe-cascade-bar {
  background: color-mix(in srgb, var(--mkoko) 42%, var(--mkoko-tint));
}
.safe-cascade-step.is-out .safe-cascade-bar {
  background: color-mix(in srgb, var(--brass) 48%, var(--brass-tint));
}
.safe-cascade-step.is-result {
  margin-top: 0.25rem;
  padding-top: 0.15rem;
}
.safe-cascade-step.is-result .safe-cascade-label {
  font-weight: 600;
  color: var(--mkoko);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.safe-cascade-step.is-result .safe-cascade-amt {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
}
.safe-cascade-step.is-result .safe-cascade-bar {
  height: 8px;
  background: var(--mkoko);
}
.safe-cascade-note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink38);
  padding-left: 1.15rem;
}
[data-theme="dark"] .safe-cascade-rail {
  background: color-mix(in srgb, var(--mkoko) 32%, var(--line));
}
[data-theme="dark"] .safe-cascade-step::before {
  background: var(--card);
  border-color: color-mix(in srgb, var(--mkoko) 50%, var(--line));
}
[data-theme="dark"] .safe-cascade-step.is-in::before,
[data-theme="dark"] .safe-cascade-step.is-result::before {
  background: var(--mkoko);
  border-color: var(--mkoko);
}
[data-theme="dark"] .safe-cascade-step.is-out::before {
  background: color-mix(in srgb, var(--brass) 40%, var(--brass-tint));
  border-color: var(--brass);
}
.viz-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.4rem;
}
.viz-panel .viz-title {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}
.ledger-rows { display: grid; gap: 0; }
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.ledger-row:first-child { border-top: none; padding-top: 0; }
.ledger-row .cat {
  display: block;
  font-size: 0.78rem;
  color: var(--ink38);
  margin-top: 0.15rem;
}
.ledger-row .amt {
  font-family: var(--mono);
  font-weight: 500;
  align-self: center;
}
.budget-bars { display: grid; gap: 1.1rem; }
.budget-row .meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}
.budget-row .meta span:last-child {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink60);
}
.track {
  height: 8px;
  border-radius: 999px;
  background: var(--mkoko-tint);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mkoko);
}
.track > i.is-over { background: #8B5A3C; }
.alloc-stack { display: grid; gap: 0.55rem; }
.alloc-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-family: var(--sora);
  font-weight: 600;
  font-size: 0.92rem;
}
.alloc-bar span:last-child { font-family: var(--mono); font-weight: 500; }
.alloc-bar.is-rent { background: var(--mkoko-tint); color: var(--mkoko); }
.alloc-bar.is-commit { background: color-mix(in srgb, var(--mkoko-tint) 65%, var(--card)); color: var(--ink); }
.alloc-bar.is-goals { background: var(--brass-tint); color: #8A6A3A; }
.alloc-bar.is-live { background: var(--mkoko); color: #fff; }

/* ---------- PRIVACY PIPELINE ---------- */
.privacy {
  background:
    linear-gradient(180deg, var(--mkoko-tint) 0%, var(--surface) 100%);
}
[data-theme="dark"] .privacy {
  background: linear-gradient(180deg, #15241F 0%, var(--surface) 100%);
}
.privacy-flow {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .privacy-flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.privacy-node {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 168px;
}
.privacy-node .icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.35rem;
  color: var(--mkoko);
  flex-shrink: 0;
}
.privacy-node h3 {
  font-family: var(--sora);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}
.privacy-node p {
  margin: 0;
  color: var(--ink60);
  font-size: 0.95rem;
  line-height: 1.45;
}
.privacy-note {
  margin: 2.75rem 0 0;
  font-family: var(--sora);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--ink);
}
.privacy-links {
  margin: 2rem 0 0;
  font-size: 0.95rem;
  color: var(--ink60);
}
.privacy-links a {
  color: var(--mkoko);
  font-weight: 600;
}
.pillars {
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.pillar h3 {
  font-family: var(--sora);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.pillar p {
  margin: 0;
  color: var(--ink60);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- WORKS WITH - interpretation narrative ---------- */
.works {
  background: var(--card);
  border-block: 1px solid var(--line);
}
.works-grid {
  display: grid;
  gap: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 900px) {
  .works-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(3.5rem, 8vw, 7rem);
    align-items: start;
  }
}
.works-intro h2 {
  max-width: 16ch;
}
.works-intro .lead {
  max-width: 32rem;
}
.compat-disclaimer {
  margin: clamp(2.25rem, 5vw, 3rem) 0 0;
  max-width: 40rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink38);
}
.compat-disclaimer a {
  color: var(--mkoko);
  font-weight: 600;
}
@media (min-width: 900px) {
  .compat-disclaimer { max-width: 34rem; }
}

/* Signal → meaning cascade (fills the former empty right) */
.works-flow-wrap {
  min-width: 0;
}
.works-flow-head {
  display: none;
}
.works-cap {
  font-family: var(--sora);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink38);
}
.works-cap-insight { color: var(--mkoko); }
.works-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
/* One continuous rail: clarity → mid → resolve */
.works-flow::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.55rem;
  bottom: 1.1rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--mkoko) 42%, var(--line)),
    color-mix(in srgb, var(--mkoko) 12%, var(--line)) 42%,
    color-mix(in srgb, var(--mkoko) 12%, var(--line)) 58%,
    color-mix(in srgb, var(--mkoko) 42%, var(--line))
  );
}
.works-beat {
  display: grid;
  gap: 0.7rem;
  padding: 1.35rem 0 1.35rem 1.35rem;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}
.works-beat:first-child { padding-top: 0.2rem; }
.works-beat:last-child {
  border-bottom: none;
  padding-bottom: 0.15rem;
}
/* Mid nodes quiet; first/last solid mkoko bookend the cycle */
.works-beat::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--card);
  border: 1.5px solid color-mix(in srgb, var(--mkoko) 28%, var(--line));
  box-sizing: border-box;
  z-index: 1;
}
.works-beat:first-child::after {
  top: 0.55rem;
  background: var(--mkoko);
  border-color: var(--mkoko);
}
.works-beat:last-child::after {
  background: var(--mkoko);
  border-color: var(--mkoko);
}
.works-signal,
.works-insight {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.works-signal {
  font-family: var(--sans);
  color: var(--ink60);
  max-width: 28ch;
}
.works-insight strong {
  font-family: var(--sora);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.022em;
  font-size: 1.08rem;
  line-height: 1.3;
}
/* Soft brass fade - editorial, not a chevron */
.works-arrow {
  width: 1.25rem;
  height: 1px;
  margin: 0.1rem 0;
  background: linear-gradient(
    to right,
    transparent,
    color-mix(in srgb, var(--brass) 48%, var(--line)) 35%,
    color-mix(in srgb, var(--brass) 48%, var(--line)) 65%,
    transparent
  );
}
@media (min-width: 560px) {
  .works-flow-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
    column-gap: 1.15rem;
    padding: 0 0 0.85rem 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.15rem;
  }
  .works-flow-head .works-cap:last-child {
    grid-column: 3;
  }
  .works-beat {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr);
    column-gap: 1.15rem;
    align-items: center;
    padding-left: 1.5rem;
  }
  .works-arrow {
    width: 1.5rem;
    margin: 0;
  }
  .works-beat::after { top: 50%; transform: translateY(-50%); }
  .works-beat:first-child::after { top: 50%; }
}
@media (max-width: 559px) {
  .works-arrow { display: none; }
  .works-beat {
    gap: 0.35rem;
    padding: 1.2rem 0 1.2rem 1.35rem;
  }
  .works-beat::after { top: 1.35rem; }
  .works-beat:first-child::after { top: 0.45rem; }
  .works-flow::before {
    top: 0.45rem;
    bottom: 1rem;
  }
  .works-signal { font-size: 0.95rem; }
  .works-insight strong { font-size: 1.02rem; }
  /* One label for mobile, then the cascade */
  .works-flow-wrap::before {
    content: "What arrives becomes";
    display: block;
    font-family: var(--sora);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mkoko);
    margin: 0 0 0.85rem 1.35rem;
  }
}
[data-theme="dark"] .works-flow::before {
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--mkoko) 48%, var(--line)),
    color-mix(in srgb, var(--mkoko) 18%, var(--line)) 42%,
    color-mix(in srgb, var(--mkoko) 18%, var(--line)) 58%,
    color-mix(in srgb, var(--mkoko) 48%, var(--line))
  );
}
[data-theme="dark"] .works-beat::after {
  background: var(--card);
  border-color: color-mix(in srgb, var(--mkoko) 36%, var(--line));
}
[data-theme="dark"] .works-beat:first-child::after,
[data-theme="dark"] .works-beat:last-child::after {
  background: var(--mkoko);
  border-color: var(--mkoko);
}

/* ---------- FAQ ---------- */
.faq-section { background: var(--surface); }
.faq { max-width: 42rem; margin-top: 2.75rem; }
details {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  font-family: var(--sora);
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.02em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--mkoko);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p {
  margin: 0.9rem 0 0.25rem;
  color: var(--ink60);
  font-size: 1.02rem;
}

/* ---------- FINAL CTA ---------- */
.final {
  background: var(--mkoko);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 92% 15%, rgba(184, 147, 90, 0.28), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}
.final .wrap { position: relative; z-index: 1; }
.final .kicker { color: var(--brass); }
.final h2 {
  color: #fff;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
}
.final .lead {
  color: rgba(255, 255, 255, 0.7);
  max-width: 34rem;
  margin: 0;
}
.final-belief {
  font-family: var(--sora);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: rgba(255, 250, 242, 0.92);
  max-width: 30rem;
  margin: 1.25rem 0 0;
}
.waitlist {
  margin-top: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}
@media (min-width: 560px) {
  .waitlist {
    flex-direction: row;
    align-items: stretch;
  }
}
.waitlist input {
  flex: 1.35 1 16rem;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: var(--r-btn);
  padding: 0.95rem 1.05rem;
  outline: none;
}
.waitlist input::placeholder { color: rgba(255, 255, 255, 0.45); }
.waitlist input:focus { border-color: var(--brass); }
.waitlist .btn-primary {
  background: var(--brass);
  color: #14201C;
  box-shadow: none;
  white-space: nowrap;
}
.waitlist .btn-primary:hover { background: #c9a46a; }
.waitlist-note {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.waitlist-ok {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1.05rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--r-btn);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}
.waitlist-ok.show { display: block; }

/* Footer */
footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--sora);
  font-weight: 700;
  color: var(--mkoko);
  font-size: 0.95rem;
}
.footer-brand.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.footer-brand .logo-mark {
  width: 1.45rem;
  height: 1.45rem;
}
.footer-brand .logo-wordmark {
  letter-spacing: -0.3px;
}
.footer-meta { color: var(--ink38); font-size: 0.85rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
  font-size: 0.9rem;
  color: var(--ink60);
}
.footer-links a:hover { color: var(--mkoko); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink60);
  display: grid;
  place-items: center;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.social-link:hover {
  color: var(--mkoko);
  border-color: var(--mkoko);
}
.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

[data-theme="dark"] .btn-primary {
  background: var(--mkoko);
  color: #0F1815;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .fos-center {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-copy > *,
  .hero-phone-wrap {
    opacity: 1 !important;
    transform: none !important;
  }
  .demo-frame { opacity: 0; }
  .demo-frame.is-active { opacity: 1; transform: none; }
}

/* Cookie consent (kept in landing.css so legal.css --max:720px never compresses the page) */
.cookie-banner {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: var(--pad);
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  padding: 1.1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(20, 32, 28, 0.12);
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--ink60);
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(15, 24, 21, 0.45);
}
.cookie-modal.is-open { display: flex; }
.cookie-modal-panel {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}
.cookie-modal-panel h2 { margin-top: 0; }
.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option p { margin: 0.25rem 0 0; font-size: 0.88rem; }

[data-theme="dark"] .cycle-chaos text,
[data-theme="dark"] .surface-viz text {
  fill: var(--ink60);
}
[data-theme="dark"] .cycle-label-next {
  fill: color-mix(in srgb, var(--ink60) 88%, var(--ink38));
}
[data-theme="dark"] .cycle-chaos path[stroke="#0E4F43"] {
  stroke: var(--mkoko);
}
