/* ------------------------------------------------------------------
   Design 2: "The loop".
   One shape runs the page: the ring of the logo and of the streak. It is the
   hero at poster scale, the week's check-in circles, the breathing orb, the
   risk clock, the community's orbit and the closing loop.
------------------------------------------------------------------- */

body { background: #0B0F0D; }
.when-done { display: none; }
.lb-checked-in .when-open { display: none; }
.lb-checked-in .when-done { display: inline; }
.kicker { display: block; margin-bottom: 18px; }
.kicker-dark { color: rgba(16, 20, 16, 0.72); }
.kicker-amber { color: var(--amber); }

/* ---------- Nav ---------- */

.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color 0.3s ease; }
.nav.is-scrolled { background: rgba(11, 15, 13, 0.94); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px/1 var(--font-display); letter-spacing: -0.03em; }
.brand img { transition: transform 0.7s var(--ease-out); }
@media (hover: hover) { .brand:hover img { transform: rotate(180deg); } }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { position: relative; padding: 10px 14px; color: var(--soft); font: 600 15px/1 var(--font-display); transition: color 0.2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease-out); }
@media (hover: hover) { .nav-links a:hover { color: #fff; } .nav-links a:hover::after { transform: scaleX(1); } }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease-out); }
.menu-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  --loop: min(88vh, 60vw);
  --loop-right: -3vw;
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  padding-top: 76px;
  background: radial-gradient(90% 70% at 78% 46%, #123322 0%, #0d1a13 46%, #0B0F0D 100%);
}
.hero-loop, .hero-count {
  position: absolute; right: var(--loop-right); top: calc(50% - 20px);
  width: var(--loop); aspect-ratio: 1; translate: 0 -50%;
}
.hero-loop { z-index: -1; }
.hero-loop-spin { width: 100%; height: 100%; rotate: calc(var(--scroll, 0) * 420deg); }
.hero-loop svg { width: 100%; height: 100%; overflow: visible; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loop-ghost { fill: none; stroke: rgba(255, 255, 255, 0.045); stroke-width: 22; }
.loop-arc { fill: none; stroke-width: 22; stroke-dasharray: 43 57; filter: drop-shadow(0 0 18px rgba(19, 236, 91, 0.4)); animation: loop-draw 1.8s var(--ease-out) 0.2s both; }
.loop-arc-a { stroke-dashoffset: 4; }
.loop-arc-b { stroke-dashoffset: -46; }
@keyframes loop-draw { from { stroke-dasharray: 0 100; } }
.hero-slash {
  position: absolute; left: -6%; right: -6%; top: 50%; height: 2.4%; margin-top: -1.2%;
  background: linear-gradient(90deg, rgba(19, 236, 91, 0) 0%, #13EC5B 30%, #2FE6D2 70%, rgba(47, 230, 210, 0) 100%);
  clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
  rotate: -38deg; opacity: 0.14;
  animation: slash 1.4s var(--ease-out) 0.7s both;
}
@keyframes slash { from { clip-path: polygon(50% 50%, 50% 0, 50% 50%, 50% 100%); opacity: 0; } }

.hero-in { align-self: center; padding: 48px var(--gutter) 56px; }
.hero-copy { max-width: min(46vw, 640px); }
.hero-title { font-size: clamp(64px, 9.4vw, 148px); font-weight: 800; line-height: 0.92; letter-spacing: -0.055em; }
.hero-sub { display: inline-block; margin-top: 18px; font: 700 clamp(24px, 3vw, 44px)/1.1 var(--font-display); letter-spacing: -0.035em; }
.hero-lede { margin-top: 22px; max-width: 30em; color: var(--soft); font: 400 clamp(16.5px, 1.4vw, 19px)/1.6 var(--font-display); }
.hero .store-badges { margin-top: 34px; }

.hero-count { display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center; }
.hero-count-num { font: 800 calc(var(--loop) * 0.36)/0.9 var(--font-display); letter-spacing: -0.06em; background: var(--grad-streak); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 0.06em 0.05em; font-variant-numeric: tabular-nums; }
.hero-count-num > span { display: inline-block; }
.hero-count-label { color: var(--soft); font: 600 clamp(13px, 1.3vw, 18px)/1 var(--font-display); letter-spacing: 0.3em; text-transform: uppercase; margin-right: -0.3em; }
.hero-count-btn { margin-top: clamp(14px, 2.6vh, 28px); }
.lb-checked-in .hero-count-btn { background: var(--pick); color: var(--green); box-shadow: inset 0 0 0 1px var(--line-green); }
.hero-count-note { margin-top: 12px; color: var(--muted); font: 400 14px/1.4 var(--font-display); max-width: 22em; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 15, 13, 0.6); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 20px 0; animation: marquee 46s linear infinite; }
.marquee-track span { color: var(--soft); font: 700 15px/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.marquee-track i { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--green); }
@keyframes marquee { to { transform: translate3d(calc(-50% - 14px), 0, 0); } }
@media (hover: hover) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* ---------- Shared section scaffolding ---------- */

.section { position: relative; padding: clamp(80px, 10vw, 150px) 0; }
.head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row { max-width: none; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px 64px; align-items: end; }
.h2 { font-size: clamp(38px, 5.4vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; }
.lede { color: var(--soft); font: 400 clamp(16.5px, 1.4vw, 19.5px)/1.6 var(--font-display); max-width: 34em; }
.head .lede { margin-top: 22px; }
.link { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Check-in band ---------- */

.band-green {
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(24px, 4vw, 56px) clamp(10px, 2vw, 28px) 0; padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px);
  border-radius: clamp(32px, 5vw, 72px);
  background: linear-gradient(120deg, #13EC5B 0%, #12B94C 62%, #0F9D45 100%);
  color: var(--btn-text);
}
.band-green::after {
  content: ""; position: absolute; z-index: -1; right: -8%; bottom: -34%;
  width: min(60vw, 720px); aspect-ratio: 1;
  background: url("shared/icons/Icon_Chekin.svg") center / contain no-repeat;
  opacity: 0.18; animation: spin 90s linear infinite;
}
.checkin-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.band-green .lede { color: rgba(16, 20, 16, 0.82); margin-top: 22px; }
.week-xl { display: grid; gap: 28px; justify-items: start; }
.week-xl > div { width: 100%; }
.week-xl .ui-week { gap: clamp(6px, 1vw, 14px); }
.week-xl .ui-day { gap: 14px; flex: 1; }
.week-xl .ui-day b { color: rgba(16, 20, 16, 0.6); font-size: clamp(12px, 1.2vw, 16px); }
.week-xl .ui-day i { width: 100%; max-width: 84px; height: auto; aspect-ratio: 1; background: rgba(16, 20, 16, 0.14); }
.week-xl .ui-day.is-done i { background: #101410; }
.week-xl .ui-day.is-done i::before { width: 34%; height: 18%; margin-top: -8%; border-color: var(--green); border-width: 3px; }
.week-xl .ui-day.is-today b { color: #101410; }
.week-xl .ui-day.is-today:not(.is-done) i { background: transparent; border: 3px solid #101410; animation: today 2.2s ease-in-out infinite; }
.week-xl .ui-day.is-today:not(.is-done) i::before { width: 30%; height: 30%; background: #101410; }
@keyframes today { 50% { box-shadow: 0 0 0 10px rgba(16, 20, 16, 0.12); } }
.checkin-btn { background: #121A14; color: var(--green); min-height: 56px; padding: 0 30px; font-size: 17px; }
@media (hover: hover) { .checkin-btn:hover { background: #050806; } }
.lb-checked-in .checkin-btn { background: rgba(16, 20, 16, 0.14); color: #101410; }
.checkin-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin-top: clamp(24px, 4vw, 56px); }
.checkin-facts li { padding-top: 20px; border-top: 2px solid rgba(16, 20, 16, 0.22); }
.checkin-facts b { display: block; font: 800 clamp(20px, 2.2vw, 30px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.checkin-facts span { display: block; margin-top: 8px; color: rgba(16, 20, 16, 0.8); font: 400 15.5px/1.5 var(--font-display); max-width: 24em; }

/* ---------- SOS ---------- */

.sos { overflow: clip; text-align: center; }
.sos::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 46%;
  width: min(1100px, 150vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #14331f 0%, #102216 38%, rgba(16, 34, 22, 0) 68%);
}
.sos .head { margin-inline: auto; }
.sos .head .lede { margin-inline: auto; }
.sos-stage { display: grid; justify-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.sos-stage .ui-breath-stage { width: min(340px, 78vw); }
.sos-stage .ui-breath-short { font-size: 18px; }
.sos-stage .ui-breath-copy b { font-size: clamp(26px, 3vw, 36px); }
.sos-orbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sos-orbs li { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 6px; }
.sos-orbs img { width: 92px; height: 92px; margin-bottom: 6px; transition: transform 0.5s var(--ease-out); }
.sos-orbs b { font: 700 17px/1.25 var(--font-display); }
.sos-orbs span { color: var(--muted); font: 400 14.5px/1.45 var(--font-display); max-width: 15em; }
@media (hover: hover) { .sos-orbs li:hover img { transform: scale(1.14); } }

/* ---------- Insights: risk clock ---------- */

.insights-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.clock { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.clock circle { fill: none; }
.clock-ticks { stroke: rgba(255, 255, 255, 0.2); stroke-width: 8; stroke-dasharray: 0.4 3.6; }
.clock-track { stroke: rgba(255, 255, 255, 0.05); stroke-width: 28; }
.clock-evening { stroke: rgba(19, 236, 91, 0.2); stroke-width: 28; stroke-dasharray: 5 19; stroke-dashoffset: -19; transition: stroke-dasharray 1.2s var(--ease-out) 0.2s; }
.clock-risk { stroke: var(--green); stroke-width: 28; stroke-dasharray: 1 23; stroke-dashoffset: -22; filter: drop-shadow(0 0 12px rgba(19, 236, 91, 0.7)); transition: stroke-dasharray 0.9s var(--ease-out) 0.9s; }
html.js .clock:not(.is-in) .clock-evening, html.js .clock:not(.is-in) .clock-risk { stroke-dasharray: 0 24; }
.clock-hand { position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(19, 236, 91, 0) 0deg, rgba(19, 236, 91, 0) 290deg, rgba(19, 236, 91, 0.2) 360deg); animation: spin 9s linear infinite; -webkit-mask: radial-gradient(circle, transparent 44%, #000 45%); mask: radial-gradient(circle, transparent 44%, #000 45%); }
.clock-h { position: absolute; color: var(--muted); font: 600 13px/1 var(--font-display); }
.clock-h0 { left: 50%; top: -2px; translate: -50% -100%; }
.clock-h6 { right: -4px; top: 50%; translate: 100% -50%; }
.clock-h12 { left: 50%; bottom: -2px; translate: -50% 100%; }
.clock-h18 { left: -4px; top: 50%; translate: -100% -50%; }
.clock-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center; }
.clock-center b { font: 800 clamp(26px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; }
.clock-share { color: var(--green); font: 600 14px/1.2 var(--font-display); }
.insights-copy .lede { margin: 22px 0 30px; }
.insight-rows { display: grid; }
.insight-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.insight-rows dt { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 400 15px/1.3 var(--font-display); }
.insight-rows dt img { height: 15px; width: auto; }
.insight-rows dd { font: 700 clamp(17px, 1.8vw, 22px)/1.2 var(--font-display); letter-spacing: -0.02em; text-align: right; }
.insight-bubble { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 18px; background: rgba(23, 41, 29, 0.35); border: 1px solid #00E676; border-radius: 9999px; box-shadow: 0 0 15px rgba(0, 230, 118, 0.2); color: var(--ink); font: 600 15px/1.4 var(--font-display); }
.insight-bubble img { width: 34px; height: 34px; flex: none; border-radius: 50%; }

/* ---------- Savings ---------- */

.savings-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.savings .head { margin: 0; }
.savings-calc { padding: clamp(24px, 3.6vw, 48px); border-radius: clamp(28px, 4vw, 48px); background: linear-gradient(160deg, #17291D 0%, #102216 100%); border: 1px solid rgba(19, 236, 91, 0.3); box-shadow: 0 50px 100px -50px rgba(19, 236, 91, 0.35); }
.savings-calc .ui-calc select, .savings-calc .ui-stat { border-radius: 9999px; }
.savings-calc .ui-stat { padding: 14px 24px; background: rgba(11, 15, 13, 0.5); border-color: rgba(19, 236, 91, 0.18); }

/* ---------- Badges rail ---------- */

.badges { padding-bottom: clamp(40px, 6vw, 90px); }
.badges .head { margin-bottom: clamp(28px, 4vw, 48px); }
.badges-rail { overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.badges-rail::-webkit-scrollbar { display: none; }
.ui-badges { display: flex; gap: clamp(18px, 2.6vw, 40px); width: max-content; padding: 34px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px; }
.ui-badge { --hex: clamp(84px, 9vw, 124px); flex: none; width: calc(var(--hex) + 28px); }
.ui-badge b { font-size: 15.5px; }

/* ---------- Community: orbit ---------- */

.community-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.orbit-wrap { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; }
.orbit { position: absolute; inset: 5%; border-radius: 50%; border: 1px dashed rgba(19, 236, 91, 0.35); animation: spin 70s linear infinite; }
.orbit-inner { inset: 24%; border-color: rgba(47, 230, 210, 0.3); animation-duration: 50s; animation-direction: reverse; }
.orbit-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); }
.orbit { --r: min(234px, 39.6vw); }
.orbit-inner { --r: min(135px, 22.9vw); }
.orbit-item img { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; max-width: none; border-radius: 50%; background: #17231c; border: 2px solid rgba(19, 236, 91, 0.5); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); animation: unspin 70s linear infinite; }
.orbit-inner .orbit-item img { left: -26px; top: -26px; width: 52px; height: 52px; animation-duration: 50s; animation-direction: reverse; }
@keyframes unspin { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
.orbit-center { position: relative; text-align: center; font: 800 clamp(17px, 2vw, 24px)/1.2 var(--font-display); letter-spacing: -0.03em; }
.community-copy .lede { margin: 22px 0 30px; }
.community-posts { display: grid; gap: 12px; }
.community-posts .ui-post { border-radius: 28px; }

/* ---------- Learn ---------- */

.learn { padding-top: 0; }
.learn-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.learn-copy .lede { margin-top: 22px; }
.learn-types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.learn-types .ui-pill { height: 36px; padding: 0 16px; font-size: 14px; }
.learn .ui-lesson { border-radius: clamp(28px, 3vw, 40px); padding: clamp(20px, 3vw, 36px); }

/* ---------- Privacy ---------- */

.privacy { background: #0f1512; border-radius: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px) 0 0; }
.privacy-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 5vw, 80px); }
.privacy-list li { position: relative; padding: 28px 0 28px 44px; border-top: 1px solid var(--line); }
.privacy-list li::before { content: ""; position: absolute; left: 0; top: 34px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--green); box-shadow: 0 0 14px rgba(19, 236, 91, 0.5); }
.privacy-list h3 { font: 700 clamp(20px, 2.2vw, 28px)/1.15 var(--font-display); letter-spacing: -0.03em; }
.privacy-list p { margin-top: 8px; color: var(--muted); font: 400 16px/1.55 var(--font-display); max-width: 30em; }

/* ---------- FAQ ---------- */

.faq { background: #0f1512; }
.faq-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .head { position: sticky; top: 108px; margin: 0; }
.faq-item { border-top: 1px solid var(--line); border-radius: 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { padding: 24px 0; font-size: clamp(18px, 1.8vw, 23px); letter-spacing: -0.02em; transition: color 0.2s ease; }
.faq-item[open] summary { color: var(--green); }
.faq-item .faq-answer { padding: 0 60px 28px 0; font: 400 16.5px/1.6 var(--font-display); }

/* ---------- Closing ---------- */

.closing { position: relative; overflow: clip; isolation: isolate; display: grid; place-items: center; min-height: min(100svh, 900px); padding: 120px var(--gutter); background: radial-gradient(60% 60% at 50% 50%, #123322 0%, #0d1a13 50%, #0B0F0D 100%); text-align: center; }
.closing-loop { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(92vh, 130vw, 820px); aspect-ratio: 1; translate: -50% -50%; }
.closing-loop svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.closing-loop circle { fill: none; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - min(1, var(--t, 0) * 1.9) * 100); filter: drop-shadow(0 0 20px rgba(19, 236, 91, 0.45)); }
.closing-in { display: grid; justify-items: center; gap: 22px; max-width: 620px; }
.closing-title { font-size: clamp(42px, 6.4vw, 88px); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; }
.closing .btn { margin-top: 8px; min-height: 58px; padding: 0 34px; font-size: 17px; }

/* ---------- Footer ---------- */

.footer { position: relative; overflow: hidden; background: #0B0F0D; padding: 72px 0 0; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand > p { color: var(--muted); font: 400 15px/1.5 var(--font-display); }
.footer-socials { margin-top: 12px; display: grid; gap: 14px; }
.footer .social { border-radius: 50%; }
.footer-title { color: var(--ink); font: 800 12px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.footer-col ul { display: grid; gap: 4px; margin-top: 14px; }
.footer-col a { display: inline-block; padding: 7px 0; color: var(--soft); font: 400 15px/1.3 var(--font-display); transition: color 0.2s ease; }
@media (hover: hover) { .footer-col a:hover { color: var(--green); } }
.footer-legal { display: grid; gap: 10px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: #7c8a9c; font: 400 13px/1.6 var(--font-display); }
.footer-legal p { max-width: 96ch; }
.footer-copy { color: var(--muted); margin-top: 8px; }
.footer-word { margin: 24px 0 0.04em; text-align: center; white-space: nowrap; font: 800 19.5vw/1 var(--font-display); letter-spacing: -0.065em; background: linear-gradient(180deg, rgba(19, 236, 91, 0.34) 0%, rgba(19, 236, 91, 0.02) 86%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; margin: 0; padding: 12px var(--gutter) 24px;
    flex-direction: column; gap: 2px; background: rgba(11, 15, 13, 0.98); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0.25s;
  }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .nav { background: rgba(11, 15, 13, 0.98); }
  .nav-links a { padding: 16px 0; font-size: 18px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-in { gap: 12px; }

  .hero { --loop: min(92vw, 520px); --loop-right: calc((100vw - var(--loop)) / 2); background: radial-gradient(100% 46% at 50% 76%, #123322 0%, #0d1a13 50%, #0B0F0D 100%); }
  .hero-loop, .hero-count { top: auto; bottom: 86px; translate: none; }
  .hero-in { align-self: start; padding: 36px var(--gutter) calc(var(--loop) + 56px); }
  .hero-copy { max-width: none; }
  .hero-count-note { display: none; }

  .checkin-in, .insights-in, .savings-in, .community-in, .learn-in, .faq-in, .head-row { grid-template-columns: 1fr; }
  .checkin-facts { grid-template-columns: 1fr; gap: 20px; }
  .sos-orbs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .sos-orbs li:last-child { grid-column: 1 / -1; }
  .clock { width: min(84%, 440px); margin-bottom: 20px; }
  .privacy-list { grid-template-columns: 1fr; }
  .faq .head { position: static; margin-bottom: 8px; }
  .faq-item .faq-answer { padding-right: 0; }
  .footer-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero-title { font-size: clamp(56px, 17vw, 84px); }
  .orbit-item img { left: -24px; top: -24px; width: 48px; height: 48px; }
  .orbit-inner .orbit-item img { left: -20px; top: -20px; width: 40px; height: 40px; }
  .insight-bubble { border-radius: 24px; }
  .footer-in { grid-template-columns: 1fr; }
}


/* ==================================================================
   Fusion: design 2 is the base (type, SOS, plan, community, learn, privacy,
   FAQ, closing loop, footer). What follows is what design 1 keeps: the
   aurora hero with the live phone, How it works, the insight cards and the
   badge row.
=================================================================== */

/* ---------- Hero: design 2's headline beside design 1's phone ---------- */

.hero { background: linear-gradient(180deg, #0F2219 0%, #121C17 45%, #0B0F0D 100%); }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.aurora span:nth-child(1) { left: -12%; top: -24%; width: 620px; height: 620px; background: rgba(19, 236, 91, 0.16); animation: aurora-a 14s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { right: -8%; top: 12%; width: 520px; height: 520px; background: rgba(47, 230, 210, 0.11); animation: aurora-b 18s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { left: 38%; bottom: -30%; width: 560px; height: 560px; background: rgba(19, 236, 91, 0.08); animation: aurora-a 22s ease-in-out infinite alternate-reverse; }
@keyframes aurora-a { to { transform: translate3d(70px, 50px, 0) scale(1.14); } }
@keyframes aurora-b { to { transform: translate3d(-80px, 40px, 0) scale(0.9); } }

.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero-copy { max-width: none; }
/* The stage hugs the phone, so the floating cards are placed against the phone, not the column. */
.hero-stage { position: relative; display: grid; justify-items: center; width: max-content; max-width: 100%; justify-self: center; }
.hero-phone { zoom: 0.84; }
.float { position: absolute; z-index: 2; }
.float .ui-stat { background: #131d18; border-color: rgba(19, 236, 91, 0.3); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8); min-height: 0; padding: 14px 20px 14px 14px; }
.float-a { left: -34%; top: 20%; animation: float 6s ease-in-out infinite alternate; }
.float-b { right: -42%; top: 38%; animation: float 7s ease-in-out -2s infinite alternate-reverse; }
.float-b .ui-chip { height: 44px; padding: 0 18px; font-size: 15px; background: #13251a; border-color: rgba(19, 236, 91, 0.4); box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8), 0 0 24px -6px rgba(19, 236, 91, 0.5); }
@keyframes float { from { transform: translate3d(0, -8px, 0); } to { transform: translate3d(0, 10px, 0); } }

/* ---------- How it works ---------- */

.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.how-step { display: flex; flex-direction: column; padding: 26px; background: rgba(25, 25, 25, 0.85); border: 1px solid var(--line); border-radius: 28px; transition: border-color 0.3s ease, transform 0.45s var(--ease-out); }
@media (hover: hover) { .how-step:hover { border-color: var(--line-green); transform: translateY(-6px); } }
.how-step h3 { font: 700 21px/1.2 var(--font-display); letter-spacing: -0.02em; }
.how-step > p { color: var(--muted); font: 400 15.5px/1.45 var(--font-display); margin: 6px 0 22px; }
.how-preview, .how-post { margin-top: auto; }
.how-preview { display: grid; gap: 14px; padding: 16px; background: rgba(15, 17, 21, 0.9); border: 1px solid var(--line); border-radius: 20px; }
.how-preview-head { display: flex; align-items: center; justify-content: space-between; }
.how-insight { display: flex; align-items: center; gap: 12px; }
.how-insight-label { display: block; color: var(--muted); font-size: 12.5px; }
.how-insight b { font: 700 17px/1.3 var(--font-display); }
.how-bubble { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(23, 41, 29, 0.35); border: 1px solid rgba(19, 236, 91, 0.35); border-radius: 16px; color: var(--soft); font: 400 13.5px/1.4 var(--font-display); }
.how-bubble img { width: 30px; height: 30px; flex: none; }
.how-post .ui-post { background: rgba(15, 17, 21, 0.9); border-radius: 20px; padding: 16px; }

/* ---------- Insights (cards) ---------- */

.insights-copy { display: grid; gap: 22px; }
.insights-copy .kicker { margin-bottom: -4px; }
.insights-copy .lede { margin: 0; }
.insights-ui { padding: 18px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }

/* ---------- Badges (row) ---------- */

.head-center { margin-inline: auto; text-align: center; }
.head-center .lede { margin-inline: auto; }
.ui-badges { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 12px; width: auto; padding: 0; }
.ui-badge { --hex: clamp(56px, 6.4vw, 84px); width: auto; }
.ui-badge b { font-size: 14px; }

@media (max-width: 1080px) {
  .ui-badges { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 28px; }
  .how-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; align-self: start; padding: 36px var(--gutter) 56px; }
  .hero-stage { margin-top: 12px; }
  .float-a { left: -22%; }
  .float-b { right: -26%; }
  .insights-ui { order: 2; }
}
@media (max-width: 560px) {
  .hero-phone { zoom: 0.8; }
  .float-a { left: -6%; top: 14%; zoom: 0.8; }
  .float-b { right: -6%; top: 34%; zoom: 0.8; }
  .ui-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ui-badges .ui-badge:last-child { grid-column: 2; }
  .insights-ui { padding: 10px; border-radius: 28px; }
  .ui-insights { gap: 8px; }
}


/* ==================================================================
   Brote. The app's mascot runs through the page the way it runs through
   the app: it says hello in the hero, lives in the phone's streak ring,
   has its own section, gives the advice (in a bubble, never the data),
   stays with you in SOS, and grows as the closing loop draws itself.
   shared/brote.js draws it; .brote and .bubble live in app-ui.css.
=================================================================== */

/* ---------- Hero: Brote steps out of the phone ---------- */

.hero-brote {
  --h: 220px;
  position: absolute; z-index: 3; left: -158px; bottom: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: brote-in 0.9s var(--ease-pop) 0.9s both;
}
.hero-brote .brote { --h: inherit; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)); }
.hero-say { width: max-content; max-width: 210px; text-align: center; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9); }
.hero-say small { font-size: 13px; }
@keyframes brote-in { from { opacity: 0; transform: translate3d(24px, 24px, 0) scale(0.9); } }

/* ---------- Meet Brote ---------- */

.meet { overflow: clip; }
.meet-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.meet-stage {
  --h: clamp(250px, 30vw, 380px);

  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: calc(var(--h) + 120px);
}
/* The bubble rides on Brote's crown: as it grows, the bubble climbs with it. */
.meet-say {
  width: max-content; max-width: min(360px, 92%); text-align: center;
  margin-bottom: calc(var(--h) * var(--crown, 0.345) * -1 + 14px);
  font-size: clamp(15px, 1.4vw, 17px);
  transition: margin-bottom 0.45s var(--ease-out);
}
.meet-brote { position: relative; }
.meet-brote .brote { --h: inherit; }
.meet-brote::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 58%;
  width: 150%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(19, 236, 91, 0.22) 0%, rgba(19, 236, 91, 0.07) 40%, rgba(19, 236, 91, 0) 68%);
}
/* A soft shadow where the feet touch the ground (they end at 211 of the artboard's 232). */
.meet-brote::after {
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: calc(var(--h) * 0.08);
  width: 70%; height: calc(var(--h) * 0.08); translate: -50% 50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.meet-copy .lede { margin: 22px 0 34px; }

/* The five stages on one line, filled up to the current one. */
.meet-grow { --grown: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.meet-grow-line { position: absolute; left: 10%; right: 10%; top: 21px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); }
.meet-grow-line i { position: absolute; inset: 0; border-radius: inherit; background: var(--grad-streak); transform: scaleX(var(--grown)); transform-origin: 0 50%; transition: transform 0.6s var(--ease-out); box-shadow: 0 0 12px rgba(19, 236, 91, 0.5); }
.meet-grow button { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 2px 8px; border-radius: 16px; transition: background-color 0.2s ease; }
.meet-grow button i { width: 20px; height: 20px; margin-bottom: 8px; border-radius: 50%; background: #0F1512; border: 2px solid rgba(255, 255, 255, 0.2); transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease-pop); }
.meet-grow b { font: 700 15px/1.2 var(--font-display); color: var(--muted); transition: color 0.2s ease; }
.meet-grow span { color: var(--muted); font: 400 12.5px/1.2 var(--font-display); }
.meet-grow .is-on i { background: var(--green); border-color: var(--green); }
.meet-grow [aria-pressed="true"] i { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(19, 236, 91, 0.16), 0 0 16px rgba(19, 236, 91, 0.6); }
.meet-grow [aria-pressed="true"] b { color: var(--ink); }
@media (hover: hover) { .meet-grow button:hover { background: rgba(255, 255, 255, 0.04); } .meet-grow button:hover b { color: var(--ink); } }
.meet-label { margin: 30px 0 12px; color: var(--soft); font: 600 13px/1.2 var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; }
.meet-moods { display: flex; flex-wrap: wrap; gap: 8px; }
.meet-moods .ui-pill { height: 40px; padding: 0 16px; font-size: 14.5px; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.meet-moods .ui-pill[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--btn-text); }
@media (hover: hover) { .meet-moods .ui-pill:not([aria-pressed="true"]):hover { border-color: var(--line-green); color: var(--ink); } }

/* ---------- How it works: Brote gives the advice ---------- */

.how-coach { display: flex; align-items: flex-end; gap: 12px; }
.how-coach .bubble { flex: 1; --tail-at: 64%; padding: 10px 12px; font: 400 13.5px/1.4 var(--font-display); color: var(--soft); }

/* ---------- SOS: Brote with a glow, as in the app's SOS sheet ---------- */

.sos-brote { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px; margin: 0 auto clamp(28px, 4vw, 44px); }
.sos-brote-glow { position: absolute; z-index: -1; left: 50%; top: 40px; width: 240px; aspect-ratio: 1; translate: -50% -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 179, 0, 0.16) 0%, rgba(19, 236, 91, 0.12) 35%, rgba(19, 236, 91, 0) 70%); }
.sos-brote .bubble { max-width: 300px; }

/* ---------- Community: Brote at the centre of the orbit ---------- */

.orbit-center { display: grid; justify-items: center; gap: 12px; }
.orbit-center .brote { --h: clamp(92px, 17vw, 128px); }
.orbit-center p { font: 800 clamp(16px, 1.8vw, 21px)/1.2 var(--font-display); letter-spacing: -0.03em; }

/* ---------- Learn: Brote stands on the lesson card ---------- */

.learn-card { position: relative; }
.learn-brote { position: absolute; right: clamp(20px, 4vw, 44px); bottom: calc(100% - 1px); z-index: 1; }

/* ---------- Closing: Brote grows as the loop closes ---------- */

.closing-in > .brote { margin: calc(var(--h) * -0.04) 0 calc(var(--h) * -0.12); }

/* ---------- Footer: Brote asleep on the wordmark ---------- */

.footer-end { position: relative; }
.footer-brote { --h: clamp(64px, 8.4vw, 128px); position: absolute; right: 6.2vw; bottom: calc(19.5vw * 0.735); opacity: 0.92; }
.footer-brote .brote { --h: inherit; margin-bottom: calc(var(--h) * -0.09); }

@media (max-width: 1180px) and (min-width: 961px) {
  .hero-brote { --h: 180px; left: -118px; }
}
@media (max-width: 960px) {
  .hero-brote { --h: 180px; left: -150px; bottom: 20px; }
  /* One column: the heading, then Brote, then its controls right under it (so a tap shows its effect). */
  .meet-in { grid-template-columns: 1fr; row-gap: 0; }
  .meet-copy { display: contents; }
  .meet-stage { order: 1; --h: clamp(220px, 56vw, 320px); min-height: calc(var(--h) + 100px); margin: 4px 0 18px; }
  .meet-grow, .meet-label, .meet-moods { order: 2; }
  .meet-copy .lede { margin-bottom: 0; }
  .learn-card { margin-top: 84px; }
}
@media (max-width: 720px) {
  /* No room beside the phone: Brote stands at its foot and says hello to the side. */
  .hero-brote { --h: 120px; left: -12px; bottom: -40px; flex-direction: row-reverse; align-items: flex-end; gap: 8px; }
  .hero-say { max-width: 190px; margin-bottom: 28px; text-align: left; font-size: 14px; }
  .hero-say::before { left: -8px; top: 50%; bottom: auto; margin: -7px 0 0; border-width: 0 0 1px 1px; }
  .hero-stage { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  .meet-grow b { font-size: 12.5px; }
  .meet-grow span { font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-brote { animation: none; }
}
