/* Pommo website. Tokens mirror app/src/lib/theme.ts so the site looks like the app. */
:root {
  --tomato: #D9381F;
  --tomato-shadow: #9E2614;
  --tomato-dark: #B3261E;
  --tomato-tint: #FDE3DE;
  --on-tomato-muted: #FFE7DF;
  --cream: #FFF8F0;
  --surface: #FFFFFF;
  --surface-muted: #F3E9DE;
  --border: #EADBCB;
  --border-strong: #D9C6B3;
  --ink: #2B2118;
  --muted: #6B5E55;
  --faint: #8A7B70;
  --leaf: #3FA34D;
  --leaf-dark: #2F8F3E;
  --leaf-shadow: #1F6A2B;
  --leaf-tint: #E4F3DE;
  --gold: #F08A24;
  --gold-deep: #D97A12;
  --plus: #E0A800;
  --select: #4A90D9;
  --select-bg: #DDF0FF;
  --night: #1E1712;

  --font: 'Nunito', ui-rounded, system-ui, sans-serif;
  --r-card: 24px;
  --r-btn: 18px;
  --shadow-hard: 0 6px 0 var(--border);
  --spring: cubic-bezier(.32, 1.3, .45, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--select); outline-offset: 3px; border-radius: 10px; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- buttons (the app's GameButton: chunky with a hard bottom shadow) ---------- */
.btn {
  --b-bg: var(--tomato); --b-sh: var(--tomato-shadow); --b-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 26px; border: 0; border-radius: var(--r-btn);
  background: var(--b-bg); color: var(--b-fg); box-shadow: 0 6px 0 var(--b-sh);
  font: 900 16px var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--b-sh); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--b-sh); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 13px; box-shadow: 0 4px 0 var(--b-sh); }
