:root {
  --ink: #101715;
  --ink-soft: #1a2421;
  --paper: #f4f5f1;
  --white: #ffffff;
  --line: rgba(16, 23, 21, 0.14);
  --muted: #66716d;
  --teal: #168f87;
  --teal-bright: #35b8aa;
  --coral: #ff7058;
  --sky: #76b7ff;
  --yellow: #ffcc66;
  --shadow: 0 28px 80px rgba(11, 24, 20, 0.18);
  --shell: min(1240px, calc(100% - 56px));
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: clip;
}

body,
button,
input {
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 50%;
  width: var(--shell);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--white);
  transform: translateX(-50%);
  transition: color 180ms ease, background 180ms ease, width 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  top: 10px;
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--white);
  background: rgba(16, 23, 21, 0.9);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 9px 9px 9px 3px;
  background: var(--teal-bright);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  left: 7px;
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
}

.brand-mark::before {
  top: 7px;
  transform: rotate(7deg);
}

.brand-mark span {
  top: 14px;
  width: 13px;
  transform: rotate(-5deg);
}

.brand-mark::after {
  top: 21px;
  width: 8px;
  transform: rotate(8deg);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-header nav a,
.header-cta {
  font-size: 0.86rem;
  font-weight: 680;
  text-decoration: none;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--white);
}

.header-cta {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(920px, 96svh);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  left: 29%;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 34% center;
  filter: brightness(0.48) saturate(0.82);
  transform: scale(1.02);
}

.hero-scrim {
  right: 35%;
  background: rgba(16, 23, 21, 0.82);
  box-shadow: 120px 0 150px rgba(16, 23, 21, 0.85);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  min-height: min(820px, calc(96svh - 100px));
  margin: 0 auto;
  padding: 150px 0 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.eyebrow-light {
  color: var(--teal-bright);
}

.hero h1 {
  margin: 0 0 18px;
  color: var(--teal-bright);
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-statement,
h2,
.final-cta h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-statement {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4.4rem, 8.7vw, 8.5rem);
  line-height: 0.88;
}

.hero-lede {
  max-width: 590px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-bright {
  color: var(--ink);
  background: var(--teal-bright);
}

.button-bright:hover {
  background: #5dc8bd;
}

.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: min(720px, 58%);
  min-height: 112px;
  padding: 24px max(28px, calc((100vw - 1240px) / 2));
  padding-left: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  color: var(--ink);
  background: var(--yellow);
}

.hero-proof div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.hero-proof strong {
  font-size: 2.35rem;
  line-height: 1;
}

.hero-proof span {
  max-width: 100px;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1.2;
  text-transform: uppercase;
}

.intro {
  padding: 150px 0;
}

.intro-kicker {
  margin: 0 0 30px;
  color: var(--coral);
  font-weight: 760;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
}

.intro h2,
.theatre-heading h2,
.planner-heading h2,
.desktop-copy h2,
.principles h2,
.manual-inner h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 7rem);
  line-height: 0.94;
}

.intro-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.intro-copy ul {
  margin: 34px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  list-style: none;
}

.intro-copy li {
  font-size: 0.82rem;
  font-weight: 760;
  text-transform: uppercase;
}

.intro-copy li::before {
  content: "•";
  margin-right: 8px;
  color: var(--coral);
}

.product-theatre {
  padding: 130px 0 150px;
  color: var(--white);
  background: var(--ink);
}

.theatre-heading {
  max-width: 980px;
  margin-left: max(28px, calc((100vw - 1240px) / 2));
}

.theatre-heading h2 {
  max-width: 920px;
}

.theatre-grid {
  margin-top: 84px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(370px, 0.7fr);
  gap: 90px;
  align-items: start;
}

