:root {
  color-scheme: light;
  --ink: oklch(0.29 0.055 264);
  --ink-soft: oklch(0.48 0.035 264);
  --ink-faint: oklch(0.63 0.025 264);
  --brand: oklch(0.63 0.2 274);
  --brand-deep: oklch(0.32 0.105 266);
  --brand-night: oklch(0.22 0.075 265);
  --blue: oklch(0.64 0.205 274);
  --teal: oklch(0.72 0.122 185);
  --pink: oklch(0.75 0.21 321);
  --coral: oklch(0.71 0.19 25);
  --white: oklch(1 0 0);
  --canvas: oklch(0.965 0.004 265);
  --surface: oklch(0.99 0.002 265);
  --line: oklch(0.92 0.012 270);
  --tint-blue: oklch(0.955 0.027 274);
  --tint-teal: oklch(0.96 0.033 185);
  --tint-pink: oklch(0.96 0.04 321);
  --danger: oklch(0.56 0.205 27);
  --danger-tint: oklch(0.955 0.035 25);
  --phone-edge: oklch(0.19 0.015 260);
  --on-dark-high: oklch(0.91 0.025 270);
  --on-dark-medium: oklch(0.82 0.025 270);
  --on-dark-low: oklch(0.72 0.025 270);
  --on-dark-label: oklch(0.72 0.035 270);
  --on-dark-copy: oklch(0.9 0.03 270);
  --on-dark-link: oklch(0.91 0.015 270);
  --on-dark-note: oklch(0.79 0.035 270);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 76rem;
  --prose: 70ch;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 100rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 20;
  --z-menu: 30;
  --z-focus: 40;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

button,
input,
textarea {
  font: inherit;
}

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

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

::selection {
  background: var(--tint-pink);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: var(--z-focus);
  top: var(--space-md);
  left: var(--space-md);
  transform: translateY(-180%);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  padding: var(--space-sm) var(--space-md);
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--line), transparent 25%);
  background: color-mix(in oklch, var(--white), transparent 5%);
  backdrop-filter: blur(18px) saturate(130%);
}

.nav-shell,
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.nav-shell {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 2rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease-out);
}

.nav-links > a[aria-current="page"] {
  color: var(--ink);
}

.nav-links > a[aria-current="page"]::after,
.nav-links > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button {
  min-height: 2.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.15rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms var(--ease-out), background 180ms ease, color 180ms ease;
}

.nav-cta,
.button-primary {
  background: var(--ink);
  color: var(--white);
}

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

.button-light {
  background: var(--white);
  color: var(--brand-deep);
}

.button-secondary {
  box-shadow: inset 0 0 0 1px var(--line);
  background: transparent;
  color: var(--ink);
}

.button[aria-disabled="true"],
.store-status {
  cursor: default;
}

.store-status {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--brand-night);
  padding: 0.75rem 1.2rem;
  font-weight: 800;
  line-height: 1.1;
}

.store-status svg {
  width: 1.25rem;
  height: 1.25rem;
}

.store-status small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 650;
}

.button svg,
.arrow-link svg {
  width: 1.1em;
  height: 1.1em;
  transition: transform 180ms var(--ease-out);
}

.menu-toggle {
  width: 2.875rem;
  height: 2.875rem;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
}

.menu-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.hero {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(circle at 78% 30%, color-mix(in oklch, var(--brand), transparent 55%) 0, transparent 32%),
    linear-gradient(128deg, var(--brand-night), var(--brand-deep));
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -12rem;
  left: 34%;
  height: 19rem;
  content: "";
  background: color-mix(in oklch, var(--pink), transparent 80%);
  filter: blur(84px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: min(48rem, calc(100svh - 4.75rem));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(32rem, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 39rem;
}

.hero h1,
.page-hero h1,
.section-heading,
.feature-copy h2,
.final-cta h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.99;
  text-wrap: balance;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.25rem, 6.2vw, 5.8rem);
}