.btn--small:hover { box-shadow: 0 6px 0 var(--b-sh); }
.btn--tomato { --b-bg: var(--tomato); --b-sh: var(--tomato-shadow); }
.btn--green { --b-bg: var(--leaf-dark); --b-sh: var(--leaf-shadow); }
.btn--cream { --b-bg: var(--cream); --b-sh: #E9C9BC; --b-fg: var(--tomato-dark); }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn--ghost:hover, .btn--ghost:active { box-shadow: inset 0 0 0 2px #fff; transform: none; }
.btn--static { cursor: default; }
.btn--static:hover, .btn--static:active { transform: none; box-shadow: 0 6px 0 var(--b-sh); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.nav.is-solid, .nav--solid { background: rgba(255,248,240,.94); color: var(--ink); box-shadow: 0 2px 0 var(--border); backdrop-filter: blur(10px); }
.nav--solid { position: sticky; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; }
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 800; font-size: 15px; opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-cta { margin-left: 4px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- shared section heads ---------- */
section { padding: clamp(72px, 10vw, 130px) var(--gutter); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 58px); }
.section-head--row { max-width: var(--max); display: flex; align-items: end; justify-content: space-between; gap: 24px; text-align: left; }
.section-head--light { color: #fff; }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--tomato-dark); }
.eyebrow--light { color: var(--on-tomato-muted); }
.eyebrow--gold { color: #FFB020; }
.lede { margin-top: 18px; font-size: 19px; color: rgba(255,255,255,.75); }

/* ---------- hero (the splash screen, alive) ---------- */
.hero {
  position: relative; background: var(--tomato); color: #fff;
  padding: 120px var(--gutter) 90px; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 82% 40%, rgba(255,176,32,.32), transparent 70%),
    radial-gradient(45% 45% at 8% 55%, rgba(158,38,20,.45), transparent 70%);
}
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.splash-lockup { width: 92px; height: 92px; margin-bottom: 18px; animation: pop .7s var(--spring) both; }
.hero-title { font-size: clamp(46px, 6.2vw, 86px); letter-spacing: -0.045em; line-height: .96; margin-bottom: 26px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; animation: rise .9s var(--spring) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .line:nth-child(3) > span { animation-delay: .24s; }
.hero-title em { font-style: normal; color: var(--cream); position: relative; white-space: nowrap; }
.hero-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px;
  background: var(--gold); transform-origin: left; animation: underline .8s .9s var(--ease) both; z-index: -1;
}
.hero-sub { max-width: 520px; font-size: 20px; color: var(--on-tomato-muted); animation: fade .8s .4s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: fade .8s .55s both; }
.hero-phone-wrap { position: relative; justify-self: center; animation: floatIn 1s .2s var(--spring) both; }
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .splash-lockup { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
}
/* ---------- hero composition ---------- */
.hero-phone-wrap { width: 520px; height: 700px; display: grid; place-items: center; }
.hero-ring { position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; margin: -300px 0 0 -300px; transform: rotate(-90deg); pointer-events: none; animation: spinIn 1.4s .3s var(--ease) both; }
.hero-ring circle { fill: none; stroke-width: 34; }
.hr-track { stroke: rgba(255,255,255,.12); }
.hr-fill { stroke: rgba(255,231,223,.5); stroke-linecap: round; stroke-dasharray: 1696.5; stroke-dashoffset: 1696.5; transition: stroke-dashoffset 1s linear; }
.phone--hero { z-index: 2; }
.phone.phone--back { position: absolute; z-index: 1; width: 270px; height: 574px; padding: 8px; border-radius: 44px; left: -56px; top: 92px; transform: rotate(-9deg); opacity: .96; animation: backIn 1.1s .45s var(--spring) both; }
.phone.phone--back-right { left: auto; right: -96px; transform: rotate(9deg); animation-name: backInRight; }
.phone.phone--back::before { display: none; }
.phone.phone--back img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.hcard {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 22px; background: var(--surface); color: var(--ink);
  border: 2px solid var(--border); box-shadow: 0 6px 0 rgba(158,38,20,.35), 0 20px 40px rgba(80,10,0,.25);
}
.hcard img { object-fit: contain; }
.hcard--live { left: -92px; top: 236px; width: 250px; background: rgba(22,18,16,.92); color: #fff; border-color: rgba(255,255,255,.1); box-shadow: 0 20px 40px rgba(40,5,0,.4); animation: cardIn .8s .9s var(--spring) both, drift 6s 1.7s ease-in-out infinite; }
.hcard--live img { width: 40px; height: 48px; }
.hcard--live > div { flex: 1; min-width: 0; }
.hcard--live b { display: block; font-size: 15px; line-height: 1.2; }
.hc-cap { font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #8C8C94; }
.hc-bar { height: 5px; margin-top: 6px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; }
.hc-bar i { display: block; height: 100%; width: 0; background: #FF5A3C; border-radius: 5px; transition: width 1s linear; }
.hc-num { font-size: 22px; font-weight: 900; color: #FF5A3C; font-variant-numeric: tabular-nums; }
.hcard--streak { right: -18px; top: 150px; gap: 6px; padding: 10px 14px; background: #FFF1DE; border-color: #F6C98E; box-shadow: 0 5px 0 #E9B26C, 0 18px 34px rgba(80,10,0,.22); animation: cardIn .8s 1.1s var(--spring) both, drift 5.5s 2s ease-in-out infinite reverse; }
.hcard--streak b { font-size: 20px; }
.hcard--streak span { font-size: 13px; font-weight: 800; color: var(--muted); }
.hcard--toast { right: -40px; bottom: 96px; width: 238px; animation: cardIn .8s 1.3s var(--spring) both; }
.hcard--toast img { width: 52px; height: 58px; flex: none; }
.hcard--toast b { display: block; font-size: 17px; color: var(--tomato-dark); line-height: 1.15; }
.hcard--toast span { font-size: 13px; color: var(--muted); }
.hcard--toast.swap { animation: toastSwap .6s var(--spring); }
@media (max-width: 920px) {
  .hero-phone-wrap { width: 100%; max-width: 520px; height: 700px; }
  .hero-ring { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
  .phone.phone--back { left: calc(50% - 250px); }
  .phone.phone--back-right { left: auto; right: calc(50% - 250px); }
  .hcard--live { left: 0; } .hcard--streak, .hcard--toast { right: 0; }
}
@media (max-width: 560px) {
  .hero-phone-wrap { height: 640px; }
  .hero-ring { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .phone.phone--back { display: none; }
  .hcard--live { display: none; }
  .hcard--streak { right: -6px; top: 120px; }
  .hcard--toast { right: -6px; bottom: 50px; width: 210px; }
}

/* Very narrow screens (old 320 px phones, split view): text never wider than the screen, phone scaled down. */
.hero-inner > * { min-width: 0; }
@media (max-width: 380px) {
  .hero-phone-wrap { height: 560px; }
  .phone--hero { transform: scale(.82); transform-origin: top center; }
  .hcard--streak, .hcard--toast { transform: scale(.85); }
}

/* ---------- phone frame ---------- */
.phone {
  position: relative; width: 320px; height: 680px; border-radius: 52px; padding: 10px;
  background: #1A1411; box-shadow: 0 0 0 2px #3A2E26, 0 40px 80px rgba(60,10,0,.35);
}
.phone::before { content: ''; position: absolute; inset: 10px; border-radius: 43px; background: var(--cream); }
.app-screen { position: relative; color: var(--ink); height: 100%; border-radius: 43px; overflow: hidden; padding: 62px 18px 22px; display: flex; flex-direction: column; align-items: center; }

/* focus screen (recreated from app/src/app/focus.tsx) */
.focus-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill { padding: 6px 12px; border-radius: 99px; background: var(--select-bg); border: 2px solid #9CC6EE; color: #1D5C99; font-size: 12px; font-weight: 900; white-space: nowrap; }
.muted { color: var(--faint); font-size: 12px; font-weight: 900; }
.focus-title { margin-top: 22px; font-size: 19px; font-weight: 900; color: var(--ink); }
.focus-sub { font-size: 12.5px; color: var(--muted); }
.ring { position: relative; width: 236px; height: 236px; margin-top: 20px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 20; }
.ring-track { stroke: var(--surface-muted); }
.ring-fill { stroke: var(--tomato); stroke-linecap: round; stroke-dasharray: 816.8; stroke-dashoffset: 816.8; transition: stroke-dashoffset 1s linear; }
.ring-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-inner img { width: 100px; height: 120px; object-fit: contain; }
.ring-time { font-size: 40px; font-weight: 900; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.quiz-chip { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 2px solid var(--border); font-size: 12px; font-weight: 800; }
.quiz-chip span { width: 22px; height: 22px; border-radius: 50%; background: var(--tomato-tint); color: var(--tomato-dark); display: grid; place-items: center; font-weight: 900; }

/* ---------- dynamic island ---------- */
.island {
  position: absolute; z-index: 6; top: 20px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 34px; border-radius: 20px; background: #000; overflow: hidden;
  transition: width .55s var(--spring), height .55s var(--spring), border-radius .55s var(--spring), top .55s var(--spring);
}
.island--compact, .isl-compact { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 6px; }
.island--compact { width: 150px; }
.isl-compact { position: absolute; inset: 0; transition: opacity .25s; }
.island-st { width: 26px; height: 30px; object-fit: contain; }
.island-time { color: #FF5A3C; font-size: 14px; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- how it works ---------- */
.how-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); }
.how-stage { position: relative; }
.stage-card {
  position: sticky; top: 110px; aspect-ratio: 1 / 1.08; border-radius: 40px;
  background: var(--surface); border: 2px solid var(--border); box-shadow: 0 10px 0 var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.stage-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--leaf-tint); transition: background .6s; }
.stage-card[data-on="3"] .stage-glow { background: var(--tomato-tint); }
.stage-card[data-on="0"] .stage-glow { background: #F3E6D5; }
.stage-img {
  position: absolute; width: 62%; max-height: 66%; object-fit: contain;
  opacity: 0; transform: scale(.6) translateY(30px) rotate(-8deg); transition: opacity .45s var(--ease), transform .6s var(--spring);
}
.stage-img.is-on { opacity: 1; transform: none; animation: bob 4s ease-in-out infinite; }
.stage-label { position: absolute; bottom: 52px; padding: 8px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 900; font-size: 15px; }
.stage-dots { position: absolute; bottom: 24px; display: flex; gap: 8px; }
.stage-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background .3s, transform .3s; }
.stage-dots i.is-on { background: var(--tomato); transform: scale(1.3); }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(60px, 12vh, 140px); padding-block: 40px 30vh; }
.step { position: relative; padding-left: 74px; opacity: .35; transition: opacity .4s; }
.step.is-active { opacity: 1; }
.step-num {
  position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 24px; font-weight: 900;
  background: var(--surface); border: 2px solid var(--border); box-shadow: 0 4px 0 var(--border);
}
.step.is-active .step-num { background: var(--tomato); border-color: var(--tomato); color: #fff; box-shadow: 0 4px 0 var(--tomato-shadow); }
.step h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 18px; max-width: 520px; }
.mini-card { margin-top: 20px; max-width: 460px; padding: 16px; border-radius: 20px; background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow-hard); display: flex; flex-wrap: wrap; gap: 8px; }
.mini-card--row { flex-wrap: nowrap; align-items: center; gap: 14px; }
.mini-card--row img { width: 58px; height: 70px; object-fit: contain; }
.mini-card--row b { display: block; font-size: 26px; font-weight: 900; }
.mini-card--row span { font-size: 14px; color: var(--muted); }
.chip { padding: 7px 14px; border-radius: 99px; border: 2px solid var(--border); font-size: 14px; font-weight: 900; }
.chip--on { background: var(--select-bg); border-color: var(--select); color: #1D5C99; }
.mini-input { flex-basis: 100%; padding: 12px 14px; border-radius: 14px; background: var(--cream); border: 2px solid var(--border); font-weight: 800; color: var(--muted); }
.mini-q { flex-basis: 100%; font-weight: 900; font-size: 17px; }
.opt { padding: 10px 14px; border-radius: 14px; border: 2px solid var(--border); font-weight: 800; }
.opt--right { background: var(--leaf-tint); border-color: var(--leaf); color: var(--leaf-shadow); }
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-stage { position: sticky; top: 64px; z-index: 2; height: 0; }
  .stage-card { position: absolute; right: 0; top: 0; width: 108px; border-radius: 24px; border-width: 2px; }
  .stage-label, .stage-dots { display: none; }
  .how-steps { padding-top: 0; padding-bottom: 10vh; }
  .step { padding-left: 0; padding-top: 66px; padding-right: 112px; }
  .step-num { top: 0; }
}
@media (max-width: 520px) { .step { padding-right: 0; } .how-stage { display: none; } .step { opacity: 1; } }

/* ---------- live activity ---------- */
.live { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.live::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, rgba(217,56,31,.28), transparent 70%); pointer-events: none; }
.live > * { position: relative; }
.live-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: fit-content; margin: 0 auto 44px; padding: 5px; border-radius: 18px; background: rgba(255,255,255,.08); }
.seg { border: 0; background: transparent; color: rgba(255,255,255,.7); font: 900 15px var(--font); padding: 10px 18px; border-radius: 13px; cursor: pointer; transition: background .25s, color .25s; }
.seg:hover { color: #fff; }
.seg.is-on { background: #fff; color: var(--ink); }
.live-stage { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 420px); gap: clamp(30px, 6vw, 90px); align-items: center; justify-content: center; }
.phone--dark::before { background: #000; }
.wall {
  position: absolute; inset: 10px; border-radius: 43px; overflow: hidden;
  background:
    radial-gradient(120% 60% at 110% 30%, #FFB020 0%, transparent 55%),
    radial-gradient(90% 55% at -10% 25%, #FF3B30 0%, transparent 60%),
    radial-gradient(80% 50% at 60% 75%, #C644FC 0%, transparent 60%),
    radial-gradient(90% 45% at 30% 105%, #32D3E6 0%, transparent 60%), #E8341F;
  transition: filter .5s;
}
.phone--dark[data-view="lock"] .wall { background: radial-gradient(80% 50% at 50% 15%, #3B6B47 0%, transparent 70%), linear-gradient(#17221B, #070908); }
.lock-clock { position: absolute; top: 64px; width: 100%; text-align: center; opacity: 0; transition: opacity .4s; }
.lock-clock small { display: block; font: 600 15px -apple-system, system-ui, sans-serif; opacity: .85; }
.lock-clock big { display: block; font: 700 76px/1 -apple-system, system-ui, sans-serif; letter-spacing: -2px; }
.phone--dark[data-view="lock"] .lock-clock { opacity: 1; }
.home-icons { position: absolute; top: 110px; left: 22px; right: 22px; display: grid; grid-template-columns: repeat(4, 54px); justify-content: space-between; gap: 26px 0; transition: opacity .4s, transform .4s; }
.home-icons i, .dock i { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.22); display: block; }
.home-icons .pommo-app { background: none; }
.home-icons .pommo-app img { width: 54px; height: 54px; border-radius: 14px; }
.dock { position: absolute; bottom: 12px; left: 12px; right: 12px; height: 78px; border-radius: 30px; background: rgba(255,255,255,.18); display: flex; justify-content: space-around; align-items: center; transition: opacity .4s; }
.phone--dark[data-view="lock"] .home-icons, .phone--dark[data-view="lock"] .dock { opacity: 0; }
.phone--dark[data-view="widgets"] .home-icons { opacity: 0; transform: translateY(20px); }

.isl-expanded { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none; }
.phone--dark[data-view="expanded"] .island { top: 16px; width: 288px; height: 150px; border-radius: 44px; }
.phone--dark[data-view="expanded"] .isl-compact { opacity: 0; }
.phone--dark[data-view="expanded"] .isl-expanded { opacity: 1; transition-delay: .18s; pointer-events: auto; }
.phone--dark[data-view="lock"] .island, .phone--dark[data-view="widgets"] .island { width: 126px; }
.phone--dark[data-view="lock"] .isl-compact, .phone--dark[data-view="widgets"] .isl-compact { opacity: 0; }
.phone--dark[data-view="island"] .island { width: 150px; }
.isl-big-st { position: absolute; left: 18px; top: 20px; width: 56px; height: 66px; object-fit: contain; }
.isl-text { position: absolute; left: 84px; top: 22px; display: flex; flex-direction: column; }
.isl-text b { font-size: 17px; line-height: 1.15; }
.cap { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #8C8C94; }
.cap--dark { color: var(--faint); }
.sub { font-size: 12px; font-weight: 800; color: #8C8C94; }
.isl-right { position: absolute; right: 20px; top: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.isl-num { font-size: 30px; font-weight: 900; color: #FF5A3C; font-variant-numeric: tabular-nums; line-height: 1; }
.isl-btn { border: 0; border-radius: 99px; padding: 6px 12px; font: 900 12px var(--font); background: rgba(255,90,60,.2); color: #FF5A3C; cursor: pointer; }
.isl-bar, .la-bar { position: absolute; left: 20px; right: 20px; bottom: 20px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.isl-bar i, .la-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: #FF5A3C; transition: width 1s linear; }

.lock-activity {
  position: absolute; left: 10px; right: 10px; bottom: 120px; height: 100px; border-radius: 24px;
  background: rgba(20,20,22,.74); backdrop-filter: blur(22px);
  opacity: 0; transform: translateY(24px); transition: opacity .4s var(--ease), transform .55s var(--spring);
}
.phone--dark[data-view="lock"] .lock-activity { opacity: 1; transform: none; }
.la-st { position: absolute; left: 14px; top: 14px; width: 50px; height: 60px; object-fit: contain; }
.la-text { position: absolute; left: 72px; top: 18px; right: 90px; }
.la-text b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-bar { position: absolute; left: 0; right: -78px; bottom: auto; top: 46px; }
.la-right { position: absolute; right: 16px; top: 16px; text-align: right; }
.la-num { display: block; font-size: 28px; font-weight: 900; color: #FF5A3C; font-variant-numeric: tabular-nums; line-height: 1; }

.widgets { position: absolute; left: 18px; right: 18px; top: 96px; display: grid; grid-template-columns: 1fr; gap: 16px; opacity: 0; transform: scale(.94); transition: opacity .4s, transform .5s var(--spring); }
.phone--dark[data-view="widgets"] .widgets { opacity: 1; transform: none; }
.widget { border-radius: 22px; background: var(--cream); color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.widget--small { width: 132px; height: 132px; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.widget--small img { width: 54px; height: 60px; object-fit: contain; margin: 2px 0; }
.widget--small b { font-size: 18px; line-height: 1; }
.w-sub { font-size: 11px; font-weight: 800; color: var(--muted); }
.widget--medium { height: 132px; display: flex; padding: 12px; gap: 10px; }
.wm-left { width: 82px; display: grid; place-items: center; background: var(--tomato-tint); border-radius: 16px; }
.wm-left img { width: 64px; height: 78px; object-fit: contain; }
.wm-right { display: flex; flex-direction: column; justify-content: center; }
.wm-num { font-size: 30px; color: var(--tomato); line-height: 1.05; font-variant-numeric: tabular-nums; }
.wm-week { display: flex; gap: 5px; margin-top: 6px; }
.wm-week i { width: 13px; height: 13px; border-radius: 50%; background: var(--surface-muted); }
.wm-week i.on { background: var(--gold); }
.wm-week i.today { box-shadow: inset 0 0 0 2px var(--gold); background: none; }

.live-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
.live-notes li { padding: 18px 20px; border-radius: 20px; background: rgba(255,255,255,.05); border: 2px solid rgba(255,255,255,.08); color: rgba(255,255,255,.65); transition: background .3s, border-color .3s, color .3s, transform .3s var(--spring); }
.live-notes li b { color: #fff; }
.live-notes li.is-on { background: rgba(255,90,60,.12); border-color: rgba(255,90,60,.55); color: #fff; transform: translateX(6px); }
@media (max-width: 860px) { .live-stage { grid-template-columns: 1fr; justify-items: center; } .live-notes { max-width: 520px; } }

/* ---------- AI ---------- */
.ai-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.ai-demo { padding: clamp(18px, 3vw, 30px); border-radius: 32px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 10px 0 var(--border); }
.ai-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ai-head img { width: 74px; height: 80px; object-fit: contain; animation: bob 4s ease-in-out infinite; }
.bubble { position: relative; flex: 1; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--cream); border: 2px solid var(--border); font-weight: 900; font-size: 17px; }
.ai-label { display: block; font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ai-input-row { display: flex; gap: 10px; }
.ai-input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--border); background: var(--cream); font: 800 16px var(--font); color: var(--ink); }
.ai-input:focus { outline: none; border-color: var(--select); background: #fff; }
.ai-body { margin-top: 22px; min-height: 320px; }
.ai-empty { display: flex; align-items: center; justify-content: center; min-height: 300px; border-radius: 20px; border: 2px dashed var(--border-strong); color: var(--faint); text-align: center; padding: 20px; }
.ai-loading { display: grid; place-items: center; gap: 14px; min-height: 300px; text-align: center; color: var(--muted); }
.ai-loading img { width: 90px; animation: wobble 1s ease-in-out infinite; }
.ai-loading .bar { width: 220px; height: 12px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.ai-loading .bar i { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: 99px; animation: load 1.8s var(--ease) forwards; }
.q-progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 900; color: var(--muted); font-size: 14px; }
.q-progress .track { flex: 1; height: 14px; border-radius: 99px; background: var(--surface-muted); overflow: hidden; }
.q-progress .track i { display: block; height: 100%; background: var(--leaf); border-radius: 99px; transition: width .5s var(--ease); }
.q-prompt { font-size: 22px; font-weight: 900; line-height: 1.25; margin-bottom: 14px; animation: fade .4s both; }
.q-opts { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 2px solid var(--border); background: #fff; box-shadow: 0 4px 0 var(--border);
  font: 800 16px var(--font); color: var(--ink); cursor: pointer; animation: rise .5s var(--spring) both;
  transition: transform .12s, box-shadow .12s, background .2s, border-color .2s;
}
.q-opt:nth-child(2) { animation-delay: .06s; } .q-opt:nth-child(3) { animation-delay: .12s; } .q-opt:nth-child(4) { animation-delay: .18s; }
.q-opt:hover:not([disabled]) { border-color: var(--select); }
.q-opt:active:not([disabled]) { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.q-opt .k { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-muted); color: var(--muted); font-weight: 900; font-size: 14px; flex: none; }
.q-opt.is-right { background: var(--leaf-tint); border-color: var(--leaf); box-shadow: 0 4px 0 var(--leaf); }
.q-opt.is-right .k { background: var(--leaf); color: #fff; }
.q-opt.is-wrong { background: var(--tomato-tint); border-color: var(--tomato); box-shadow: 0 4px 0 var(--tomato); animation: shake .4s; }
.q-opt.is-wrong .k { background: var(--tomato); color: #fff; }
.q-opt[disabled] { cursor: default; }
.q-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 16px; font-weight: 800; animation: rise .4s var(--spring) both; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.q-feedback.good { background: var(--leaf-tint); color: var(--leaf-shadow); }
.q-feedback.bad { background: var(--tomato-tint); color: var(--tomato-dark); }
.q-feedback button { flex: none; }
.ai-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ai-features li { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 22px; background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow-hard); }
.ai-features img { width: 72px; height: 78px; object-fit: contain; flex: none; }
.ai-features h3 { font-size: 20px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ai-features p { color: var(--muted); font-size: 15.5px; }
.plus-badge { display: inline-block; padding: 3px 8px; border-radius: 8px; background: linear-gradient(135deg, #FFD54A, var(--plus)); color: #5A3E00; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.ai-privacy { max-width: 760px; margin: 36px auto 0; text-align: center; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .ai-input-row { flex-direction: column; } }

/* ---------- ripeness ---------- */
.ripe { padding-top: 0; }
.ripe-card { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(24px, 5vw, 60px); border-radius: 44px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 12px 0 var(--border); }
.ripe-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.ripe-halo { position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; background: #FFE7DF; transition: background .4s; }
.ripe-visual img { position: relative; width: 70%; max-height: 80%; object-fit: contain; transition: transform .45s var(--spring); }
.ripe-visual img.swap { transform: scale(.7) rotate(-6deg); }
.ripe-copy h2 { font-size: clamp(38px, 5vw, 64px); color: var(--tomato-dark); transition: color .3s; }
.ripe-sub { margin-top: 10px; font-size: 19px; color: var(--muted); min-height: 3em; }
.ripe-label { display: flex; justify-content: space-between; margin: 26px 0 10px; font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ripe-label b { color: var(--ink); font-size: 18px; letter-spacing: 0; }
.ripe-range { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; border-radius: 99px; background: linear-gradient(90deg, #8B6B47, #6FB24E 40%, #F08A24 70%, var(--tomato)); cursor: pointer; }
.ripe-range::-webkit-slider-thumb { -webkit-appearance: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ripe-range::-moz-range-thumb { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ripe-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.stat { border-radius: 18px; border: 2px solid; overflow: hidden; text-align: center; background: #fff; }
.stat span { display: block; padding: 5px; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.stat b { display: block; padding: 10px 4px; font-size: 24px; font-weight: 900; }
.stat--green { border-color: var(--leaf-dark); } .stat--green span { background: var(--leaf-dark); }
.stat--gold { border-color: var(--gold-deep); } .stat--gold span { background: var(--gold-deep); color: var(--ink); }
.stat--red { border-color: var(--tomato); } .stat--red span { background: var(--tomato); }
@media (max-width: 820px) { .ripe-card { grid-template-columns: 1fr; text-align: center; } .ripe-visual { max-width: 320px; margin: 0 auto; } }

/* ---------- screens: 3D cover flow (positions set by main.js) ---------- */
.screens { padding-inline: 0; overflow: hidden; }
.screens .section-head { padding-inline: var(--gutter); }
.flow {
  --w: clamp(210px, 21vw, 270px);
  position: relative; height: calc(var(--w) * 2.17 + 96px);
  perspective: 1500px; perspective-origin: 50% 40%;
  touch-action: pan-y; user-select: none; cursor: grab; outline: none;
}
.flow:focus-visible { outline: 3px solid var(--select); outline-offset: -3px; }
.flow.is-dragging { cursor: grabbing; }
.flow-track { position: absolute; inset: 0; transform-style: preserve-3d; }
.shot {
  position: absolute; top: 10px; left: 50%; width: var(--w); margin: 0 0 0 calc(var(--w) / -2);
  transform-style: preserve-3d; transition: transform .65s var(--spring), opacity .5s var(--ease), filter .5s;
  will-change: transform;
}
.flow.is-dragging .shot { transition: none; }
.shot-phone { border-radius: 38px; padding: 8px; background: #1A1411; box-shadow: 0 0 0 2px #3A2E26, 0 30px 50px rgba(43,33,24,.25); }
.shot-phone img { border-radius: 31px; width: 100%; height: auto; aspect-ratio: 780 / 1688; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.shot figcaption { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .45s var(--spring); }
.shot figcaption b { display: block; color: var(--ink); font-size: 20px; }
.shot.is-active figcaption { opacity: 1; transform: none; }
.shot:not(.is-active) { cursor: pointer; }
.flow-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.round-btn { width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--border); background: #fff; box-shadow: 0 4px 0 var(--border); font: 900 26px/1 var(--font); color: var(--ink); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.round-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; }
.carousel-dots i { width: 10px; height: 10px; border-radius: 99px; background: var(--border); transition: width .3s var(--spring), background .3s; cursor: pointer; }
.carousel-dots i.is-on { width: 28px; background: var(--tomato); }

/* ---------- habit ---------- */
.habit { padding-top: 0; }
.habit-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.habit-card { padding: 22px; border-radius: 26px; background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow-hard); transition: transform .3s var(--spring); }
.habit-card:hover { transform: translateY(-6px) rotate(-.6deg); }
.habit-card img { width: 86px; height: 92px; object-fit: contain; margin-bottom: 10px; }
.habit-card h3 { font-size: 22px; margin-bottom: 6px; }
.habit-card p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 980px) { .habit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .habit-grid { grid-template-columns: 1fr; } }

/* ---------- plus ---------- */
.plans { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { position: relative; padding: 30px; border-radius: 30px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 8px 0 var(--border); }
.plan--plus { border-color: var(--plus); box-shadow: 0 8px 0 #C99600, 0 0 0 6px rgba(255,213,74,.25), 0 0 40px rgba(255,190,40,.35); animation: glow 3s ease-in-out infinite; }
.plus-badge--corner { position: absolute; top: 18px; right: 18px; }
.plan h3 { font-size: 28px; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { position: relative; padding-left: 32px; }
.plan li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.plan-note { margin-top: 18px; font-size: 14px; color: var(--faint); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { position: relative; padding-top: 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: 20px; background: var(--surface); border: 2px solid var(--border); box-shadow: 0 5px 0 var(--border); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 900; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 9px; background: var(--tomato-tint); color: var(--tomato-dark); display: grid; place-items: center; font-weight: 900; transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }
.faq details a { color: var(--tomato-dark); font-weight: 800; }
.ripe-hint { margin-top: 10px; font-size: 14px; color: var(--faint); }
.plus { position: relative; }

/* ---------- CTA + footer ---------- */
.cta { background: var(--tomato); color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta img { width: 120px; height: 120px; }
.cta h2 { font-size: clamp(38px, 6vw, 72px); }
.cta p { font-size: 20px; color: var(--on-tomato-muted); margin-bottom: 14px; }
.footer { padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 15px; border-top: 2px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; color: var(--ink); }
.footer-brand img { border-radius: 10px; }
.footer nav { display: flex; gap: 20px; }
.footer a { font-weight: 800; }
.footer--plain { justify-content: center; }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 50px var(--gutter) 80px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); margin-bottom: 8px; }
.doc-date { color: var(--faint); font-size: 15px; }
.doc-intro { margin: 24px 0 10px; padding: 20px; border-radius: 22px; background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow-hard); font-weight: 800; }
.doc section { margin-top: 34px; }
.doc h2 { font-size: 24px; margin-bottom: 10px; }
.doc h3 { font-size: 18px; margin: 18px 0 4px; }
.doc p, .doc li { color: var(--muted); font-weight: 600; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc a { color: var(--tomato-dark); font-weight: 800; }
.doc-page .nav { color: var(--ink); }

/* ---------- section edges: waves and seeds ---------- */
.how, .ai, .plus, .footer { position: relative; }
.edge { position: absolute; left: 0; right: 0; height: 62px; pointer-events: none; z-index: 1; }
.edge svg { display: block; width: 100%; height: 100%; }
.edge--bottom { bottom: -2px; }
.edge--top { top: -2px; }
.edge--night svg { fill: var(--night); }
.edge--tomato svg { fill: var(--tomato); }
.seeds { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' fill='%23D9381F'%3E%3Cg transform='translate(34 46) rotate(25)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(150 22) rotate(-30)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(238 88) rotate(60)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(92 138) rotate(-10)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(196 176) rotate(35)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(40 232) rotate(75)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(140 252) rotate(-55)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(252 228) rotate(10)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3Cg transform='translate(118 70) rotate(45)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.045'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.100'/%3E%3C/g%3E%3C/svg%3E"); background-size: 280px 280px; }
.seeds--dark { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' fill='%23FFE7DF'%3E%3Cg transform='translate(34 46) rotate(25)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(150 22) rotate(-30)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(238 88) rotate(60)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(92 138) rotate(-10)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(196 176) rotate(35)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(40 232) rotate(75)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(140 252) rotate(-55)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(252 228) rotate(10)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3Cg transform='translate(118 70) rotate(45)'%3E%3Cellipse rx='10' ry='6.5' fill-opacity='0.032'/%3E%3Cellipse rx='5.6' ry='3.4' fill-opacity='0.070'/%3E%3C/g%3E%3C/svg%3E"); }
.footer { padding-top: 90px; border-top: 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .8s var(--spring); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(60%); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(60px) rotate(4deg); } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wobble { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes load { to { width: 100%; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes spinIn { from { opacity: 0; transform: rotate(-200deg) scale(.8); } }
@keyframes backInRight { from { opacity: 0; transform: rotate(-4deg) translateX(-80px); } }
@keyframes backIn { from { opacity: 0; transform: rotate(4deg) translateX(80px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) scale(.85); } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes toastSwap { 0% { transform: scale(.9) translateY(8px); opacity: .2; } 100% { transform: none; opacity: 1; } }
@keyframes glow { 50% { box-shadow: 0 8px 0 #C99600, 0 0 0 8px rgba(255,213,74,.35), 0 0 60px rgba(255,190,40,.5); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
