:root {
  --teal: #109383;
  --teal-deep: #0c7568;
  --inverse: #0d2b26;
  --inverse-100: #f2f7f5;
  --canvas: #f5f4f1;
  --white: #ffffff;
  --ink: #1a2b33;
  --ink-soft: #5c6a70;
  --border: #e6e8e6;
  --tint: #e7f4f1;
  --amber: #d99a3d;
  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-card: 0 2px 12px rgba(20, 40, 35, 0.06);
  --max: 1200px;
  --header: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1,
h2 {
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 650;
}

h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
}

h2 span {
  display: block;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 0.35em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--teal);
  color: var(--inverse-100);
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, 760px);
}

.center {
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--ink {
  color: var(--teal-deep);
}

.lede {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 36rem;
}

.lede--inverse {
  color: #c5d5d0;
}

.final-cta .lede {
  margin-inline: auto;
}

.close-line {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 600;
}

.section {
  padding: 88px 0;
}

.section--canvas {
  background: var(--canvas);
}

.section--inverse {
  background: var(--inverse);
  color: var(--inverse-100);
}

.section--philosophy {
  padding: 120px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--teal-deep);
  color: #ffffff;
}

.btn--primary:hover {
  background: #096057;
}

.btn--ghost {
  border-color: rgba(242, 247, 245, 0.45);
  color: var(--inverse-100);
  background: transparent;
}

.btn--small {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.9375rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(13, 43, 38, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 44px;
  height: 24px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  color: var(--inverse-100);
}

.kanji {
  font-size: 0.6875rem;
  color: #9bb8b2;
  letter-spacing: 0.18em;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--inverse-100);
  display: grid;
  place-items: center;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header);
  padding: 16px 20px 24px;
  background: var(--inverse);
}

.site-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--inverse-100);
}

.site-header.is-open .site-nav {
  display: flex;
}

/* Hero */
.hero {
  position: relative;
  background: var(--inverse);
  color: var(--inverse-100);
  padding: 32px 0 0;
  overflow: hidden;
}

.hero-swoosh {
  position: absolute;
  right: -10%;
  top: 8%;
  width: min(90vw, 720px);
  pointer-events: none;
  opacity: 0.95;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  padding-bottom: 48px;
}

.hero .eyebrow {
  color: #8ed4c8;
}

.hero-copy h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  max-width: 14ch;
}

.hero-accent {
  display: block;
  color: color-mix(in srgb, var(--teal) 70%, white);
  margin-top: 0.2em;
}

.hero-copy .lede {
  color: #d5e3df;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.hero .trust,
.trust--inverse {
  color: #c5d5d0;
}

.trust::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}

/* Phone */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.phone {
  width: min(260px, 82vw);
  height: 512px;
  border-radius: 42px;
  background: #121212;
  border: 10px solid #1c1c1c;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  position: relative;
  transform: none;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 92px;
  height: 22px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 12px;
}

.phone-screen {
  height: 100%;
  border-radius: 32px;
  padding: 44px 16px 18px;
  background: linear-gradient(180deg, #16332e 0%, #0f1f1c 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bb8b2;
}

.phone-date {
  font-size: 1.05rem;
  font-weight: 600;
}

.phone-card {
  background: rgba(245, 244, 241, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
}

.phone-card--progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.phone-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9bb8b2;
}

.phone-progress-copy,
.phone-next {
  margin-top: 6px;
  font-size: 0.92rem;
}

.phone-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  background: #ffffff;
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.ring {
  flex-shrink: 0;
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 5;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.12);
}

.ring-fill {
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-dasharray: 92 138;
  transform: rotate(-90deg);
  transform-origin: 28px 28px;
}

.phone-week {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.phone-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-height: 96px;
}

.phone-day span {
  font-size: 0.65rem;
  color: #9bb8b2;
}

.blk {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 4px;
}

.blk.meeting {
  background: #46545a;
}

.blk.workout {
  background: var(--teal);
  height: 26px;
}

/* Calendar strip on wave */
.wave-svg {
  display: block;
  width: 100%;
  height: 56px;
  margin-bottom: -1px;
}

.hero-wave {
  position: relative;
  padding: 8px 0 28px;
  background: var(--white);
}

.legend {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.swatch--meeting {
  background: var(--border);
}

.swatch--workout {
  background: var(--teal);
}

.tl-hours {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.tl-track {
  position: relative;
  height: 28px;
  background: var(--canvas);
  border-radius: 8px;
}

.tl-block {
  position: absolute;
  top: 4px;
  height: 20px;
  border-radius: 4px;
}

.tl-block.meeting {
  background: var(--border);
}

.tl-block.workout {
  background: var(--teal);
}

/* Pain */
.pain-timeline {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 0;
}

.pain-timeline li {
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--border);
}

.pain-timeline strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.pain-timeline p {
  margin-top: 4px;
  color: var(--ink);
}

/* How it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 16px;
}

.step-card,
.card,
.notify,
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.step-num {
  color: var(--teal);
  font-weight: 650;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.step-lead {
  margin: 8px 0 12px;
  font-weight: 600;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.plan-list span {
  color: var(--ink-soft);
}

.step-card--accent {
  background: var(--tint);
  border-color: #cfe6e1;
}

.mini-rescue .conflict-line {
  color: var(--amber);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.rescue-card {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.detect-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

.pill {
  background: var(--tint);
  color: var(--teal-deep);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 650;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Rescue */
.rescue h2,
.final-cta h2 {
  max-width: 18ch;
}

.rescue .lede {
  margin-bottom: 40px;
}

.rescue-flow {
  display: grid;
  gap: 20px;
}

.rescue-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bb8b2;
  margin-bottom: 12px;
}