.hero-lede {
  max-width: 34rem;
  margin: var(--space-lg) 0 0;
  color: var(--on-dark-high);
  font-size: clamp(1.125rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero-note {
  margin: var(--space-md) 0 0;
  color: var(--on-dark-note);
  font-size: 0.875rem;
}

.phone-stage {
  position: relative;
  min-height: 38rem;
  perspective: 1200px;
}

.phone {
  position: absolute;
  width: clamp(12rem, 18vw, 15.5rem);
  aspect-ratio: 1206 / 2622;
  overflow: hidden;
  border: 0.38rem solid var(--phone-edge);
  border-radius: 2rem;
  background: var(--canvas);
  box-shadow: 0 0.5rem 0 color-mix(in oklch, var(--brand-night), black 30%);
  transform-origin: 50% 85%;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-home {
  z-index: 3;
  top: 1%;
  left: 36%;
  width: clamp(13rem, 20vw, 17rem);
  transform: rotate(-1.5deg) translateZ(2rem);
}

.phone-feed {
  z-index: 2;
  top: 10%;
  left: 2%;
  transform: rotate(-8deg);
}

.phone-progress {
  z-index: 1;
  top: 8%;
  right: 0;
  transform: rotate(8deg);
}

.habit-orbit {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  border-radius: var(--radius-pill);
  padding: 0.65rem 0.9rem;
  color: var(--brand-night);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 0.25rem 0 color-mix(in oklch, var(--brand-night), black 25%);
}

.habit-orbit::before {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  content: "";
  background: currentColor;
}

.orbit-run {
  top: 7%;
  left: 1%;
  background: var(--tint-blue);
  color: var(--blue);
}

.orbit-read {
  right: 1%;
  bottom: 12%;
  background: var(--tint-pink);
  color: var(--pink);
}

.orbit-clean {
  bottom: 5%;
  left: 10%;
  background: var(--tint-teal);
  color: var(--teal);
}

.section {
  padding-block: var(--space-section);
}

.section-soft {
  background: var(--canvas);
}

.section-intro {
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.section-copy {
  max-width: 42rem;
  margin: var(--space-lg) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  text-wrap: pretty;
}

.habit-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.habit-loop::before {
  position: absolute;
  z-index: 0;
  top: 2.05rem;
  right: 15%;
  left: 15%;
  height: 3px;
  border-radius: var(--radius-pill);
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--pink));
}

.loop-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: var(--space-md);
}

.step-mark {
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
  border: 0.4rem solid var(--white);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 850;
}

.loop-step:nth-child(1) .step-mark { background: var(--tint-blue); color: var(--blue); }
.loop-step:nth-child(2) .step-mark { background: var(--tint-teal); color: var(--teal); }
.loop-step:nth-child(3) .step-mark { background: var(--tint-pink); color: var(--pink); }

.loop-step h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.loop-step p {
  max-width: 22rem;
  margin: 0;
  color: var(--ink-soft);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(22rem, 1.18fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.feature-row + .feature-row {
  margin-top: clamp(6rem, 12vw, 11rem);
}

.feature-row-reverse .feature-copy {
  order: 2;
}

.feature-row-reverse .product-scene {
  order: 1;
}

.feature-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
}

.feature-copy p {
  max-width: 34rem;
  margin: var(--space-lg) 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

.feature-points {
  display: grid;
  gap: var(--space-md);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--ink);
  font-weight: 650;
}

.feature-points li::before {
  width: 0.65rem;
  height: 0.65rem;
  flex: 0 0 auto;
  margin-top: 0.45rem;
  border-radius: 50%;
  content: "";
  background: var(--point-color, var(--brand));
}

.feature-points li:nth-child(2) { --point-color: var(--teal); }
.feature-points li:nth-child(3) { --point-color: var(--pink); }

.product-scene {
  position: relative;
  min-height: clamp(29rem, 55vw, 43rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--scene-bg, var(--tint-blue));
}

.scene-teal { --scene-bg: var(--tint-teal); }

.product-scene .phone {
  top: 7%;
  left: 50%;
  width: clamp(14rem, 25vw, 18.5rem);
  box-shadow: 0 0.5rem 0 color-mix(in oklch, var(--scene-bg), var(--ink) 25%);
  transform: translateX(-50%) rotate(var(--scene-rotation, 3deg));
}

.scene-teal .phone { --scene-rotation: -3deg; }

.scene-caption {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  max-width: 15rem;
  border-radius: var(--radius-md);
  background: var(--white);
  padding: var(--space-md);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.trust-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: clamp(2rem, 7vw, 6rem);
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: var(--white);
  padding: clamp(2rem, 5vw, 4.5rem);
}

.trust-band h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.trust-band > div > p {
  max-width: 40rem;
  margin: var(--space-lg) 0 0;
  color: var(--on-dark-copy);
  font-size: 1.125rem;
}

.trust-list {
  display: grid;
  align-content: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: center;
  gap: var(--space-md);
}

.trust-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in oklch, var(--white), transparent 88%);
}

.trust-icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.trust-list strong,
.trust-list span {
  display: block;
}

