/* ==========================================================
   Pace — Landing page
   Palette mirrors the app: warm paper, ink black, quiet greys
   ========================================================== */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EFECE5;
  --card: #FFFFFF;
  --ink: #1C1C1C;
  --muted: #8A8680;
  --soft: #E9E6E0;
  --line: rgba(0, 0, 0, 0.07);
  --green: #34C759;
  --radius: 22px;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--muted); }
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: #000; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.btn-dark:hover { box-shadow: 0 16px 32px rgba(0,0,0,.2); }
.btn-light { background: #fff; color: #000; }
.btn-ghost { color: var(--ink); padding-left: 8px; }
.btn-ghost:hover { opacity: .7; transform: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.wordmark.small { font-size: 15px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: url('/apple-touch-icon.png') center / cover no-repeat;
  color: transparent; font-size: 0;
  display: inline-block; vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  object-fit: cover;
}
.logo-mark.big {
  width: 68px; height: 68px; border-radius: 18px;
  background: url('/icon.png') center / cover no-repeat;
  color: transparent; font-size: 0;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: #E8F7ED; color: #1B7A37;
  border: 1px solid rgba(52, 199, 89, 0.3);
  box-shadow: 0 2px 10px rgba(52, 199, 89, 0.12);
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 28px;
}
.eyebrow-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34C759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, .25);
}
h1 {
  font-size: clamp(56px, 8vw, 104px);
  line-height: .95; letter-spacing: -0.045em; font-weight: 700;
  margin-bottom: 28px;
}
h1 em { font-style: normal; color: #8A8680; font-weight: 700; letter-spacing: -0.045em; }
.lead { font-size: 20px; color: #55524D; max-width: 46ch; margin-bottom: 36px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.micro { margin-top: 18px; font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 640px; }
.glow {
  position: absolute; inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(255, 214, 170, .55), rgba(247,245,240,0));
  filter: blur(20px); z-index: 0;
}

/* ---------- Phone mock ---------- */
.phone {
  position: relative; z-index: 1;
  width: 300px; height: 620px;
  background: #0A0A0A; border-radius: 52px; padding: 11px;
  box-shadow:
    0 0 0 1.5px #2A2A2A inset,
    0 50px 80px -30px rgba(40, 30, 20, .35),
    0 20px 40px -20px rgba(0,0,0,.25);
}
.phone-hero { transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #000; border-radius: 20px; z-index: 3;
}
.screen {
  width: 100%; height: 100%; border-radius: 42px; overflow: hidden;
  background: var(--bg); position: relative;
  display: flex; flex-direction: column;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 28px 0; font-size: 13px; font-weight: 600; height: 46px;
}
.status-icons { font-size: 9px; letter-spacing: 1px; }
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.ico-group { display: flex; gap: 14px; }
.ico { width: 16px; height: 16px; display: inline-block; position: relative; color: var(--muted); }
.ico-clock, .ico-target { border: 1.6px solid var(--muted); border-radius: 50%; }
.ico-clock::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 4px; border-left: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); }
.ico-target::after { content: ""; position: absolute; inset: 4px; background: var(--muted); border-radius: 50%; }
.ico-moon { border-radius: 50%; box-shadow: inset 4px 1px 0 0 var(--muted); transform: rotate(-15deg); }
.ico-menu { background: linear-gradient(var(--muted),var(--muted)) 0 3px/100% 1.6px no-repeat, linear-gradient(var(--muted),var(--muted)) 0 7.5px/80% 1.6px no-repeat, linear-gradient(var(--muted),var(--muted)) 0 12px/55% 1.6px no-repeat; }
.ico-user::before { content: ""; position: absolute; left: 4.5px; top: 0; width: 7px; height: 7px; border: 1.6px solid var(--muted); border-radius: 50%; box-sizing: border-box; }
.ico-user::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 14px; height: 7px; border: 1.6px solid var(--muted); border-bottom: none; border-radius: 8px 8px 0 0; box-sizing: border-box; }

