/* BestNotch — marketing site. Plain CSS, no build step. Brand tokens mirror App/Sources/UI/DesignSystem/Tokens.swift. */
:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-2: #0f0f12;
  --card: #16161a;
  --card-2: #1b1b20;
  --line: #26262c;
  --line-2: #33333b;
  --fg: #f4f4f6;
  --muted: #a3a3ad;
  --dim: #8a8a95;
  --accent: #ff8c3d;
  --accent-ink: #111;
  --accent-soft: rgba(255, 140, 61, .14);
  --accent-glow: rgba(255, 140, 61, .35);
  --ok: #4dd99e;
  --ocean: #4099ff;
  --violet: #a880ff;
  --rose: #ff6b8f;
  --island: #000;
  --radius: 22px;
  --radius-s: 14px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .44, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.55 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: clamp(88px, 12vw, 160px) 0 0; }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin: 0 0 16px; text-transform: none; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h1 { font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -.045em; }
h2 { font-size: clamp(36px, 5.6vw, 68px); }
h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); line-height: 1.45; max-width: 640px; margin: 20px 0 0; letter-spacing: -.015em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.grad { background: linear-gradient(100deg, #fff 30%, #ffc49a 60%, var(--accent) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.note { font-size: 13px; color: var(--dim); margin-top: 14px; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--fg); font-weight: 600; font-size: 16px; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .3s; white-space: nowrap;
}
.btn:hover { background: rgba(255,255,255,.08); border-color: #44444d; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 30px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.primary:hover { background: #ff9b55; box-shadow: 0 10px 40px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn.sm { --h: 36px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn .price { font-variant-numeric: tabular-nums; }
.btn svg { width: 18px; height: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .cta-row { justify-content: center; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; display: flex; gap: 10px 18px; flex-wrap: wrap; }
.center .fine { justify-content: center; }
.fine span { display: inline-flex; align-items: center; gap: 6px; }
.fine svg { width: 14px; height: 14px; color: var(--accent); }
.gate-msg { font-size: 13px; color: #ffc49a; margin-top: 10px; min-height: 1em; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); background: rgba(11,11,13,.72); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: rgba(255,255,255,.07); }
.nav .wrap { display: flex; align-items: center; height: 60px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; letter-spacing: -.02em; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0 0 0 auto; padding: 0; }
.nav ul a { display: block; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--fg); background: rgba(255,255,255,.05); }
.nav .btn { margin-left: 8px; }
@media (max-width: 880px) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 72px) 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(50% 50% at 50% 35%, rgba(255,140,61,.20), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero .lede { max-width: 620px; }
.hero .cta-row { margin-top: 32px; }

/* Display scene */
.scene { position: relative; margin: clamp(40px, 5vw, 56px) auto 0; max-width: 1100px; }
.scene::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,140,61,.25), transparent 70%); filter: blur(20px); z-index: -1; }
.display {
  --dw: 880; --k: calc(100cqw / var(--dw));
  container-type: inline-size; position: relative; aspect-ratio: 16 / 10; border-radius: clamp(10px, 2vw, 22px) clamp(10px, 2vw, 22px) 0 0;
  padding: clamp(6px, 1.1vw, 14px) clamp(6px, 1.1vw, 14px) 0; background: linear-gradient(#1d1d22, #121215); border: 1px solid #2c2c33; border-bottom: 0;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.06);
}
.screen {
  --dw: 880; --k: calc(100cqw / var(--dw));
  container-type: inline-size; position: relative; height: 100%; border-radius: clamp(4px, 1vw, 10px) clamp(4px, 1vw, 10px) 0 0; overflow: hidden;
  background:
    radial-gradient(70% 90% at 85% 110%, #ff8c3d 0%, rgba(255,140,61,0) 60%),
    radial-gradient(60% 80% at 10% 100%, #7a2d6b 0%, rgba(122,45,107,0) 70%),
    radial-gradient(80% 60% at 50% -10%, #2a1c3c 0%, rgba(42,28,60,0) 70%),
    linear-gradient(160deg, #1a1426 0%, #3a1f2a 45%, #8a3f22 100%);
}
.base { height: clamp(10px, 1.6vw, 18px); background: linear-gradient(#2a2a30, #151518); border-radius: 0 0 14px 14px; margin: 0 -3%; box-shadow: 0 20px 40px -10px #000; position: relative; }
.base::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 14%; height: 40%; background: #0e0e10; border-radius: 0 0 8px 8px; }
.menubar { position: absolute; inset: 0 0 auto; height: calc(32 * var(--k)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16 * var(--k)); font-size: calc(12.5 * var(--k)); color: rgba(255,255,255,.92); background: rgba(20,12,24,.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 1; }
.menubar .l, .menubar .r { display: flex; gap: calc(18 * var(--k)); align-items: center; white-space: nowrap; }
.menubar b { font-weight: 700; }
.menubar .dot { width: calc(13 * var(--k)); height: calc(13 * var(--k)); border-radius: 50%; background: rgba(255,255,255,.9); }
.win { position: absolute; border-radius: calc(12 * var(--k)); background: rgba(28,28,32,.82); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 calc(20 * var(--k)) calc(60 * var(--k)) rgba(0,0,0,.5); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); overflow: hidden; }
.win .bar { height: calc(30 * var(--k)); display: flex; align-items: center; gap: calc(7 * var(--k)); padding: 0 calc(12 * var(--k)); border-bottom: 1px solid rgba(255,255,255,.06); font-size: calc(11 * var(--k)); color: rgba(255,255,255,.6); }
.win .bar i { width: calc(11 * var(--k)); height: calc(11 * var(--k)); border-radius: 50%; background: #ff5f57; }
.win .bar i:nth-child(2) { background: #febc2e; } .win .bar i:nth-child(3) { background: #28c840; }
.win .bar span { margin-left: calc(10 * var(--k)); }
.win-finder { left: 6%; top: 34%; width: 40%; height: 46%; }
.win-doc { right: 6%; top: 42%; width: 38%; height: 44%; }
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(14 * var(--k)); padding: calc(18 * var(--k)); }
.fi { display: grid; justify-items: center; gap: calc(6 * var(--k)); font-size: calc(10.5 * var(--k)); color: rgba(255,255,255,.75); text-align: center; }
.fi .doc { width: calc(44 * var(--k)); height: calc(54 * var(--k)); }
.doc-lines { padding: calc(18 * var(--k)); display: grid; gap: calc(10 * var(--k)); }
.doc-lines i { display: block; height: calc(8 * var(--k)); border-radius: 4px; background: rgba(255,255,255,.1); }
.doc-lines i:nth-child(1) { width: 60%; height: calc(14 * var(--k)); background: rgba(255,255,255,.18); }
.doc-lines i:nth-child(3) { width: 85%; } .doc-lines i:nth-child(5) { width: 70%; }
.doc-lines .drop { height: calc(70 * var(--k)); border: 1px dashed rgba(255,255,255,.18); background: transparent; border-radius: calc(8 * var(--k)); }
.flyer { position: absolute; z-index: 6; width: calc(40 * var(--k)); height: calc(50 * var(--k)); opacity: 0; pointer-events: none; transition: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.scene-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px auto 0; max-width: 1100px; font-size: 13px; color: var(--dim); }
.scene-caption .steps { display: flex; gap: 6px; }
.scene-caption .steps i { width: 18px; height: 3px; border-radius: 3px; background: #2e2e35; transition: background .3s; }
.scene-caption .steps i.on { background: var(--accent); }
.pause { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.pause:hover { color: var(--fg); border-color: var(--line-2); }
@media (max-width: 640px) {
  .display, .screen { --dw: 500; }
  .display { aspect-ratio: 5 / 4; }
  .win-finder { top: 52%; height: 40%; }
  .scene-caption { flex-direction: column; align-items: flex-start; }
  .win-finder { left: 4%; width: 52%; top: 40%; }
  .win-doc { display: none; }
  .menubar .r span:not(.dot), .menubar .l span:nth-child(n+4) { display: none; }
}

/* ---------- Island (shared, scales with --k) ---------- */
.island-host { position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 5; }
.island {
  --w: 179; --h: 32; --r: 10;
  position: relative; width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
  background: var(--island); color: #fff; border-radius: 0 0 calc(var(--r) * var(--k)) calc(var(--r) * var(--k));
  font-family: var(--round); transition: width .52s var(--spring), height .52s var(--spring), border-radius .52s var(--ease), box-shadow .4s;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.island::before, .island::after { content: ""; position: absolute; top: 0; width: calc(8 * var(--k)); height: calc(8 * var(--k)); background: radial-gradient(circle at 0 100%, transparent calc(8 * var(--k) - .5px), var(--island) calc(8 * var(--k))); }
.island::before { left: calc(-8 * var(--k)); transform: scaleX(-1); }
.island::after { right: calc(-8 * var(--k)); }
.island[data-state="compact"] { --w: 279; --h: 32; --r: 10; }
.island[data-state="rest"] { --w: 179; --h: 32; --r: 10; }
.island[data-state="banner"] { --w: 420; --h: 92; --r: 24; box-shadow: 0 calc(16 * var(--k)) calc(40 * var(--k)) rgba(0,0,0,.45); }
.island[data-state="expanded"] { --w: min(660, var(--dw) - 40); --h: 236; --r: 26; box-shadow: 0 calc(24 * var(--k)) calc(60 * var(--k)) rgba(0,0,0,.55); }
.island .layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .18s ease-out, visibility 0s .18s; overflow: hidden; border-radius: inherit; }
.island[data-state="expanded"] .layer.ex, .island[data-state="banner"] .layer.bn, .island[data-state="compact"] .layer.cp { opacity: 1; visibility: visible; transition: opacity .25s .14s ease-out, visibility 0s; }

/* compact wings */
.cp { display: flex; align-items: center; justify-content: space-between; padding: 0 calc(16 * var(--k)); }
.mini-art { width: calc(20 * var(--k)); height: calc(20 * var(--k)); border-radius: calc(5 * var(--k)); background: linear-gradient(135deg, #ff8c3d, #b14fa0); }
.eq { display: flex; gap: calc(2 * var(--k)); align-items: flex-end; height: calc(14 * var(--k)); }
.eq i { width: calc(3 * var(--k)); background: var(--accent); border-radius: 2px; height: 40%; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }

/* expanded workspace */
.ex { padding: calc(30 * var(--k)) calc(24 * var(--k)) calc(20 * var(--k)); }
.ex-top { display: flex; align-items: center; justify-content: space-between; font-size: calc(12 * var(--k)); font-weight: 600; }
.ex-top .prof { display: flex; align-items: center; gap: calc(6 * var(--k)); }
.ex-top svg { width: calc(14 * var(--k)); height: calc(14 * var(--k)); }
.tabs-mini { display: flex; gap: calc(4 * var(--k)); }
.tabs-mini i { display: grid; place-items: center; width: calc(30 * var(--k)); height: calc(24 * var(--k)); border-radius: calc(7 * var(--k)); color: rgba(255,255,255,.7); transition: background .25s, color .25s; }
.tabs-mini i.on { background: rgba(255,140,61,.18); color: var(--accent); }
.tabs-mini svg { width: calc(14 * var(--k)); height: calc(14 * var(--k)); }
.ex-tools { display: flex; gap: calc(6 * var(--k)); align-items: center; color: var(--accent); }
.ex-tools i { width: calc(22 * var(--k)); height: calc(22 * var(--k)); border-radius: 50%; background: rgba(255,255,255,.08); }
.panes { position: relative; height: calc(150 * var(--k)); margin-top: calc(16 * var(--k)); }
.pane { position: absolute; inset: 0; opacity: 0; transform: translateY(calc(6 * var(--k))); transition: opacity .2s, transform .3s var(--ease); }
.pane.on { opacity: 1; transform: none; }
.np { display: flex; gap: calc(18 * var(--k)); align-items: center; height: 100%; }
.art { flex: none; width: calc(112 * var(--k)); height: calc(112 * var(--k)); border-radius: calc(10 * var(--k)); background: linear-gradient(135deg, #ff8c3d 0%, #d7637a 55%, #8e3fae 100%); display: grid; place-items: center; box-shadow: 0 calc(8 * var(--k)) calc(24 * var(--k)) rgba(255,140,61,.25); }
.art::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: radial-gradient(circle, #ff6a3d 0 22%, #fdeee8 24%); }
.np-meta { flex: 1; min-width: 0; font-size: calc(12 * var(--k)); }
.np-meta b { display: block; font-size: calc(16 * var(--k)); }
.np-meta span { color: rgba(255,255,255,.68); }
.bar-p { height: calc(4 * var(--k)); border-radius: 4px; background: rgba(255,255,255,.15); margin: calc(12 * var(--k)) 0 calc(4 * var(--k)); overflow: hidden; }
.bar-p i { display: block; height: 100%; width: 39%; background: #fff; border-radius: inherit; }
.times { display: flex; justify-content: space-between; font-size: calc(10 * var(--k)); color: rgba(255,255,255,.5); font-variant-numeric: tabular-nums; }
.ctrls { display: flex; gap: calc(22 * var(--k)); margin-top: calc(8 * var(--k)); }
.ctrls svg { width: calc(20 * var(--k)); height: calc(20 * var(--k)); }
.shelf-row { display: flex; gap: calc(12 * var(--k)); align-items: flex-start; }
.sh { width: calc(92 * var(--k)); padding: calc(10 * var(--k)) calc(6 * var(--k)); border-radius: calc(12 * var(--k)); background: rgba(255,255,255,.07); display: grid; justify-items: center; gap: calc(6 * var(--k)); font-size: calc(10.5 * var(--k)); font-weight: 600; text-align: center; transition: transform .45s var(--spring), opacity .3s; }
.sh .doc { width: calc(34 * var(--k)); height: calc(42 * var(--k)); }
.sh.new { animation: pop .5s var(--spring); outline: 1px solid rgba(255,140,61,.6); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.shelf-foot { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; font-size: calc(10.5 * var(--k)); color: rgba(255,255,255,.5); }
.bn { display: flex; align-items: center; gap: calc(12 * var(--k)); padding: calc(36 * var(--k)) calc(20 * var(--k)) calc(14 * var(--k)); }
.bn .ic { flex: none; width: calc(34 * var(--k)); height: calc(34 * var(--k)); border-radius: 50%; background: rgba(255,140,61,.18); display: grid; place-items: center; color: var(--accent); }
.bn .ic svg { width: calc(16 * var(--k)); height: calc(16 * var(--k)); }
.bn .tx { flex: 1; min-width: 0; font-size: calc(10.5 * var(--k)); color: rgba(255,255,255,.65); line-height: 1.3; }
.bn .tx b { display: block; color: #fff; font-size: calc(13 * var(--k)); }
.bn .pill { background: var(--accent); color: #111; font-weight: 700; font-size: calc(11 * var(--k)); padding: calc(5 * var(--k)) calc(10 * var(--k)); border-radius: 999px; white-space: nowrap; }

/* ---------- Generic cards ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); overflow: hidden; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 16px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: #d6d6dc; }
.chips li.hl { border-color: rgba(255,140,61,.4); color: #ffd3b3; background: var(--accent-soft); }

/* ---------- Playground (real-px island) ---------- */
.play { --k: 1px; --dw: 9999; }
.pg { display: grid; grid-template-columns: 1fr; gap: 28px; }
.pg-stage { position: relative; border-radius: 28px; padding: 0 20px 36px; background: radial-gradient(120% 80% at 50% 0%, #241a1a 0%, #121214 60%); border: 1px solid var(--line); overflow: hidden; min-height: 400px; }
.pg-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 26px; background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.04); }
.pg-island { position: relative; margin: 0 auto; width: min(720px, 100%); background: #000; border-radius: 0 0 28px 28px; padding: 40px 22px 22px; font-family: var(--round); color: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03); transition: background .3s, color .3s; }
.pg-island::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 150px; height: 26px; border-radius: 0 0 12px 12px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.pg-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.pg-prof { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; font-size: 14px; }
.pg-prof svg { width: 16px; height: 16px; }
.pg-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pg-tabs [role="tab"] { display: grid; place-items: center; width: 42px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: rgba(255,255,255,.62); cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.pg-tabs [role="tab"]:hover { background: rgba(255,255,255,.07); color: #fff; }
.pg-tabs [role="tab"][aria-selected="true"] { background: rgba(255,140,61,.18); color: var(--accent); }
.pg-tabs [role="tab"]:active { transform: scale(.94); }
.pg-tabs svg { width: 18px; height: 18px; }
.pg-label { font-size: 13px; color: rgba(255,255,255,.55); font-weight: 600; }
.pg-body { margin-top: 18px; min-height: 260px; }
.pg-panel { animation: fadeUp .35s var(--ease); }
.pg-panel[hidden] { display: none; }
.pg-panel .seg { justify-self: start; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
.pg-hint { text-align: center; font-size: 13px; color: var(--dim); margin-top: 18px; }
.pg-tray { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.tile { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #1c1c21; border: 1px solid var(--line-2); cursor: grab; font-size: 14px; font-weight: 600; touch-action: none; user-select: none; transition: transform .2s, opacity .3s, border-color .2s; }
.tile:hover { border-color: #4a4a52; }
.tile:active { cursor: grabbing; }
.tile.used { opacity: .35; pointer-events: none; }
.tile .doc { width: 26px; height: 32px; }
.drag-ghost { position: fixed; z-index: 200; pointer-events: none; opacity: .9; transform: translate(-50%, -50%) rotate(-4deg) scale(1.05); }

/* panel internals (shared look with the app) */
.row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.p-art { width: 132px; height: 132px; border-radius: 14px; background: linear-gradient(135deg, #ff8c3d 0%, #d7637a 55%, #8e3fae 100%); display: grid; place-items: center; flex: none; transition: transform .4s var(--spring), box-shadow .4s; box-shadow: 0 14px 40px -10px rgba(255,140,61,.5); }
.p-art::after { content: ""; width: 34%; height: 34%; border-radius: 50%; background: radial-gradient(circle, #ff6a3d 0 22%, #fdeee8 24%); }
.paused .p-art { transform: scale(.92); box-shadow: none; }
.p-art.spin::after { animation: spin 4s linear infinite; }
.paused .p-art.spin::after { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(1turn); } }
.p-meta { flex: 1; min-width: 220px; }
.p-meta .t { font-size: 20px; font-weight: 700; }
.p-meta .s { color: rgba(255,255,255,.68); font-size: 15px; }
.p-meta .src { display: inline-flex; gap: 6px; align-items: center; color: rgba(255,255,255,.5); font-size: 13px; margin-top: 4px; font-weight: 600; }
.prog { height: 5px; border-radius: 5px; background: rgba(255,255,255,.15); margin: 16px 0 6px; overflow: hidden; }
.prog i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .25s linear; }
.p-ctrls { display: flex; gap: 8px; margin-top: 10px; }
.ib { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; transition: background .2s, transform .15s; }
.ib:hover { background: rgba(255,255,255,.08); }
.ib:active { transform: scale(.92); }
.ib svg { width: 22px; height: 22px; }
.ib.big svg { width: 26px; height: 26px; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.09); color: #fff; font-weight: 650; font-size: 14px; cursor: pointer; transition: background .2s, transform .15s; font-family: var(--round); }
.pill-btn:hover { background: rgba(255,255,255,.15); }
.pill-btn:active { transform: scale(.95); }
.pill-btn.acc { background: var(--accent); color: #111; }
.pill-btn.acc:hover { filter: brightness(1.08); }
.pill-btn svg { width: 15px; height: 15px; }
.shelf-grid { display: flex; gap: 12px; flex-wrap: wrap; min-height: 132px; padding: 12px; border-radius: 16px; border: 1.5px dashed transparent; transition: border-color .2s, background .2s; }
.shelf-grid.over { border-color: var(--accent); background: rgba(255,140,61,.06); }
.shelf-grid .empty { color: rgba(255,255,255,.45); font-size: 14px; align-self: center; margin: auto; text-align: center; }
.sitem { width: 112px; padding: 12px 8px 10px; border-radius: 14px; background: rgba(255,255,255,.07); display: grid; justify-items: center; gap: 8px; font-size: 12.5px; font-weight: 650; text-align: center; position: relative; animation: pop .45s var(--spring); }
.sitem .doc { width: 40px; height: 50px; }
.sitem .tag { position: absolute; top: 6px; right: 6px; font-size: 10px; color: var(--accent); }
.shelf-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.55); gap: 10px; flex-wrap: wrap; }
.list { display: grid; gap: 6px; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 14px; }
.li .k { color: rgba(255,255,255,.5); font-size: 12px; margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.li .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.08); flex: none; }
.li .ico svg { width: 15px; height: 15px; }
.li.pin .ico { color: var(--accent); }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.07); margin-bottom: 10px; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; font-size: 14px; outline: none; min-width: 0; }
.search svg { width: 15px; height: 15px; color: rgba(255,255,255,.5); }
.ring { --p: 0; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1turn), rgba(255,255,255,.1) 0); display: grid; place-items: center; flex: none; }
.ring > div { width: 132px; height: 132px; border-radius: 50%; background: #000; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; display: block; line-height: 1; }
.ring small { color: rgba(255,255,255,.55); font-weight: 600; font-size: 12px; }
.qa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.qa { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 0; color: #fff; text-align: left; cursor: pointer; font-weight: 650; font-size: 14px; transition: background .2s, transform .15s; font-family: var(--round); }
.qa:hover { background: rgba(255,255,255,.1); }
.qa:active { transform: scale(.97); }
.qa svg { width: 20px; height: 20px; color: var(--accent); }
.qa.done { background: rgba(77,217,158,.14); }
.qa.done svg { color: var(--ok); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.stat small { color: rgba(255,255,255,.55); font-weight: 600; font-size: 12px; display: block; }
.stat b { font-size: 22px; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: rgba(255,255,255,.7); padding: 7px 14px; border-radius: 999px; font-weight: 650; font-size: 13.5px; cursor: pointer; font-family: var(--round); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: #fff; color: #111; }

/* ---------- Profiles ---------- */
.prof-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .prof-wrap { grid-template-columns: 1fr; } }
.prof-list { display: grid; gap: 8px; align-content: start; }
.prof-btn { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.prof-btn:hover { border-color: var(--line-2); }
.prof-btn[aria-selected="true"] { border-color: rgba(255,140,61,.5); background: linear-gradient(180deg, rgba(255,140,61,.10), rgba(255,140,61,.03)); }
.prof-btn .ai { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; }
.prof-btn b { display: block; font-size: 16px; }
.prof-btn span { font-size: 13.5px; color: var(--muted); }
.prof-stage { --dw: 900; --k: calc(100cqw / var(--dw)); container-type: inline-size; position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: linear-gradient(160deg, #191524, #2b1a22 60%, #432517); }
.prof-stage .menubar { --k: calc(100cqw / 900); }
.prof-stage .menubar { height: 30px; font-size: 13px; padding: 0 14px; }
.prof-island { position: absolute; left: 50%; top: 0; translate: -50% 0; width: min(560px, 92%); background: #000; border-radius: 0 0 26px 26px; padding: 40px 20px 18px; font-family: var(--round); z-index: 2; transition: height .4s var(--spring); }
.prof-island .pi-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 650; }
.prof-island .pi-top span { display: inline-flex; gap: 6px; align-items: center; }
.pi-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pi-mod { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 12.5px; min-height: 84px; animation: fadeUp .4s var(--ease) both; }
.pi-mod:nth-child(2) { animation-delay: .05s; } .pi-mod:nth-child(3) { animation-delay: .1s; }
.pi-mod b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.pi-mod span { color: rgba(255,255,255,.6); }
.pi-mod svg { width: 16px; height: 16px; color: var(--accent); margin-bottom: 8px; }
@media (max-width: 560px) { .pi-mods { grid-template-columns: 1fr 1fr; } .pi-mod:nth-child(3) { display: none; } }
.pending { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,140,61,.4); color: #ffd3b3; backdrop-filter: blur(10px); white-space: nowrap; transition: opacity .3s, transform .3s; }
.pending[hidden] { display: none; }
.app-win { position: absolute; left: 50%; bottom: -10px; translate: -50% 0; width: 78%; height: 46%; border-radius: 14px 14px 0 0; background: rgba(24,24,28,.85); border: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.app-win .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 12px; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.06); }
.app-win .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .app-win .bar i:nth-child(2) { background: #febc2e; } .app-win .bar i:nth-child(3) { background: #28c840; }
.app-win .bar span { margin-left: 8px; }
.app-win .body { padding: 14px; display: grid; gap: 8px; }
.app-win .body i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.09); }
.prof-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 14px; color: var(--muted); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.switch .tr { width: 40px; height: 24px; border-radius: 999px; background: #33333b; position: relative; transition: background .2s; flex: none; }
.switch .tr::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + .tr { background: var(--accent); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Shelf story ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.journey { --dw: 600; --k: calc(100cqw / var(--dw)); container-type: inline-size; position: relative; aspect-ratio: 6 / 5; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #15131c, #261a1f 60%, #3a2216); }
.journey .j-island { position: absolute; left: 50%; top: 0; translate: -50% 0; background: #000; border-radius: 0 0 calc(14 * var(--k)) calc(14 * var(--k)); width: calc(150 * var(--k)); height: calc(26 * var(--k)); transition: width .5s var(--spring), height .5s var(--spring); display: flex; justify-content: center; align-items: flex-end; padding-bottom: calc(10 * var(--k)); gap: calc(8 * var(--k)); z-index: 3; }
.journey .j-win { position: absolute; width: 46%; height: 46%; overflow: hidden; border-radius: calc(12 * var(--k)); background: rgba(26,26,30,.9); border: 1px solid rgba(255,255,255,.08); transition: opacity .5s, transform .6s var(--ease); }
.journey .j-win .bar { height: calc(28 * var(--k)); display: flex; align-items: center; gap: calc(6 * var(--k)); padding: 0 calc(10 * var(--k)); font-size: calc(11 * var(--k)); color: rgba(255,255,255,.55); border-bottom: 1px solid rgba(255,255,255,.06); }
.journey .j-win .bar i { width: calc(9 * var(--k)); height: calc(9 * var(--k)); border-radius: 50%; background: #555; }
.journey .j-a { left: 4%; top: 28%; }
.j-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(14 * var(--k)); padding: calc(18 * var(--k)); justify-items: center; }
.j-grid svg { width: calc(40 * var(--k)); height: calc(50 * var(--k)); }
.j-grid .ghost-slot { opacity: .25; }
.j-mail { padding: calc(16 * var(--k)); display: grid; gap: calc(9 * var(--k)); }
.j-mail i { display: block; height: calc(7 * var(--k)); border-radius: 4px; background: rgba(255,255,255,.1); }
.j-att { margin-top: calc(6 * var(--k)); height: calc(54 * var(--k)); border: 1px dashed rgba(255,255,255,.2); border-radius: calc(8 * var(--k)); display: grid; place-items: center; font-size: calc(11 * var(--k)); color: rgba(255,255,255,.45); }
.journey[data-step="3"] .j-att { border-color: var(--accent); color: transparent; }
.journey .j-b { right: 4%; top: 48%; }
.journey .j-file { position: absolute; z-index: 4; width: calc(46 * var(--k)); height: calc(56 * var(--k)); left: 32%; top: 50%; transition: left 1s var(--ease), top 1s var(--ease), transform 1s var(--ease); filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.journey .j-mini { width: calc(26 * var(--k)); height: calc(32 * var(--k)); opacity: 0; transition: opacity .3s; }
.journey[data-step="1"] .j-island, .journey[data-step="2"] .j-island { width: calc(260 * var(--k)); height: calc(84 * var(--k)); }
.journey[data-step="1"] .j-file { left: 46%; top: 3%; transform: scale(.6); }
.journey[data-step="2"] .j-file, .journey[data-step="3"] .j-file { opacity: 0; transition: opacity .2s; }
.journey[data-step="2"] .j-mini, .journey[data-step="3"] .j-mini { opacity: 1; }
.journey[data-step="2"] .j-a { opacity: .25; transform: scale(.96); }
.journey[data-step="3"] .j-a { opacity: .25; transform: scale(.96); }
.journey[data-step="3"] .j-island { width: calc(260 * var(--k)); height: calc(84 * var(--k)); }
.journey .j-out { position: absolute; z-index: 4; width: calc(40 * var(--k)); height: calc(50 * var(--k)); left: 46%; top: 6%; opacity: 0; transition: left 1s var(--ease), top 1s var(--ease), opacity .2s; }
.journey[data-step="3"] .j-out { opacity: 1; left: 73%; top: 78%; }
.journey .j-cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; color: rgba(255,255,255,.7); z-index: 5; }
.steps-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; counter-reset: s; }
.steps-list li { padding: 12px 0 12px 44px; position: relative; border-top: 1px solid var(--line); color: var(--muted); transition: color .3s; }
.steps-list li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #1d1d22; color: var(--muted); transition: background .3s, color .3s; }
.steps-list li.on { color: var(--fg); }
.steps-list li.on::before { background: var(--accent); color: #111; }
.steps-list b { color: var(--fg); font-weight: 650; }
.feat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 56px; }
.feat-cols .card h3 { font-size: 17px; }
.feat-cols .card p { font-size: 15px; }
.feat-cols svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }

/* ---------- Focus ---------- */
.focus-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .focus-demo { grid-template-columns: 1fr; } }
.feed { display: grid; gap: 8px; min-height: 300px; align-content: start; }
.ev { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #000; border: 1px solid #1f1f24; font-family: var(--round); font-size: 14px; animation: slideIn .45s var(--spring) both; }
.ev .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ev .ico svg { width: 16px; height: 16px; }
.ev b { display: block; font-size: 14.5px; }
.ev span { color: rgba(255,255,255,.6); font-size: 13px; }
.ev .pri { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); white-space: nowrap; }
.ev .pri.hi { background: rgba(255,107,143,.15); color: #ff9db5; }
.ev.held { opacity: .45; transform: scale(.98); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.summary { padding: 18px; border-radius: 18px; background: #000; border: 1px solid rgba(255,140,61,.35); font-family: var(--round); animation: pop .5s var(--spring); box-shadow: 0 20px 60px -20px rgba(255,140,61,.35); }
.summary b { font-size: 17px; }
.summary ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; color: rgba(255,255,255,.75); }
.summary li::before { content: "•"; color: var(--accent); margin-right: 8px; }
.focus-panel { display: grid; gap: 18px; align-content: start; }
.fp-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.held-count { font-size: 14px; color: var(--muted); }
.held-count b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Automation ---------- */
.auto-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.auto-grid .wide { grid-column: span 6; }
.auto-grid .half { grid-column: span 3; }
.auto-grid .third { grid-column: span 2; }
@media (max-width: 900px) { .auto-grid .half, .auto-grid .third { grid-column: span 6; } }
.recipe-ui { display: grid; grid-template-columns: 260px 1fr; gap: 24px; margin-top: 24px; }
@media (max-width: 800px) { .recipe-ui { grid-template-columns: 1fr; } }
.recipe-list { display: grid; gap: 8px; align-content: start; }
.recipe-list button { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); cursor: pointer; font-size: 14.5px; font-weight: 600; transition: border-color .2s, background .2s; }
.recipe-list button span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.recipe-list button[aria-selected="true"] { border-color: rgba(255,140,61,.5); background: var(--accent-soft); }
.flow { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: center; min-height: 220px; }
@media (max-width: 640px) { .flow { grid-template-columns: 1fr; gap: 26px; } }
.node { position: relative; z-index: 1; padding: 16px; border-radius: 16px; background: #0d0d10; border: 1px solid var(--line-2); animation: fadeUp .5s var(--ease) both; }
.node:nth-child(2) { animation-delay: .12s; } .node:nth-child(3) { animation-delay: .24s; }
.node small { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.node small i { width: 7px; height: 7px; border-radius: 50%; }
.node b { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.3; }
.node ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); display: grid; gap: 4px; }
.node ul li::before { content: "✓ "; color: var(--ok); }
.flow svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: url(#wireGrad); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 1.2s linear 4; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.perm { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.perm svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.sc-card { font-family: var(--round); background: #000; border-radius: 16px; padding: 16px; margin-top: 20px; border: 1px solid #1f1f24; display: grid; gap: 10px; }
.sc-step { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 14px; }
.sc-step .ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.sc-step .ico svg { width: 14px; height: 14px; color: #fff; }
.sc-step code { font-family: var(--mono); font-size: 12.5px; color: #ffd3b3; background: rgba(255,140,61,.1); padding: 2px 6px; border-radius: 6px; }
.status-live { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #000; border: 1px solid rgba(255,140,61,.3); font-family: var(--round); font-size: 14px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,140,61,.25); border-top-color: var(--accent); animation: spin 1s linear infinite; flex: none; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: dense; }
.bento .card { grid-column: span 4; min-height: 240px; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .3s; }
.bento .card:hover { transform: translateY(-3px); border-color: #34343c; }
.bento .w6 { grid-column: span 6; } .bento .w8 { grid-column: span 8; } .bento .w3 { grid-column: span 3; } .bento .w5 { grid-column: span 5; } .bento .w7 { grid-column: span 7; }
@media (max-width: 1000px) { .bento .card, .bento .w3, .bento .w5, .bento .w7 { grid-column: span 6; } .bento .w8, .bento .w6 { grid-column: span 12; } }
@media (max-width: 620px) { .bento .card { grid-column: span 12 !important; min-height: 0; } }
.bento .vis { margin-top: auto; padding-top: 22px; }
.bento h3 { font-size: 19px; }
.bento p { font-size: 15px; }
.mini { font-family: var(--round); background: #000; border-radius: 14px; padding: 12px 14px; border: 1px solid #1d1d22; font-size: 13px; }
.mini-row { display: flex; gap: 10px; align-items: center; }
.mini-row + .mini-row { margin-top: 8px; }
.mini .dim { color: rgba(255,255,255,.55); }
.bat { width: 34px; height: 16px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 4px; padding: 1.5px; position: relative; }
.bat::after { content: ""; position: absolute; right: -4px; top: 4px; width: 2px; height: 5px; border-radius: 0 2px 2px 0; background: rgba(255,255,255,.6); }
.bat i { display: block; height: 100%; border-radius: 2px; background: var(--ok); }
.slider { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.slider i { display: block; height: 100%; background: #fff; border-radius: inherit; }
.cal-ev { border-left: 3px solid var(--ocean); padding-left: 10px; }
.cal-ev.v { border-color: var(--violet); }
.join { margin-left: auto; background: var(--ocean); color: #fff; font-weight: 700; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; }
.check { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4); flex: none; }
.check.on { background: var(--accent); border-color: var(--accent); }
.swatches { display: flex; gap: 8px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; }

/* ---------- Use cases ---------- */
.uc-tabs { display: flex; justify-content: center; margin-bottom: 32px; }
.uc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
@media (max-width: 860px) { .uc { grid-template-columns: 1fr; } }
.uc[hidden] { display: none; }
.uc h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; }
.uc .lede { font-size: 17px; }
.uc-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.uc-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #d6d6dc; }
.uc-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.uc-vis { border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(100% 100% at 50% 0%, #22191a, #111113); padding: 0 20px 24px; min-height: 320px; }
.uc-vis .stack { margin: 0 auto; max-width: 440px; background: #000; border-radius: 0 0 24px 24px; padding: 36px 18px 18px; display: grid; gap: 8px; font-family: var(--round); }

/* ---------- Make it yours ---------- */
.custom { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .custom { grid-template-columns: 1fr; } .cust-stage { min-height: 300px; } }
.cust-stage { border-radius: 26px; border: 1px solid var(--line); overflow: hidden; min-height: 420px; position: relative; background: linear-gradient(160deg, #191524, #2b1a22 60%, #432517); transition: background .5s; display: flex; justify-content: center; }
.cust-stage.day { background: linear-gradient(160deg, #e9e4f2, #f4dccb 60%, #f0b48c); }
.cust-island { --acc: #ff8c3d; --s: 1; margin-top: 0; width: calc(560px * var(--s)); max-width: 94%; background: #000; color: #fff; border-radius: 0 0 calc(26px * var(--s)) calc(26px * var(--s)); padding: calc(38px * var(--s)) calc(18px * var(--s)) calc(18px * var(--s)); font-family: var(--round); font-size: calc(13px * var(--s)); align-self: flex-start; transition: background .4s, color .4s, width .4s var(--spring), padding .4s var(--spring), box-shadow .4s; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.cust-island[data-theme="frosted"] { background: rgba(30, 24, 28, .55); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(0,0,0,.6); }
.cust-island[data-theme="daylight"] { background: #f7f7f7; color: #141414; box-shadow: 0 30px 80px -20px rgba(80,40,20,.35); }
.cust-island .ct-top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; }
.cust-island .ct-tabs { display: flex; gap: calc(4px * var(--s)); }
.cust-island .ct-tabs i { width: calc(30px * var(--s)); height: calc(26px * var(--s)); border-radius: calc(8px * var(--s)); display: grid; place-items: center; opacity: .7; }
.cust-island .ct-tabs i.on { background: color-mix(in srgb, var(--acc) 20%, transparent); color: var(--acc); opacity: 1; }
.cust-island .ct-tabs svg { width: calc(15px * var(--s)); height: calc(15px * var(--s)); }
.ct-mods { display: grid; gap: calc(8px * var(--s)); margin-top: calc(14px * var(--s)); grid-template-columns: repeat(var(--cols, 3), 1fr); }
.ct-mod { border-radius: calc(12px * var(--s)); padding: calc(12px * var(--s)); background: rgba(255,255,255,.07); min-height: calc(76px * var(--s)); transition: background .4s; animation: fadeUp .35s var(--ease) both; }
.cust-island[data-theme="daylight"] .ct-mod { background: rgba(0,0,0,.05); }
.ct-mod b { display: block; }
.ct-mod span { opacity: .65; font-size: .92em; }
.ct-mod .acc-bar { height: calc(5px * var(--s)); border-radius: 5px; background: color-mix(in srgb, currentColor 15%, transparent); margin-top: calc(10px * var(--s)); overflow: hidden; }
.ct-mod .acc-bar i { display: block; width: 62%; height: 100%; background: var(--acc); }
.ct-mod .acc-txt { color: var(--acc); font-weight: 700; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 22px; }
.panel h3 { font-size: 13px; font-weight: 650; color: var(--muted); letter-spacing: 0; margin-bottom: 10px; }
.accents { display: flex; gap: 10px; flex-wrap: wrap; }
.accents button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .15s; }
.accents button:hover { transform: scale(1.08); }
.accents button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(255,255,255,.4); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.extras .card { padding: 18px 20px; }
.extras h3 { font-size: 16px; }
.extras p { font-size: 14px; margin-top: 4px; }

/* ---------- Privacy ---------- */
.priv { background: radial-gradient(60% 60% at 50% 0%, rgba(255,140,61,.08), transparent 70%); }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
@media (max-width: 860px) { .priv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .priv-grid { grid-template-columns: 1fr; } }
.priv-grid > div { background: var(--bg-2); padding: 26px; }
.priv-grid svg { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }
.priv-grid h3 { font-size: 17px; }
.priv-grid p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.netbox { margin-top: 20px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--muted); }
.netbox b { color: var(--fg); }

/* ---------- Pricing ---------- */
.price-wrap { display: grid; place-items: center; }
.price-card { position: relative; width: min(560px, 100%); border-radius: 30px; padding: clamp(28px, 5vw, 44px); background: linear-gradient(180deg, #1c1714 0%, #141416 50%); border: 1px solid rgba(255,140,61,.28); box-shadow: 0 40px 120px -40px rgba(255,140,61,.35), inset 0 1px 0 rgba(255,255,255,.06); overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 300px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,140,61,.22), transparent 70%); pointer-events: none; }
.pc-head { display: flex; align-items: center; gap: 14px; position: relative; }
.pc-head img { width: 56px; height: 56px; border-radius: 13px; }
.pc-head b { font-size: 22px; letter-spacing: -.02em; display: block; }
.pc-head span { font-size: 14px; color: var(--muted); }
.amount { display: flex; align-items: baseline; gap: 10px; margin: 28px 0 4px; position: relative; flex-wrap: wrap; }
.amount .num { font-size: clamp(56px, 9vw, 76px); font-weight: 750; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount .per { color: var(--muted); font-size: 18px; font-weight: 500; }
.pay-once { font-weight: 650; color: #ffd3b3; position: relative; }
.incl { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 11px; position: relative; }
.incl li { display: flex; gap: 12px; font-size: 15.5px; }
.incl svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.pc-ctas { display: grid; gap: 10px; position: relative; }
.pc-ctas .btn { width: 100%; }
.region { margin-top: 18px; font-size: 13.5px; color: var(--muted); position: relative; line-height: 1.5; }
.region select { background: #1d1d22; color: var(--fg); border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 8px; font: inherit; margin-left: 6px; }
.compare { margin-top: 28px; width: min(760px, 100%); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--muted); font-weight: 600; }
.compare td:first-child { color: var(--muted); width: 28%; }

/* ---------- Final CTA ---------- */
.final { text-align: center; padding: clamp(110px, 14vw, 180px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; translate: -50% -50%; width: min(1100px, 140vw); height: 600px; background: radial-gradient(50% 50% at 50% 50%, rgba(255,140,61,.22), transparent 70%); pointer-events: none; }
.final .notch-glyph { width: 220px; height: 44px; margin: 0 auto 40px; background: #000; border-radius: 0 0 20px 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 60px -10px rgba(255,140,61,.5); position: relative; }
.final .notch-glyph::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 600; position: relative; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 720px; }
.faq details > div p { margin: 0 0 10px; }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.foot .fh { margin: 0 0 12px; font-size: 13px; color: var(--fg); font-weight: 650; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--fg); }
.foot .legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 22px; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Doc pages ---------- */
.doc-page { max-width: 820px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.doc-page h1 { font-size: clamp(40px, 6vw, 64px); }
.doc-page h2 { font-size: 26px; letter-spacing: -.02em; margin: 56px 0 14px; }
.doc-page h3 { font-size: 18px; margin: 28px 0 8px; }
.doc-page p, .doc-page li { color: #cfcfd6; font-size: 16.5px; }
.doc-page a { color: var(--accent); }
.doc-page table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.doc-page th, .doc-page td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; vertical-align: top; color: #cfcfd6; }
.doc-page th { color: var(--muted); font-weight: 600; }
.doc-page .faq summary { font-size: 17px; }
.callout { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 18px 20px; margin-top: 20px; }

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

.j-pause { position: absolute; right: 12px; top: 12px; z-index: 6; background: rgba(0,0,0,.5); }

/* ---------- Hero use-case chapters ---------- */
.uc-label { color: var(--fg); font-weight: 600; min-width: 0; transition: opacity .25s; }
.uc-label.swap { opacity: 0; }
.doc-lines i { transition: background .3s; }
.doc-lines i.sel { background: rgba(255,140,61,.55); box-shadow: 0 0 0 calc(3 * var(--k)) rgba(255,140,61,.2); }
.doc-lines .drop { display: grid; place-items: center; transition: background .4s, border-color .4s; }
.doc-lines .drop .doc { width: calc(30 * var(--k)); height: calc(38 * var(--k)); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--spring); }
.doc-lines .drop.filled { border-style: solid; border-color: rgba(255,140,61,.55); background: linear-gradient(135deg, rgba(255,140,61,.28), rgba(142,63,174,.28)); }
.doc-lines .drop.filled .doc { opacity: 1; transform: none; }
.clip-list { display: grid; gap: calc(6 * var(--k)); }
.ci { display: flex; align-items: center; gap: calc(10 * var(--k)); padding: calc(7 * var(--k)) calc(10 * var(--k)); border-radius: calc(10 * var(--k)); background: rgba(255,255,255,.06); font-size: calc(11.5 * var(--k)); font-weight: 600; }
.ci svg { flex: none; width: calc(14 * var(--k)); height: calc(14 * var(--k)); color: rgba(255,255,255,.6); }
.ci span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci small { color: rgba(255,255,255,.45); font-size: calc(10 * var(--k)); font-weight: 500; }
.ci.new { animation: pop .5s var(--spring); outline: 1px solid rgba(255,140,61,.6); background: rgba(255,140,61,.12); }
.ci.new svg { color: var(--accent); }
.clip-list .ci:nth-child(n+4) { display: none; }
.tm { display: flex; align-items: center; gap: calc(22 * var(--k)); height: 100%; }
.tm-ring { position: relative; flex: none; width: calc(112 * var(--k)); height: calc(112 * var(--k)); display: grid; place-items: center; }
.tm-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-ring circle { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 7; }
.tm-ring .tm-prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear; }
.tm-ring b { font-size: calc(22 * var(--k)); font-variant-numeric: tabular-nums; }
.tm-meta { flex: 1; min-width: 0; display: grid; gap: calc(4 * var(--k)); font-size: calc(12 * var(--k)); }
.tm-meta b { font-size: calc(16 * var(--k)); }
.tm-meta span { color: rgba(255,255,255,.68); }
.tm-held { display: inline-flex; align-items: center; gap: calc(6 * var(--k)); color: var(--accent) !important; }
.tm-held svg { width: calc(12 * var(--k)); height: calc(12 * var(--k)); }
