/* habital.app. Colours and shapes follow the iOS app (Habital/DesignSystem/Theme.swift, "Grove"):
   flat cards with a 24px radius, pill buttons with a 30px radius, no heavy shadows. */
:root {
  --paper: #F5F3EE;
  --card: #FFFFFF;
  --ink: #2A4539;
  --ink-2: #6B746F;
  --action: #5E7E6D;
  --action-pressed: #4E6C5C;
  --tint: #E3ECE5;
  --line: #E2DED5;
  --sage: #B4C6BB;
  --gold: #E2B45C;
  --gold-soft: #F3E2BE;
  --purple: #7C72D9;
  --purple-soft: #E9E6FA;
  --cherry: #E5484D;
  --night: #1E332A;
  --on-dark: #6F9A84;
  --t1: #5E7E6D; --t2: #C4A577; --t3: #8C9FB0; --t4: #C48E78;

  --sans: "Source Sans 3", "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", "PingFang SC", sans-serif;
  --brand: "Montserrat Alternates", "Noto Sans KR", sans-serif;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--action); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.num { font-family: var(--brand); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 30px; border: 0; cursor: pointer;
  font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #243C31; }
.btn-soft { background: var(--tint); color: var(--ink); }
.btn-soft:hover { background: #D6E3D9; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-gold { background: var(--gold); color: var(--night); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--brand); font-weight: 700; font-size: 21px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; background: var(--card); border-radius: 30px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line);
}
.lang button { border: 0; background: none; padding: 6px 11px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.me-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 5px 14px 5px 5px; border-radius: 30px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.me-chip img, .me-chip .avatar { width: 30px; height: 30px; border-radius: 50%; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-signin-label { display: none; } .nav-inner { gap: 12px; } }

/* ---------- campaign ribbon ---------- */
.ribbon { background: var(--night); color: #E9F0EB; font-size: 15px; }
.ribbon .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 8px 0; text-align: center; flex-wrap: wrap; }
.ribbon strong { color: var(--gold); }
.ribbon a { color: #fff; font-weight: 700; }
.ribbon[hidden] { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .swap { display: inline-block; position: relative; color: var(--action); }
.hero h1 .swap span { display: inline-block; transition: transform .5s var(--ease), opacity .5s; }
.hero h1 .swap span.out { transform: translateY(-40%); opacity: 0; }
.hero h1 .swap span.in { transform: translateY(40%); opacity: 0; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action); box-shadow: 0 0 0 0 rgba(94,126,109,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(94,126,109,0); } 100% { box-shadow: 0 0 0 0 rgba(94,126,109,0); } }
.hero-facts { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts .num { font-size: 30px; line-height: 1.1; }
.hero-facts span:last-child { font-size: 14px; color: var(--ink-2); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: -1; }
.blob.a { width: 520px; height: 520px; background: #DCE7DF; right: -120px; top: -80px; }
.blob.b { width: 360px; height: 360px; background: var(--gold-soft); right: 260px; bottom: -160px; opacity: .45; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 32px; }
}

/* ---------- phone demo ---------- */
.stage { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 350px; max-width: 100%; border-radius: 48px; padding: 12px;
  background: #1E1F1C; box-shadow: 0 40px 80px -30px rgba(42,69,57,.45);
}
.screen { background: var(--paper); border-radius: 38px; overflow: hidden; padding: 20px 16px 22px; min-height: 600px; position: relative; }
.status { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; padding: 0 10px 14px; }
.greet { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 14px; }
.greet b { font-size: 19px; }
.cherry { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border-radius: 30px; padding: 5px 11px; font-weight: 700; font-size: 14px; }
.cherry i { width: 12px; height: 12px; border-radius: 50%; background: var(--cherry); display: inline-block; position: relative; }
.cherry i::after { content: ""; position: absolute; width: 6px; height: 2px; background: #3F7A4F; top: -3px; left: 5px; transform: rotate(-35deg); border-radius: 2px; }
.today { background: var(--card); border-radius: 24px; padding: 16px; }
.today small { color: var(--ink-2); font-size: 13px; }
.today h4 { margin: 4px 0 12px; font-size: 19px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px; color: var(--ink-2); margin-bottom: 14px; }
.week i { display: block; width: 28px; height: 28px; margin: 4px auto 0; border-radius: 50%; background: #EEECE6; position: relative; transition: background .3s; }
.week i.done { background: var(--ink); }
.week i.done::after, .week i.now.done::after { content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.week i.now { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.week i.now.done { background: var(--ink); animation: pop .4s var(--ease); }
.week b.now { color: var(--ink); }
@keyframes pop { 50% { transform: scale(1.25); } }
.hold-row { display: flex; gap: 8px; }
.hold {
  position: relative; flex: 1; height: 52px; border-radius: 30px; border: 0; cursor: pointer; overflow: hidden;
  background: var(--tint); color: var(--ink); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.hold .fill { position: absolute; inset: 0; background: var(--sage); transform-origin: left; transform: scaleX(0); }
.hold .label { position: relative; display: flex; align-items: center; gap: 8px; }
.hold svg { width: 20px; height: 20px; }
.hold.done { background: var(--ink); color: #fff; }
.hold.done .fill { display: none; }
.hold:not(.done) { animation: nudge 2.6s 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 85%, 100% { transform: none; } 90% { transform: scale(1.03); } 95% { transform: scale(.99); } }
.cam { width: 52px; height: 52px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex: none; }
.cam svg { width: 22px; height: 22px; }
.coach-line { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--ink-2); min-height: 32px; }
.coach-line img { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); flex: none; }
.crew-head { display: flex; justify-content: space-between; margin: 20px 4px 10px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.crew-head b { color: var(--ink); }
.crew { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.crew .av { position: relative; width: 50px; height: 50px; margin: 0 auto 4px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; overflow: visible; }
.crew .av img { width: 46px; height: 46px; border-radius: 50%; }
.crew .av.ok::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  box-shadow: 0 0 0 2px var(--paper); animation: pop .4s var(--ease);
}
.poke { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 20px; background: var(--purple-soft); color: var(--purple); font-weight: 700; font-size: 11px; border: 0; cursor: pointer; }
.poke.sent { background: var(--tint); color: var(--action); }
.together { margin-top: 18px; background: var(--card); border-radius: 24px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.together .ring { width: 54px; height: 54px; flex: none; }
.together b { display: block; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; background: var(--gold-soft); color: #8A6420; margin-top: 4px; }
.notif {
  position: absolute; left: 12px; right: 12px; top: 12px; z-index: 3;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 22px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.25); transform: translateY(-140%); transition: transform .6s var(--ease);
}
.notif.show { transform: none; }
.notif img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.notif small { display: block; color: var(--ink-2); font-size: 11px; }
.float { position: absolute; width: 84px; height: 84px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: 0 16px 30px -18px rgba(42,69,57,.4); animation: bob 5s ease-in-out infinite; }
.float img { width: 70px; height: 70px; }
.float.f1 { left: -10px; top: 70px; }
.float.f2 { right: -16px; top: 230px; animation-delay: -1.6s; width: 70px; height: 70px; }
.float.f2 img { width: 58px; height: 58px; }
.float.f3 { left: 6px; bottom: 60px; animation-delay: -3.2s; width: 64px; height: 64px; }
.float.f3 img { width: 52px; height: 52px; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-4deg); } }
.tap-hint { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--ink-2); }
@media (max-width: 520px) { .float { display: none; } .screen { min-height: 0; } }

/* leaf burst */
.leaf { position: fixed; width: 14px; height: 14px; pointer-events: none; z-index: 80; background: var(--action); border-radius: 0 80% 0 80%; animation: leaf 1.1s var(--ease) forwards; }
@keyframes leaf { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--card); }
.marquee .track { display: flex; gap: 14px; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 30px; background: var(--paper); font-weight: 600; font-size: 16px; white-space: nowrap; }
.marquee span img { width: 26px; height: 26px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { padding: 110px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head .lede { margin-top: 18px; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.white { background: var(--card); }
.dark { background: var(--ink); color: #EEF3EF; }
.dark .lede, .dark .muted { color: #B9C9BF; }
.dark .eyebrow { color: var(--gold); }
@media (max-width: 700px) { section { padding: 76px 0; } .sec-head { margin-bottom: 36px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border-radius: 24px; padding: 30px 28px; position: relative; overflow: hidden; }
.white .step { background: var(--paper); }
.step .n { font-family: var(--brand); font-weight: 700; font-size: 15px; color: var(--action); }
.step h3 { margin: 10px 0 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
.step .art { height: 120px; margin-top: 24px; display: flex; align-items: flex-end; gap: 10px; }
.lvl { flex: 1; border-radius: 18px; padding: 12px; color: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; transition: transform .3s var(--ease); cursor: default; }
.lvl:hover { transform: translateY(-6px); }
.lvl .num { font-size: 30px; line-height: 1; }
.lvl small { font-size: 12px; font-weight: 700; }
.lvl.s { background: var(--tint); height: 62%; }
.lvl.c { background: var(--gold-soft); height: 80%; }
.lvl.m { background: var(--purple-soft); height: 100%; }
.press-art { width: 100%; display: flex; justify-content: center; align-items: center; height: 100%; }
.press-art .pill { width: 82%; height: 54px; border-radius: 30px; background: var(--tint); position: relative; overflow: hidden; display: grid; place-items: center; font-weight: 700; }
.press-art .pill::before { content: ""; position: absolute; inset: 0; background: var(--sage); transform-origin: left; animation: holdfill 3s ease-in-out infinite; }
.press-art .pill span { position: relative; }
@keyframes holdfill { 0%, 15% { transform: scaleX(0); } 50%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.poke-art { width: 100%; height: 100%; position: relative; }
.poke-art .bubble { position: absolute; left: 0; right: 0; bottom: 6px; background: var(--card); border-radius: 18px; padding: 10px 12px; font-size: 13px; display: flex; gap: 8px; align-items: center; box-shadow: 0 8px 20px -14px rgba(0,0,0,.35); animation: drop 3.4s var(--ease) infinite; }
.white .poke-art .bubble { background: var(--card); }
.poke-art .bubble img { width: 30px; height: 30px; border-radius: 50%; background: var(--purple-soft); }
@keyframes drop { 0% { transform: translateY(-70px); opacity: 0; } 15%, 75% { transform: none; opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* different habits, one crew */
.crew-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mate { background: var(--paper); border-radius: 24px; padding: 24px 20px; text-align: center; transition: transform .4s var(--ease); }
.mate:hover { transform: translateY(-6px) rotate(-1deg); }
.mate .ring-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto 16px; }
.mate .ring-wrap img { position: absolute; inset: 16px; width: 100px; height: 100px; border-radius: 50%; background: var(--card); }
.mate .who { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.mate .habit { font-size: 19px; font-weight: 800; margin-top: 4px; }
.mate .day { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.mate .day b { font-family: var(--brand); color: var(--ink); }
.round-bar { margin-top: 26px; display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; color: var(--ink-2); font-size: 16px; }
.round-bar .tag { background: var(--ink); color: var(--paper); border-radius: 30px; padding: 8px 18px; font-weight: 700; }
.ring circle { fill: none; stroke-linecap: round; }
.ring .bg { stroke: #E9E6DF; }
.ring .fg { transition: stroke-dashoffset 1.6s var(--ease); }
@media (max-width: 900px) { .crew-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .mate .ring-wrap { width: 108px; height: 108px; } .mate .ring-wrap img { inset: 13px; width: 82px; height: 82px; } .mate .habit { font-size: 17px; } }

/* features split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.flip .split-media { order: -1; }
.split h2 { font-size: clamp(28px, 3.4vw, 42px); }
.split .lede { margin-top: 16px; }
.split ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); }
.split li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235E7E6D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.media-card { background: var(--card); border-radius: 32px; padding: 32px; position: relative; overflow: hidden; }
.white .media-card { background: var(--paper); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split-media { order: 0; } .split + .split { margin-top: 76px; } }

/* busy day toggle */
.toggle { display: inline-flex; background: var(--paper); border-radius: 30px; padding: 4px; margin-bottom: 22px; }
.white .toggle { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.toggle button { border: 0; background: none; padding: 9px 18px; border-radius: 30px; font-weight: 700; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plan { display: grid; gap: 12px; }
.plan .opt { border-radius: 20px; padding: 16px 18px; background: var(--card); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .35s, opacity .35s, transform .35s var(--ease); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.white .plan .opt { background: var(--card); }
.plan .opt small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.plan .opt b { font-size: 19px; }
.plan .opt.on { box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.02); }
.plan .opt:not(.on) { opacity: .5; }
.plan .badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--tint); color: var(--action); white-space: nowrap; }
.streak { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.streak .cherry { background: #FDECEC; color: var(--cherry); }

/* poke demo */
.lock { background: linear-gradient(160deg, #3C5E4E, #1E332A); border-radius: 28px; padding: 28px 18px 24px; color: #fff; text-align: center; min-height: 330px; position: relative; overflow: hidden; }
.lock .time { font-family: var(--brand); font-size: 64px; font-weight: 600; line-height: 1; margin-top: 8px; }
.lock .date { font-size: 15px; opacity: .8; }
.lock .notif { position: relative; left: auto; right: auto; top: auto; margin-top: 34px; text-align: left; color: var(--ink); transform: translateY(30px) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.lock .notif.show { transform: none; opacity: 1; }
.poke-btn { margin-top: 22px; }

/* coaches */
.coaches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.coach { background: var(--card); border: 0; border-radius: 24px; padding: 20px 12px 18px; text-align: center; cursor: pointer; transition: transform .35s var(--ease), background .3s; }
.coach:hover, .coach[aria-pressed="true"] { transform: translateY(-8px); }
.coach[aria-pressed="true"] { background: var(--ink); color: #fff; }
.coach[aria-pressed="true"] small { color: var(--sage); }
.coach img { width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: var(--paper); transition: transform .4s var(--ease); }
.coach:hover img { transform: rotate(-6deg) scale(1.05); }
.coach b { display: block; font-family: var(--brand); font-size: 18px; }
.coach small { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.coach-say { margin: 28px auto 0; max-width: 640px; background: var(--card); border-radius: 24px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; font-size: 18px; min-height: 84px; }
.coach-say img { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); flex: none; }
.coach-say p { transition: opacity .25s; }
@media (max-width: 960px) { .coaches { grid-template-columns: repeat(3, 1fr); } }

/* city */
.city-shot { border-radius: 28px; overflow: hidden; max-width: 380px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(42,69,57,.4); transform: rotate(2deg); transition: transform .6s var(--ease); }
.city-shot:hover { transform: rotate(0) scale(1.02); }

/* screens gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 30px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; width: 250px; scroll-snap-align: center; }
.gallery img { border-radius: 26px; background: var(--card); aspect-ratio: 640 / 1390; object-fit: cover; object-position: top; box-shadow: 0 20px 40px -26px rgba(42,69,57,.45); }
.gallery figcaption { margin-top: 12px; font-size: 15px; font-weight: 600; text-align: center; color: var(--ink-2); }
.gallery-wrap { position: relative; }
.gal-btns { display: flex; gap: 10px; justify-content: center; }
.gal-btns button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.gal-btns svg { width: 20px; height: 20px; }

/* new year */
.ny { position: relative; overflow: hidden; }
.ny-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.countdown { display: flex; gap: 14px; margin-top: 30px; }
.countdown div { background: rgba(255,255,255,.08); border-radius: 20px; padding: 14px 16px 10px; min-width: 86px; text-align: center; }
.countdown .num { display: block; font-size: 40px; line-height: 1.05; color: #fff; }
.countdown small { color: #B9C9BF; font-size: 13px; }
.planner { background: rgba(255,255,255,.06); border-radius: 28px; padding: 28px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.planner label { font-size: 14px; color: #B9C9BF; font-weight: 600; display: block; margin-bottom: 8px; }
.planner input[type="date"] { width: 100%; border: 0; border-radius: 16px; padding: 14px 16px; font: inherit; font-size: 18px; font-weight: 700; background: #fff; color: var(--ink); }
.ends { display: grid; gap: 10px; margin-top: 18px; }
.end { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,.07); }
.end .lv { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.end .lv .num { font-size: 24px; color: var(--gold); width: 38px; }
.end .when { font-weight: 700; color: #fff; }
.end.hl { background: var(--gold); color: var(--night); }
.end.hl .num, .end.hl .when { color: var(--night); }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .0; animation: twinkle 4s infinite; }
@keyframes twinkle { 50% { opacity: .9; transform: scale(1.8); } }
@media (max-width: 900px) { .ny-grid { grid-template-columns: 1fr; gap: 36px; } .countdown div { min-width: 0; flex: 1; padding: 12px 6px 8px; } .countdown .num { font-size: 32px; } }

/* beta */
.beta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--card); border-radius: 32px; padding: 34px 38px; }
.beta .flag { width: 92px; height: 92px; border-radius: 24px; background: var(--gold-soft); display: grid; place-items: center; }
.beta .flag svg { width: 54px; height: 54px; }
.beta h3 { font-size: 26px; }
.beta p { color: var(--ink-2); margin-top: 6px; }
.beta .left { text-align: center; }
.beta .left .num { font-size: 44px; line-height: 1; display: block; }
.beta .left small { color: var(--ink-2); font-weight: 600; }
@media (max-width: 800px) { .beta { grid-template-columns: 1fr; text-align: center; padding: 30px 24px; } .beta .flag { margin: 0 auto; } }

/* habstride */
.stride { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chat { background: var(--paper); border-radius: 32px; padding: 26px; display: grid; gap: 12px; }
.msg { display: flex; gap: 10px; align-items: flex-end; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg img { width: 36px; height: 36px; border-radius: 50%; background: var(--card); flex: none; }
.msg .b { background: var(--card); border-radius: 20px 20px 20px 6px; padding: 12px 16px; font-size: 15px; max-width: 85%; }
.msg.me { justify-content: flex-end; }
.msg.me .b { background: var(--ink); color: #fff; border-radius: 20px 20px 6px 20px; }
.answers { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 46px; }
.answers span { background: var(--card); border-radius: 20px; padding: 6px 12px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line); }
.answers span.pick { box-shadow: inset 0 0 0 2px var(--ink); }
.plan-card { background: var(--card); border-radius: 22px; padding: 16px 18px; margin-left: 46px; }
.plan-card small { color: var(--action); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.plan-card b { display: block; font-size: 18px; margin: 2px 0 6px; }
.plan-card p { font-size: 14px; color: var(--ink-2); }
.soon { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--purple); background: var(--purple-soft); border-radius: 20px; padding: 4px 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .stride { grid-template-columns: 1fr; gap: 32px; } }

/* story timeline */
.timeline { position: relative; display: grid; gap: 22px; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--sage), var(--line)); }
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.tl .dot { width: 56px; height: 56px; border-radius: 50%; background: var(--card); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: inset 0 0 0 2px var(--sage); }
.white .tl .dot { background: var(--card); }
.tl .dot svg { width: 24px; height: 24px; color: var(--action); }
.tl .dot img { width: 44px; height: 44px; }
.tl .body { background: var(--paper); border-radius: 24px; padding: 22px 26px; }
.tl .when { font-size: 13px; font-weight: 700; color: var(--action); letter-spacing: .04em; text-transform: uppercase; }
.tl h3 { margin: 4px 0 8px; }
.tl p { color: var(--ink-2); font-size: 16px; }
.tl blockquote { margin: 14px 0 0; padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--card); border-radius: 0 14px 14px 0; font-size: 15px; color: var(--ink); }
.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack span { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 20px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.word { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 56px; font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; }
.word .part { background: var(--card); border-radius: 22px; padding: 12px 22px; }
.word .plus { color: var(--ink-2); font-weight: 500; }
.word .res { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 12px 22px; font-family: var(--brand); }

/* team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.unit { background: var(--card); border-radius: 24px; padding: 28px; }
.unit .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.unit .ico svg { width: 26px; height: 26px; }
.unit p { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.people { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 18px; }
.person { background: var(--card); border-radius: 24px; padding: 22px 16px; text-align: center; }
.person img, .person .avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; background: var(--tint); object-fit: cover; }
.person b { display: block; font-size: 17px; }
.person small { color: var(--ink-2); font-size: 14px; }
.team-ways { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; justify-content: center; }
.team-ways span { background: var(--card); border-radius: 30px; padding: 10px 18px; font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.motto { margin-top: 56px; text-align: center; font-family: var(--brand); font-weight: 700; font-size: clamp(24px, 3vw, 36px); }
.motto small { display: block; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } .people { grid-template-columns: repeat(2, 1fr); } }

/* final cta */
.final { text-align: center; position: relative; overflow: hidden; }
.final .coach-row { display: flex; justify-content: center; margin-bottom: 26px; }
.final .coach-row img { width: 74px; height: 74px; border-radius: 50%; background: var(--card); margin-left: -12px; box-shadow: 0 0 0 4px var(--paper); transition: transform .3s var(--ease); }
.final .coach-row img:first-child { margin-left: 0; }
.final .coach-row img:hover { transform: translateY(-10px); }
.final .hero-cta { justify-content: center; }

/* footer */
footer { background: var(--night); color: #B9C9BF; padding: 56px 0 40px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .logo { color: #fff; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: #B9C9BF; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom .hbt { display: flex; align-items: center; gap: 10px; }
.foot-bottom .hbt img { width: 26px; height: 26px; border-radius: 6px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- forms (sign-in, account) ---------- */
.auth { min-height: calc(100svh - 68px); display: grid; place-items: center; padding: 40px 20px 80px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 32px; padding: 36px 30px 30px; }
.auth-card .crew-mini { display: flex; justify-content: center; margin-bottom: 20px; }
.auth-card .crew-mini img { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); margin-left: -10px; box-shadow: 0 0 0 3px var(--card); }
.auth-card .crew-mini img:first-child { margin-left: 0; }
.auth-card h1 { font-size: 28px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--ink-2); margin: 8px 0 26px; font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
.field input { width: 100%; border: 0; border-radius: 30px; padding: 15px 20px; font: inherit; font-size: 17px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--action); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.form-msg { min-height: 22px; font-size: 15px; margin: 4px 4px 0; color: var(--cherry); }
.form-msg.ok { color: var(--action); }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; flex-wrap: wrap; }
.auth-links a, .linkish { color: var(--action); font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); text-align: center; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.account { padding: 48px 0 100px; }
.acct-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 36px; }
.acct-head .big-av { width: 76px; height: 76px; border-radius: 50%; background: var(--tint); object-fit: cover; }
.acct-head h1 { font-size: clamp(28px, 4vw, 40px); }
.acct-head .muted { color: var(--ink-2); }
.acct-head .actions { margin-left: auto; display: flex; gap: 10px; }
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.rcard { background: var(--card); border-radius: 24px; padding: 22px; display: grid; gap: 14px; }
.rcard .top { display: flex; gap: 14px; align-items: center; }
.rcard .ring { width: 64px; height: 64px; flex: none; }
.rcard h3 { font-size: 19px; }
.rcard .meta { font-size: 14px; color: var(--ink-2); }
.rcard .members { display: grid; gap: 8px; }
.rcard .mem { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.rcard .mem img, .rcard .mem .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--tint); flex: none; object-fit: cover; }
.rcard .mem span { color: var(--ink-2); }
.status-tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--tint); color: var(--action); }
.status-tag.A { background: var(--ink); color: #fff; }
.status-tag.F { background: var(--gold-soft); color: #8A6420; }
.empty { background: var(--card); border-radius: 24px; padding: 40px; text-align: center; color: var(--ink-2); }
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.panel { background: var(--card); border-radius: 24px; padding: 24px; }
.panel p { color: var(--ink-2); font-size: 15px; margin: 6px 0 16px; }
.demo-note { background: var(--purple-soft); color: #4B4396; border-radius: 16px; padding: 10px 16px; font-size: 14px; font-weight: 600; margin-bottom: 22px; display: inline-block; }
.avatar { display: grid; place-items: center; background: var(--tint); color: var(--action); font-weight: 800; }
@media (max-width: 760px) { .panel-row { grid-template-columns: 1fr; } .acct-head .actions { margin-left: 0; } }

/* simple pages (stride, legal, 404) */
.page { padding: 64px 0 100px; }
.page .narrow { max-width: 760px; margin: 0 auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.soon + .eyebrow { display: flex; width: fit-content; }

/* ---------- app screens drawn in HTML (crisp at any size, translated with the page) ---------- */
.shots { display: flex; gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px max(20px, calc((100vw - var(--wrap)) / 2)) 30px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 272px; scroll-snap-align: center; margin: 0; }
.mini figcaption { margin-top: 14px; font-size: 15px; font-weight: 700; text-align: center; color: var(--ink-2); }
.ph { border-radius: 42px; padding: 9px; background: #1E1F1C; box-shadow: 0 26px 50px -30px rgba(42,69,57,.5); }
.sc { background: var(--paper); border-radius: 34px; height: 556px; overflow: hidden; padding: 12px 12px 14px; font-size: 12.5px; line-height: 1.35; position: relative; }
.sc .sb { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 2px 8px 10px; }
.m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.m-top b { font-size: 14px; }
.m-btn { width: 30px; height: 30px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.m-btn svg { width: 15px; height: 15px; }
.m-card { background: var(--card); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.m-label { font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin: 4px 4px 6px; }
.m-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.m-head .ring { width: 86px; height: 86px; flex: none; }
.m-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 700; }
.m-chip.s { background: var(--tint); color: var(--action); }
.m-chip.c { background: var(--gold-soft); color: #8A6420; }
.m-chip svg { width: 11px; height: 11px; }
.m-dates { color: var(--ink-2); font-size: 12px; margin-top: 6px; }
.m-hold { display: flex; gap: 6px; margin-bottom: 10px; }
.m-hold span:first-child { flex: 1; height: 38px; border-radius: 22px; background: #DCE6DF; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; }
.m-hold span:last-child { width: 38px; height: 38px; border-radius: 50%; background: #DCE6DF; display: grid; place-items: center; }
.m-hold svg { width: 15px; height: 15px; }
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin-top: 8px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: #EEECE6; }
.dots i.on { background: var(--ink); }
.dots i.now { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.dots i.later { background: #F4F2EC; }
.m-row { display: flex; justify-content: space-between; align-items: center; }
.m-row b { font-size: 13px; }
.m-pct { color: var(--action); font-weight: 700; }
.m-plan { display: flex; gap: 10px; align-items: center; }
.m-plan img { width: 36px; height: 36px; border-radius: 50%; background: var(--tint); flex: none; }
.m-plan small { color: var(--ink-2); font-size: 10.5px; display: block; }
.m-plan b { font-size: 13px; }
.m-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.m-tags span { background: var(--tint); color: var(--action); font-weight: 700; font-size: 10.5px; padding: 3px 9px; border-radius: 20px; }
.m-field { background: var(--card); border-radius: 18px; padding: 11px 14px; font-size: 13px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 4px; }
.m-switch { width: 38px; height: 22px; border-radius: 20px; background: var(--action); position: relative; }
.m-switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.m-time { background: #EEECE6; border-radius: 14px; padding: 3px 10px; font-weight: 600; }
.m-sep { height: 1px; background: var(--line); margin: 10px 0; }
.m-big { font-family: var(--brand); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.m-big small { font-family: var(--sans); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.stackbar { display: flex; height: 12px; border-radius: 8px; overflow: hidden; background: #EEECE6; margin: 8px 0; }
.stackbar i { display: block; height: 100%; }
.m-bars { display: grid; gap: 8px; }
.m-bars .who { display: flex; gap: 8px; align-items: center; }
.m-bars img { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); }
.m-bars .who div { flex: 1; }
.m-bars .bar { height: 5px; border-radius: 4px; background: #EEECE6; margin-top: 3px; overflow: hidden; }
.m-bars .bar i { display: block; height: 100%; border-radius: 4px; }
.m-add { margin-top: 10px; height: 34px; border-radius: 20px; background: #EEECE6; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; gap: 6px; }
.post { background: var(--card); border-radius: 18px; overflow: hidden; margin-bottom: 10px; }
.post .who { display: flex; gap: 8px; align-items: center; padding: 10px 12px 8px; }
.post .who img { width: 28px; height: 28px; border-radius: 50%; background: var(--tint); }
.post .who small { color: var(--ink-2); display: block; font-size: 10.5px; }
.post .pic { height: 132px; position: relative; overflow: hidden; }
.post .pic svg { width: 100%; height: 100%; display: block; }
.post p { padding: 9px 12px 4px; font-size: 12.5px; }
.post .react { display: flex; gap: 6px; padding: 4px 12px 11px; }
.post .react span { display: inline-flex; align-items: center; gap: 4px; background: var(--tint); color: var(--action); border-radius: 20px; padding: 3px 9px; font-weight: 700; font-size: 11px; }
.post .react svg { width: 12px; height: 12px; }

/* Habit City (SVG + HTML labels) */
.city-phone { width: 340px; max-width: 100%; margin: 0 auto; }
.city-phone .sc { height: auto; padding-bottom: 16px; }
.town { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 360 / 400; }
.town svg { width: 100%; height: 100%; display: block; }
.town .tag { position: absolute; transform: translate(-50%, -50%); background: #FBF6EA; color: var(--ink); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; box-shadow: 0 2px 0 rgba(0,0,0,.06); white-space: nowrap; }
.town-hint { text-align: center; color: var(--ink-2); font-size: 11.5px; margin: 8px 0 10px; }
.decorate { height: 40px; border-radius: 22px; background: var(--action); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 700; font-size: 13px; }
.trophies { display: flex; gap: 8px; margin-top: 12px; }
.trophies div { flex: 1; background: var(--card); border-radius: 16px; padding: 10px 4px 8px; text-align: center; font-size: 10.5px; font-weight: 700; }
.medal { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; }
.medal svg { width: 18px; height: 18px; }

/* team & philosophy */
.quote-big { text-align: center; font-weight: 800; font-size: clamp(34px, 5.4vw, 66px); line-height: 1.15; letter-spacing: -0.02em; }
.quote-big .alt { display: block; font-size: .34em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-top: 18px; }
.steps-walk { display: flex; justify-content: center; gap: 10px; margin: 34px 0 0; }
.steps-walk i { width: 14px; height: 22px; border-radius: 50% 50% 45% 45%; background: var(--sage); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.steps-walk i:nth-child(even) { margin-top: 12px; }
.steps-walk.go i { opacity: 1; transform: none; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.pillar { background: var(--paper); border-radius: 24px; padding: 26px 22px; }
.pillar .k { font-family: var(--brand); font-weight: 700; color: var(--action); font-size: 14px; }
.pillar h3 { margin: 10px 0 8px; font-size: 20px; }
.pillar p { color: var(--ink-2); font-size: 15px; }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; position: relative; }
.jstep { background: var(--paper); border-radius: 24px; padding: 22px; position: relative; }
.jstep .when { font-family: var(--brand); font-weight: 700; font-size: 15px; color: var(--ink); }
.jstep h3 { font-size: 18px; margin: 6px 0 6px; }
.jstep p { color: var(--ink-2); font-size: 14.5px; }
.jstep .bar { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.jstep .bar span { font-size: 12px; font-weight: 700; border-radius: 20px; padding: 3px 10px; background: var(--card); }
.jstep.now { background: var(--ink); color: #EEF3EF; }
.jstep.now .when { color: var(--gold); }
.jstep.now p { color: #B9C9BF; }
.sub-h { font-size: 22px; margin: 70px 0 6px; text-align: center; }
.sub-p { text-align: center; color: var(--ink-2); margin-bottom: 24px; }
.people { grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; }
.person { background: var(--paper); }
.person .avatar { font-size: 30px; font-family: var(--brand); }
.thanks { text-align: center; color: var(--ink-2); margin-top: 18px; font-size: 15px; }
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 10px; }
.rhythm div { background: var(--paper); border-radius: 20px; padding: 16px 18px; }
.rhythm small { display: block; font-weight: 700; color: var(--action); font-size: 13px; }
.rhythm b { display: block; font-size: 16px; margin: 4px 0 2px; }
.rhythm span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 960px) { .pillars, .journey, .rhythm { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars, .journey, .rhythm { grid-template-columns: 1fr; } .people { grid-template-columns: repeat(2, 1fr); } }
.lang button { padding: 6px 10px; }

/* ---------- v2: bolder home (dark hero, hook, sticky CTA) ---------- */
:lang(zh) body, html:lang(zh) { --sans: "Source Sans 3", "Noto Sans SC", "PingFang SC", -apple-system, sans-serif; --brand: "Montserrat Alternates", "Noto Sans SC", sans-serif; }
html:lang(zh) body { font-family: var(--sans); }
.btn-lg { padding: 18px 30px; font-size: 18px; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-gold { position: relative; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(226,180,92,.6); }
.btn-gold:hover { background: #EBC172; }
.btn-gold::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: shine 4.5s 2s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

.nav.on-dark:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.on-dark:not(.scrolled) .logo { color: #fff; }
.nav.on-dark:not(.scrolled) .nav-links a { color: #C9D6CE; }
.nav.on-dark:not(.scrolled) .nav-links a:hover { color: #fff; }
.nav.on-dark:not(.scrolled) .lang { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.nav.on-dark:not(.scrolled) .lang button { color: #C9D6CE; }
.nav.on-dark:not(.scrolled) .lang button[aria-pressed="true"] { background: var(--gold); color: var(--night); }
.nav.on-dark:not(.scrolled) .btn-soft, .nav.on-dark:not(.scrolled) .me-chip { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
#nav-signin svg { width: 20px; height: 20px; }
.lang button { font-size: 13px; }
@media (max-width: 420px) { .lang button { padding: 6px 8px; font-size: 12px; } .logo { font-size: 19px; } }

.home .hero {
  margin-top: -68px; padding: 120px 0 90px; color: #F5F3EE; overflow: hidden; isolation: isolate;
  background: radial-gradient(1100px 620px at 78% 28%, #3E6452 0%, #263C32 48%, #18291F 100%);
}
.home .hero h1 { font-size: clamp(46px, 7.2vw, 96px); font-weight: 900; line-height: 1.08; letter-spacing: -0.035em; }
.home .hero .swap { color: #A9C4B3; }
.home .hero .swap2 { color: #fff; display: inline-block; transition: opacity .45s, transform .45s var(--ease); }
.home .hero .swap2.out { opacity: 0; transform: translateY(-30%); }
.home .hero .gold { background: linear-gradient(92deg, #F3D28A, #E2B45C 45%, #F6E0A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .hero .lede { color: #C9D6CE; }
.home .hero-note { color: #B9C9BF; }
.home .hero-note svg { width: 18px; height: 18px; color: var(--gold); animation: tap 1.6s ease-in-out infinite; }
@keyframes tap { 50% { transform: translateY(3px) scale(.92); } }
.home .hero-facts .num { color: #fff; }
.home .hero-facts .num small { font-size: .6em; }
.home .hero-facts span:last-child { color: #9FB3A7; }
.home .tap-hint { color: #B9C9BF; }
.live-chip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 30px; background: rgba(226,180,92,.14); color: var(--gold); font-weight: 700; font-size: 14px; margin-bottom: 24px; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(226,180,92,.35); }
.live-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulseGold 2s infinite; }
@keyframes pulseGold { 0% { box-shadow: 0 0 0 0 rgba(226,180,92,.6); } 70% { box-shadow: 0 0 0 10px rgba(226,180,92,0); } 100% { box-shadow: 0 0 0 0 rgba(226,180,92,0); } }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.glow.g1 { width: 460px; height: 460px; background: rgba(226,180,92,.22); right: 4%; top: 8%; animation: drift 12s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; background: rgba(111,154,132,.28); left: -10%; bottom: -30%; animation: drift 14s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }
.phone-glow { position: absolute; width: 420px; height: 420px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(226,180,92,.35), rgba(226,180,92,0) 65%); z-index: 0; }
.home .phone { box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); transform: rotate(-2deg); transition: transform .6s var(--ease); }
.home .phone:hover { transform: rotate(0); }
.float { z-index: 2; }
.float em { position: absolute; top: -10px; right: -22px; background: var(--gold); color: var(--night); font-style: normal; font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 12px 12px 12px 3px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.float.f2 em { right: auto; left: -30px; border-radius: 12px 12px 3px 12px; }

.marquee { background: var(--night); border: 0; }
.marquee span { background: rgba(255,255,255,.07); color: #E4ECE6; }
.marquee span img { background: var(--paper); border-radius: 50%; }

.hook { padding: 130px 0 110px; }
.scrub { font-size: clamp(34px, 5.4vw, 70px); font-weight: 900; line-height: 1.18; letter-spacing: -0.03em; max-width: 15em; }
.scrub .w { color: #D6D2C8; transition: color .35s; }
.scrub .w.lit { color: var(--ink); }
.scrub .w.lit.hl { color: var(--action); }
.stat-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 64px; }
.stat { background: var(--card); border-radius: 32px; padding: 34px 36px; }
.stat-num { display: block; font-family: var(--brand); font-weight: 700; font-size: clamp(72px, 9vw, 120px); line-height: 1; color: var(--cherry); letter-spacing: -0.04em; }
.stat-num small { font-size: .32em; margin-left: 6px; letter-spacing: 0; }
.stat p { font-size: 19px; margin-top: 14px; color: var(--ink-2); max-width: 28em; }
.stat small { display: block; margin-top: 12px; font-size: 13px; color: var(--ink-2); opacity: .75; }
.stat.dark { background: var(--ink); }
.stat.dark .stat-num { color: var(--gold); }
.stat.dark p { color: #C9D6CE; }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr; } .hook { padding: 90px 0 80px; } }

.center-eyebrow { display: flex; width: fit-content; margin: 0 auto 18px; }
.center-lede { margin: 28px auto 0; text-align: center; }
ul.plain { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
ul.plain li::before { content: "· "; color: var(--action); font-weight: 800; }

.final.dark { background: radial-gradient(900px 500px at 50% 0%, #3E6452, #1E332A 70%); color: #fff; padding: 120px 0; }
.final.dark h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 900; }
.final.dark .lede { color: #C9D6CE; }
.final.dark .coach-row img { box-shadow: 0 0 0 4px #2F4C3F; }

.sticky-cta {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; transform: translate(-50%, 160%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 40px;
  background: rgba(30,51,42,.94); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: transform .5s var(--ease);
}
.sticky-cta.show { transform: translate(-50%, 0); }
.sticky-cta img { width: 32px; height: 32px; border-radius: 9px; }
.sticky-cta > span { font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 560px) { .sticky-cta { width: calc(100% - 24px); justify-content: space-between; } .sticky-cta > span { font-size: 14px; white-space: normal; line-height: 1.25; } }
.home .hero .screen { color: var(--ink); }
.stat .stat-num small { display: inline; margin-top: 0; font-size: .32em; opacity: 1; color: inherit; }
.m-hold span:first-child { white-space: nowrap; }

/* ---------- v3: app preview video, makers, calmer 6% ---------- */
.sc-video { padding: 0; background: #000; }
.sc-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-toggle { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(30,51,42,.75); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vid-toggle svg { width: 16px; height: 16px; }
.video-mini .ph { box-shadow: 0 30px 60px -28px rgba(226,180,92,.55), 0 26px 50px -30px rgba(42,69,57,.5); }

.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.stat:not(.dark) .stat-num { color: var(--ink); }
.dots100 { display: grid; grid-template-columns: repeat(20, 9px); gap: 6px; }
.dots100 i { width: 9px; height: 9px; border-radius: 50%; background: #E7E3DA; }
.dots100 i.on { background: var(--gold); transform: scale(0); transition: transform .5s var(--ease); }
.dots100.go i.on { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(226,180,92,.22); }
.dots100.go i.on:nth-child(2) { transition-delay: .08s; } .dots100.go i.on:nth-child(3) { transition-delay: .16s; }
.dots100.go i.on:nth-child(4) { transition-delay: .24s; } .dots100.go i.on:nth-child(5) { transition-delay: .32s; } .dots100.go i.on:nth-child(6) { transition-delay: .4s; }
@media (max-width: 520px) { .dots100 { grid-template-columns: repeat(20, 7px); gap: 5px; } .dots100 i { width: 7px; height: 7px; } }

.together-big { margin: 44px auto 0; width: fit-content; max-width: 100%; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; justify-content: center; background: var(--ink); color: #EEF3EF; border-radius: 40px; padding: 18px 34px; }
.together-big span { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: #B9C9BF; }
.together-big b { font-size: clamp(30px, 4vw, 48px); font-weight: 900; letter-spacing: -0.02em; background: linear-gradient(92deg, #F3D28A, #E2B45C 45%, #F6E0A8); -webkit-background-clip: text; background-clip: text; color: transparent; }

.journey.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .journey.three { grid-template-columns: 1fr; } }

.makers-head { text-align: center; margin-top: 90px; }
.makers-head .sub-p { max-width: 40em; margin: 8px auto 30px; }
.makers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.maker { background: var(--paper); border-radius: 28px; padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.maker::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tone); opacity: .6; }
.maker-head { display: flex; gap: 14px; align-items: center; position: relative; }
.maker-av { width: 64px; height: 64px; border-radius: 50%; font-size: 26px; font-family: var(--brand); flex: none; object-fit: cover; }
.maker-head b { display: block; font-family: var(--brand); font-size: 22px; }
.maker-role { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--action); background: var(--card); border-radius: 20px; padding: 3px 11px; }
.maker-story { color: var(--ink-2); font-size: 15.5px; position: relative; }
.maker blockquote { margin: 0; padding: 12px 16px; background: var(--card); border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; font-weight: 700; font-size: 15px; }
.maker-habit { margin-top: auto; display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 18px; padding: 10px 12px; }
.maker-habit img { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); flex: none; }
.maker-habit div { flex: 1; min-width: 0; }
.maker-habit small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.maker-habit b { font-size: 14.5px; }
.maker-days { font-family: var(--brand); font-weight: 700; font-size: 13px; background: var(--tone); border-radius: 14px; padding: 4px 10px; white-space: nowrap; }
@media (max-width: 900px) { .makers { grid-template-columns: 1fr; } }

.lang button { min-width: 34px; padding: 6px 8px; font-size: 13.5px; }

/* mobile fit: grid children may shrink below their content, the phone never wider than its column */
.hero-grid > *, .split > *, .ny-grid > *, .stride > * { min-width: 0; }
.phone { width: min(350px, 100%); }
@media (max-width: 520px) { .final .coach-row img { width: 52px; height: 52px; margin-left: -8px; } .home .phone { transform: none; } }

/* ---------- /beta: the beta crew invitation (Habit City) ---------- */
.invite-page { background: radial-gradient(1000px 640px at 70% 10%, #3E6452 0%, #263C32 50%, #18291F 100%) fixed; min-height: 100svh; }
.invite-page .nav { margin-bottom: -68px; }
.invite { position: relative; isolation: isolate; overflow: hidden; padding: 100px 16px 60px; display: flex; flex-direction: column; align-items: center; }
.invite-card { width: 100%; max-width: 460px; background: var(--paper); border-radius: 34px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.7); }
.invite-town { position: relative; height: 190px; }
.invite-town svg { width: 100%; height: 100%; display: block; }
.flag-cloth { transform-origin: 192px 86px; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(-4deg) scaleX(.96); } }
.flag-pole { animation: rise 1.2s var(--ease) both .3s; transform-origin: 190px 136px; }
@keyframes rise { from { transform: scaleY(0); } to { transform: none; } }
.invite-tag { position: absolute; left: 16px; top: 14px; background: rgba(30,51,42,.85); color: var(--gold); font-weight: 800; font-size: 12.5px; padding: 5px 12px; border-radius: 20px; letter-spacing: .02em; }
.invite-body { padding: 24px 24px 26px; }
.invite-body h1 { font-size: clamp(28px, 7vw, 36px); font-weight: 900; line-height: 1.18; }
.invite-msg { color: var(--ink-2); margin-top: 12px; font-size: 16px; }
.invite-round { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 22px; padding: 12px 14px; margin-top: 20px; }
.ir-ring .ring { width: 62px; height: 62px; display: block; }
.ir-main { flex: 1; min-width: 0; }
.ir-main small { color: var(--ink-2); font-size: 12px; font-weight: 600; display: block; }
.ir-main b { font-size: 16px; }
.ir-avs { display: flex; margin-top: 6px; }
.ir-avs img, .ir-avs span { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); margin-left: -6px; box-shadow: 0 0 0 2px var(--card); }
.ir-avs img:first-child { margin-left: 0; }
.ir-avs span { display: grid; place-items: center; font-weight: 800; color: var(--action); font-size: 14px; }
.ir-chip { flex: none; }
.invite-reward { display: flex; gap: 12px; align-items: center; background: var(--gold-soft); border-radius: 22px; padding: 14px; margin-top: 12px; }
.ir-flag { width: 48px; height: 48px; border-radius: 14px; background: #FBF1DA; display: grid; place-items: center; flex: none; }
.ir-flag svg { width: 32px; height: 32px; }
.invite-reward b { display: block; font-size: 15px; }
.invite-reward span { display: block; font-size: 13px; color: #6E5524; margin-top: 2px; }
.invite-reward em { font-style: normal; font-family: var(--brand); font-weight: 700; background: var(--night); color: var(--gold); border-radius: 14px; padding: 4px 10px; font-size: 13px; white-space: nowrap; }
.invite-reward em:empty { display: none; }
.invite-steps { list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 10px; }
.invite-steps li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.invite-steps b { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--brand); font-size: 13px; flex: none; }
.invite-get, .invite-share { width: 100%; }
.invite-get[aria-disabled="true"] { background: #E7E3DA; color: var(--ink-2); box-shadow: none; cursor: default; }
.invite-get[aria-disabled="true"]::after { display: none; }
.invite-share { margin-top: 10px; }
.invite-help { text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 14px; }
.invite-help a { color: var(--action); font-weight: 700; text-decoration: none; }
.invite-safe { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.invite-safe li { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.invite-safe li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E7E6D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 4.5-3.4 8.3-8 9-4.6-.7-8-4.5-8-9V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E") center/16px no-repeat; }
.invite-foot { color: #B9C9BF; font-size: 13px; margin-top: 18px; text-align: center; }
.invite-foot a { color: #E4ECE6; }
.invite-reward { position: relative; align-items: flex-start; }
.invite-reward > div:nth-child(2) { padding-right: 58px; }
.invite-reward em { position: absolute; right: 12px; top: 12px; }
.ir-ring text { font-size: 26px; }
