/* Plied website
   Colours come from the extension icon and src/brand.ts: violet #7f4ff2 → #6a35e0, coral #fb6a4a, ink #17142a. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --tint: #f3eeff;
  --ink: #17142a;
  --text: #463f5e;
  --muted: #7a7391;
  --line: #ebe6f5;
  --line-strong: #d8cff0;
  --violet: #6a35e0;
  --violet-2: #7f4ff2;
  --violet-deep: #5827bd;
  --violet-soft: #ece6ff;
  --coral: #fb6a4a;
  --coral-soft: #fff3f0;
  --green: #0f9f6e;
  --green-soft: #e6f8f0;
  --amber: #c27c0e;
  --amber-soft: #fff6e0;
  --band: #17142a;
  --band-text: #ddd6f3;
  --brand: linear-gradient(135deg, #7f4ff2 0%, #6a35e0 55%, #fb6a4a 100%);
  --brand-text: linear-gradient(100deg, #7f4ff2 0%, #6a35e0 40%, #fb6a4a 100%);
  --nav-bg: rgba(250, 248, 255, 0.82);
  color-scheme: light;

  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

:root[data-theme="dark"] {
  --bg: #0f0c1d;
  --surface: #1a1630;
  --tint: #231d40;
  --ink: #f4f1ff;
  --text: #c9c2e3;
  --muted: #958db3;
  --line: #2a2448;
  --line-strong: #3a3263;
  --violet: #9b78fb;
  --violet-2: #a98bff;
  --violet-deep: #7f4ff2;
  --violet-soft: #2c2252;
  --coral-soft: #3a1f22;
  --green-soft: #12342a;
  --amber-soft: #382b12;
  --band: #1a1536;
  --nav-bg: rgba(15, 12, 29, 0.82);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; color: var(--ink); }
button { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; }
kbd {
  font-family: var(--sys);
  font-size: 0.82em;
  display: inline-block;
  min-width: 1.7em;
  padding: 0.05em 0.42em;
  border-radius: 0.38em;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 2px 0 var(--line-strong);
  text-align: center;
  line-height: 1.45;
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 0.8125rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet);
}
.section-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin-top: 10px;
}
.section-lede { margin-top: 16px; font-size: 1.1875rem; max-width: 56ch; }
.grad { background: var(--brand-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Theme switch ---------- */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--text);
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { background: var(--tint); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px 15px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 12px 28px -10px rgba(106, 53, 224, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 16px 34px -10px rgba(106, 53, 224, 0.85); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 9px 18px; font-size: 0.9375rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -8px rgba(106, 53, 224, 0.75); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--violet); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-in {
  width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto;
  display: flex; align-items: center; gap: 20px; height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand img { filter: drop-shadow(0 4px 8px rgba(106, 53, 224, 0.35)); }
.nav nav { margin-left: auto; }
.nav nav + .theme-toggle { margin-left: -8px; }
.nav ul { display: flex; gap: 2px; list-style: none; }
.nav nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.nav nav a:hover { color: var(--ink); background: var(--tint); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(40% 40% at 88% 6%, rgba(251, 106, 74, 0.16), transparent 70%),
    radial-gradient(50% 45% at 8% 0%, rgba(127, 79, 242, 0.18), transparent 70%),
    radial-gradient(60% 40% at 50% 72%, rgba(106, 53, 224, 0.12), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: end; }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.7rem, 7.2vw, 5.4rem); line-height: 1; letter-spacing: -0.045em;
}
.hero-title .line2 { display: block; }
.hero-title .dot { color: var(--coral); }
.stamp {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  margin: 0 0 18px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 8px 20px -14px rgba(106, 53, 224, 0.6);
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
}
.stamp b { white-space: nowrap; flex: none; display: inline-grid; place-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.75rem; }
.hero-side .lede { font-size: 1.1875rem; color: var(--text); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.reqs { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin-top: 22px; font-size: 0.9375rem; }
.reqs li { display: inline-flex; align-items: center; gap: 7px; }
.reqs svg { width: 18px; height: 18px; color: var(--green); }

/* ---------- Demo frame ---------- */
.demo { margin-top: clamp(36px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.device {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(106, 53, 224, 0.45), 0 30px 60px -30px rgba(23, 20, 42, 0.35);
  overflow: hidden;
}
:root[data-theme="dark"] .device { box-shadow: 0 0 0 1px #3a3263, 0 50px 120px -40px rgba(155, 120, 251, 0.4), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.screen { position: relative; width: 100%; aspect-ratio: 1280 / 780; overflow: hidden; }

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  list-style: none; margin: 22px 0 0;
}
.steps li {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; color: var(--muted); font-size: 0.975rem; line-height: 1.35;
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.steps li::before {
  content: attr(data-n);
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); color: var(--violet); font-family: var(--display); font-weight: 800; font-size: 0.875rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.steps kbd { font-size: 0.78em; padding: 0 0.35em; margin: 0 1px; }
.steps li[aria-current="step"] { color: var(--ink); box-shadow: inset 0 0 0 2px var(--violet); transform: translateY(-2px); }
.steps li[aria-current="step"]::before { background: var(--brand); color: #fff; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--violet-soft); }

.demo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.pick-label { font-weight: 600; color: var(--ink); font-size: 0.9375rem; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tabs button, .demo-pause {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.demo-tabs button:hover, .demo-pause:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--violet); }
.demo-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; box-shadow: none; }
.demo-pause { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.demo-pause svg { width: 14px; height: 14px; }
.demo-caption { margin-top: 14px; color: var(--muted); font-size: 0.975rem; min-height: 1.6em; }

/* ============================================================
   Stage: a fixed 1280 × 780 browser, scaled with --s by demo.js.
   Everything inside uses its own light palette (web pages are light).
   ============================================================ */
.stage {
  --s: 1;
  position: absolute; left: 0; top: 0; width: 1280px; height: 780px;
  transform: scale(var(--s)); transform-origin: 0 0;
  font-family: var(--sys); font-size: 15px; line-height: 1.45; color: #1f1d2b;
  background: #fff; overflow: hidden; user-select: none;
}
.stage.paused *, .stage.paused *::before, .stage.paused *::after { animation-play-state: paused !important; }
.stage.instant *, .stage.instant *::before, .stage.instant *::after { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
.stage p { margin: 0; }

.chrome { position: absolute; inset: 0 0 auto 0; height: 92px; background: #ebe8f2; z-index: 5; }
.tabs { display: flex; align-items: flex-end; height: 44px; padding: 0 12px 0 84px; gap: 4px; }
.lights { position: absolute; left: 18px; top: 16px; display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tab {
  display: flex; align-items: center; gap: 8px; width: 240px; height: 36px; padding: 0 14px;
  border-radius: 10px 10px 0 0; font-size: 13px; color: #4b4760; white-space: nowrap; overflow: hidden;
}
.tab.on { background: #fff; color: #1f1d2b; }
.tab .fav { width: 16px; height: 16px; border-radius: 4px; background: #c9c3da; flex: none; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; }
.toolbar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: #fff; border-bottom: 1px solid #e6e2ee; }
.nav-b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #8a859c; }
.nav-b svg { width: 18px; height: 18px; }
.url {
  flex: 1; height: 34px; border-radius: 999px; background: #f1eff6; display: flex; align-items: center; gap: 10px;
  padding: 0 16px; font-size: 14px; color: #3c3850;
}
.url svg { width: 14px; height: 14px; color: #8a859c; }
.url .host { color: #1f1d2b; }
.url .path { color: #8a859c; }
.ext { display: flex; align-items: center; gap: 6px; margin-left: 4px; }
.ext .puzzle { width: 30px; height: 30px; display: grid; place-items: center; color: #6b6680; }
.ext .puzzle svg { width: 18px; height: 18px; }
.ext .pl-ico { position: relative; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; transition: background 0.15s ease; }
.ext .pl-ico img { width: 22px; height: 22px; }
.ext .pl-ico.hot { background: #ece6ff; }
.ext .pl-ico .bdg {
  position: absolute; right: -3px; bottom: -2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #0f9f6e; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform 0.3s cubic-bezier(.3,1.6,.5,1);
}
.ext .pl-ico .bdg.on { transform: scale(1); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #ffb199, #fb6a4a); margin-left: 6px; }

.page { position: absolute; left: 0; right: 0; top: 92px; bottom: 0; overflow: hidden; background: #fff; }

/* Cursor */
.cursor {
  position: absolute; left: 0; top: 0; z-index: 40; width: 26px; height: 34px; pointer-events: none;
  transform: translate(900px, 600px);
  transition-property: transform; transition-timing-function: cubic-bezier(.45,.05,.25,1);
}
.cursor svg { width: 26px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.cursor::after {
  content: ""; position: absolute; left: -14px; top: -14px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(127, 79, 242, 0.35); transform: scale(0); opacity: 0;
}
.cursor.click::after { animation: ripple 0.45s ease-out; }
@keyframes ripple { 0% { transform: scale(0.2); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.stage.instant .cursor { display: none; }

/* Keys overlay */
.keys { position: absolute; left: 50%; bottom: 40px; z-index: 45; display: flex; gap: 10px; transform: translateX(-50%); pointer-events: none; }
.keys span {
  min-width: 64px; height: 64px; padding: 0 18px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(23, 20, 42, 0.86); color: #fff; font-size: 24px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: keyin 0.25s ease both;
}
@keyframes keyin { from { transform: translateY(10px) scale(.9); opacity: 0; } }

/* Shared Plied UI inside the stage */
.pl { font-family: var(--sys); color: #1f1d2b; }
.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 10px;
  background: linear-gradient(135deg, #7f4ff2, #6a35e0); color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 16px -8px rgba(106,53,224,.8); transition: background 0.2s ease, transform 0.1s ease;
}
.pl-btn.ghost { background: #fff; color: #3c3850; box-shadow: inset 0 0 0 1px #ded8ec; }
.pl-btn.ok { background: #0f9f6e; box-shadow: none; }
.pl-btn.press { transform: scale(0.96); }
.pl-btn svg { width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #ece6ff; color: #5827bd; }
.chip.green { background: #e6f8f0; color: #0b7a55; }
.chip.amber { background: #fff3d6; color: #9a5f00; }
.chip.coral { background: #ffe9e3; color: #c2401f; }
.chip.blue { background: #e4f1ff; color: #1b5fae; }
.chip.gray { background: #f0eef5; color: #5c576f; }

.pop {
  position: absolute; z-index: 20; right: 40px; top: 4px; width: 372px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(23,20,42,.08), 0 24px 60px -16px rgba(23,20,42,.35);
  transform-origin: 92% 0; transform: scale(.94) translateY(-6px); opacity: 0; pointer-events: none;
  transition: transform 0.22s cubic-bezier(.2,.9,.3,1.2), opacity 0.18s ease;
}
.pop.on { transform: none; opacity: 1; }
.pop-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #f0edf6; }
.pop-h img { width: 26px; height: 26px; }
.pop-h b { font-size: 15px; }
.pop-h .chip { margin-left: auto; }
.pop-b { padding: 12px 16px 16px; display: grid; gap: 10px; }
.fld { display: grid; gap: 4px; }
.fld label { font-size: 12px; font-weight: 600; color: #7a7391; }
.fld .in {
  height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px #e3deee; padding: 7px 10px; font-size: 14px; color: #1f1d2b;
  white-space: nowrap; overflow: hidden; transition: box-shadow 0.2s ease;
}
.fld .in.fill { box-shadow: inset 0 0 0 2px #bba6ff; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pop-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.pop-f small { font-size: 12px; color: #8a859c; }
.pop-f small kbd { font-size: 11px; box-shadow: inset 0 0 0 1px #ded8ec; background: #faf9fc; color: #3c3850; }

.toast {
  position: absolute; z-index: 25; right: 24px; bottom: 24px; width: 380px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(23,20,42,.08), 0 24px 60px -16px rgba(23,20,42,.4);
  transform: translateY(24px); opacity: 0; transition: transform 0.35s cubic-bezier(.2,.9,.3,1.15), opacity 0.25s ease;
}
.toast.on { transform: none; opacity: 1; }
.toast .t-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e6f8f0; color: #0f9f6e; }
.toast .t-ico svg { width: 20px; height: 20px; }
.toast .t-ico img { width: 34px; height: 34px; }
.toast b { display: block; font-size: 14.5px; }
.toast > div > span { display: block; font-size: 13px; color: #6b6680; }
.toast .t-act { display: flex; gap: 8px; margin-top: 10px; }
.toast .t-act .pl-btn { height: 30px; padding: 0 12px; font-size: 13px; }
.toast.brandbar::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: linear-gradient(#7f4ff2, #fb6a4a); }

.side {
  position: absolute; z-index: 15; top: 0; right: 0; bottom: 0; width: 400px; background: #fbfaff; border-left: 1px solid #e6e2ee;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(.2,.9,.25,1);
  display: flex; flex-direction: column;
}
.side.on { transform: none; }
.side-h { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid #ece8f4; background: #fff; }
.side-h img { width: 24px; height: 24px; }
.side-h b { font-size: 15px; }
.side-h .x { margin-left: auto; color: #a29db3; font-size: 18px; }
.side-b { padding: 18px; display: grid; gap: 14px; align-content: start; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px #ece8f4, 0 6px 18px -12px rgba(23,20,42,.25); padding: 14px 16px; }

/* Generic page parts */
.site-h { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 40px; border-bottom: 1px solid #eee; }
.logo-sq { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.site-h b { font-size: 17px; }
.site-h nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; color: #6b6680; }
.ln { height: 10px; border-radius: 5px; background: #ecebf1; }
.ln.w90 { width: 90%; } .ln.w80 { width: 80%; } .ln.w70 { width: 70%; } .ln.w60 { width: 60%; } .ln.w50 { width: 50%; } .ln.w40 { width: 40%; }
.lines { display: grid; gap: 12px; }

/* Scene: job page */
.job { padding: 34px 40px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.job-k { font-size: 14px; color: #0e7c86; font-weight: 600; }
.job h1, .job-title { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; margin: 6px 0 10px; color: #14121f; line-height: 1.15; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: #5c576f; }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 15px; height: 15px; }
.site-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 10px; background: #0e7c86; color: #fff; font-weight: 600; margin-top: 20px; }
.job h4 { font-size: 16px; font-weight: 700; margin: 26px 0 12px; color: #14121f; }
.aside-box { border-radius: 14px; background: #f7f6fa; padding: 20px; display: grid; gap: 12px; font-size: 14px; color: #5c576f; align-content: start; }
.aside-box b { color: #1f1d2b; display: block; font-size: 13px; }

.plb { /* in-page Plied badge (shadow root in the real extension) */
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 12px;
  background: #faf8ff; box-shadow: inset 0 0 0 1px #e3daff; width: fit-content; max-width: 100%;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.plb.on { opacity: 1; transform: none; }
.plb img { width: 20px; height: 20px; }
.plb .chip { height: 26px; font-size: 13px; padding: 0 11px; }
.plb a { font-size: 13px; color: #6a35e0; font-weight: 600; text-decoration: none; margin-left: 4px; }

/* Scene: ATS */
.ats { max-width: 760px; margin: 0 auto; padding: 34px 40px; }
.ats-top { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #6b6680; }
.ats h2 { font-size: 28px; font-weight: 750; margin: 14px 0 4px; color: #14121f; letter-spacing: -0.01em; }
.ats .sub { color: #6b6680; font-size: 15px; }
.form { display: grid; gap: 14px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .f label { display: block; font-size: 13px; font-weight: 600; color: #3c3850; margin-bottom: 6px; }
.form .f .v { height: 42px; border-radius: 10px; border: 1px solid #dcd8e6; padding: 10px 12px; font-size: 14.5px; color: #3c3850; }
.form .file { display: flex; align-items: center; gap: 10px; height: 52px; border-radius: 10px; border: 1px dashed #c9c3da; padding: 0 14px; font-size: 14px; color: #3c3850; }
.form .file i { width: 28px; height: 32px; border-radius: 4px; background: #ffe9e3; display: block; }
.form .big { height: 92px !important; }
.ats .submit { display: inline-flex; align-items: center; justify-content: center; height: 46px; width: 200px; border-radius: 10px; background: #2f6fe4; color: #fff; font-weight: 600; margin-top: 8px; transition: transform .1s; }
.ats .submit.press { transform: scale(.96); }
.thanks { display: none; text-align: center; padding-top: 90px; }
.thanks .tk { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: #e7f0ff; color: #2f6fe4; animation: pop 0.45s cubic-bezier(.3,1.6,.5,1) both; }
.thanks .tk svg { width: 40px; height: 40px; }
.thanks h2 { font-size: 34px; }
.thanks p { color: #6b6680; font-size: 16px; margin-top: 10px; }
.ats.sent .apply-form { display: none; }
.ats.sent .thanks { display: block; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

/* Scene: job board with list */
.board-site { display: grid; grid-template-columns: 430px 1fr; height: calc(100% - 64px); }
.results { border-right: 1px solid #eee; padding: 14px; display: grid; gap: 10px; align-content: start; background: #fafafc; }
.search { display: flex; align-items: center; gap: 10px; height: 42px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e3deee; padding: 0 14px; font-size: 14px; color: #3c3850; }
.search svg { width: 16px; height: 16px; color: #8a859c; }
.res { position: relative; display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #ece9f2; transition: box-shadow .2s; }
.res.sel { box-shadow: inset 0 0 0 2px #1b6bd8; }
.res .logo-sq { width: 42px; height: 42px; font-size: 13px; flex: none; }
.res b { display: block; font-size: 15px; color: #14121f; }
.res span { display: block; font-size: 13.5px; color: #6b6680; }
.res small { display: block; font-size: 12.5px; color: #8a859c; margin-top: 4px; }
.res .dotmark {
  position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 6px; border-radius: 999px;
  background: #ece6ff; color: #5827bd; font-size: 11.5px; font-weight: 700; transform: scale(0); transition: transform 0.3s cubic-bezier(.3,1.6,.5,1);
}
.res .dotmark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #7f4ff2, #fb6a4a); }
.res .dotmark.on { transform: scale(1); }
.detail { padding: 28px 34px; }
.detail .job-title { font-size: 28px; }
.detail .site-btn { background: #1b6bd8; border-radius: 999px; }
.detail-empty { height: 100%; display: grid; place-items: center; color: #a29db3; font-size: 15px; }

/* Scene: ghost check */
.ring { position: relative; width: 132px; height: 132px; margin: 4px auto 0; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .bg { stroke: #f0edf6; }
.ring .fg { stroke: url(#ghostGrad); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.4s cubic-bezier(.3,.7,.2,1); }
.ring .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .num b { font-size: 34px; font-weight: 800; color: #14121f; line-height: 1; }
.ring .num small { font-size: 12px; color: #8a859c; }
.ghost-l { text-align: center; margin-top: 10px; }
.ghost-l .chip { height: 28px; font-size: 13.5px; padding: 0 12px; }
.reasons { display: grid; gap: 8px; list-style: none; }
.reasons li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3c3850; padding: 10px 12px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #f0edf6;
  opacity: 0; transform: translateX(14px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.reasons li.on { opacity: 1; transform: none; }
.reasons li i { flex: none; margin-top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff3d6; color: #9a5f00; font-style: normal; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.reasons li em { margin-left: auto; font-style: normal; font-weight: 700; color: #9a5f00; font-size: 13px; }
.disclaimer { font-size: 12.5px; color: #8a859c; }

/* Scene: inbox */
.mail-ui { display: grid; grid-template-columns: 210px 1fr; height: 100%; }
.mail-nav { padding: 18px 14px; display: grid; gap: 6px; align-content: start; font-size: 14px; color: #3c3850; background: #f8f7fb; }
.mail-nav .compose { height: 48px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); display: flex; align-items: center; padding: 0 18px; font-weight: 600; margin-bottom: 10px; }
.mail-nav span { padding: 6px 12px; border-radius: 999px; }
.mail-nav span.on { background: #e8e3f7; font-weight: 700; }
.mail-list { position: relative; padding: 10px 0; }
.mrow { display: grid; grid-template-columns: 190px 1fr 70px; gap: 16px; align-items: center; height: 48px; padding: 0 22px; border-bottom: 1px solid #f1eff5; font-size: 14px; color: #3c3850; white-space: nowrap; transition: background 0.3s ease; }
.mrow b { font-weight: 700; color: #14121f; overflow: hidden; text-overflow: ellipsis; }
.mrow .subj { overflow: hidden; text-overflow: ellipsis; }
.mrow .subj strong { color: #14121f; }
.mrow .subj span { color: #8a859c; }
.mrow .dt { text-align: right; font-size: 12.5px; color: #6b6680; }
.mrow.hit { background: #f4efff; }
.scanbar { position: absolute; left: 0; right: 0; top: 10px; height: 48px; background: linear-gradient(90deg, rgba(127,79,242,0), rgba(127,79,242,.14), rgba(251,106,74,.12), rgba(127,79,242,0)); border-top: 2px solid rgba(127,79,242,.5); opacity: 0; pointer-events: none; transition: transform 1.6s linear, opacity .2s; }
.sugg { display: grid; gap: 8px; }
.sugg .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b6680; }
.sugg b { font-size: 14.5px; }
.sugg .acts { display: flex; gap: 8px; }
.sugg .acts .pl-btn { height: 32px; font-size: 13px; padding: 0 14px; }
.sugg .done { display: none; align-items: center; gap: 6px; color: #0b7a55; font-weight: 600; font-size: 14px; }
.sugg.applied .acts { display: none; }
.sugg.applied .done { display: flex; animation: keyin .3s ease both; }
.sugg { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.sugg.on { opacity: 1; transform: none; }

/* Scene: dashboard board */
.dash { padding: 22px 30px; background: #fbfaff; height: 100%; }
.dash-h { display: flex; align-items: center; gap: 12px; }
.dash-h img { width: 34px; height: 34px; }
.dash-h h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; background: linear-gradient(100deg, #7f4ff2, #fb6a4a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-h .pl-btn { margin-left: auto; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #ece8f4; }
.kpi i { width: 38px; height: 38px; border-radius: 10px; display: block; background: linear-gradient(135deg, #7f4ff2, #6a35e0); }
.kpi:nth-child(2) i { background: linear-gradient(135deg, #b48cff, #fb6a4a); }
.kpi:nth-child(3) i { background: linear-gradient(135deg, #ffb547, #fb6a4a); }
.kpi:nth-child(4) i { background: linear-gradient(135deg, #34d399, #0f9f6e); }
.kpi b { display: block; font-size: 22px; line-height: 1.1; }
.kpi span { font-size: 13px; color: #6b6680; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.col { background: #f3f1f8; border-radius: 14px; padding: 10px; min-height: 420px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s; }
.col.drop { box-shadow: inset 0 0 0 2px #9b78fb; background: #f1ecff; }
.col-h { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; font-size: 13px; color: #6b6680; }
.jc { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px #ece8f4, 0 3px 10px -6px rgba(23,20,42,.2); padding: 12px; display: grid; gap: 4px; }
.jc .top { display: flex; gap: 10px; align-items: center; }
.jc .mono { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.jc b { font-size: 14px; line-height: 1.25; display: block; }
.jc span { font-size: 12.5px; color: #6b6680; }
.jc .meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.jc.lift { position: absolute; z-index: 30; box-shadow: 0 0 0 2px #9b78fb, 0 24px 40px -14px rgba(23,20,42,.45); transform: rotate(-2.5deg); pointer-events: none; transition-property: left, top; transition-timing-function: cubic-bezier(.45,.05,.25,1); }
.jc.ghosted { opacity: .35; }
.notif {
  position: absolute; z-index: 35; right: 16px; top: 12px; width: 360px; display: flex; gap: 12px; padding: 14px; border-radius: 16px;
  background: rgba(250,249,253,.97); box-shadow: 0 0 0 1px rgba(23,20,42,.08), 0 24px 50px -16px rgba(23,20,42,.4);
  transform: translateX(120%); transition: transform 0.45s cubic-bezier(.2,.9,.25,1);
}
.notif.on { transform: none; }
.notif img { width: 38px; height: 38px; flex: none; }
.notif b { display: block; font-size: 14px; }
.notif span { display: block; font-size: 13px; color: #5c576f; }
.notif small { position: absolute; right: 14px; top: 12px; font-size: 11.5px; color: #8a859c; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .section-lede { margin-inline: auto; }

/* Pain strip */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.pain { padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.pain .q { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); line-height: 1.3; }
.pain p { margin-top: 10px; font-size: 0.98rem; }
.pain .a { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: 0.92rem; color: var(--violet); }
.pain .a svg { width: 16px; height: 16px; }

/* Features */
.features { display: grid; gap: clamp(56px, 8vw, 110px); margin-top: 56px; }
.feat { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feat:nth-child(even) .feat-copy { order: 2; }
.feat-copy h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.12; letter-spacing: -0.03em; margin-top: 10px; }
.feat-copy p { margin-top: 14px; }
.feat-copy ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.feat-copy li { display: flex; gap: 10px; align-items: flex-start; }
.feat-copy li svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--violet); }
.pro-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: 2px; background: var(--violet-soft); color: var(--violet); font-family: var(--body); letter-spacing: 0; }
.feat-demo {
  position: relative; border-radius: 26px; padding: clamp(18px, 3.5vw, 40px); min-height: 340px; display: grid; place-items: center;
  background:
    radial-gradient(70% 80% at 85% 0%, rgba(251, 106, 74, 0.14), transparent 70%),
    radial-gradient(70% 80% at 0% 100%, rgba(127, 79, 242, 0.18), transparent 70%),
    var(--tint);
  overflow: hidden;
}
.mock { width: 100%; max-width: 480px; border-radius: 18px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(23, 20, 42, 0.35); font-size: 0.92rem; }
.mock-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.mock-h img { width: 22px; height: 22px; }
.mock-h .chip { margin-left: auto; }
.mock-b { padding: 16px 18px 18px; display: grid; gap: 10px; }
.reveal .mock-b > * { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.in .mock-b > * { opacity: 1; transform: none; }
.reveal.in .mock-b > *:nth-child(2) { transition-delay: 0.12s; }
.reveal.in .mock-b > *:nth-child(3) { transition-delay: 0.24s; }
.reveal.in .mock-b > *:nth-child(4) { transition-delay: 0.36s; }
.reveal.in .mock-b > *:nth-child(5) { transition-delay: 0.48s; }
.reveal.in .mock-b > *:nth-child(6) { transition-delay: 0.6s; }
.reveal.in .mock-b > *:nth-child(7) { transition-delay: 0.72s; }

/* Teach a site */
.teach { width: 100%; max-width: 480px; border-radius: 16px; background: #fff; color: #1f1d2b; padding: 22px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(23,20,42,.35); }
.teach .tgt { position: relative; display: block; width: fit-content; padding: 2px 4px; margin: 0 -4px; border-radius: 6px; }
.teach .tgt::after { content: ""; position: absolute; inset: -3px; border: 2px dashed #7f4ff2; border-radius: 8px; background: rgba(127,79,242,.06); opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .3s; }
.teach .tgt .lab { position: absolute; left: 100%; top: 50%; margin-left: 10px; transform: translateY(-50%) scale(.8); white-space: nowrap; padding: 2px 9px; border-radius: 999px; background: linear-gradient(135deg, #7f4ff2, #6a35e0); color: #fff; font: 600 11.5px var(--sys); opacity: 0; transition: opacity .3s, transform .3s; }
.teach.in .tgt::after, .teach.in .tgt .lab { opacity: 1; }
.teach.in .tgt::after { transform: none; }
.teach.in .tgt .lab { transform: translateY(-50%); }
.teach.in .tgt:nth-of-type(2)::after, .teach.in .tgt:nth-of-type(2) .lab { transition-delay: .5s; }
.teach.in .tgt:nth-of-type(3)::after, .teach.in .tgt:nth-of-type(3) .lab { transition-delay: 1s; }
.teach.in .tgt:nth-of-type(4)::after, .teach.in .tgt:nth-of-type(4) .lab { transition-delay: 1.5s; }
.teach .t1 { font-size: 22px; font-weight: 750; }
.teach .t2 { font-size: 15px; color: #0e7c86; font-weight: 600; margin-top: 8px; }
.teach .t3 { font-size: 14px; color: #6b6680; margin-top: 6px; }
.teach .lines { margin-top: 18px; }

/* Rounds */
.round { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.round .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); font-weight: 800; font-size: 0.85rem; }
.round b { display: block; color: var(--ink); font-size: 0.95rem; }
.round span { font-size: 0.83rem; color: var(--muted); }
.round.next { box-shadow: inset 0 0 0 2px var(--violet); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: var(--green-soft); }
.offer span { font-size: 0.78rem; color: var(--muted); display: block; }
.offer b { color: var(--ink); font-size: 0.95rem; }

/* Generic chips for site sections */
.chip-s { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--violet-soft); color: var(--violet); }
.chip-s.green { background: var(--green-soft); color: var(--green); }
.chip-s.amber { background: var(--amber-soft); color: var(--amber); }
.chip-s.coral { background: var(--coral-soft); color: var(--coral); }

/* Follow-ups */
.fu { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.fu img { width: 32px; height: 32px; }
.fu b { color: var(--ink); display: block; font-size: 0.95rem; }
.fu span { font-size: 0.86rem; color: var(--muted); }
.mailbox { border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; font-size: 0.88rem; }
.mailbox .to { color: var(--muted); font-size: 0.8rem; }
.mailbox .body { margin-top: 6px; color: var(--ink); min-height: 4.8em; white-space: pre-line; }
.mailbox .body::after { content: "|"; color: var(--violet); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Insights */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 0.86rem; }
.bar span { color: var(--text); }
.bar i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #7f4ff2, #fb6a4a); width: 0; transition: width 1.1s cubic-bezier(.3,.7,.2,1); }
.bar b { color: var(--ink); text-align: right; }
.reveal.in .bar i { width: var(--w); }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; align-items: end; height: 120px; margin-top: 4px; }
.funnel div { position: relative; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #9b78fb, #6a35e0); height: 0; transition: height 1s cubic-bezier(.3,.7,.2,1); }
.funnel div:nth-child(2) { transition-delay: .1s; }
.funnel div:nth-child(3) { transition-delay: .2s; background: linear-gradient(180deg, #ff9a80, #fb6a4a); }
.funnel div:nth-child(4) { transition-delay: .3s; background: linear-gradient(180deg, #34d399, #0f9f6e); }
.reveal.in .funnel div { height: var(--h); }
.funnel-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 0.78rem; color: var(--muted); text-align: center; }
.funnel-l b { display: block; color: var(--ink); font-size: 0.95rem; }

/* Work-search log */
.wlog { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.wlog th { text-align: left; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wlog td { padding: 8px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.wlog tbody tr { opacity: 0; transform: translateX(-8px); transition: opacity .35s ease, transform .35s ease; }
.reveal.in .wlog tbody tr { opacity: 1; transform: none; }
.reveal.in .wlog tbody tr:nth-child(2) { transition-delay: .25s; }
.reveal.in .wlog tbody tr:nth-child(3) { transition-delay: .5s; }
.reveal.in .wlog tbody tr:nth-child(4) { transition-delay: .75s; }
.wlog-scroll { overflow-x: auto; }
.wlog-f { display: flex; gap: 8px; justify-content: flex-end; }
.mini-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 0.82rem; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); background: var(--surface); }
.mini-btn.primary { background: var(--brand); color: #fff; box-shadow: none; }
.mini-btn svg { width: 14px; height: 14px; }

/* Data / files */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.file-c { border-radius: 14px; padding: 12px 8px; text-align: center; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.file-c .ext-b { width: 46px; height: 56px; margin: 0 auto 10px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 8px; color: #fff; font-weight: 800; font-size: 0.72rem; background: linear-gradient(160deg, #9b78fb, #6a35e0); }
.file-c:nth-child(2) .ext-b { background: linear-gradient(160deg, #34d399, #0f9f6e); }
.file-c:nth-child(3) .ext-b { background: linear-gradient(160deg, #ffb199, #fb6a4a); }
.file-c b { display: block; color: var(--ink); font-size: 0.86rem; line-height: 1.3; }
.file-c span { font-size: 0.78rem; color: var(--muted); }
.reveal.in .file-c { animation: float 3.4s ease-in-out infinite; }
.reveal.in .file-c:nth-child(2) { animation-delay: .4s; }
.reveal.in .file-c:nth-child(3) { animation-delay: .8s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.lockline { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.86rem; }
.lockline svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* Sites */
.sites { margin-top: 44px; display: grid; gap: 26px; }
.site-group h3 { font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink); }
.site-group p { font-size: 0.95rem; color: var(--muted); margin-top: 2px; }
.site-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 12px; }
.site-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.site-list.soon li { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed transparent; }
.site-list.any li { background: var(--violet-soft); color: var(--violet); box-shadow: none; }

/* Languages */
.lang-grid { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 28px; }
.lang-grid li { padding: 8px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.95rem; color: var(--ink); }
.lang-grid li small { color: var(--muted); margin-left: 6px; }

/* Privacy band */
.privacy { background: var(--band); color: var(--band-text); border-radius: clamp(24px, 4vw, 40px); padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(251,106,74,.35), transparent 65%); }
.privacy::after { content: ""; position: absolute; left: -140px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(127,79,242,.45), transparent 65%); }
.privacy > * { position: relative; z-index: 1; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); }
.privacy .section-h { color: #fff; }
.privacy .eyebrow { color: #ffb199; }
.privacy .big { margin-top: 18px; font-size: 1.15rem; }
.privacy .big a { color: #fff; }
.spec { margin: 0; display: grid; gap: 0; }
.spec div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.spec dt { font-weight: 600; color: #fff; }
.spec dd { margin: 0; font-size: 0.97rem; }

/* Pricing */
.beta-note { display: flex; gap: 14px; align-items: center; max-width: 760px; margin: 34px auto 0; padding: 16px 20px; border-radius: 18px; background: var(--green-soft); color: var(--ink); }
.beta-note svg { width: 26px; height: 26px; color: var(--green); flex: none; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 28px auto 0; }
.plan { border-radius: 26px; padding: 30px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--violet), 0 30px 60px -30px rgba(106,53,224,.5); position: relative; }
.plan h3 { font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.plan .price { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 2.8rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan .sum { margin-top: 10px; font-size: 0.97rem; }
.plan ul { list-style: none; margin-top: 20px; display: grid; gap: 9px; font-size: 0.97rem; }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--violet); }
.plan .fine { margin-top: auto; padding-top: 20px; font-size: 0.86rem; color: var(--muted); }
.plan .ribbon { position: absolute; top: 22px; right: 22px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(28px, 5vw, 72px); }
.faq-side p { margin-top: 14px; }
.support-card { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; }
.support-card span { font-size: 0.85rem; color: var(--muted); }
.support-card a { font-weight: 700; color: var(--violet); text-decoration: none; }
.faq-list { display: grid; gap: 10px; }
details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
details[open] { box-shadow: inset 0 0 0 1px var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 20px 18px; }
details p + p { margin-top: -6px; }

/* CTA */
.cta-in { text-align: center; padding: clamp(44px, 7vw, 88px) var(--gutter); border-radius: clamp(24px, 4vw, 40px); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.cta-in::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 0%, rgba(127,79,242,.16), transparent 70%), radial-gradient(40% 50% at 100% 100%, rgba(251,106,74,.14), transparent 70%); }
.cta-in > * { position: relative; }
.cta-in img { margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(106,53,224,.4)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.cta-in h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.035em; margin: 24px auto 26px; max-width: 18ch; }
.cta-note { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Footer */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); margin-top: clamp(64px, 9vw, 120px); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin-left: auto; }
.foot ul a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.foot ul a:hover { color: var(--violet); }
.foot p { width: 100%; font-size: 0.88rem; color: var(--muted); }

/* ---------- Document pages (privacy, terms, refunds, changelog) ---------- */
.doc { padding: clamp(36px, 6vw, 72px) 0 0; }
.doc-in { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.035em; }
.doc .updated { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.doc .intro { margin-top: 24px; font-size: 1.15rem; color: var(--ink); }
.doc h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc h3 { font-family: var(--display); font-weight: 700; font-size: 1.12rem; margin: 26px 0 8px; }
.doc p { margin: 12px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc a { color: var(--violet); }
.doc code { font-family: var(--mono); font-size: 0.88em; background: var(--tint); padding: 1px 6px; border-radius: 6px; color: var(--ink); }
.doc .box { margin: 24px 0; padding: 18px 20px; border-radius: 16px; background: var(--tint); color: var(--ink); }
.doc .box p { margin: 0; }
.doc .toc { margin-top: 24px; padding: 16px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.doc .toc b { color: var(--ink); }
.doc .toc ol { margin: 8px 0 0; gap: 4px; }
.release { padding: 28px 0; border-bottom: 1px solid var(--line); }
.release h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.release h2 time { font-family: var(--body); font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page img { margin: 0 auto 24px; }
.center-page .steps-list { text-align: left; max-width: 520px; margin: 24px auto 0; }

/* ---------- Scroll reveal for sections ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav nav { display: none; }
  .nav nav + .theme-toggle { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .feat, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat-copy { order: 0; }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:not([aria-current="step"]) { display: none; }
  .plans { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .files { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .demo-pause { margin-left: 0; }
  .nav .btn-small { padding: 8px 14px; }
  .foot ul { margin-left: 0; }
  .bar { grid-template-columns: 86px 1fr 40px; }
}
@media (max-width: 420px) {
  .nav .btn-small span.long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; transition-delay: 0s !important; }
}
