@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --ink: #052f52;
  --ink-deep: #031e34;
  --body: #3d4852;
  --muted: #707b84;
  --blue: #118df0;
  --blue-deep: #0877cd;
  --sky: #e8f5fe;
  --sky-strong: #c9e7fb;
  --violet: #8068dc;
  --coral: #f38375;
  --mint: #55b694;
  --pearl: #fafbfc;
  --paper: #ffffff;
  --line: #dce9f3;
  --wellness-wash: #f1efff;
  --recovery-wash: #ecf8f3;
  --radius: 28px;
  --shadow: 0 22px 70px rgba(5, 47, 82, 0.1), 0 3px 12px rgba(5, 47, 82, 0.05);
  --content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--pearl);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 5%, rgba(17, 141, 240, 0.11), transparent 24rem),
    radial-gradient(circle at 91% 21%, rgba(128, 104, 220, 0.08), transparent 27rem),
    linear-gradient(180deg, #fff 0, var(--pearl) 45%, #f5faff 100%);
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 233, 243, 0.82);
  background: rgba(250, 251, 252, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(17, 141, 240, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 10px 13px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
  background: white;
}

.nav-cta { margin-left: 2px; }

.nav-links .button,
.nav-links .button:hover {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 9px;
  color: var(--ink);
  background: white;
}

.nav-toggle svg { display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), var(--coral));
}

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: 'Sora', system-ui, sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

h1 { font-size: clamp(44px, 6.4vw, 78px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: 21px; }

.lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--body);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 74px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.hero-copy { position: relative; z-index: 2; }

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 17px;
  padding: 12px 19px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 28px rgba(17, 141, 240, 0.2);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { transform: translateY(-1px); }

.button.secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.button.compact { min-height: 44px; padding: 9px 15px; border-radius: 14px; }

.spectrum-thread {
  position: relative;
  height: 34px;
  margin: 23px 0 7px;
}

.spectrum-thread::before {
  content: '';
  position: absolute;
  left: -3%;
  right: -3%;
  top: 15px;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue) 0 28%, #82b9ed 40%, var(--coral) 58%, #f5b072 73%, var(--mint));
  transform: rotate(-1deg);
}

.spectrum-thread::after {
  content: '';
  position: absolute;
  left: 46%;
  top: 10px;
  width: 12px;
  height: 12px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 2px 8px rgba(5, 47, 82, 0.18);
}

.product-stage {
  position: relative;
  min-height: 540px;
}

.phone {
  position: relative;
  width: min(330px, 78vw);
  margin-inline: auto;
  overflow: hidden;
  border: 9px solid #fff;
  border-radius: 46px;
  background: white;
  box-shadow: 0 34px 90px rgba(5, 47, 82, 0.2), 0 0 0 1px rgba(5, 47, 82, 0.08);
}

.phone::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 9px;
  width: 78px;
  height: 21px;
  border-radius: 99px;
  background: #071019;
  transform: translateX(-50%);
}

.phone img { width: 100%; height: auto; }

.phone-badge {
  position: absolute;
  z-index: 3;
  right: 2%;
  bottom: 10%;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.fork-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 18px;
  padding: 30px 0;
}

.fork-stage .phone { width: min(250px, 100%); border-radius: 38px; border-width: 7px; }
.fork-stage .phone:first-child { transform: translateY(-20px) rotate(-2deg); }
.fork-stage .phone:last-child { transform: translateY(22px) rotate(2deg); }

.fork-label {
  position: absolute;
  z-index: 4;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 9px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(5, 47, 82, 0.1);
  font-size: 11px;
  font-weight: 800;
}

.fork-label.personal { left: -2%; top: 8%; }
.fork-label.program { right: -3%; bottom: 3%; }

.section { padding: 86px 0; }
.section.tight { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.section-head p { max-width: 580px; margin: 0; }

.product-choice-grid,
.feature-grid,
.workflow-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid.three,
.workflow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.product-card,
.feature-card,
.workflow-card,
.contract-card,
.comparison-wrap,
.contact-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.product-card { padding: clamp(26px, 4vw, 44px); }
.product-card.wellness { background: linear-gradient(145deg, white, var(--wellness-wash)); }
.product-card.recovery { background: linear-gradient(145deg, white, var(--recovery-wash)); }

.product-card::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  opacity: 0.48;
}