.screen-selector {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.screen-option {
  width: 100%;
  min-height: 138px;
  padding: 26px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: start;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease;
}

.screen-option:hover,
.screen-option:focus-visible,
.screen-option.is-active {
  color: var(--white);
}

.screen-option.is-active {
  padding-left: 20px;
}

.screen-option.is-active .screen-number {
  color: var(--coral);
}

.screen-number {
  padding-top: 6px;
  font-size: 0.74rem;
  font-weight: 760;
}

.screen-option-copy {
  display: grid;
  gap: 8px;
}

.screen-option-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.screen-option-copy small {
  max-width: 470px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.screen-option.is-active small {
  color: rgba(255, 255, 255, 0.72);
}

.screen-arrow {
  font-size: 1.25rem;
}

.device-stage {
  position: sticky;
  top: 96px;
  min-height: 690px;
  display: grid;
  justify-items: center;
  align-content: center;
}

.device-glow {
  position: absolute;
  inset: 16% 0 9%;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0.9;
  transform: rotate(-7deg);
}

.phone-device {
  position: relative;
  z-index: 2;
  width: min(330px, 78%);
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 44px;
  background: #050807;
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.45);
}

.phone-device img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: contain;
  border-radius: 34px;
  transition: opacity 130ms ease, transform 220ms ease;
}

.phone-device img.is-changing {
  opacity: 0;
  transform: scale(0.985);
}

.phone-speaker {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 50%;
  width: 74px;
  height: 20px;
  border-radius: 999px;
  background: #050807;
  transform: translateX(-50%);
}

.stage-caption {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
}

.stage-caption span {
  color: var(--yellow);
  font-weight: 760;
}

.stage-caption strong {
  max-width: 220px;
  color: var(--white);
  font-weight: 620;
  text-align: right;
}

.planner-section {
  padding: 140px 0;
  background: var(--white);
}

.planner-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: end;
}

.planner-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.planner {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.planner-controls {
  padding: 38px;
  display: grid;
  gap: 32px;
  border-right: 1px solid var(--line);
}

.planner-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.planner-controls label > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 740;
  text-transform: uppercase;
}

.planner-controls output {
  font-size: 1.08rem;
  font-weight: 800;
}

.planner-controls input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--teal);
}

.planner-result {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.result-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 740;
  text-transform: uppercase;
}

.result-status {
  padding: 7px 11px;
  color: var(--ink);
  background: var(--teal-bright);
}

.result-status.warning {
  background: var(--coral);
}

.flow-track {
  height: 24px;
  overflow: hidden;
  display: flex;
  background: #dfe3df;
}

.flow-track span {
  min-width: 0;
  transition: width 180ms ease;
}

#billsBar,
.legend-bills { background: var(--ink); }
#debtBar,
.legend-debt { background: var(--coral); }
#bufferBar,
.legend-buffer { background: var(--sky); }
#freeBar,
.legend-free { background: var(--yellow); }

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

.flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flow-legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
}

.result-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-grid div {
  min-width: 0;
  padding: 22px 14px;
  border-right: 1px solid var(--line);
}

.result-grid div:last-child {
  border-right: 0;
}

.result-grid dt {
  min-height: 34px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.result-grid dd {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  font-weight: 820;
  line-height: 1;
}

.planner-result > p {
  margin: 0;
  color: var(--muted);
}

.desktop-story {
  padding: 140px 0 0;
  overflow: hidden;
  color: var(--white);
  background: #18233a;
}

.desktop-copy {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.desktop-copy h2 {
  max-width: 840px;
}

.desktop-copy > p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.08rem;
}

.desktop-product {
  width: min(1500px, calc(100% - 56px));
  margin: 90px auto 0;
  padding: 12px 12px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -20px 90px rgba(0, 0, 0, 0.25);
}

.desktop-product img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.principles {
  padding: 150px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}

.principles-heading {
  position: sticky;
  top: 110px;
  align-self: start;
}

.principle-list {
  border-top: 1px solid var(--line);
}

.principle-list article {
  min-height: 210px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
}

.principle-list article > span {
  color: var(--coral);
  font-size: 0.76rem;
  font-weight: 800;
}

.principle-list h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.principle-list p {
  max-width: 550px;
  margin: 18px 0 0;
  color: var(--muted);
}

.manual-band {
  padding: 110px 0;
  color: var(--white);
  background: var(--coral);
}

.manual-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.manual-inner .eyebrow {
  color: var(--ink);
}

.manual-inner h2 {
  max-width: 800px;
}

.manual-inner p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.button-light {
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--white);
}

