/* =========================================================
   Photon website v2
   Night-violet with the dusk sky from the launch film.
   One bold moment: you can screenshot the hero with ⌘⇧4.
   ========================================================= */

:root {
  --night: #0d0a18;
  --night-2: #141024;
  --card: #1a1530;
  --card-2: #221c3d;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f1fb;
  --muted: #a8a1bd;
  --dim: #7d7694;
  --violet: #785ef5;
  --pink: #ed5c9e;
  --amber: #fca84f;
  --spectrum: linear-gradient(90deg, var(--violet), var(--pink) 55%, var(--amber));
  --paper: #f6f5f9;
  --ink: #1d1a24;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
kbd {
  display: inline-block;
  font: 600 0.82em var(--font);
  padding: 0.12em 0.5em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.test-strip {
  position: relative; z-index: 60;
  background: #2a1f0c; color: #ffcf8a;
  font-size: 14px; text-align: center; padding: 8px 16px;
  border-bottom: 1px solid #4a3612;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(13, 10, 24, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(13, 10, 24, 0.82); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 19px var(--display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-white, .nav-links a.btn-white:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 10px 40px -10px rgba(237, 92, 158, .6); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 11px; }
.btn.is-soon { background: rgba(255, 255, 255, 0.1); color: var(--muted); cursor: default; box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid; place-items: center;
  overflow: hidden;
  margin-top: -64px; padding: 120px 0 150px;
  isolation: isolate;
  user-select: none; -webkit-user-select: none;
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* fade into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1;
  background: linear-gradient(transparent, var(--night));
}
.hero-inner { position: relative; text-align: center; max-width: 980px; padding: 0 24px; }
.hero h1 {
  font: 800 clamp(46px, 7.4vw, 104px)/0.98 var(--display);
  letter-spacing: -0.045em;
  margin: 0 0 26px;
  text-wrap: balance;
}
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: #d6d0e6; max-width: 40em; margin: 0 auto 34px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 26px 0 0; font-size: 14px; color: #cbc4dd; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spectrum); }

/* the opening moment: ⌘⇧4 corners snap around the headline */
.open-brackets { position: absolute; pointer-events: none; z-index: 2; }
.open-brackets i { position: absolute; width: 34px; height: 34px; border: 0 solid #fff; }
.open-brackets i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; border-top-left-radius: 8px; }
.open-brackets i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; border-top-right-radius: 8px; }
.open-brackets i:nth-child(3) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; border-bottom-right-radius: 8px; }
.open-brackets i:nth-child(4) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; border-bottom-left-radius: 8px; }

/* try-it hint at the bottom of the hero */
.try-hint {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(13, 10, 24, 0.66); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14.5px; color: #e6e1f2; white-space: nowrap;
  transition: opacity .4s, transform .4s var(--ease);
}
.try-hint .x { width: 22px; height: 22px; position: relative; flex: none; }
.try-hint .x::before, .try-hint .x::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.try-hint .x::before { left: 10px; top: 0; width: 2px; height: 22px; }
.try-hint .x::after { top: 10px; left: 0; height: 2px; width: 22px; }
.try-hint.done { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
.try-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .try-hint .mouse-only { display: none; }
  .try-touch { display: inline-flex; }
}

/* custom ⌘⇧4 cursor + selection */
.hero.capture-ready { cursor: none; }
.hero.capture-ready a, .hero.capture-ready button { cursor: pointer; }
#xhair { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .15s; }
#xhair.on { opacity: 1; }
#xhair::before, #xhair::after { content: ""; position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
#xhair::before { left: -11px; top: -1px; width: 22px; height: 2px; }
#xhair::after { left: -1px; top: -11px; width: 2px; height: 22px; }
#xhair span { position: absolute; left: 14px; top: 12px; font: 600 11px/1 var(--font); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; font-variant-numeric: tabular-nums; }
#sel { position: absolute; z-index: 25; pointer-events: none; display: none; background: rgba(255, 255, 255, 0.13); outline: 1px solid rgba(255, 255, 255, 0.85); }
#sel.on { display: block; }
#flash { position: fixed; inset: 0; z-index: 90; background: #fff; opacity: 0; pointer-events: none; }
#flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .55; } to { opacity: 0; } }