/* Step screen */
.step-screen {
  padding: 36px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
.step-content {
  display: flex;
  flex-direction: column;
}
.step-title {
  font-size: 27px;
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.ai-text-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 3px 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: color .2s;
}
.ai-text-btn:hover {
  color: var(--ink);
}
.timer {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.04em;
  margin: 32px 0 24px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
}
.row-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mbtn {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mbtn-dark {
  background: #000;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.mbtn-light {
  background: var(--soft);
  color: var(--ink);
}
.mbtn.wide { width: 100%; }

/* Stepper at bottom */
.stepper-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}
.step-bar {
  flex: 1;
  max-width: 32px;
  height: 7px;
  border-radius: 100px;
  background: var(--soft);
  transition: background .25s;
}
.step-bar.on {
  background: var(--ink);
}

/* Empty screen */
.empty-screen { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 24px 40px; }
.empty-screen h3 { font-size: 23px; letter-spacing: -0.03em; font-weight: 600; margin-bottom: 8px; }
.empty-screen p { font-size: 13.5px; color: var(--muted); margin-bottom: 26px; max-width: 22ch; }

/* Plan screen (Pace modal sheet style) */
.plan-screen {
  padding: 24px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #FAF8F5;
}
.plan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.plan-modal-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-modal-close {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.plan-summary {
  margin-bottom: 14px;
}
.plan-title {
  font-size: 18.5px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 3px 0 4px;
  color: var(--ink);
  font-weight: 700;
}
.plan-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.plan-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.plan-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background .25s;
  animation: itemIn .45s var(--ease) both;
}
.plan-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.plan-card.active {
  background: #F7F5F0;
  border-color: rgba(0, 0, 0, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.plan-card.done {
  opacity: 0.55;
  background: #F9F9F8;
  border-color: rgba(0, 0, 0, 0.04);
}
.plan-card.done .plan-card-action {
  text-decoration: line-through;
  color: var(--muted);
}
.plan-card-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card-action {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.plan-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.step-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 2.5px 7px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  border: none;
  font-family: inherit;
}
.badge-current {
  background: #111111;
  color: #FFFFFF;
}
.badge-next {
  background: #ECEAE4;
  color: var(--ink);
  cursor: pointer;
}
.badge-done {
  background: #EAF7EE;
  color: #237A3B;
}
.plan-duration {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
@keyframes itemIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.badge-easy {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: #EAF7EE;
  color: #237A3B;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* Lock screen — Calming Pace Blob Gradients */
.phone-lock .screen {
  background:
    radial-gradient(circle 260px at 85% 15%, rgba(232, 215, 241, 0.95) 0%, rgba(232, 215, 241, 0) 70%),
    radial-gradient(circle 240px at 10% 32%, rgba(214, 228, 255, 0.95) 0%, rgba(214, 228, 255, 0) 70%),
    radial-gradient(circle 260px at 75% 58%, rgba(250, 220, 230, 0.95) 0%, rgba(250, 220, 230, 0) 70%),
    radial-gradient(circle 220px at 15% 75%, rgba(232, 246, 239, 0.9) 0%, rgba(232, 246, 239, 0) 70%),
    radial-gradient(circle 250px at 85% 90%, rgba(232, 219, 252, 0.95) 0%, rgba(232, 219, 252, 0) 70%),
    linear-gradient(165deg, #F9F6FC 0%, #EFF3FB 45%, #FBF3F6 100%);
  position: relative;
  overflow: hidden;
}
.lock-blob-aura {
  position: absolute;
  width: 260px;
  height: 260px;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #E8D7F1 0%, #D6E4FF 50%, #FADCE6 100%);
  filter: blur(48px);
  opacity: 0.6;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite alternate;
}
@keyframes blobFloat {
  0% { transform: translateX(-50%) scale(0.95) rotate(0deg); }
  50% { transform: translateX(-47%) scale(1.08) rotate(12deg); }
  100% { transform: translateX(-53%) scale(1.02) rotate(-8deg); }
}
.lock-screen { align-items: center; color: #1C1C1E; }
.lock-date {
  margin-top: 72px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(28, 28, 30, 0.72);
  text-shadow: none;
  position: relative;
  z-index: 2;
}
.lock-clock {
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 30px;
  color: #181524;
  text-shadow: none;
  position: relative;
  z-index: 2;
}
.lock-stack {
  width: 100%;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
}
.lock-notif {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  color: var(--ink);
  border-radius: 20px;
  padding: 13px 15px;
  box-shadow: 
    0 16px 36px -8px rgba(45, 30, 65, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(255, 255, 255, 0.85) inset;
  animation: notifIn .8s var(--ease) both;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
.notif-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #D96B27;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FF9233;
  box-shadow: 0 0 0 2px rgba(255, 146, 51, 0.25);
  animation: pulse 2s infinite;
}
.live-time {
  color: #D96B27;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 146, 51, 0); } }

/* Notifications (shared) */
.notif-head { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.notif-brand { display: flex; align-items: center; gap: 7px; }
.notif-icon { width: 18px; height: 18px; border-radius: 5px; background: url('/apple-touch-icon.png') center / cover no-repeat; color: transparent; font-size: 0; display: inline-block; overflow: hidden; }
.notif-app { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.notif-time { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.notif-title { font-size: 13px; font-weight: 600; }
.notif-body { font-size: 12.5px; color: #3A3A3C; line-height: 1.35; }

.float-notif {
  position: absolute; z-index: 2; right: -36px; bottom: 295px; width: 250px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 20px; padding: 13px 15px;
  box-shadow: 0 24px 48px -16px rgba(40,30,20,.25);
  animation: floatNotif 7s ease-in-out infinite;
}
@keyframes floatNotif { 0%,100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(8px) rotate(2deg); } }

/* ---------- Challenges Constellation (WhatsApp inspired) ---------- */
.challenges-section {
  background: linear-gradient(180deg, #F7F5F0 0%, #F4F1EA 50%, #F7F5F0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 110px 0;
  overflow: hidden;
  position: relative;
}
.constellation-container {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.constellation-center {
  max-width: 650px;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 20px;
}
.constellation-label {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 20px;
}
.constellation-quote {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--ink);
}
.constellation-quote .highlight {
  display: block;
  color: #8A8680;
  font-weight: 700;
}
.constellation-sub {
  font-size: 18.5px;
  line-height: 1.6;
  color: #55524D;
  max-width: 48ch;
  margin: 0 auto 20px;
}
.constellation-hint {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: #8A8680;
  background: rgba(0, 0, 0, 0.04);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: -0.01em;
}

.constellation-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.challenge-pill {
  pointer-events: auto;
  position: absolute;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 25px -4px rgba(40, 30, 20, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  user-select: none;
}
.challenge-pill:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 32px -4px rgba(40, 30, 20, 0.14);
}
.challenge-pill.active {
  background: var(--ink);
  color: #FFFFFF;
  border-color: var(--ink);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.26);
}
.challenge-pill.active::after {
  content: " ✓";
  font-size: 12px;
  margin-left: 6px;
  color: #4ADE80;
  font-weight: 700;
}

/* Floating Animations */
.challenge-pill[data-float="1"] { animation: floatPill1 6.5s ease-in-out infinite; }
.challenge-pill[data-float="2"] { animation: floatPill2 7.8s ease-in-out infinite; }
.challenge-pill[data-float="3"] { animation: floatPill3 8.4s ease-in-out infinite; }
.challenge-pill[data-float="4"] { animation: floatPill4 7.2s ease-in-out infinite; }

@keyframes floatPill1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -10px) rotate(-1deg); }
}
@keyframes floatPill2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -12px) rotate(1.2deg); }
}
@keyframes floatPill3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-5px, 8px) rotate(-0.8deg); }
}
@keyframes floatPill4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, 9px) rotate(1deg); }
}