.final-cta {
  padding: 150px 0 160px;
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 8rem);
  line-height: 0.9;
}

.final-cta > p:not(.eyebrow) {
  margin: 26px auto 32px;
  color: var(--muted);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

footer {
  min-height: 110px;
  padding: 30px max(28px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

footer .brand {
  color: var(--ink);
}

footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button,
  .phone-device img,
  .screen-option { transition: none; }
}

@media (max-width: 1040px) {
  .hero-media { left: 20%; }
  .hero-scrim { right: 22%; }
  .hero-proof { width: 70%; }

  .theatre-grid {
    grid-template-columns: 1fr 360px;
    gap: 50px;
  }

  .planner-heading,
  .desktop-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .planner {
    grid-template-columns: 1fr;
  }

  .planner-controls {
    grid-template-columns: 1fr 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .principles-heading {
    position: static;
  }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1240px); }

  .site-header {
    min-height: 66px;
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: 850px;
  }

  .hero-media {
    inset: 0;
    top: 40%;
  }

  .hero-media img {
    object-position: 47% top;
  }

  .hero-scrim {
    inset: 0;
    bottom: 40%;
    background: rgba(16, 23, 21, 0.9);
    box-shadow: 0 100px 120px rgba(16, 23, 21, 0.96);
  }

  .hero-inner {
    min-height: 750px;
    padding: 120px 0 235px;
    justify-content: flex-start;
  }

  .hero-statement {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .hero-lede {
    max-width: 520px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1 1 210px;
  }

  .hero-proof {
    width: 100%;
    min-height: 100px;
    padding: 20px 16px;
    gap: 10px;
  }

  .hero-proof div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hero-proof strong {
    font-size: 1.8rem;
  }

  .hero-proof span {
    font-size: 0.62rem;
  }

  .intro {
    padding: 100px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .intro h2,
  .theatre-heading h2,
  .planner-heading h2,
  .desktop-copy h2,
  .principles h2,
  .manual-inner h2 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .product-theatre {
    padding: 95px 0 110px;
  }

  .theatre-heading {
    width: var(--shell);
    margin-inline: auto;
  }

  .theatre-grid {
    margin-top: 56px;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .screen-option {
    min-height: 112px;
    grid-template-columns: 38px 1fr auto;
    padding: 22px 0;
  }

  .screen-option.is-active {
    padding-left: 10px;
  }

  .screen-option-copy strong {
    font-size: 1.9rem;
  }

  .device-stage {
    position: relative;
    top: auto;
    min-height: 650px;
  }

  .phone-device {
    width: min(320px, 82%);
  }

  .planner-section {
    padding: 100px 0;
  }

  .planner {
    margin-top: 50px;
  }

  .planner-controls {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .planner-result {
    padding: 26px;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result-grid div:nth-child(2) {
    border-right: 0;
  }

  .result-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .desktop-story {
    padding-top: 100px;
  }

  .desktop-product {
    width: calc(100% - 20px);
    margin-top: 58px;
    padding: 6px 6px 0;
  }

  .principles {
    padding: 100px 0;
  }

  .principle-list article {
    grid-template-columns: 36px 1fr;
  }

  .manual-band {
    padding: 90px 0;
  }

  .manual-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
  }

  .final-cta {
    padding: 110px 0;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p {
    margin: 0;
  }

  footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-header.is-scrolled {
    border-radius: 14px;
  }

  .header-cta {
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: 900px;
  }

  .hero-inner {
    min-height: 800px;
  }

  .hero-statement {
    font-size: clamp(3.65rem, 18vw, 5rem);
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .intro-copy ul {
    grid-template-columns: 1fr;
  }

  .screen-option-copy small {
    font-size: 0.82rem;
  }

  .stage-caption {
    padding-inline: 4px;
  }

  .flow-legend {
    gap: 8px 12px;
  }
}
