/* PackTutor™ website. Tokens follow the app's docs/DESIGN.md (light and dark). */

:root {
  color-scheme: light dark;
  --bg: #F5F5F7;
  --bg-deep: #ECECF1;
  --surface: #FFFFFF;
  --surface-raised: #ECECF1;
  --hairline: #E2E2E8;
  --ring: rgba(0, 0, 0, .06);
  --text: #111116;
  --text-2: #5C5C68;
  --text-3: #8E8E99;
  --accent: #D62F45;
  --accent-2: #E8364F;
  --accent-ink: #FFFFFF;
  --premium: #A9711C;
  --up: #1E9E5A;
  --down: #D93B3B;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(0, 0, 0, .08);
  --glow: rgba(214, 47, 69, .14);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(17,17,22,.16);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 40px 80px -24px rgba(17,17,22,.28);

  --w: #E7D9A8; --u: #2F6FDB; --b: #5E4B7D; --r: #D9482A; --g: #23935C; --c: #8A9099;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0B0F; --bg-deep: #07070A; --surface: #15151B; --surface-raised: #1E1E26; --hairline: #2A2A34;
    --ring: rgba(255,255,255,.06); --text: #F4F4F6; --text-2: #A1A1AD; --text-3: #6E6E7A;
    --accent: #E8364F; --accent-2: #FF5068; --premium: #F5B94A; --up: #3DD68C; --down: #FF6B6B;
    --glass: rgba(24, 24, 31, .72); --glass-border: rgba(255,255,255,.08); --glow: rgba(232, 54, 79, .22);
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -16px rgba(0,0,0,.6);
    --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 50px 100px -30px rgba(0,0,0,.8);
    --w: #F3E9C9; --u: #4C8DF6; --b: #9B8AB4; --r: #F0603E; --g: #3DB27A; --c: #B8BCC4;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0B0F; --bg-deep: #07070A; --surface: #15151B; --surface-raised: #1E1E26; --hairline: #2A2A34;
  --ring: rgba(255,255,255,.06); --text: #F4F4F6; --text-2: #A1A1AD; --text-3: #6E6E7A;
  --accent: #E8364F; --accent-2: #FF5068; --premium: #F5B94A; --up: #3DD68C; --down: #FF6B6B;
  --glass: rgba(24, 24, 31, .72); --glass-border: rgba(255,255,255,.08); --glow: rgba(232, 54, 79, .22);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 40px -16px rgba(0,0,0,.6);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.05) inset, 0 50px 100px -30px rgba(0,0,0,.8);
  --w: #F3E9C9; --u: #4C8DF6; --b: #9B8AB4; --r: #F0603E; --g: #3DB27A; --c: #B8BCC4;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); text-transform: uppercase;
}
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5.4vw, 56px); margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }
.muted { color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font: 600 16px/1 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.btn-store { background: var(--text); color: var(--bg); padding: 0 22px 0 18px; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .7; letter-spacing: .01em; }
.btn-store span { display: block; text-align: left; line-height: 1.15; }
.btn-store svg { width: 22px; height: 22px; }

/* Nav */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter);
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto; width: 100%; max-width: var(--max); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; border-radius: 999px; background: transparent; border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), max-width .4s var(--ease);
}
.nav.scrolled .nav-inner {
  max-width: 980px; background: var(--glass); border-color: var(--glass-border); box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }
.brand sup { font-size: 10px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--text-2); text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav .btn { min-height: 40px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .nav .btn { padding: 0 14px; font-size: 14px; } }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--glass-border); background: var(--glass);
  color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none; } :root:not([data-theme="light"]) .theme-toggle .moon { display: block; } }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .theme-toggle { margin-left: auto; } }

/* Hero */
.hero { position: relative; padding: clamp(130px, 18vw, 180px) 0 clamp(60px, 9vw, 110px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 70% 35%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 15% 20%, color-mix(in srgb, var(--u) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 8.4vw, 96px); letter-spacing: -.045em; line-height: .98; }
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent-2) 10%, #FF8A5B 60%, var(--premium));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin-top: 26px; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--up); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-2); margin-bottom: 26px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.pill b { background: var(--accent); color: #fff; font-weight: 600; font-size: 11px; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; }