.trust-list span {
  color: var(--on-dark-medium);
  font-size: 0.875rem;
}

.trust-link {
  display: inline-flex;
  margin-top: var(--space-xl);
  color: var(--white);
  font-weight: 750;
}

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

.resource-link {
  min-height: 12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl);
  text-decoration: none;
  transition: background 200ms ease;
}

.resource-link + .resource-link {
  border-left: 1px solid var(--line);
}

.resource-link strong {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.resource-link span {
  color: var(--ink-soft);
}

.resource-link svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--brand);
}

.final-cta {
  overflow: hidden;
  background: var(--tint-pink);
  text-align: center;
}

.final-cta .container {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}

.final-cta h2 {
  max-width: 14ch;
  margin-inline: auto;
  font-size: clamp(2.75rem, 6vw, 5.4rem);
}

.final-cta p {
  max-width: 38rem;
  margin: var(--space-lg) auto var(--space-xl);
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.site-footer {
  background: var(--brand-night);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(9rem, 0.6fr));
  gap: var(--space-xl);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-intro {
  max-width: 23rem;
}

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

.footer-intro p {
  margin: var(--space-md) 0 0;
  color: var(--on-dark-note);
}

.footer-column h2 {
  margin: 0 0 var(--space-md);
  color: var(--on-dark-label);
  font-size: 0.875rem;
}

.footer-column a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  color: var(--on-dark-link);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  border-top: 1px solid color-mix(in oklch, var(--white), transparent 88%);
  padding-block: var(--space-lg);
  color: var(--on-dark-low);
  font-size: 0.875rem;
}

.page-main {
  background: var(--canvas);
}

.page-hero {
  background: var(--white);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  align-items: end;
  gap: clamp(2rem, 7vw, 6rem);
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.page-hero p {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  text-wrap: pretty;
}

.page-meta {
  margin-top: var(--space-md);
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, var(--prose));
  justify-content: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.toc {
  align-self: start;
  position: sticky;
  top: 7rem;
}

.toc h2 {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
}

.toc nav {
  display: grid;
}

.toc a {
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-decoration: none;
}

.prose {
  max-width: var(--prose);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3rem 0 var(--space-sm);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.prose h3 {
  margin: var(--space-xl) 0 var(--space-xs);
  font-size: 1.125rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.prose p {
  margin: var(--space-sm) 0 0;
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-md) 0 0;
  padding-left: 1.25rem;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--brand-deep);
  font-weight: 650;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: var(--space-2xl);
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--line);
}

.summary-item {
  min-height: 8rem;
  background: var(--tint-blue);
  padding: var(--space-lg);
}

.summary-item:nth-child(2) { background: var(--tint-teal); }
.summary-item:nth-child(3) { background: var(--tint-pink); }

.summary-item strong,
.summary-item span {
  display: block;
}

.summary-item span {
  margin-top: var(--space-xs);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.support-primary,
.support-aside {
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.support-primary h2,
.support-aside h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

.support-primary > p,
.support-aside > p {
  color: var(--ink-soft);
}

.support-email {
  display: inline-flex;
  margin-top: var(--space-lg);
}

.faq-list {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding-block: var(--space-md);
}

.faq-list summary {
  min-height: 2.75rem;
  cursor: pointer;
  font-weight: 750;
}

.faq-list p {
  margin: var(--space-sm) 0 0;
  color: var(--ink-soft);
}

.support-links {
  display: grid;
  margin-top: var(--space-xl);
}

.arrow-link {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  border-top: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.delete-flow {
  counter-reset: delete-step;
}

.delete-flow li {
  list-style: none;
  counter-increment: delete-step;
  position: relative;
  padding-left: 2.75rem;
}

.delete-flow li::before {
  position: absolute;
  top: -0.12rem;
  left: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  content: counter(delete-step);
  background: var(--tint-pink);
  color: var(--ink);
  font-weight: 800;
}

.notice {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  background: var(--tint-blue);
  padding: var(--space-lg);
}

.notice-danger {
  background: var(--danger-tint);
}

.invite-page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--canvas);
}

.invite-shell {
  width: min(100% - (var(--gutter) * 2), 64rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  margin: auto;
  padding-block: var(--space-3xl);
}

.invite-art {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--tint-blue);
}

.invite-art .phone {
  top: 2.75rem;
  left: 50%;
  width: 15rem;
  transform: translateX(-50%) rotate(3deg);
}

.invite-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-wrap: balance;
}