.product-card.wellness::after { background: radial-gradient(circle, #b3a5ff, transparent 67%); }
.product-card.recovery::after { background: radial-gradient(circle, #91d6bb, transparent 67%); }

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border-radius: 99px;
  padding: 7px 11px;
  color: var(--ink);
  background: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(5, 47, 82, 0.07);
}

.product-kicker .dot { width: 8px; height: 8px; border-radius: 50%; }
.product-kicker .dot { background: var(--mint); }
.wellness .product-kicker .dot { background: var(--violet); }
.recovery .product-kicker .dot { background: var(--mint); }

.product-card h2 { font-size: clamp(29px, 3vw, 39px); }
.product-card > p { max-width: 570px; }

.contract-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.contract-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 650;
}

.contract-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--blue); }

.comparison-wrap { overflow-x: auto; }

.comparison {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.comparison th,
.comparison td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--ink);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
}

.comparison thead th:nth-child(2) { background: rgba(128, 104, 220, 0.08); }
.comparison thead th:nth-child(3) { background: rgba(85, 182, 148, 0.1); }
.comparison tbody tr:last-child td { border-bottom: 0; }
.comparison td:first-child { width: 22%; color: var(--muted); font-size: 13px; font-weight: 800; }

.feature-card,
.workflow-card,
.contract-card { padding: 26px; }

.feature-icon,
.workflow-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 15px;
  color: var(--blue-deep);
  background: var(--sky);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.workflow-card p,
.feature-card p { margin-bottom: 0; font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(45px, 8vw, 100px);
}

.split.reverse { grid-template-columns: minmax(380px, 1.05fr) minmax(0, 0.95fr); }
.split.reverse .split-copy { order: 2; }
.split-copy > p { font-size: 18px; }

.screen-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 13px;
}

.screen-stack img {
  border: 6px solid white;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(5, 47, 82, 0.14);
}

.screen-stack img:nth-child(1) { transform: rotate(-3deg) translateY(18px); }
.screen-stack img:nth-child(2) { position: relative; z-index: 2; }
.screen-stack img:nth-child(3) { transform: rotate(3deg) translateY(18px); }

.privacy-contract {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.privacy-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.privacy-row .icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--sky);
}

.privacy-row strong { display: block; color: var(--ink); font-size: 14px; }
.privacy-row span { color: var(--muted); font-size: 12px; }

.limit-band {
  border-block: 1px solid var(--line);
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.56);
}

.limit-band .shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.limit-band svg { flex: 0 0 auto; color: var(--blue); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 90% 0, rgba(85, 182, 148, 0.2), transparent 22rem),
    white;
}

.contact-panel h2 { max-width: 720px; }
.contact-panel p { max-width: 680px; }

.availability-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.promise-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 68px);
  background:
    linear-gradient(115deg, rgba(231, 244, 254, .9), rgba(255, 255, 255, .95) 48%, rgba(236, 248, 243, .9));
  box-shadow: var(--shadow);
}

.promise-panel h2 { max-width: 900px; }
.promise-panel p { max-width: 760px; font-size: 18px; }
.promise-panel .button { margin-top: 16px; }

.center-action { display: flex; justify-content: center; margin-top: 28px; }

.privacy-section,
.queue-section {
  background: linear-gradient(180deg, transparent, rgba(231, 244, 254, .48), transparent);
}

.continuity-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
  gap: clamp(30px, 7vw, 90px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 66px);
  background:
    radial-gradient(circle at 92% 12%, rgba(128, 104, 220, .13), transparent 18rem),
    white;
  box-shadow: var(--shadow);
}

.continuity-panel p { max-width: 700px; font-size: 18px; }
.continuity-panel .button { margin-top: 16px; }
.continuity-panel img,
.single-screen {
  width: min(320px, 100%);
  margin-inline: auto;
  border: 7px solid white;
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(5, 47, 82, .17);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 74px;
  text-align: center;
}