/* Specific Positions around Center Box */
.pos-1 { top: 15px; left: 8%; }
.pos-2 { top: 25px; right: 9%; }
.pos-3 { top: 120px; left: 2%; }
.pos-4 { top: 130px; right: 3%; }
.pos-5 { top: 245px; left: 0%; }
.pos-6 { top: 255px; right: 1%; }
.pos-7 { bottom: 125px; left: 4%; }
.pos-8 { bottom: 135px; right: 4%; }
.pos-9 { bottom: 25px; left: 14%; }
.pos-10 { bottom: 20px; right: 12%; }
.pos-11 { bottom: 6px; left: 42%; }

/* ---------- Features ---------- */
.feature { padding: 120px 0; }
.feature.alt { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-visual { display: flex; justify-content: center; }
.num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .1em; margin-bottom: 20px; }
h2 { font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin-bottom: 24px; }
h2 em { color: #A9A49C; }
h2.center { text-align: center; }
.feature-copy p { font-size: 18px; color: #55524D; max-width: 44ch; margin-bottom: 28px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink);
}
.ticks li::after {
  content: ""; position: absolute; left: 6.5px; top: 6.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

.size-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); padding: 5px; border-radius: 999px; gap: 4px; flex-wrap: wrap; }
.size-btn {
  border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s;
}
.size-btn:hover { color: var(--ink); }
.size-btn.active { background: #000; color: #fff; }
.hint { font-size: 14px !important; color: var(--muted) !important; margin-top: 16px; }

/* ---------- Principles ---------- */
.principles { padding: 120px 0; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.principle {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.principle:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(40,30,20,.25); }
.p-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 22px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.p-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.principle h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.principle p { color: #6A665F; font-size: 15.5px; }

/* ---------- Story ---------- */
.story { padding: 40px 0 130px; }
.letter {
  max-width: 680px; margin: 0 auto;
  background: #FFFDF8; border: 1px solid var(--line); border-radius: 28px;
  padding: 56px 56px 48px; position: relative;
  box-shadow: 0 40px 80px -48px rgba(40,30,20,.35);
  transform: rotate(-.6deg);
}
.letter::before {
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 110px; height: 28px; background: rgba(255, 207, 158, .55); border-radius: 4px;
}
.letter-eyebrow { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.letter-body { font-size: 34px !important; font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; margin-bottom: 22px !important; color: var(--ink) !important; }
.letter p { font-size: 18px; color: #4A4742; margin-bottom: 16px; line-height: 1.65; }
.letter p em { color: var(--ink); font-weight: 600; }
.signature { margin-top: 30px; display: flex; flex-direction: column; }
.sig { font-family: var(--serif); font-style: italic; font-size: 40px; line-height: 1; }
.sig-role { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- CTA ---------- */
.cta { padding: 10px 0 36px; }
.cta-inner {
  background: #000; color: #fff; border-radius: 36px;
  padding: 96px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 64px -24px rgba(0,0,0,0.3);
}
.cta-inner::after {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,190,130,.22), transparent);
  bottom: -340px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: #A7A39D; font-size: 18px; margin-bottom: 32px; max-width: 48ch; }
.cta .cta-micro { color: #8E8A83; font-size: 13px; margin-top: 24px; margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0 48px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer .wordmark { color: var(--ink); }

/* ---------- Reveal ---------- */
/* ---------- Reveal (Progressive Enhancement - never blank) ---------- */
.reveal { opacity: 1; transform: none; }
body.js-ready .reveal:not(.in) {
  opacity: 0;
  transform: translateY(20px);
}
body.js-ready .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* ---------- Responsive Design ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .feature-grid.reverse .feature-visual { order: 1; }
  .feature { padding: 72px 0; }
  
  .challenges-section { padding: 72px 0; }
  .constellation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    gap: 20px;
  }
  .constellation-center {
    order: 1;
    max-width: 600px;
    padding: 0;
  }
  .constellation-cloud {
    order: 2;
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    max-width: 580px;
  }
  .challenge-pill {
    position: static;
    animation: none !important;
    font-size: 13px;
    padding: 9px 16px;
  }

  .principles { padding: 72px 0; }
  .principle-grid { grid-template-columns: 1fr; gap: 18px; }

  .story { padding: 72px 0; }
  .letter { padding: 44px 28px 36px; }
  .letter-body { font-size: 26px !important; }

  .cta { padding: 20px 0 36px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  
  /* Navigation */
  .nav-inner { height: 58px; }
  #nav-cta { padding: 8px 15px; font-size: 13px; white-space: nowrap; }

  /* Hero */
  .hero { padding: 28px 0 44px; }
  .eyebrow-pill { margin-bottom: 18px; font-size: 12.5px; padding: 6px 13px 6px 10px; }
  h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1.0; margin-bottom: 18px; letter-spacing: -0.04em; }
  .lead { font-size: 16.5px; line-height: 1.5; margin-bottom: 24px; max-width: 100%; }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
    max-width: 320px;
  }
  .hero-actions #hero-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hero-actions #hero-story {
    display: block;
    text-align: center;
    padding: 6px 0;
    font-size: 14.5px;
  }
  .micro { margin-top: 10px; font-size: 12px; }

  .hero-visual { margin-top: 14px; }
  .phone-hero { transform: none; animation: none; }
  .float-notif { display: none; }

  /* Phone Mockups */
  .phone {
    width: 290px;
    height: 600px;
    border-radius: 48px;
    padding: 10px;
    margin: 0 auto;
    box-shadow: 
      0 0 0 1.5px #2A2A2A inset,
      0 32px 60px -20px rgba(40, 30, 20, .28),
      0 16px 30px -15px rgba(0,0,0,.2);
  }

  /* Challenges Section */
  .challenges-section { padding: 48px 0; }
  .constellation-label { margin-bottom: 12px; font-size: 12.5px; }
  .constellation-quote { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; margin-bottom: 14px; }
  .constellation-sub { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
  .constellation-hint { font-size: 11.5px; padding: 5px 12px; }
  .constellation-cloud { gap: 8px; margin-top: 16px; }
  .challenge-pill { font-size: 12px; padding: 8px 13px; }

  /* Features */
  .feature { padding: 48px 0; }
  .feature-grid { gap: 28px; }
  .feature-copy h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; margin-bottom: 14px; }
  .feature-copy p { font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
  .ticks { gap: 10px; }
  .ticks li { font-size: 14px; }

  /* Feature 2: Planning size toggle */
  .size-toggle { width: 100%; max-width: 320px; margin-bottom: 12px; }
  .size-btn { flex: 1; font-size: 12.5px; padding: 9px 8px; text-align: center; }
  .hint { margin-top: 10px; font-size: 12px; }

  /* Principles */
  .principles { padding: 48px 0; }
  .principles h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; margin-bottom: 28px; }
  .principle-grid { gap: 14px; }
  .principle { padding: 22px 18px; border-radius: 18px; }
  .principle h3 { font-size: 17px; margin-bottom: 6px; }
  .principle p { font-size: 14px; }

  /* Story */
  .story { padding: 48px 0; }
  .letter { padding: 32px 20px 28px; border-radius: 22px; }
  .letter-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .letter-body { font-size: 22px !important; line-height: 1.3 !important; margin-bottom: 16px !important; }
  .letter p { font-size: 14.5px; line-height: 1.55; margin-bottom: 14px; }
  .signature { margin-top: 20px; padding-top: 18px; }
  .sig { font-size: 30px; }
  .sig-role { font-size: 12px; }

  /* CTA (matching the sleek desktop card) */
  .cta { padding: 12px 0 28px; }
  .cta-inner {
    border-radius: 28px;
    padding: 52px 24px 44px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.4);
  }
  .cta-inner::after {
    width: 380px;
    height: 380px;
    bottom: -220px;
    background: radial-gradient(closest-side, rgba(255,190,130,.26), transparent);
  }
  .logo-mark.big {
    width: 54px;
    height: 54px;
    font-size: 26px;
    border-radius: 16px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(255,255,255,0.08);
  }
  .cta h2 {
    font-size: clamp(27px, 7.5vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
  }
  .cta p {
    font-size: 15px;
    line-height: 1.55;
    color: #A7A39D;
    margin-bottom: 26px;
    max-width: 300px;
  }
  .cta .btn {
    width: auto;
    max-width: 100%;
    min-width: 260px;
    padding: 15px 26px;
    font-size: 15.5px;
    border-radius: 999px;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(255,255,255,0.12);
  }
  .cta-micro {
    margin-top: 20px;
    font-size: 12px;
    color: #8E8A83;
    line-height: 1.4;
    max-width: 270px;
  }

  /* Footer */
  .footer { padding: 28px 0; font-size: 12px; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 360px) {
  .phone {
    width: 270px;
    height: 560px;
    border-radius: 42px;
    padding: 8px;
  }
  .cta-inner {
    padding: 44px 18px 36px;
  }
  .cta .btn {
    min-width: 100%;
    font-size: 14.5px;
    padding: 14px 20px;
  }
}

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