.invite-copy .invite-name {
  display: block;
  margin-top: var(--space-xs);
  color: var(--brand);
}

.invite-copy p {
  max-width: 32rem;
  margin: var(--space-lg) 0 0;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.invite-help {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
}

.invite-help a {
  color: var(--brand-deep);
  font-weight: 700;
}

@media (hover: hover) {
  .button:hover,
  .nav-cta:hover {
    transform: translateY(-2px);
  }

  .button:hover svg,
  .arrow-link:hover svg {
    transform: translateX(0.2rem);
  }

  .resource-link:hover {
    background: var(--canvas);
  }
}

@media (max-width: 68rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(27rem, 1.1fr);
  }

  .resource-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .resource-link:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .resource-link:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 54rem) {
  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    z-index: var(--z-menu);
    top: 4.75rem;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: var(--space-md) var(--gutter) var(--space-lg);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 300ms var(--ease-out), visibility 300ms;
  }

  .nav-links[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
  }

  .nav-links > a:not(.nav-cta) {
    min-height: 3.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: var(--space-md);
  }

  .hero-grid,
  .feature-row,
  .trust-band,
  .page-hero .container,
  .support-grid,
  .invite-shell {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: var(--space-3xl);
    padding-bottom: 0;
  }

  .hero-copy {
    text-align: center;
    margin-inline: auto;
  }

  .hero h1,
  .hero-lede {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .phone-stage {
    width: min(100%, 38rem);
    min-height: 36rem;
    margin-inline: auto;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .product-scene {
    order: initial;
  }

  .feature-row-reverse .feature-copy {
    order: 1;
  }

  .feature-row-reverse .product-scene {
    order: 2;
  }

  .footer-grid {
    grid-template-columns: 1.2fr repeat(2, 0.8fr);
  }

  .footer-intro {
    grid-column: 1 / -1;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--space-md);
  }

  .invite-copy {
    text-align: center;
  }

  .invite-copy p {
    margin-inline: auto;
  }

  .invite-actions {
    justify-content: center;
  }

  .invite-art {
    order: 2;
  }
}

@media (max-width: 40rem) {
  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.4rem);
  }

  .hero-actions {
    width: min(100%, 22rem);
    flex-direction: column;
    align-items: stretch;
    margin-inline: auto;
  }

  .hero-actions > * {
    width: 100%;
  }

  .phone-stage {
    min-height: 31rem;
    margin-top: var(--space-lg);
  }

  .phone-home {
    left: 31%;
  }

  .phone-feed {
    left: -8%;
  }

  .phone-progress {
    right: -8%;
  }

  .habit-orbit {
    display: none;
  }

  .habit-loop {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .habit-loop::before {
    top: 2rem;
    bottom: 2rem;
    left: 2.05rem;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--teal), var(--pink));
  }

  .loop-step {
    grid-template-columns: 4.25rem 1fr;
    align-items: start;
  }

  .loop-step h3,
  .loop-step p {
    grid-column: 2;
  }

  .loop-step p {
    margin-top: calc(var(--space-md) * -1);
  }

  .product-scene {
    min-height: 31rem;
  }

  .trust-band {
    margin-inline: calc(var(--gutter) * -0.25);
  }

  .resource-rail,
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .resource-link,
  .resource-link + .resource-link,
  .resource-link:nth-child(3),
  .resource-link:nth-child(4) {
    min-height: 8.5rem;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-link:first-child {
    border-top: 0;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero .container {
    align-items: start;
  }

  .toc nav {
    grid-template-columns: 1fr;
  }

  .prose {
    margin-inline: calc(var(--gutter) * -0.25);
    padding: var(--space-lg);
  }

  .invite-art {
    min-height: 27rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-in 800ms var(--ease-out) both;
  }

  .reveal-delay-1 { animation-delay: 100ms; }
  .reveal-delay-2 { animation-delay: 190ms; }

  .phone-home {
    animation: phone-breathe 7s ease-in-out infinite alternate;
  }

  @keyframes reveal-in {
    from {
      opacity: 0.92;
      transform: translateY(0.65rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes phone-breathe {
    from { translate: 0 0; }
    to { translate: 0 -0.5rem; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .final-cta {
    display: none;
  }

  body,
  .page-main,
  .page-hero,
  .prose {
    background: white;
    color: black;
  }

  .page-hero {
    padding-block: 1rem;
  }

  .page-hero .container,
  .legal-layout {
    display: block;
    width: 100%;
  }

  .prose {
    max-width: none;
    padding: 0;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