.narrow { width: min(calc(100% - 40px), 900px); }
.page-hero .eyebrow { justify-content: center; }
.page-hero .lede { margin-inline: auto; }
.page-hero .spectrum-thread { max-width: 620px; margin-inline: auto; }

.gap-section {
  background: linear-gradient(135deg, rgba(3, 30, 52, .98), rgba(5, 47, 82, .96));
}

.gap-grid {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
  align-items: center;
  gap: clamp(32px, 8vw, 100px);
}

.gap-number {
  color: transparent;
  font-family: 'Sora', sans-serif;
  font-size: clamp(82px, 17vw, 210px);
  font-weight: 700;
  letter-spacing: -.09em;
  line-height: .75;
  -webkit-text-stroke: 2px rgba(196, 231, 251, .28);
}

.gap-copy h2,
.gap-copy p { color: white; }
.gap-copy .eyebrow { color: var(--sky-strong); }
.gap-copy p { max-width: 760px; font-size: 18px; }

.flow-detail-grid { display: grid; gap: 32px; }

.flow-detail {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(190px, 280px);
  align-items: center;
  gap: clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.flow-detail > span,
.contract-index {
  color: var(--blue-deep);
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.flow-detail h2 { font-size: clamp(26px, 3vw, 38px); }
.flow-detail p { max-width: 650px; }
.flow-detail img {
  width: min(250px, 100%);
  justify-self: end;
  border: 5px solid white;
  border-radius: 27px;
  box-shadow: 0 18px 45px rgba(5, 47, 82, .14);
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contract-card { padding: clamp(24px, 4vw, 38px); }
.contract-card h2 { margin: 12px 0 18px; font-size: clamp(26px, 3vw, 36px); }
.contract-card p { font-size: 14px; }
.contract-card strong { color: var(--ink); }

.design-partnership-section {
  background: linear-gradient(180deg, rgba(236, 248, 243, .45), transparent);
}

.site-footer {
  padding: 42px 0 50px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-grid nav { display: flex; flex-wrap: wrap; gap: 17px; margin-left: auto; }
.footer-grid a { text-decoration: none; }

.modal {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 0;
  color: var(--body);
  background: white;
  box-shadow: 0 35px 120px rgba(3, 30, 52, 0.28);
}

.modal::backdrop { background: rgba(3, 30, 52, 0.55); backdrop-filter: blur(7px); }
.modal-inner { padding: 30px; }
.modal-close { float: right; border: 0; border-radius: 10px; padding: 8px; background: var(--sky); cursor: pointer; }
.modal h2 { margin-top: 20px; font-size: 28px; }

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

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

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 68px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 0; }
  .hero { padding-top: 58px; }
  .hero-grid, .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-copy { order: initial; }
  .product-stage { min-height: auto; }
  .fork-stage { max-width: 600px; margin: 0 auto; }
  .feature-grid.three, .workflow-grid { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .continuity-panel { grid-template-columns: 1fr; }
  .gap-grid { grid-template-columns: 1fr; }
  .gap-number { font-size: 96px; }
  .flow-detail { grid-template-columns: 48px minmax(0, 1fr); }
  .flow-detail img { grid-column: 2; justify-self: start; }
  .contract-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 28px), var(--content)); }
  .nav { min-height: 68px; }
  .brand { font-size: 16px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding: 50px 0 54px; }
  h1 { font-size: clamp(38px, 10.7vw, 46px); }
  .eyebrow { max-width: 100%; font-size: 10px; letter-spacing: 0.09em; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section { padding: 64px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .product-choice-grid, .feature-grid, .feature-grid.three, .workflow-grid, .proof-grid { grid-template-columns: 1fr; }
  .fork-stage { width: 100%; grid-template-columns: 1fr 1fr; gap: 6px; }
  .fork-stage .phone { border-width: 5px; border-radius: 27px; }
  .fork-label { display: none; }
  .phone-badge { right: 0; bottom: 5%; }
  .screen-stack { gap: 5px; }
  .screen-stack img { border-width: 3px; border-radius: 18px; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .footer-grid nav { margin-left: 0; }
  .page-hero { padding: 70px 0 54px; }
  .flow-detail { grid-template-columns: 1fr; }
  .flow-detail img { grid-column: 1; justify-self: center; }
  .gap-number { font-size: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
