/*
 * Visual Schedule — landing site styles.
 * Tokens are product #6's own palette (issue #2); system fonts only.
 * Contrast (WCAG): ink 11.0:1, muted 4.76:1 on --bg and 5.02:1 on --card,
 * teal-deep 4.80:1 on --bg, white on teal-deep 5.07:1, teal borders 3.55:1 on --bg.
 * --muted must not sit on --page or --teal-soft (below 4.5:1); --faint is decorative only.
 */
:root {
  --bg: #fdf8f2;
  --page: #f2eadd;
  --card: #ffffff;
  --ink: #3d382f;
  --ink-soft: #4a4438;
  --muted: #766e63;
  --faint: #b3aa9c;
  --teal: #0d9488;
  --teal-deep: #0b7c72;
  --teal-soft: #e4f3f1;
  --teal-line: rgba(13, 148, 136, 0.38);
  --line: #eee4d6;

  --r-card: 16px;
  --r-tile: 12px;
  --r-pill: 999px;
  --container: 1120px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.9rem);
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--teal-deep);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.26rem);
}

.section {
  padding: clamp(64px, 10vw, 120px) 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

/* Buttons — every tap target is at least 44px tall. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 750;
  text-align: center;
  transition:
    transform 180ms var(--ease),
    background-color 180ms var(--ease),
    border-color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--teal-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-soft);
}

.btn-secondary {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal-deep);
}

.btn-secondary:hover {
  background: var(--card);
}

/* Header */
.header {
  padding: 18px 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  transition: color 180ms var(--ease);
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.nav .btn {
  white-space: nowrap;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: clamp(36px, 7vw, 88px) 0 clamp(56px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.78fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

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

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(360px, 100%);
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 48px;
  background: var(--page);
}

.phone-screen {
  min-height: 600px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--bg);
}

.notch {
  width: 118px;
  height: 25px;
  margin: 0 auto 14px;
  border-radius: var(--r-pill);
  background: var(--page);
}

.phone-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.phone-title {
  margin-bottom: 4px;
  font-size: 1.32rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.phone-sub {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-routine {
  display: grid;
  gap: 12px;
}

.mini-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.mini-step.done,
.step-card.done {
  border-color: var(--teal-line);
  background: var(--teal-soft);
}

.mini-step.current,
.step-card.current {
  border: 2px solid var(--teal);
  background: var(--card);
}

.icon-bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--card);
  color: var(--teal-deep);
}

.mini-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mini-name {
  font-weight: 800;
  line-height: 1.3;
}

.mini-hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

/* --muted fails on --teal-soft, so hints inside done steps use --ink-soft. */
.done .mini-hint,
.done .step-copy {
  color: var(--ink-soft);
}

.check {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  background: var(--card);
  color: var(--teal-deep);
}

.pill {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pill.now {
  border-color: var(--teal);
  color: var(--teal-deep);
  font-weight: 800;
}

.phone-progress {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  flex: 1;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--line);
}

.dot.on {
  background: var(--teal);
}

/* Where it lives */
.brand-hero {
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.brand-hero img,
.brand-promo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}

/* One morning */
.routine-panel {
  padding: clamp(18px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.routine-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 228px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}

.step-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.step-num {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.done .step-num {
  color: var(--ink-soft);
}

.pictogram {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--card);
  color: var(--teal-deep);
}

.step-title {
  font-size: 1.18rem;
  font-weight: 850;
}

.step-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.96rem;
}

.calm-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}

.calm-progress .dots {
  flex: 1;
  max-width: 360px;
}

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-tile);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* Kind timers */
.kind-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(22px, 6vw, 64px);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-card);
  background: var(--card);
}

.kind-block h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
}

.kind-phrases {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.kind-phrases li {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  background: var(--bg);
  color: var(--muted);
}

.kind-phrases strong {
  color: var(--teal-deep);
  font-weight: 800;
}

.timer-card {
  justify-self: end;
  width: 100%;
  max-width: 520px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg);
}

.timer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.timer-chip {
  padding: 8px 12px;
  border: 1px solid var(--teal);
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--teal-deep);
  font-weight: 800;
}

.big-time {
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 850;
  letter-spacing: -0.06em;
  line-height: 1;
}

.kind-message {
  margin-top: 18px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.kind-note {
  margin-top: 12px;
  color: var(--muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--teal);
}

.price-tag {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--teal-line);
  border-radius: var(--r-pill);
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 850;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
}

.price strong {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.card .annual-line {
  color: var(--teal-deep);
  font-weight: 750;
}

.price-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-list svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--teal-deep);
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.card .fine {
  margin-top: 14px;
  font-size: 0.92rem;
}

/* Waitlist */
.waitlist-form {
  max-width: 560px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--ink);
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.waitlist-row input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--muted);
  border-radius: var(--r-tile);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.waitlist-row input:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 2px;
}

.waitlist .fine {
  margin-top: 12px;
  font-size: 0.92rem;
}

/* FAQ */
.faq {
  max-width: 860px;
}

details {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--card);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 850;
}

summary:hover {
  color: var(--teal-deep);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--teal-deep);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

details[open] summary::after {
  content: '\2013';
}

details p {
  max-width: 70ch;
  padding: 0 22px 22px;
  color: var(--muted);
}

details a,
.prose a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Brand promo */
.brand-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.brand-promo figure {
  margin: 0;
}

/* Footer */
.footer {
  padding: 54px 0 34px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

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

.footer-brand p {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col h2 {
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 180ms var(--ease);
}

.footer-col a:hover {
  color: var(--teal-deep);
  text-decoration-color: currentColor;
}

.other-tools {
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.copyright a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Privacy page */
.prose {
  max-width: 68ch;
}

.prose h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: none;
}

.prose h2 {
  margin-top: 36px;
  font-size: 1.3rem;
  max-width: none;
}

.prose p {
  margin-top: 14px;
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .kind-block,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .timer-card {
    justify-self: start;
  }

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

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

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

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

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero-actions .btn,
  .price-actions .btn {
    width: 100%;
  }

  .phone-screen {
    min-height: 0;
    padding: 14px;
  }

  .mini-step {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .icon-bubble {
    width: 44px;
    height: 44px;
  }

  .routine-grid,
  .brand-promo,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 0;
  }

  .calm-progress {
    flex-direction: column;
    align-items: flex-start;
  }

  .calm-progress .dots {
    width: 100%;
    max-width: none;
  }

  .timer-card {
    padding: 20px;
  }
}

@media (max-width: 360px) {
  .nav {
    gap: 10px;
  }

  .nav .btn {
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .wordmark {
    gap: 8px;
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    padding: 0 16px;
    font-size: 0.95rem;
  }

  .mini-step .pill:not(.now) {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .btn:hover {
    transform: none;
  }
}
