/* ============ Tokens ============ */
:root {
  --ink: #141416;
  --ink-2: #2A2A2E;
  --ink-soft: #34343A;
  --muted: #5F5F66;
  --muted-2: #6A6A71;
  --muted-3: #8A8A90;
  --page: #FBF5EC;
  --line: #EDE2D4;
  --line-2: #E6D9C8;
  --chip-line: #E4D5C2;
  --cream: #F4E9DA;
  --card: #F4E9DA;
  --peach: #FAD9A8;
  --peach-2: #FDE6D3;
  --orange: #E8620F;
  --orange-2: #F26A1B;
  --orange-dark: #B8480A;
  --white: #FFFFFF;
  --max: 1180px;
  --font: Montserrat, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--orange-dark); }
::selection { background: var(--peach); color: var(--ink); }
button { font-family: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; }
.section { padding: 136px 24px; }
.h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); }
.logo { font-family: Damion, cursive; line-height: 1; color: var(--ink); }

/* ============ Animations ============ */
@keyframes byFloat { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes byBlink { 0%,94%,100% { transform: scaleY(1) } 96% { transform: scaleY(0.1) } }
@keyframes byUp { from { opacity: 0; transform: translateY(18px) } to { opacity: 1; transform: none } }
@keyframes byFade { from { opacity: 0; transform: scale(0.985) } to { opacity: 1; transform: none } }
@keyframes byMarquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes byFill { from { width: 6% } to { width: 84% } }
@keyframes byProgress { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes byFlicker { 0%,100% { transform: scale(1,1) rotate(0deg) } 50% { transform: scale(1.05,0.95) rotate(-2deg) } }
@keyframes byFlickerFast { 0%,100% { transform: scale(1,1) rotate(0deg) } 25% { transform: scale(1.04,0.94) rotate(2deg) } 50% { transform: scale(0.96,1.06) rotate(-2deg) } 75% { transform: scale(1.03,0.97) rotate(1deg) } }
@keyframes byGlow { 0%,100% { opacity: 0.55; transform: scale(1) } 50% { opacity: 0.9; transform: scale(1.12) } }
@keyframes byEmber { 0% { opacity: 0; transform: translate(0,0) scale(1) } 15% { opacity: 1 } 100% { opacity: 0; transform: translate(var(--dx), -90px) scale(0.3) } }
@keyframes bySpin { to { transform: rotate(360deg) } }

.by-float { animation: byFloat 7s ease-in-out infinite; }
.by-d1 { animation-delay: -1s } .by-d2 { animation-delay: -2.2s } .by-d3 { animation-delay: -3.4s } .by-d4 { animation-delay: -4.6s } .by-d5 { animation-delay: -5.8s }
.by-blink { animation: byBlink 5.5s ease-in-out infinite; transform-origin: 50% 50%; }
.by-up { animation: byUp 0.9s var(--ease) both; }
.by-up2 { animation: byUp 0.9s 0.12s var(--ease) both; }
.by-up3 { animation: byUp 0.9s 0.24s var(--ease) both; }
.by-up4 { animation: byUp 1.1s 0.3s var(--ease) both; }
.by-screen { animation: byFade 0.6s var(--ease) both; }
.by-marquee { animation: byMarquee 36s linear infinite; }
.by-fill { animation: byFill 3.2s cubic-bezier(0.4,0,0.2,1) infinite alternate; }
.by-progress { animation: byProgress 6s linear both; transform-origin: 0 50%; }
.by-flame { animation: byFlicker 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
.by-fire-outer { animation: byFlicker 1.6s ease-in-out infinite; transform-origin: 50% 100%; }
.by-fire-inner { animation: byFlickerFast 0.9s ease-in-out infinite; transform-origin: 50% 100%; }
.by-glow { animation: byGlow 1.8s ease-in-out infinite; }
.by-ember { animation: byEmber 2.6s ease-out infinite; }
.by-e2 { animation-delay: -0.9s } .by-e3 { animation-delay: -1.7s } .by-e4 { animation-delay: -2.2s }
.by-ring { animation: bySpin 90s linear infinite; }

/* ============ Buttons & links ============ */
.btn {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--white);
  border-radius: 999px; font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .3s;
}
.btn:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(20,20,22,0.18); }
.btn-sm { padding: 12px 22px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; font-weight: 600; transition: color .25s; }
.ghost .arrow { transition: transform .3s var(--ease); }
.ghost:hover .arrow { transform: translateX(4px); }
.link { transition: color .25s; }

/* ============ Header ============ */
.header { position: relative; z-index: 3; border-bottom: 1px solid var(--line); }
.header .container { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header .logo { font-size: 40px; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.menu-toggle { display: none; }

/* ============ Hero ============ */
.hero { position: relative; padding: 88px 24px 120px; background: radial-gradient(ellipse 70% 80% at 85% 10%, #FBE1C4 0%, rgba(251,225,196,0) 70%), radial-gradient(ellipse 50% 60% at 0% 100%, #F6E6D2 0%, rgba(246,230,210,0) 70%); }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--muted); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

.orbit-wrap { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.orbit { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1; }
.orbit-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, #FDE9D2 0%, rgba(253,233,210,0) 68%); }
.orbit-ring { position: absolute; inset: 0; border: 1px dashed #DCCBB6; border-radius: 50%; }
.orbit-inner { position: absolute; inset: 21%; border: 1px solid #E8DACA; border-radius: 50%; }

.mascot { position: absolute; left: 50%; top: 50%; width: 116px; height: 164px; margin-left: -58px; margin-top: -62px; }
.mascot .glow { position: absolute; left: 0; top: -110px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(255,170,60,0.55) 0%, rgba(255,140,40,0.18) 45%, rgba(255,140,40,0) 70%); }
.mascot .ember { position: absolute; border-radius: 50%; }
.mascot .fire-outer { position: absolute; left: 25px; top: -96px; width: 82px; height: 100px; }
.mascot .fire-inner { position: absolute; left: 41px; top: -58px; width: 50px; height: 62px; }
.mascot .spine { position: absolute; left: 0; top: 10px; width: 30px; height: 152px; border-radius: 14px; background: var(--ink-soft); }
.mascot .body { position: absolute; left: 14px; top: 0; width: 102px; height: 164px; border-radius: 18px; background: var(--ink); box-shadow: 0 30px 60px -18px rgba(20,20,22,0.45), 0 -10px 40px -10px rgba(255,140,40,0.35); }
.mascot .eyes { position: absolute; left: 48px; top: 52px; width: 56px; height: 22px; }
.mascot .eye { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); }
.mascot .eye::after { content: ""; position: absolute; left: 7px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }

.bubble { position: absolute; width: 68px; height: 68px; margin: -34px 0 0 -34px; }
.bubble > div {
  width: 68px; height: 68px; border-radius: 50%; background: var(--white);
  box-shadow: 0 14px 30px -10px rgba(20,20,22,0.16), 0 0 0 1px var(--line);
  display: flex; align-items: center; justify-content: center;
}

/* ============ Marquee ============ */
.marquee-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 0; }
.marquee-label { flex: 0 0 auto; padding: 0 40px 0 max(24px, calc((100% - 1180px) / 2 + 24px)); font-size: 14px; font-weight: 500; color: var(--muted-2); }
.marquee-mask { flex: 1 1 400px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 72px; padding-right: 72px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-2); }

/* ============ How it works ============ */
.how .container { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.how-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.how-head { display: flex; flex-direction: column; gap: 18px; }
.how-head .lead { max-width: 460px; }
.steps { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.step {
  position: relative; display: block; width: 100%; padding: 26px 0;
  background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  text-align: left; cursor: pointer; opacity: 0.55; color: var(--ink);
  transition: background-color .35s, opacity .35s;
}
.step.is-active { opacity: 1; }
.step-row { display: flex; align-items: baseline; gap: 20px; }
.step-n { font-size: 14px; font-weight: 600; color: var(--muted-3); font-variant-numeric: tabular-nums; }
.step-text { display: flex; flex-direction: column; gap: 8px; }
.step-title { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.step-body { display: none; font-size: 16px; line-height: 1.6; font-weight: 400; color: var(--muted); }
.step.is-active .step-body { display: block; animation: byFade 0.6s var(--ease) both; }
.step-bar { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--line-2); }
.step.is-active .step-bar { display: block; }
.step-bar span { display: block; width: 100%; height: 2px; background: var(--ink); }

.phone-wrap { flex: 1 1 400px; min-width: 0; display: flex; justify-content: center; }
.phone-stage { position: relative; width: 100%; max-width: 460px; padding: 48px 0; border-radius: 40px; background: var(--cream); display: flex; justify-content: center; }
.phone { width: 300px; height: 620px; border-radius: 48px; background: var(--ink); padding: 10px; box-shadow: 0 50px 80px -30px rgba(20,20,22,0.35); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden; background: var(--white); }
.notch { position: absolute; left: 50%; top: 10px; width: 90px; height: 26px; margin-left: -45px; border-radius: 13px; background: var(--ink); z-index: 2; }
.screen { position: absolute; inset: 0; }
.screen[hidden] { display: none; }

.screen-share { background: linear-gradient(180deg, #4A4C5E 0%, #1E1F26 100%); display: flex; flex-direction: column; justify-content: flex-end; }
.reel-meta { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--white); }
.reel-meta .who { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.reel-meta .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--white); }
.reel-meta .cap { font-size: 11px; opacity: 0.8; }
.sheet { background: var(--white); border-radius: 24px 24px 0 0; padding: 14px 18px 28px; display: flex; flex-direction: column; gap: 16px; }
.sheet .grab { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: #DDDAD5; }
.sheet .title { font-size: 13px; font-weight: 700; }
.share-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; font-size: 10px; font-weight: 500; color: var(--muted); }
.share-grid > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.share-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--line); }
.share-icon.byte { background: var(--ink); box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--orange); }
.share-icon.byte i { position: absolute; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.share-grid .byte-label { font-weight: 700; color: var(--ink); }

.screen-scan { background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 0 26px; }
.scan-frame { position: relative; width: 120px; height: 108px; display: flex; align-items: center; justify-content: center; }
.scan-frame i { position: absolute; width: 24px; height: 24px; border: 0 solid #B9B6B1; }
.scan-frame .tl { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-radius: 12px 0 0 0; }
.scan-frame .tr { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-radius: 0 12px 0 0; }
.scan-frame .bl { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-radius: 0 0 0 12px; }
.scan-frame .br { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-radius: 0 0 12px 0; }
.scan-text { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.scan-text strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.scan-text span { font-size: 12px; color: var(--muted-2); }
.scan-progress { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.scan-progress span { font-size: 11px; font-weight: 700; }
.scan-progress .bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.scan-progress .bar div { height: 100%; border-radius: 5px; background: var(--ink); }

.screen-saves { background: var(--white); padding: 52px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.saves-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.saves-search { height: 36px; border-radius: 12px; background: #F4F2EF; display: flex; align-items: center; padding: 0 12px; font-size: 11px; color: var(--muted-2); }
.saves-tabs { display: flex; gap: 6px; font-size: 10px; font-weight: 600; }
.saves-tabs span { background: #F4F2EF; padding: 6px 10px; border-radius: 999px; }
.saves-tabs span.on { background: var(--ink); color: var(--white); }
.save-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: #F7F6F4; }
.save-item.hl { background: #FFF5E9; }
.save-item .thumb { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.save-item .meta { display: flex; flex-direction: column; gap: 2px; }
.save-item strong { font-size: 12px; font-weight: 700; }
.save-item span { font-size: 10px; color: var(--muted-2); }

/* ============ Topics ============ */
.topics { background: var(--cream); }
.topics .container { display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-start; }
.topics-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.picked-label { padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.chips { flex: 1.5 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  background: var(--white); color: var(--ink); border: 1px solid var(--chip-line);
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ============ Streaks ============ */
.streaks .container { display: flex; flex-direction: column; gap: 56px; }
.streaks-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.streaks-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; max-width: 600px; }
.streak-mascot-wrap { display: flex; align-items: flex-end; gap: 14px; }
.mini-mascot { position: relative; width: 64px; height: 120px; }
.mini-mascot .flame { position: absolute; left: 13px; top: 0; }
.mini-mascot .spine { position: absolute; left: 0; top: 54px; width: 18px; height: 64px; border-radius: 7px; background: var(--ink-soft); }
.mini-mascot .body { position: absolute; left: 10px; top: 50px; width: 54px; height: 70px; border-radius: 10px; background: var(--ink); }
.mini-mascot .eyes { position: absolute; left: 28px; top: 70px; width: 26px; height: 10px; }
.mini-mascot .eyes i { position: absolute; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--white); }
.speech { margin-bottom: 72px; background: var(--white); border-radius: 20px 20px 20px 6px; padding: 14px 18px; font-size: 15px; font-weight: 600; line-height: 1.45; box-shadow: 0 16px 40px -12px rgba(20,20,22,0.18), 0 0 0 1px var(--line); }

.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.goal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px; border-radius: 28px; color: var(--ink); cursor: pointer;
  background: var(--card); border: 2px solid var(--card); box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s var(--ease);
}
.goal:hover { transform: translateY(-3px); }
.goal[aria-checked="true"] { background: var(--white); border-color: var(--ink); box-shadow: 0 24px 50px -24px rgba(20,20,22,0.28); }
.goal-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; }
.goal-days { display: flex; align-items: baseline; gap: 8px; }
.goal-num { font-size: 60px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: var(--ink); transition: color .4s; }
.goal[aria-checked="true"] .goal-num { color: var(--orange); }
.goal-unit { font-size: 16px; font-weight: 600; color: var(--muted-2); }
.goal-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.goal-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.badge { background: var(--peach-2); color: #A8420A; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.goal-body { font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--muted); }
.goal-art { position: relative; flex: 0 0 auto; width: 52px; height: 108px; }
.goal-art .flame { position: absolute; bottom: 52px; }
.goal-art .spine { position: absolute; left: 4px; bottom: 0; width: 12px; height: 52px; border-radius: 5px; background: var(--ink-soft); }
.goal-art .body { position: absolute; left: 10px; bottom: 0; width: 38px; height: 56px; border-radius: 8px; background: var(--ink); }
.goal-art .lid { position: absolute; bottom: 36px; width: 6px; height: 3px; border-radius: 3px 3px 0 0; border: 2px solid var(--white); border-bottom: none; box-sizing: content-box; }
.note { font-size: 14px; color: var(--muted-2); }

/* ============ Hero extension link ============ */
.hero-ext { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .3s, color .25s; }
.hero-ext:hover { border-color: var(--peach); }
.hero-ext .arrow { transition: transform .3s var(--ease); }
.hero-ext:hover .arrow { transform: translateX(3px); }
.hero-ext-tag { background: var(--peach-2); color: #A8420A; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

/* ============ Chrome extension ============ */
.extension { background: var(--cream); }
.extension .container { display: flex; flex-wrap: wrap; align-items: center; gap: 72px; }
.ext-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: 0.02em; }
.ext-list { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ext-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.ext-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ext-list strong { color: var(--ink); font-weight: 700; }
.ext-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 12px; }
.btn-chrome { gap: 10px; }
.btn-chrome.is-soon { background: var(--white); color: var(--ink); border: 1px solid var(--chip-line); }
.btn-chrome.is-soon:hover { color: var(--ink); }
.btn-chrome.is-installed { background: var(--peach-2); color: var(--ink); border: 1px solid var(--peach); cursor: default; }
.btn-chrome.is-installed:hover { color: var(--ink); transform: none; }
.btn-chrome.is-installed svg { display: none; }
.ext-meta { font-size: 14px; color: var(--muted-2); max-width: 260px; line-height: 1.5; }

.ext-visual { flex: 1 1 440px; min-width: 0; display: flex; justify-content: center; }
.browser { position: relative; width: 100%; max-width: 520px; border-radius: 18px; background: var(--white); box-shadow: 0 50px 80px -30px rgba(20,20,22,0.3), 0 0 0 1px var(--line); overflow: visible; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #E3DED6; }
.browser-bar .url { flex: 1; min-width: 0; height: 28px; border-radius: 8px; background: #F4F2EF; padding: 0 12px; display: flex; align-items: center; font-size: 11px; color: var(--muted-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-bar .ext-icon { position: relative; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--orange); }
.browser-bar .ext-icon i { position: absolute; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--white); }
.browser-page { padding: 22px 22px 120px; display: flex; flex-direction: column; gap: 12px; }
.page-hero { height: 150px; border-radius: 12px; background: linear-gradient(135deg, #FAD9A8, #E8620F); }
.page-line { height: 10px; border-radius: 5px; background: #F1EEEA; }
.w80 { width: 80% } .w60 { width: 60% } .w70 { width: 70% } .w40 { width: 40% }
.ext-popup { position: absolute; right: 12px; top: 56px; width: 250px; padding: 16px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 60px -20px rgba(20,20,22,0.35), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.pop-head { display: flex; align-items: center; justify-content: space-between; }
.pop-head .logo { font-size: 26px; }
.pop-saved { background: var(--peach-2); color: #A8420A; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.pop-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #FFF5E9; }
.pop-thumb { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--orange); }
.pop-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pop-meta strong { font-size: 12px; font-weight: 700; }
.pop-meta span { font-size: 10px; color: var(--muted-2); }
.pop-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); padding: 0 2px; }
.pop-row b { color: var(--ink); font-weight: 600; }
.pop-btn { margin-top: 2px; height: 36px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ============ CTA ============ */
.cta { padding: 0 24px 120px; }
.cta-card {
  position: relative; overflow: hidden; max-width: var(--max); margin: 0 auto;
  background: var(--ink); color: var(--white); border-radius: 36px;
  padding: clamp(44px, 6vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px;
}
.cta-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.08); }
.cta-copy { position: relative; flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cta-copy h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.cta-copy p { font-size: 18px; line-height: 1.65; color: #BDBDC3; }
.stores { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 60px; padding: 0 26px; border-radius: 16px;
  background: var(--white); color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.store:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.3); }
.store small { font-size: 11px; font-weight: 500; }
.store strong { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 64px 24px 40px; }
.footer .container { display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand .logo { font-size: 36px; }
.footer-brand span { font-size: 15px; line-height: 1.6; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 12px; }
.footer-cols .head { font-size: 13px; font-weight: 700; color: var(--ink); }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--orange-dark); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted-2); }

/* ============ Legal pages ============ */
.legal { padding: 88px 24px 120px; }
.legal-inner { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal h1 { margin: 10px 0 8px; font-size: clamp(38px, 4.4vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.legal h2 { margin: 56px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.legal h3 { margin: 32px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.legal p { margin: 0 0 16px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-size: 0.88em; background: #F4F2EF; padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.legal-date { font-size: 14px; color: var(--muted-2); margin-bottom: 32px !important; }
.legal-summary { margin: 28px 0 8px; padding: 20px 24px; border-radius: 20px; background: var(--cream); color: var(--ink); }

/* ============ Account pages (sign in, account) ============ */
.auth { padding: 72px 24px 120px; display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--white); border-radius: 28px; padding: 40px 36px; box-shadow: 0 30px 60px -30px rgba(20,20,22,0.25), 0 0 0 1px var(--line); }
.auth-card-wide { max-width: 560px; }
.auth h1 { margin: 0 0 8px; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.auth-sub strong { color: var(--ink); word-break: break-all; }
.auth-mascot { position: relative; width: 44px; height: 56px; margin-bottom: 18px; border-radius: 10px; background: var(--ink); box-shadow: -8px 4px 0 -2px var(--ink-soft); }
.auth-mascot i { position: absolute; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.auth-ext-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--peach-2); color: #A8420A; font-size: 13px; font-weight: 600; }
#auth-form, #ext-connect { display: flex; flex-direction: column; gap: 16px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.auth-field[hidden] { display: none; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-field input { height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--chip-line); background: var(--page); font: inherit; font-weight: 500; font-size: 15px; color: var(--ink); }
.auth-field input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.auth-link { border: 0; padding: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--orange-dark); cursor: pointer; }
.auth-link[hidden] { display: none; }
.auth-link:hover { text-decoration: underline; }
.auth-error, .auth-info { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; font-weight: 500; }
.auth-error { background: #FDECEA; color: #A3261B; }
.auth-info { background: #EAF6EC; color: #1F6B32; }
.auth-error[hidden], .auth-info[hidden] { display: none; }
.auth .btn { justify-content: center; border: 0; cursor: pointer; font-family: inherit; }
.auth-submit { width: 100%; }
.btn.is-busy, .btn:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--chip-line) !important; margin-top: 8px; }
.btn-outline:hover { color: var(--ink); }
.auth-foot { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-foot .auth-link { font-size: 14px; }
.auth-check { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: #EAF6EC; color: #1F6B32; display: flex; align-items: center; justify-content: center; }
#auth-done-view .btn { display: flex; }

.acct-box { margin: 8px 0 20px; padding: 24px; border-radius: 22px; background: var(--cream); display: flex; flex-direction: column; gap: 16px; }
.acct-box [hidden] { display: none !important; }
.acct-box-head { display: flex; align-items: center; gap: 14px; }
.acct-box h2 { margin: 0; font-size: 18px; font-weight: 800; }
.acct-ext-icon { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); }
.acct-ext-icon i { position: absolute; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--white); }
.acct-status { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.acct-status.is-ok { color: #1F6B32; font-weight: 600; }
.acct-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
#ext-missing, #ext-connected { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.acct-box-app { background: var(--page); border: 1px solid var(--line); }
.acct-phone-icon { position: relative; flex: 0 0 auto; width: 26px; height: 40px; margin: 0 4px; border-radius: 7px; border: 3px solid var(--ink); }
.acct-phone-icon::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 8px; height: 2px; margin-left: -4px; border-radius: 2px; background: var(--ink); }
.acct-box-app .acct-status strong { color: var(--ink); word-break: break-all; }

/* Welcome (right after installing the extension) and "You're all set" */
.auth-welcome { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--peach-2); color: #7A3108; }
.auth-welcome[hidden] { display: none; }
.auth-welcome strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.auth-welcome ol { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.auth-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-actions .btn-outline { margin-top: 0; }
.auth .btn[hidden] { display: none; }
.app-sync { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--muted); }
.app-sync strong { display: block; color: var(--ink); font-size: 15px; }
.app-sync p { margin: 4px 0 0; }
.app-sync b { color: var(--ink); word-break: break-all; }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.app-links[hidden] { display: none; }
.app-link { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--white); }
.app-link:hover { color: var(--white); }
.app-link small { font-size: 10px; font-weight: 500; }
.app-link strong { font-size: 15px; font-weight: 700; }
.app-sync .app-link strong { display: block; color: var(--white); }
#ext-connect .btn { align-self: flex-start; }

@media (max-width: 520px) {
  .auth { padding: 40px 16px 80px; }
  .auth-card { padding: 32px 22px; border-radius: 22px; }
  .auth h1 { font-size: 28px; }
  .acct-box { padding: 20px; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: 0 20px 40px -20px rgba(20,20,22,0.2);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: none; }
  .nav.nav-simple { display: flex; position: static; flex-direction: row; align-items: center; gap: 20px; padding: 0; background: none; border: none; box-shadow: none; }
  .nav.nav-simple a { padding: 0; border: none; }
  .nav.nav-simple .btn { margin-top: 0; padding: 12px 22px; }
}

@media (max-width: 820px) {
  .section { padding: 96px 24px; }
  .hero { padding: 56px 24px 88px; }
}

@media (max-width: 520px) {
  .header .logo { font-size: 34px; }
  .bubble, .bubble > div { width: 52px; height: 52px; }
  .bubble { margin: -26px 0 0 -26px; }
  .bubble svg { width: 24px; height: 24px; }
  .phone-stage { padding: 32px 0; border-radius: 28px; }
  .goal { padding: 24px; }
  .goal-num { font-size: 48px; }
  .goals { grid-template-columns: 1fr; }
  .speech { margin-bottom: 56px; }
  .footer-cols { gap: 40px; }
  .hero-ext { font-size: 13px; }
  .ext-popup { width: 220px; right: 8px; }
  .browser-page { padding-bottom: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