.slot {
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 4px;
}

.slot--workout {
  background: var(--teal-deep);
  color: #ffffff;
}

.slot-stack {
  position: relative;
  min-height: 128px;
}

.slot--meeting {
  margin-top: 10px;
  background: #5c6a70;
}

.slot-stack .slot--meeting {
  position: absolute;
  left: 28px;
  right: -8px;
  top: 58px;
  margin-top: 0;
  border-left: 3px solid var(--amber);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.rescue-card--dark {
  background: rgba(245, 244, 241, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.after-copy {
  font-size: 1.2rem;
}

.after-copy--strong {
  font-weight: 650;
  color: var(--teal);
}

/* Zero planning */
.notify-grid,
.insight-grid,
.trio,
.pricing-grid,
.who-grid {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.notify {
  background: var(--white);
}

.notify-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.notify-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.notify-app {
  font-size: 0.75rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notify-time {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.notify-action {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal-deep);
  font-weight: 650;
}

.card-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.stat {
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 8px 0;
}

.stat-line {
  font-weight: 650;
  margin: 4px 0 12px;
}

/* Philosophy */
.kanji-lg {
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  color: var(--teal);
  margin-bottom: 16px;
}

.contrast {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.contrast-col {
  border-radius: var(--radius-card);
  padding: 24px;
  background: var(--tint);
}

.contrast-col p + p {
  margin-top: 10px;
}

.contrast-col--not {
  background: var(--canvas);
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(92, 106, 112, 0.45);
}

.icon-label {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--tint);
  color: transparent;
  position: relative;
}

.icon-label--health::after {
  border-radius: 999px;
}

.icon-label--control::after {
  inset: 6px;
  border-radius: 999px;
  border-width: 2px;
}

.who-grid {
  list-style: none;
  padding: 0;
  grid-template-columns: 1fr;
}

.who-grid li {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  font-weight: 600;
}

/* Pricing */
.price {
  font-size: 2rem;
  font-weight: 650;
  margin: 12px 0 0;
}

.price span,
.price-alt {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-card--preferred {
  border-color: var(--teal);
  box-shadow: 0 8px 30px rgba(16, 147, 131, 0.12);
}

.final-mark {
  width: 140px;
  margin-bottom: 16px;
}

.final-cta .btn {
  margin-top: 28px;
}

/* Footer */
.site-footer {
  padding: 40px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand--ink .wordmark,
.brand-wordmark {
  filter: none;
}

.brand-wordmark {
  height: 22px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink-soft);
}

.copyright {
  width: min(100% - 40px, var(--max));
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.copyright a {
  color: var(--ink-soft);
}

/* Legal pages */
.legal {
  padding: 48px 0 88px;
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.legal-updated {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 44px;
}

.legal h3 {
  margin-top: 24px;
}

.legal p {
  margin-top: 12px;
  max-width: 68ch;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
  max-width: 68ch;
}

.legal li {
  margin-top: 6px;
}

.legal address {
  font-style: normal;
  margin-top: 12px;
  line-height: 1.7;
}

.legal a {
  color: var(--teal-deep);
}

.legal-note {
  margin-top: 44px;
  padding: 16px 20px;
  background: var(--tint);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-size: 0.9375rem;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--inverse-100);
  text-decoration: none;
  font-size: 0.9375rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-langs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legal-langs a {
  color: var(--inverse-100);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
  font-size: 0.875rem;
}

.legal-langs a[aria-current="page"] {
  opacity: 1;
  font-weight: 650;
}

.btn--soon {
  cursor: default;
  pointer-events: none;
  margin: 0;
}

.footer-links span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (hover: hover) {
  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .step-card,
  .card,
  .notify,
  .price-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .step-card:hover,
  .card:hover,
  .notify:hover,
  .price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 40, 35, 0.1);
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 0;
    gap: 22px;
    background: transparent;
  }

  .site-nav a {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-bottom: 24px;
  }

  .phone {
    transform: rotateZ(8deg) rotateY(-8deg);
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li:last-child {
    grid-column: 1 / -1;
  }

  .notify-grid,
  .insight-grid,
  .who-grid,
  .pricing-grid,
  .trio {
    grid-template-columns: 1fr 1fr;
  }

  .rescue-flow,
  .contrast {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .rescue-flow {
    gap: 40px;
  }

  .rescue-col--core,
  .rescue-flow .rescue-col:last-child {
    position: relative;
  }

  .rescue-col--core::before,
  .rescue-flow .rescue-col:last-child::before {
    content: "→" / "";
    position: absolute;
    left: -32px;
    top: 56px;
    color: #9bb8b2;
    font-size: 1.35rem;
  }

  .contrast {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 24px;
  }

  .phone {
    width: 300px;
    height: 566px;
  }

  .steps {
    grid-template-columns: repeat(6, 1fr);
  }

  .steps li {
    grid-column: span 2;
  }

  .steps li:nth-child(4),
  .steps li:nth-child(5) {
    grid-column: span 3;
  }

  .insight-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