/* Phone mock */
.stage { position: relative; display: grid; place-items: center; min-height: 640px; perspective: 1600px; }
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #3A3A42, #121216 40%, #2A2A30); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
.stage:hover .phone { transform: rotateY(-6deg) rotateX(3deg); }
.phone::before { content: ""; position: absolute; left: 50%; top: 22px; width: 92px; height: 28px; margin-left: -46px; border-radius: 999px; background: #000; z-index: 5; }
.screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #0B0B0F; color: #F4F4F6;
  font-size: 12px; isolation: isolate;
}
.screen .glow { position: absolute; inset: 0 0 auto; height: 360px; z-index: -1;
  background: radial-gradient(60% 50% at 28% 30%, rgba(76,141,246,.45), transparent 70%), radial-gradient(60% 50% at 75% 30%, rgba(240,96,62,.45), transparent 70%); }
.status { display: flex; justify-content: space-between; padding: 18px 28px 0; font-weight: 600; font-size: 13px; }
.status i { display: inline-flex; gap: 4px; font-style: normal; align-items: center; }
.status i span { width: 16px; height: 9px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
.status i span::after { content: ""; position: absolute; inset: 1px 3px 1px 1px; background: currentColor; border-radius: 1px; }
.mock-card {
  width: 156px; aspect-ratio: 63 / 88; margin: 26px auto 0; border-radius: 9px; padding: 6px; background: #111;
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.mock-card .frame { height: 100%; border-radius: 5px; padding: 5px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(135deg, #3E5E9C, #8B3A3A); }
.mock-card .title { height: 13px; border-radius: 3px; background: rgba(240,236,228,.88); display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.mock-card .title::before { content: ""; width: 48%; height: 3px; background: #2a2a2a; border-radius: 2px; }
.mock-card .title::after { content: ""; width: 14px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--u) 50%, var(--r) 50%); }
.mock-card .art { flex: 1.15; border-radius: 3px; background:
  radial-gradient(30% 30% at 70% 30%, rgba(255,214,140,.9), transparent 70%),
  radial-gradient(60% 50% at 30% 80%, #B0472E, transparent 70%),
  linear-gradient(160deg, #1D3A70, #6C2E4F 60%, #D2643C); }
.mock-card .type { height: 9px; border-radius: 2px; background: rgba(240,236,228,.8); }
.mock-card .text { flex: .8; border-radius: 3px; background: rgba(240,236,228,.9); padding: 6px; display: grid; gap: 4px; align-content: start; }
.mock-card .text i { height: 3px; background: #555; border-radius: 2px; }
.mock-card .text i:nth-child(2) { width: 82%; } .mock-card .text i:nth-child(3) { width: 64%; }
.mock-body { padding: 18px 20px 0; }
.mock-name { font-size: 19px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; justify-content: space-between; }
.mock-meta { display: flex; gap: 6px; align-items: center; margin-top: 6px; color: #A1A1AD; font-size: 11px; }
.idpill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.08); color: #F4F4F6; font-weight: 500; }
.idpill::before { content: ""; width: 10px; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #4C8DF6, #F0603E); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 10px; height: 10px; border-radius: 99px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.2) inset; }
.mock-price { margin-top: 14px; border-radius: 18px; background: #15151B; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; padding: 12px 14px; position: relative; overflow: hidden; }
.mock-price::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #4C8DF6, #F0603E); }
.mock-price .row { display: flex; justify-content: space-between; align-items: baseline; }
.mock-price .big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-price .chg { color: #3DD68C; font-weight: 600; font-size: 11px; font-variant-numeric: tabular-nums; }
.mock-price svg { margin-top: 6px; width: 100%; height: 46px; }
.mock-price .src { font-size: 10px; color: #6E6E7A; margin-top: 4px; }
.mock-chips { display: flex; gap: 6px; margin-top: 12px; }
.mock-chips span { font-size: 10px; padding: 5px 9px; border-radius: 999px; background: #1E1E26; color: #A1A1AD; }
.mock-chips span.on { background: rgba(232,54,79,.16); color: #FF7A8C; }
.mock-tabbar {
  position: absolute; left: 14px; right: 14px; bottom: 16px; height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: space-around;
  background: rgba(32,32,40,.78); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mock-tabbar i { width: 20px; height: 20px; border-radius: 6px; background: rgba(255,255,255,.28); display: block; }
.mock-tabbar i.scan { width: 54px; height: 34px; border-radius: 999px; background: #E8364F; box-shadow: 0 6px 18px -4px rgba(232,54,79,.7); position: relative; }
.mock-tabbar i.scan::after { content: ""; position: absolute; inset: 9px 19px; border: 2px solid #fff; border-radius: 4px; }
.mock-tabbar i.sel { background: rgba(255,255,255,.75); }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow);
  backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  font-size: 13px; animation: bob 6s ease-in-out infinite;
}
.float b { display: block; font-size: 14px; }
.float small { color: var(--text-2); }
.float .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.float.f1 { top: 12%; left: -2%; }
.float.f2 { top: 52%; right: -4%; animation-delay: -2s; }
.float.f3 { bottom: 8%; left: 4%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Marquee strip */
.strip { border-block: 1px solid var(--hairline); padding: 22px 0; overflow: hidden; }
.strip-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; }
.strip-track span { display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); font-weight: 600; font-size: 15px; white-space: nowrap; }
.strip-track span::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 12vw, 150px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy .num { font-size: 13px; font-weight: 700; color: var(--text-3); letter-spacing: .08em; }
.feature-copy h3 { font-size: clamp(32px, 4.4vw, 48px); margin: 12px 0 18px; }
.feature-copy > p { color: var(--text-2); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23E8364F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.panel {
  position: relative; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring);
  padding: clamp(20px, 3vw, 36px); overflow: hidden; isolation: isolate; min-height: 420px;
}
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 0%, var(--glow), transparent 70%); }

/* Scan panel */
.viewfinder { position: relative; border-radius: 22px; aspect-ratio: 4 / 3.4; overflow: hidden; background:
  radial-gradient(80% 60% at 30% 20%, #3a3346, transparent 70%), linear-gradient(160deg, #26222b, #121015); display: grid; place-items: center; }
.viewfinder .mock-card { margin: 0; width: 34%; transform: rotate(4deg); }
.viewfinder .mock-card .frame { background: linear-gradient(135deg, #2B7A55, #1A3F2E); }
.viewfinder .mock-card .art { background: radial-gradient(40% 40% at 60% 30%, rgba(220,255,200,.7), transparent 70%), linear-gradient(170deg, #1F5C3B, #3D8C55 50%, #6A4C2B); }
.viewfinder .mock-card .title::after { background: var(--g); }
.corners { position: absolute; inset: 9% 25%; pointer-events: none; }
.corners i { position: absolute; width: 26px; height: 26px; border: 3px solid #fff; border-radius: 4px; opacity: .9; }
.corners i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corners i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corners i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corners i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.scanline { position: absolute; left: 25%; right: 25%; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, #FF5068, transparent); box-shadow: 0 0 18px 4px rgba(255,80,104,.45); animation: scan 3.2s var(--ease) infinite; }
@keyframes scan { 0% { top: 10%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 88%; opacity: 0; } }
.match {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; white-space: nowrap;
  padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(32,32,40,.8); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 13px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.match .ok { width: 24px; height: 24px; border-radius: 99px; background: #3DD68C; display: grid; place-items: center; color: #0B0B0F; }
.match .ok svg { width: 14px; height: 14px; }
.match small { color: #A1A1AD; }
.sheet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.tile { border-radius: var(--radius-sm); background: var(--surface-raised); padding: 12px 14px; }
.tile small { display: block; font-size: 12px; color: var(--text-2); }
.tile b { font-size: 18px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.tile.on { box-shadow: 0 0 0 2px var(--accent) inset; }

/* Price panel */
.value-head small { color: var(--text-2); font-size: 14px; }
.value-head .big { font-size: clamp(40px, 6vw, 56px); font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.up { color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-raised); margin: 18px 0 8px; font-size: 13px; }
.seg span { padding: 6px 13px; border-radius: 999px; color: var(--text-2); }
.seg span.on { background: var(--text); color: var(--bg); font-weight: 600; }
.chart { width: 100%; height: 160px; }
.chart .area { fill: url(#areaFill); }
.chart .line { fill: none; stroke: var(--up); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease); }
.in .chart .line { stroke-dashoffset: 0; }
.list { margin-top: 14px; display: grid; }
.list-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--hairline); }
.list-row .thumb { width: 34px; height: 46px; border-radius: 4px; box-shadow: 0 0 0 1px var(--ring); }
.list-row b { display: block; font-size: 15px; }
.list-row small { color: var(--text-2); font-size: 13px; }
.list-row .p { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.list-row .p small { display: block; color: var(--up); font-weight: 500; }

/* Collect panel: set checklist */
.set-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.set-head b { font-size: 18px; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-raised); margin: 12px 0 18px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #FF8A5B); transition: width 1.8s var(--ease); }
.in .progress i { width: 72%; }
.grid-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.grid-cards i { aspect-ratio: 63 / 88; border-radius: 6px; display: block; box-shadow: 0 0 0 1px var(--ring); transition: transform .5s var(--ease), opacity .5s; }
.grid-cards i.miss { opacity: .22; filter: grayscale(1); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface-raised); font-size: 13px; font-weight: 600; }
.badge i { width: 18px; height: 18px; border-radius: 6px; display: block; }

/* Build panel: deck shelf */
.ai-card {
  border-radius: var(--radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--premium) 18%, var(--surface)), var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--premium) 35%, transparent) inset;
}
.ai-card .spark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--premium); color: #fff; flex: none; }
.ai-card .spark svg { width: 22px; height: 22px; }
.ai-card b { display: block; }
.ai-card small { color: var(--text-2); font-size: 13px; }
.tag-pro { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; color: var(--premium); background: color-mix(in srgb, var(--premium) 16%, transparent); letter-spacing: .04em; }
.shelf { display: flex; justify-content: center; gap: clamp(12px, 3vw, 26px); padding: 40px 0 0; perspective: 900px; position: relative; }
.shelf::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 14px; border-radius: 6px; background: linear-gradient(180deg, var(--surface-raised), var(--hairline)); }
.box { position: relative; width: clamp(78px, 11vw, 112px); aspect-ratio: 3 / 4; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(4deg); transition: transform .6s var(--ease); }
.box:hover { transform: rotateY(-8deg) translateY(-10px); }
.box .front { position: absolute; inset: 0; border-radius: 6px; background: var(--fill); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 20px 30px -12px rgba(0,0,0,.45); overflow: hidden; }
.box .front::before { content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 2px; background: rgba(0,0,0,.18); }
.box .front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.35), transparent 40%); }
.box .side { position: absolute; top: 0; bottom: 0; right: -18px; width: 18px; background: var(--fill); filter: brightness(.65); transform: rotateY(90deg); transform-origin: left; border-radius: 0 4px 4px 0; }
.box .top { position: absolute; left: 0; right: 0; top: -18px; height: 18px; background: var(--fill); filter: brightness(1.2); transform: rotateX(-90deg); transform-origin: bottom; }
.box .label { position: absolute; left: 8%; right: 8%; bottom: 10%; border-radius: 6px; padding: 6px 7px; background: rgba(255,255,255,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #111; z-index: 2; }
.box .label b { display: block; font-size: 10px; line-height: 1.2; }
.box .label .dots i { width: 7px; height: 7px; }
.legal-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.legal-row span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * {
  position: relative; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring);
  padding: 28px; overflow: hidden; isolation: isolate; min-height: 260px; display: flex; flex-direction: column;
}
.bento h3 { font-size: 24px; margin-top: auto; padding-top: 22px; }
.bento p { color: var(--text-2); margin-top: 8px; font-size: 16px; }
.bento .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.bento .ico svg { width: 24px; height: 24px; }
.b-play { grid-column: span 3; }
.b-learn { grid-column: span 3; }
.b-trade, .b-discover, .b-alerts { grid-column: span 2; }
.life { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.life div { border-radius: 18px; padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 110px; }
.life div small { opacity: .8; font-size: 12px; font-weight: 600; }
.life div b { font-size: 46px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.glossary { display: grid; gap: 10px; margin-top: 4px; }
.glossary div { border-radius: 14px; background: var(--surface-raised); padding: 12px 14px; }
.glossary b { font-size: 15px; }
.glossary p { font-size: 13px; margin-top: 2px; }

/* Pro */
.pro { background: var(--bg-deep); }
.pro::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 50% 0%, color-mix(in srgb, var(--premium) 16%, transparent), transparent 70%); pointer-events: none; }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; position: relative; }
.plan { border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); padding: clamp(24px, 3.4vw, 40px); }
.plan h3 { font-size: 28px; display: flex; align-items: center; gap: 10px; }
.plan .price { margin-top: 14px; font-size: 44px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan > p { color: var(--text-2); margin-top: 8px; }
.plan .ticks { margin-top: 24px; }
.plan.pro-plan { box-shadow: var(--shadow-lg), 0 0 0 1.5px color-mix(in srgb, var(--premium) 55%, transparent); position: relative; overflow: hidden; }
.plan.pro-plan::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--premium), #FFD98A, var(--premium)); }
.plan.pro-plan .ticks li::before { background-color: color-mix(in srgb, var(--premium) 18%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23C48A2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.option { border-radius: 16px; padding: 14px; background: var(--surface-raised); position: relative; }
.option small { display: block; color: var(--text-2); font-size: 12px; font-weight: 600; }
.option b { font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.option span { display: block; font-size: 12px; color: var(--text-3); }
.option.best { box-shadow: 0 0 0 2px var(--premium) inset; }
.option.best::before { content: "Save 48%"; position: absolute; top: -9px; right: 10px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--premium); color: #fff; letter-spacing: .03em; text-transform: uppercase; }
.fine { font-size: 13px; color: var(--text-3); margin-top: 18px; }

/* Devices */
.devices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.device { border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); padding: 26px 18px 22px; text-align: center; transition: transform .4s var(--ease); }
.device:hover { transform: translateY(-4px); }
.device .art { height: 92px; display: grid; place-items: end center; margin-bottom: 18px; }
.device b { display: block; font-size: 17px; }
.device small { display: block; color: var(--text-2); font-size: 14px; margin-top: 4px; line-height: 1.4; }
.d-iphone { width: 44px; height: 88px; border-radius: 11px; border: 3px solid var(--text); position: relative; }
.d-ipad { width: 96px; height: 72px; border-radius: 10px; border: 3px solid var(--text); }
.d-mac { width: 110px; display: grid; justify-items: center; }
.d-mac i { width: 100px; height: 64px; border-radius: 8px 8px 2px 2px; border: 3px solid var(--text); display: block; }
.d-mac s { width: 126px; height: 7px; border-radius: 0 0 8px 8px; background: var(--text); display: block; }
.d-tv { display: grid; justify-items: center; gap: 4px; }
.d-tv i { width: 116px; height: 68px; border-radius: 6px; border: 3px solid var(--text); display: block; }
.d-tv s { width: 36px; height: 4px; border-radius: 4px; background: var(--text); display: block; }
.d-watch { width: 48px; height: 58px; border-radius: 15px; border: 3px solid var(--text); position: relative; margin-bottom: 15px; }
.d-watch::before, .d-watch::after { content: ""; position: absolute; left: 9px; right: 9px; height: 16px; background: var(--hairline); }
.d-watch::before { top: -18px; border-radius: 6px 6px 0 0; } .d-watch::after { bottom: -18px; border-radius: 0 0 6px 6px; }
.device .art > * { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.device .art .d-mac, .device .art .d-tv { background: none; }

/* Gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 250px; scroll-snap-align: center; }
.shot .frame { aspect-ratio: 9 / 19.5; border-radius: 38px; padding: 8px; background: linear-gradient(145deg, #3A3A42, #121216 40%, #2A2A30); box-shadow: var(--shadow-lg); }
.shot .frame > div { height: 100%; border-radius: 31px; overflow: hidden; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.9); position: relative; }
.shot .frame img, .shot .frame video { width: 100%; height: 100%; object-fit: cover; }
.shot .soon { padding: 24px; }
.shot .soon b { display: block; font-size: 22px; letter-spacing: -.02em; }
.shot .soon small { opacity: .7; font-size: 13px; }
.shot figcaption { margin-top: 14px; text-align: center; font-weight: 600; font-size: 15px; }
.shot figcaption small { display: block; font-weight: 400; color: var(--text-2); font-size: 13px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--hairline); }
.principle .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); margin-bottom: 18px; }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-size: 21px; }
.principle p { color: var(--text-2); margin-top: 8px; font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 600; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 99px; background: var(--surface-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%238E8E99' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 680px; }

/* CTA */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta-card {
  border-radius: 36px; padding: clamp(48px, 8vw, 96px) var(--gutter); position: relative; overflow: hidden; isolation: isolate;
  background: #0B0B0F; color: #F4F4F6;
}
.cta-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 110%, rgba(232,54,79,.55), transparent 70%), radial-gradient(30% 40% at 85% 0%, rgba(245,185,74,.18), transparent 70%); }
.cta-card img { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(232,54,79,.7); }
.cta-card h2 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; }
.cta-card p { color: #A1A1AD; margin: 18px auto 0; max-width: 540px; font-size: 19px; }
.cta-card .hero-cta { justify-content: center; }
.cta-card .btn-store { background: #F4F4F6; color: #0B0B0F; }
.cta-card .btn-ghost { background: rgba(255,255,255,.08); color: #F4F4F6; border-color: rgba(255,255,255,.14); }

/* Footer */
.footer { padding: 64px 0 48px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--text-2); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer nav div { display: grid; gap: 10px; align-content: start; }
.footer nav b { color: var(--text); font-size: 13px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* Subpages */
.page { padding: 150px 0 100px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -.04em; }
.page .lede { margin-top: 18px; font-size: 20px; color: var(--text-2); }
.page h2 { font-size: 26px; margin: 48px 0 12px; }
.page p + p { margin-top: 12px; }
.page a { color: var(--accent); }
.card-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 36px; }
.card-list a { display: block; text-decoration: none; color: var(--text); padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); transition: transform .3s var(--ease); }
.card-list a:hover { transform: translateY(-3px); }
.card-list b { display: block; font-size: 17px; }
.card-list small { color: var(--text-2); font-size: 14px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .chart .line { stroke-dashoffset: 0; }
  .progress i { width: 72%; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .feature, .plans { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .stage { min-height: 600px; }
  .devices { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .b-play, .b-learn { grid-column: span 6; }
  .b-trade, .b-discover, .b-alerts { grid-column: span 3; }
  .b-alerts { grid-column: span 6; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .devices { grid-template-columns: repeat(2, 1fr); }
  .bento > * { grid-column: span 6 !important; min-height: 0; }
  .stage { min-height: 560px; transform: scale(.9); margin: -20px 0; }
  .float.f1 { left: -4%; } .float.f2 { right: -6%; }
  .options { grid-template-columns: 1fr; }
  .option.best::before { top: 10px; }
  .grid-cards { grid-template-columns: repeat(5, 1fr); }
  .grid-cards i:nth-child(n+16) { display: none; }
  .sheet-row { grid-template-columns: 1fr 1fr; }
  .sheet-row .tile:last-child { display: none; }
  .card-list { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