/* ---------- the floating Photon thumbnail (works on the page) ---------- */
.pthumb {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: min(340px, calc(100vw - 48px));
  transform: translateX(130%); transition: transform .55s var(--spring);
}
.pthumb.show { transform: translateX(0); }
.pthumb-card {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 4px solid #fff; background: #fff;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0,0,0,.2);
}
.pthumb-card img { width: 100%; height: auto; max-height: 260px; object-fit: cover; background: #222; }
.pthumb-btns { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.pbtn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(29, 26, 36, .88); color: #fff;
  transition: transform .2s var(--spring), background .2s;
}
.pbtn:hover { transform: scale(1.1); background: #000; }
.pbtn svg { width: 17px; height: 17px; }
.pbtn.done { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--violet); }
.pthumb-close {
  position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(29, 26, 36, .7); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
}
.pthumb-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(20, 16, 36, .9); border: 1px solid var(--line-2); color: #e9e4f6;
}
.chip b { font-weight: 700; color: #fff; }
.pthumb-tip {
  position: absolute; bottom: calc(100% + 12px); right: 0; width: max-content; max-width: 100%;
  padding: 10px 14px; border-radius: 14px; font-size: 14px;
  background: #fff; color: var(--ink); box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
}
.pthumb-tip::after { content: ""; position: absolute; right: 40px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.pthumb-tip.hide { display: none; }
.pop {
  position: absolute; bottom: calc(100% + 12px); right: 0; left: 0;
  background: #fff; color: var(--ink); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.7);
  transform-origin: 80% 100%; animation: popin .28s var(--spring);
}
@keyframes popin { from { opacity: 0; transform: scale(.9) translateY(6px); } }
.pop label { display: block; font-size: 13.5px; font-weight: 600; color: #6b6675; margin-bottom: 6px; }
.pop input { width: 100%; border: 0; outline: 0; font: 600 17px var(--font); color: var(--ink); background: transparent; caret-color: var(--violet); }
.pop small { display: block; margin-top: 8px; color: #8a8496; font-size: 12.5px; }
.menu { padding: 8px; }
.menu button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); font-weight: 600; font-size: 15px; cursor: pointer; text-align: left;
}
.menu button:hover, .menu button:focus-visible { background: var(--spectrum); color: #fff; outline: none; }
.menu button i { width: 20px; height: 15px; border-radius: 3px; flex: none; }
.menu hr { border: 0; border-top: 1px solid #e6e2ec; margin: 6px 10px; }

/* blur editor */
.blur-dlg {
  border: 0; padding: 0; background: transparent; color: var(--text);
  max-width: min(980px, 94vw); width: 100%;
}
.blur-dlg::backdrop { background: rgba(8, 6, 16, .78); backdrop-filter: blur(6px); }
.blur-box { background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; padding: 18px; }
.blur-box h3 { margin: 4px 6px 14px; font: 750 22px var(--display); letter-spacing: -0.02em; }
.blur-stage { position: relative; border-radius: 12px; overflow: hidden; background: #000; cursor: crosshair; touch-action: none; }
.blur-stage canvas { width: 100%; height: auto; }
.blur-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.blur-bar .hint { flex: 1; color: var(--muted); font-size: 14px; min-width: 200px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95;
  transform: translate(-50%, calc(100% + 60px)); transition: transform .45s var(--spring), visibility 0s .45s; visibility: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 16px;
  background: #fff; color: var(--ink); font-weight: 650; font-size: 15px;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.7);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--spring); }
.toast .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--spectrum); display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.toast button { border: 0; background: var(--ink); color: #fff; padding: 7px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; cursor: pointer; }

/* ---------- sections ---------- */
section { position: relative; padding: 120px 0; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 {
  font: 800 clamp(36px, 5vw, 64px)/1.02 var(--display);
  letter-spacing: -0.04em; margin: 0 0 18px; text-wrap: balance;
}
.sec-head p { color: var(--muted); font-size: 19px; margin: 0; text-wrap: pretty; }
h3 { font: 750 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }

/* film */
.film { padding-top: 40px; }
.mac {
  position: relative; max-width: 1040px; margin: 0 auto;
  padding: 14px 14px 0; border-radius: 26px 26px 10px 10px;
  background: linear-gradient(#2b2738, #17141f);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 60px 120px -40px rgba(120, 94, 245, .55);
}
.mac::after { /* the base */
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -18px; height: 18px;
  border-radius: 0 0 22px 22px; background: linear-gradient(#cfcbd9, #8f8a9d);
}
.mac-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px 12px 0 0; overflow: hidden; background: #000; }
.mac-screen video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(13,10,24,.15), rgba(13,10,24,.55));
  transition: opacity .3s;
}
.play span {
  display: flex; align-items: center; gap: 14px; padding: 16px 26px 16px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 750; font-size: 17px;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); transition: transform .25s var(--spring);
}
.play:hover span { transform: scale(1.06); }
.play i { width: 40px; height: 40px; border-radius: 50%; background: var(--spectrum); display: grid; place-items: center; }
.play i::after { content: ""; margin-left: 4px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.gone { opacity: 0; pointer-events: none; }
.film-note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 46px; }

/* features: sticky storytelling */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .32; transition: opacity .4s; }
.story-steps li.active { opacity: 1; }
.story-steps .num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  border: 1.5px solid var(--line-2); font-weight: 700; font-size: 15px; color: var(--muted);
  transition: background .3s, color .3s, border-color .3s;
}
.story-steps li.active .num { background: var(--spectrum); border-color: transparent; color: #fff; }
.story-steps h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.03em; }
.story-steps p { color: var(--muted); font-size: 18px; margin: 0; max-width: 26em; }
.story-steps .how { margin-top: 14px; font-size: 15px; color: var(--dim); }
.story-visual { position: sticky; top: calc(50vh - 220px); }
.window {
  border-radius: 18px; overflow: hidden; background: #000;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 80px -30px rgba(237, 92, 158, .35);
}
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1d1930; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3450; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stack { position: relative; aspect-ratio: 930 / 600; }
.stack video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.stack video.on { opacity: 1; }
.progress { display: flex; gap: 6px; margin-top: 16px; }
.progress b { flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.progress b.on::after { content: ""; position: absolute; inset: 0; background: var(--spectrum); }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 100px; }
.extra { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.extra .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); margin-bottom: 16px; }
.extra .ico svg { width: 22px; height: 22px; }
.extra h4 { margin: 0 0 6px; font: 700 18px var(--display); letter-spacing: -0.01em; }
.extra p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* live workspace */
.ws-try {
  position: relative; max-width: 1100px; margin: -12px auto 34px; padding: 26px 28px 22px;
  border-radius: 22px; text-align: center;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(120deg, rgba(120,94,245,.8), rgba(237,92,158,.6), rgba(252,168,79,.6)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 30px 70px -40px rgba(237, 92, 158, .6);
}
.ws-try-label { display: inline-flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.ws-try-label span { font: 800 26px/1 var(--display); letter-spacing: -0.02em; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-try-arrow { width: 70px; height: 42px; color: var(--pink); margin-top: 8px; }
.ws-try-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ws-try-chips button {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  border: 0; background: #fff; color: var(--ink);
  padding: 12px 18px 12px 14px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,.7);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.ws-try-chips button svg { width: 17px; height: 17px; color: var(--violet); }
.ws-try-chips button:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 14px 30px -12px rgba(237, 92, 158, .8); }
.ws-try-chips button.active { background: var(--spectrum); color: #fff; }
.ws-try-chips button.active svg { color: #fff; }
.ws-try-chips button.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid var(--pink);
  animation: ring 1.6s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .ws-try-chips button.pulse::after { animation: none; opacity: .8; } }
.ws-try-note { margin: 16px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 720px) {
  .ws-try { padding: 22px 16px 18px; }
  .ws-try-label span { font-size: 22px; }
  .ws-try-arrow { width: 52px; height: 32px; }
  .ws-try-chips button { font-size: 14.5px; padding: 10px 14px 10px 12px; }
}
.ws {
  display: grid; grid-template-columns: 220px 1fr; height: 640px; max-width: 1100px; margin: 0 auto;
  border-radius: 20px; overflow: hidden; background: var(--paper); color: var(--ink);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  position: relative;
}
.ws-side { background: #ebe8f1; padding: 16px 12px; overflow: auto; }
.ws-dots { display: flex; gap: 7px; padding: 2px 6px 16px; }
.ws-dots i { width: 11px; height: 11px; border-radius: 50%; }
.ws-dots i:nth-child(1) { background: #ff5f57; } .ws-dots i:nth-child(2) { background: #febc2e; } .ws-dots i:nth-child(3) { background: #28c840; }
.ws-title { display: flex; align-items: center; gap: 9px; padding: 0 8px 14px; font: 800 18px var(--display); }
.ws-title img { width: 26px; height: 26px; }
.ws-side h5 { margin: 14px 10px 6px; font-size: 12.5px; color: #8a8496; font-weight: 700; }
.ws-side button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 9px;
  background: transparent; color: #2a2633; font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left;
}
.ws-side button:hover { background: rgba(120, 94, 245, .08); }
.ws-side button.sel { background: rgba(120, 94, 245, .16); }
.ws-side button i { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.ws-side button em { margin-left: auto; font-style: normal; font-size: 13px; color: #8a8496; font-variant-numeric: tabular-nums; }
.ws-main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ws-top { padding: 16px 20px 10px; }
.ws-search { position: relative; display: block; }
.ws-search input {
  width: 100%; height: 46px; border-radius: 23px; border: 2px solid #ddd8e4; background: #fff;
  padding: 0 18px 0 46px; font: 600 16px var(--font); color: var(--ink); outline: none; transition: border-color .2s;
}
.ws-search input:focus { border-color: var(--violet); }
.ws-search svg { position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; color: #7a7486; }
.ws-understood { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 34px; padding-top: 10px; font-size: 14px; color: #6b6675; font-weight: 600; }
.ws-understood .date {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: rgba(120, 94, 245, .13); color: #5b4be0; font-weight: 700; animation: popin .3s var(--spring);
}
.ws-grid { flex: 1; overflow: auto; padding: 4px 20px 24px; }
.ws-group h6 { margin: 14px 0 10px; font-size: 14px; color: #6b6675; font-weight: 700; }
.ws-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cell {
  border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink);
  animation: cellin .35s var(--ease) both;
}
@keyframes cellin { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.cell .img { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #ddd; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: transform .25s var(--ease), box-shadow .25s; }
.cell:hover .img { transform: translateY(-3px); box-shadow: 0 12px 24px -10px rgba(40, 20, 80, .35); }
.cell.sel .img { box-shadow: 0 0 0 3px var(--violet); }
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell .new { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--spectrum); color: #fff; font-size: 11.5px; font-weight: 800; }
.cell .note { display: block; margin-top: 7px; font-size: 13.5px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell .note.none { color: #a49eb0; font-weight: 500; }
.cell .when { display: block; font-size: 12px; color: #8a8496; }
.ws-empty { padding: 60px 20px; text-align: center; color: #6b6675; }
.ws-empty b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.ws-pane {
  position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background: #fff; border-left: 1px solid #e6e2ec;
  padding: 18px; overflow: auto; transform: translateX(100%); transition: transform .4s var(--ease);
}
.ws-pane.open { transform: translateX(0); }
.ws-main.pane-open .ws-grid { padding-right: 320px; }
@media (max-width: 960px) { .ws-main.pane-open .ws-grid { padding-right: 20px; } }
.ws-pane .close { position: absolute; right: 12px; top: 10px; border: 0; background: #f1eff5; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: #6b6675; }
.ws-pane img { width: 100%; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); margin: 22px 0 14px; }
.ws-pane h4 { margin: 0; font: 800 17px var(--display); }
.ws-pane .meta { font-size: 13.5px; color: #8a8496; margin: 2px 0 16px; }
.ws-pane .lbl { font-size: 12.5px; font-weight: 700; color: #8a8496; margin: 14px 0 6px; }
.ws-pane .notebox { background: #f4f2f8; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.ws-pane .words { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-pane .words span { padding: 4px 9px; border-radius: 8px; background: #f4f2f8; font-size: 13.5px; font-weight: 600; }
.ws-pane .words span.hit { background: linear-gradient(90deg, rgba(120,94,245,.28), rgba(237,92,158,.28), rgba(252,168,79,.28)); }
mark { background: linear-gradient(90deg, rgba(120,94,245,.3), rgba(237,92,158,.3), rgba(252,168,79,.3)); color: inherit; border-radius: 3px; padding: 0 1px; }

/* privacy */
.privacy { overflow: hidden; }
.privacy-card {
  position: relative; border-radius: 32px; padding: 80px 64px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, rgba(237, 92, 158, .28), transparent 55%), radial-gradient(120% 140% at 0% 100%, rgba(120, 94, 245, .38), transparent 55%), var(--card);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
}
.privacy-card h2 { margin-bottom: 18px; }
.privacy-card p { color: #d2cce2; font-size: 18px; margin: 0; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-list li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(13, 10, 24, .55); border: 1px solid var(--line); font-weight: 600; }
.privacy-list svg { width: 22px; height: 22px; flex: none; color: #fff; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 20px; }
.plan { position: relative; padding: 34px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.best { background: linear-gradient(var(--card-2), var(--card-2)) padding-box, var(--spectrum) border-box; border: 2px solid transparent; }
.plan .tag { position: absolute; top: 22px; right: 22px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.08); color: #e9e4f6; }
.plan h3 { font-size: 19px; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.price { font: 800 64px/1 var(--display); letter-spacing: -0.04em; margin: 8px 0 6px; }
.price-note { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; font-size: 15.5px; }
.plan li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.price-foot { text-align: center; color: var(--dim); font-size: 14px; max-width: 44em; margin: 30px auto 0; }
.price-foot a { color: var(--muted); }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 650; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 0 22px; color: var(--muted); }

/* final */
.final { text-align: center; padding-bottom: 140px; }
.final img { width: 120px; height: 120px; margin: 0 auto 26px; filter: drop-shadow(0 30px 40px rgba(120, 94, 245, .45)); }
.final h2 { font-size: clamp(40px, 6vw, 78px); }
.final p { color: var(--muted); margin: 0 0 32px; font-size: 18px; }
.final .hero-actions { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--muted); }

/* reveal on scroll (only one kind, kept subtle) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- plain pages (pricing, legal, thank you) ---------- */
.page { padding: 60px 0 100px; }
.prose { max-width: 700px; }
.prose h1 { font: 800 clamp(38px, 5vw, 56px)/1.04 var(--display); letter-spacing: -0.04em; margin: 0 0 12px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 18px; margin: 22px 0 8px; }
.prose p, .prose li { color: #d0cadf; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose a { color: #fff; }
.callout { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 26px 0; }
.callout p { margin: 0; }
.page .plans { justify-content: start; margin: 10px 0 30px; }
.key-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; margin: 20px 0 8px; }
.key-box code { font: 600 18px ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; flex: 1 1 260px; }
.copied { font-size: 14px; color: var(--muted); min-height: 1.4em; }
[hidden] { display: none !important; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { position: sticky; top: 70px; z-index: 2; margin-bottom: 10px; }
  .story-steps li { min-height: 52vh; }
  .extras { grid-template-columns: 1fr 1fr; }
  .privacy-card { grid-template-columns: 1fr; padding: 50px 30px; }
  .ws { grid-template-columns: 1fr; height: 600px; }
  .ws-side { display: none; }
  .ws-pane { width: 100%; }
}
@media (max-width: 720px) {
  section { padding: 84px 0; }
  .nav-links a:not(.btn) { display: none; }
  .plans { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .foot .wrap { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 140px; }
  .try-hint { white-space: normal; width: max-content; max-width: calc(100vw - 32px); }
  .pthumb { right: 12px; bottom: 12px; width: min(280px, calc(100vw - 24px)); }
}

/* ---------- pricing: one card with a Mac switch ---------- */
.tier-card {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 0;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, rgba(120,94,245,.7), rgba(237,92,158,.5), rgba(252,168,79,.5)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 50px 100px -50px rgba(120, 94, 245, .55);
}
.page .tier-card { margin: 10px 0 40px; }
.tier-left { padding: 40px; border-right: 1px dashed var(--line-2); }
.tier-left h3 { font-size: 26px; margin-bottom: 4px; }
.tier-sub { color: var(--muted); margin: 0 0 26px; }
.tier-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.tier-list li { padding-left: 32px; position: relative; }
.tier-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 13px; height: 7px; border-left: 2.5px solid var(--pink); border-bottom: 2.5px solid var(--pink); transform: rotate(-45deg); }
.tier-list b { display: block; font-weight: 700; }
.tier-list span { color: var(--muted); font-size: 15px; }
.tier-right { padding: 40px; display: flex; flex-direction: column; align-items: center; text-align: center; background: radial-gradient(120% 100% at 50% 0%, rgba(120, 94, 245, .16), transparent 60%); }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 100%; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid var(--line); position: relative; }
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  padding: 11px 6px; border-radius: 12px; font-weight: 650; font-size: 15px; color: var(--muted); transition: color .25s;
}
.seg button[aria-checked="true"] { color: var(--ink); }
.seg .knob { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px -4px rgba(0,0,0,.5); transition: transform .4s var(--spring), width .4s var(--spring); }
.tier-price { font: 800 84px/1 var(--display); letter-spacing: -0.05em; margin: 34px 0 8px; font-variant-numeric: tabular-nums; }
.tier-price.bump { animation: bump .35s var(--spring); }
@keyframes bump { 0% { transform: translateY(8px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.tier-right .price-note { margin: 0 0 4px; }
.tier-per { color: var(--dim); font-size: 14px; margin: 0 0 28px; min-height: 1.4em; }
.tier-buy { width: 100%; margin-top: auto; font-size: 17px; padding: 16px 24px; }
.tier-buy.is-soon { background: rgba(255,255,255,.1); color: var(--muted); cursor: default; }
@media (max-width: 820px) {
  .tier-card { grid-template-columns: 1fr; }
  .tier-left { border-right: 0; border-bottom: 1px dashed var(--line-2); padding: 30px; }
  .tier-right { padding: 30px; order: -1; }
  .tier-price { font-size: 68px; }
}
@media (max-width: 400px) { .seg button { font-size: 13.5px; padding: 10px 2px; } }
