/* DivPic landing page. Palette comes from the DivPic icon tiles. */
/* Self-hosted Inter and Inter Tight (variable, latin subset), so text doesn't wait on a third-party stylesheet. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff;
  --ink: #0e0e10;
  --ink-2: #4a4d55;
  --line: #e6e6ea;
  --soft: #f4f4f6;
  --tile-blue: #3b82f6;
  --tile-yellow: #fbbf24;
  --tile-red: #f2555a;
  --tile-green: #22c55e;
  --violet: #7c6cf6;
  --blue-ink: #1d5fd6;
  --violet-ink: #5646d6;
  --green-ink: #15803d;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --panel-blue: #d7e6ff;
  --panel-yellow: #ffefc2;
  --panel-red: #ffd9da;
  --panel-green: #d2f5df;
  --panel-violet: #e6e1ff;
  --panel-ink: #0e0e10;
  --on-panel: #0e0e10;
  --btn-bg: #0e0e10;
  --btn-ink: #ffffff;
  --radius-xl: 32px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0c0e;
    --ink: #f3f3f5;
    --ink-2: #a8abb4;
    --line: #26272c;
    --soft: #17171a;
    --panel-blue: #16264a;
    --panel-yellow: #3a2e0c;
    --panel-red: #3d1a1c;
    --panel-green: #0f3320;
    --panel-violet: #241e4d;
    --panel-ink: #f3f3f5;
    --on-panel: #f3f3f5;
    --btn-bg: #f3f3f5;
    --btn-ink: #0e0e10;
    --blue-ink: #7fb0ff;
    --violet-ink: #a99dff;
    --green-ink: #4ade80;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tile-blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-right: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: transform .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.solid { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn.sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Get DivPic dropdown */
.get-menu { position: relative; margin-left: auto; }
.get-menu .chev { width: 16px; height: 16px; margin-right: -4px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.get-menu button[aria-expanded="true"] .chev { transform: rotate(180deg); }
.get-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); width: 280px; padding: 6px; z-index: 30;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -14px rgba(14, 14, 16, .35);
  animation: menu-in .15s var(--ease);
}
.get-menu-list[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } }
.get-menu-list a, .get-menu-list .soon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.get-menu-list a:hover, .get-menu-list a:focus-visible { background: var(--soft); outline: none; }
.get-menu-list img { width: 24px; height: 24px; flex: none; }
.get-menu-list span { display: grid; line-height: 1.3; }
.get-menu-list strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.get-menu-list small { font-size: 13px; color: var(--ink-2); }
.get-menu-list .soon { cursor: default; }
.get-menu-list .soon img, .get-menu-list .soon strong { opacity: .55; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  background: var(--soft); border: 1px solid var(--line); margin-bottom: 28px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--tile-green); }
h1, h2, h3 { font-family: "Inter Tight", "Inter", sans-serif; letter-spacing: -0.035em; margin: 0; }
.hero h1 {
  font-size: clamp(44px, 8vw, 96px); line-height: .95; font-weight: 700;
  white-space: nowrap; margin: 0 auto;
}
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; inset: 4% -2% 2%; z-index: -1;
  border: 2px solid var(--tile-blue); background: color-mix(in srgb, var(--tile-blue) 12%, transparent);
}
.hero .lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 760px; text-wrap: balance; margin: 28px auto 36px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.platforms { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

/* Hero stage: a browser showing a made-up dashboard ("Lumen") you can inspect */
.stage { position: relative; margin: 64px auto 0; max-width: 1080px; }
.browser {
  border-radius: 16px; border: 1px solid var(--line); background: var(--soft);
  box-shadow: 0 40px 100px -40px rgba(20, 20, 40, .45), 0 0 0 1px color-mix(in srgb, var(--ink) 4%, transparent);
  overflow: hidden; text-align: left; font-size: 13px;
}
.browser svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bw-top { display: flex; align-items: flex-end; gap: 4px; padding: 10px 12px 0; }
.bw-dots { display: flex; gap: 7px; padding: 0 10px 12px 4px; }
.bw-dots i { width: 11px; height: 11px; border-radius: 50%; }
.bw-dots i:nth-child(1) { background: #ff5f57; } .bw-dots i:nth-child(2) { background: #febc2e; } .bw-dots i:nth-child(3) { background: #28c840; }
.bw-tab { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 10px 10px 0 0; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.bw-tab.on { background: var(--bg); color: var(--ink); min-width: 190px; }
.bw-tab .x { margin-left: auto; color: var(--ink-2); font-size: 14px; }
.fav { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #6d5efc, #3b82f6); }
.fav.alt { background: linear-gradient(135deg, #22c55e, #0ea5e9); }
.bw-plus { color: var(--ink-2); padding: 0 8px 9px; font-size: 16px; }
.bw-bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg); border-bottom: 1px solid var(--line); }
.bw-nav { display: flex; gap: 10px; color: var(--ink-2); }
.bw-nav svg { width: 15px; height: 15px; }
.bw-url { flex: 1; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12.5px; }
.bw-url svg { width: 12px; height: 12px; color: var(--ink-2); }
.bw-url em { font-style: normal; color: var(--ink-2); }
.bw-ext { display: flex; align-items: center; gap: 10px; }
.bw-ext img { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tile-blue) 45%, transparent); }
.bw-avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f2555a, #fbbf24); }

/* The fake app */
.page.app { display: grid; grid-template-columns: 176px minmax(0, 1fr); background: var(--bg); min-height: 440px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 55%, var(--bg)); }
.app-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 14px; font-weight: 700; font-size: 14px; }
.app-mark { width: 20px; height: 20px; border-radius: 6px; background: conic-gradient(from 200deg, #6d5efc, #3b82f6, #22c55e, #6d5efc); }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--ink-2); font-weight: 500; }
.app-nav svg { width: 15px; height: 15px; }
.app-nav.on { background: var(--soft); color: var(--ink); }
.app-upgrade { margin-top: auto; display: grid; gap: 2px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.app-upgrade span { color: var(--ink-2); font-size: 12px; }
.app-mini-btn { margin-top: 8px; justify-self: start; padding: 4px 10px; border-radius: 6px; background: var(--ink); color: var(--bg) !important; font-weight: 600; }
.app-main { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px 68px; }
.app-head { display: flex; align-items: center; gap: 12px; }
.app-head > div { display: grid; margin-right: auto; }
.app-title { font-size: 17px; letter-spacing: -0.01em; }
.app-sub, .app-label { color: var(--ink-2); font-size: 12px; }
.app-search { display: flex; align-items: center; gap: 8px; width: 200px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); }
.app-search svg { width: 14px; height: 14px; }
.app-search kbd { margin-left: auto; font-size: 10.5px; padding: 2px 5px; }
.app-btn { height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; }
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-kpi, .app-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.app-kpi { display: grid; gap: 4px; padding: 12px 14px; position: relative; }
.app-kpi strong { font-size: 20px; letter-spacing: -0.02em; }
.chip { position: absolute; right: 12px; top: 12px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.chip.up { color: #15803d; background: color-mix(in srgb, #22c55e 18%, transparent); }
.chip.down { color: #b91c1c; background: color-mix(in srgb, #f2555a 16%, transparent); }
.app-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; flex: 1; }
.app-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.app-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.app-card-head > div { display: grid; }
.app-card-head strong { font-size: 18px; letter-spacing: -0.02em; }
.app-legend { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 11px; }
.app-legend i { width: 8px; height: 8px; border-radius: 2px; background: #3b82f6; margin-left: 6px; }
.app-legend i.prev { background: color-mix(in srgb, var(--ink) 30%, transparent); }
.app-plot { width: 100%; height: 130px; flex: 1; }
.app-plot * { pointer-events: none; }
.app-plot .grid { stroke: var(--line); stroke-width: 1; }
.app-plot .prev { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 2; stroke-dasharray: 4 4; }
.app-plot .area { fill: url(#app-fill); stroke: none; }
.app-plot .line { stroke: #3b82f6; stroke-width: 2.5; }
.app-row { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
.app-row em { font-style: normal; color: var(--ink-2); text-align: right; }
.app-bar { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.app-bar b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #6d5efc, #3b82f6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip.up { color: #4ade80; }
  :root:not([data-theme="light"]) .chip.down { color: #f87171; }
}

.card {
  border-radius: 18px; padding: 22px; background: var(--panel-violet);
  display: grid; gap: 14px;
}
.card .row { display: flex; gap: 12px; align-items: center; }
.card .av { width: 44px; height: 44px; border-radius: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; background: #1d2433; }
.card .av b { border-radius: 3px; }
.card .av b:nth-child(1) { background: var(--tile-blue); }
.card .av b:nth-child(2) { background: var(--tile-yellow); }
.card .av b:nth-child(3) { background: var(--tile-red); }
.card .av b:nth-child(4) { background: var(--tile-green); }
.card .lines { flex: 1; display: grid; gap: 7px; }
.card .lines .sk { height: 10px; background: color-mix(in srgb, var(--on-panel) 18%, transparent); }
.card .lines .sk:first-child { width: 60%; height: 12px; background: color-mix(in srgb, var(--on-panel) 40%, transparent); }
.card .chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; }
.card .chart b { flex: 1; border-radius: 6px 6px 2px 2px; }

/* Selection box, Figma-ish handles */
.page { position: relative; cursor: default; }
.sel { position: absolute; border: 2px solid var(--tile-blue); pointer-events: none; z-index: 5; transition: left .25s var(--ease), top .25s var(--ease), width .25s var(--ease), height .25s var(--ease); }
/* DivPic's own hover highlight (content.js) */
.hover-box { position: absolute; z-index: 4; pointer-events: none; border: 2px solid #2563eb; background: rgba(37, 99, 235, 0.1); border-radius: 4px; }
.hover-box[hidden] { display: none; }
.page.app, .page.app * { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2240%22%20viewBox%3D%220%200%2064%2040%22%3E%3Cpath%20d%3D%22M3%202l18%208-8%202.5L10%2021z%22%20fill%3D%22%237c6cf6%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2216%22%20width%3D%2236%22%20height%3D%2220%22%20rx%3D%226%22%20fill%3D%22%237c6cf6%22%2F%3E%3Ctext%20x%3D%2232%22%20y%3D%2230%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CSegoe%20UI%2Csans-serif%22%20font-size%3D%2212%22%20font-weight%3D%22700%22%20fill%3D%22%23fff%22%3EYou%3C%2Ftext%3E%3C%2Fsvg%3E") 3 2, default; }
/* One "You" at a time: the demo cursor steps aside while the real one is in the page */
.stage.user-in .cursor.you { opacity: 0; }
.cursor { transition: opacity .2s var(--ease); }
.demo-badge {
  position: absolute; left: 50%; top: -17px; transform: translateX(-50%); z-index: 6; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--tile-blue); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--tile-blue) 70%, transparent); transition: opacity .3s var(--ease);
}
.demo-badge .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.demo-badge .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #fff; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.demo-badge .on-touch { display: none; }
@media (hover: none), (max-width: 600px) { .demo-badge .on-hover { display: none; } .demo-badge .on-touch { display: inline; } }
.stage.picked .demo-badge { opacity: 0; }
/* While the tour runs, the "You" cursor travels instead of drifting */
.stage.touring .cursor.you { animation: none; transition: left .8s var(--ease), top .8s var(--ease); z-index: 7; }
.cursor.you.clicking svg { transform: scale(.82); }
.cursor svg { transition: transform .12s var(--ease); }
.sel i { position: absolute; width: 10px; height: 10px; background: #fff; border: 2px solid var(--tile-blue); }
.sel i:nth-child(1) { left: -6px; top: -6px; } .sel i:nth-child(2) { right: -6px; top: -6px; }
.sel i:nth-child(3) { left: -6px; bottom: -6px; } .sel i:nth-child(4) { right: -6px; bottom: -6px; }
.sel .size { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); background: var(--tile-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }

.cursor { position: absolute; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; z-index: 3; }
.cursor svg { width: 22px; height: 22px; }
.cursor span { margin-top: 16px; color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.cursor.you { left: 30%; top: 76%; animation: drift-a 7s ease-in-out infinite; }
.cursor.you svg { fill: var(--tile-red); } .cursor.you span { background: var(--tile-red); }
.cursor.team { right: 6%; top: 58%; animation: drift-b 8s ease-in-out infinite; }
.cursor.team svg { fill: var(--tile-green); } .cursor.team span { background: #16a34a; }
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-24px, -18px); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(16px, 22px); } }

/* Hero toolbar: a copy of DivPic's in-page toolbar (styles from toolbar.js) */
.dp-bar {
  position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); transform-origin: 50% 100%; z-index: 4;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 4px; white-space: nowrap;
  background: rgba(20, 20, 24, 0.96); color: #f3f3f6; font-family: "Inter", -apple-system, sans-serif;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}
.dp-bar svg { display: block; }
.dp-grip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 30px; color: rgba(243,243,246,0.5); }
.dp-brand { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; }
.dp-logo { width: 20px; height: 20px; border-radius: 5px; }
.dp-name { font-size: 13px; font-weight: 700; letter-spacing: -0.2px; }
.dp-sep { display: inline-block; width: 1px; height: 18px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.dp-figma { display: inline-flex; align-items: center; gap: 7px; padding: 0 4px; }
.dp-figma-label { font-size: 12px; font-weight: 600; color: rgba(243,243,246,0.7); }
.dp-switch { position: relative; width: 32px; height: 18px; border-radius: 18px; background: rgba(255,255,255,0.16); }
.dp-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.dp-opts { display: inline-flex; align-items: center; gap: 6px; }
.dp-bar .seg { display: inline-flex; padding: 2px; gap: 2px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 7px; }
.dp-bar .tb { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; color: rgba(243,243,246,0.55); border-radius: 5px; }
.dp-bar .seg-text .tb { width: 32px; font-size: 10.5px; font-weight: 600; }
.dp-bar .tb.on { background: rgba(125,109,255,0.18); color: #b6aaff; box-shadow: inset 0 0 0 1px rgba(125,109,255,0.3); }
.dp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); font-size: 12.5px; font-weight: 600; border-radius: 8px; }
.dp-btn-primary { background: linear-gradient(135deg, #6d5efc 0%, #9a6bff 100%); border-color: transparent; color: #fff; box-shadow: 0 3px 10px rgba(125,109,255,0.35); }
.dp-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; color: rgba(243,243,246,0.6); border-radius: 6px; }
/* Clickable: :where() keeps the button reset weaker than the toolbar's own classes */
:where(.dp-bar) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.dp-bar button:focus-visible { outline: 2px solid #9a6bff; outline-offset: 2px; }
.dp-brand { border-radius: 6px; }
.dp-switch, .dp-switch::after, .dp-bar .tb, .dp-btn, .dp-iconbtn { transition: background .15s, color .15s, transform .2s var(--ease), left .2s var(--ease); }
.dp-figma[aria-checked="true"] .dp-switch { background: #7d6dff; }
.dp-figma[aria-checked="true"] .dp-switch::after { left: 16px; }
.dp-figma[aria-checked="true"] .dp-figma-label { color: #f3f3f6; }
.dp-bar .tb:not(.on):hover { color: #f3f3f6; background: rgba(255,255,255,0.06); }
.dp-btn:hover { background: rgba(255,255,255,0.09); }
.dp-btn-primary:hover { background: linear-gradient(135deg, #7b6dff 0%, #a77cff 100%); }
.dp-btn:active, .dp-iconbtn:active { transform: scale(.96); }
.dp-iconbtn:hover { color: #f3f3f6; background: rgba(255,255,255,0.08); }
.dp-iconbtn.spin svg { transform: rotate(90deg); transition: transform .4s var(--ease); }
/* Close collapses the bar to its logo; clicking the logo opens it again */
.dp-bar.min > :not(.dp-grip, .dp-brand) { display: none; }
@media (max-width: 760px) { .dp-bar { transform: translateX(-50%) scale(.72); } }
@media (max-width: 560px) { .dp-bar { transform: translateX(-50%) scale(.5); bottom: -18px; } }

/* Browser strip: two copies of the list slide left forever */
.browser-strip { padding: 96px 0 0; }
.strip-label { text-align: center; font-size: 15px; font-weight: 500; color: var(--ink-2); margin: 0 0 14px; padding: 0 16px; }
.strip-viewport { position: relative; display: flex; overflow: hidden; max-width: 1152px; margin: 0 auto; }
/* Logos fade into the page background at both ends */
.strip-viewport::before, .strip-viewport::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 1; pointer-events: none; }
.strip-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg) 10%, transparent); }
.strip-viewport::after { right: 0; background: linear-gradient(270deg, var(--bg) 10%, transparent); }
.strip-track { display: flex; align-items: center; gap: 72px; padding: 14px 36px; margin: 0; list-style: none; flex: none; animation: strip 60s linear infinite; }
.strip-viewport:hover .strip-track { animation-play-state: paused; }
.strip-track li { display: grid; place-items: center; }
.strip-track img { width: 44px; height: 44px; transition: transform .2s var(--ease); }
.strip-track li:hover img { transform: translateY(-3px) scale(1.08); }
@keyframes strip { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .strip-viewport { justify-content: center; }
  .strip-viewport::before, .strip-viewport::after { display: none; }
  .strip-track { flex-wrap: wrap; justify-content: center; gap: 32px; flex: initial; }
  .strip-track[aria-hidden], .strip-track li[aria-hidden] { display: none; }
}
@media (max-width: 600px) { .browser-strip { padding-top: 72px; } .strip-track { gap: 44px; padding: 0 22px; } .strip-track img { width: 36px; height: 36px; } }

/* ---------- Sections ---------- */
section { padding: 120px 0 0; }
/* Only the copy is capped; headings get the full width so they hold one line */
.sec-head { margin-bottom: 48px; }
.sec-head.center { margin: 0 auto 56px; text-align: center; }
.sec-head h2 { text-wrap: balance; }
@media (min-width: 640px) { .sec-head h2 { white-space: nowrap; } }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
h2 { font-size: clamp(38px, 6vw, 72px); line-height: 1; font-weight: 700; }
.sec-head p { font-size: 20px; color: var(--ink-2); margin: 20px 0 0; max-width: 760px; }
.sec-head.center p { margin-inline: auto; }

/* Output modes: same panel as How it works. Colour is only an accent; hovering a cell plays its mockup. */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.mode { --c: var(--tile-blue); display: flex; flex-direction: column; background: var(--bg); }
.mode.svg { --c: #e0a100; }
.mode.fig { --c: var(--tile-green); }
.mode-top { padding: 18px 28px; border-bottom: 1px solid var(--line); }
.mode .tag { display: inline-block; font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--bg)); }
.mode-txt { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.mode h3 { font-size: 22px; letter-spacing: -0.02em; }
.mode p { color: var(--ink-2); margin: 8px 0 0; }

/* Mode mockups */
.mode-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 60% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 75%); opacity: 0; transition: opacity .6s var(--ease); }
.mode:hover .mode-art::before { opacity: 1; }

.mp-shot { position: absolute; left: 64px; top: 48px; width: 270px; height: 210px; padding: 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.mp-shot b { display: block; width: 46%; height: 14px; border-radius: 7px; background: var(--c); }
.mp-shot span { display: block; width: 85%; height: 8px; margin-top: 14px; border-radius: 4px; background: var(--line); }
.mp-shot .c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--c); transition: transform .4s var(--ease); }
.mp-shot .tl { top: -8px; left: -8px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 6px; }
.mp-shot .tr { top: -8px; right: -8px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 6px; }
.mp-shot .bl { bottom: -8px; left: -8px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 6px; }
.mp-shot .br { bottom: -8px; right: -8px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 6px; }
.mp-shot em { position: absolute; top: -14px; right: 26px; padding: 6px 8px; border-radius: 8px; background: var(--c); color: #fff; font: 700 12px/1 ui-monospace, Menlo, monospace; font-style: normal; transition: transform .4s var(--ease); }
.mode:hover .mp-shot .tl { transform: translate(-6px, -6px); }
.mode:hover .mp-shot .tr { transform: translate(6px, -6px); }
.mode:hover .mp-shot .bl { transform: translate(-6px, 6px); }
.mode:hover .mp-shot .br { transform: translate(6px, 6px); }
.mode:hover .mp-shot em { transform: scale(1.12) rotate(-4deg); }

.ms-vec { position: absolute; left: -20px; top: 24px; width: 420px; height: 240px; overflow: visible; }
.ms-vec .frame { fill: var(--soft); stroke: var(--line); }
.ms-vec .handle { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .6; }
.ms-vec .curve { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ms-vec .node { fill: var(--bg); stroke: var(--c); stroke-width: 2.5; }
.ms-vec .knob { fill: var(--c); }
.ms-zoom { position: absolute; top: 40px; right: 28px; padding: 5px 8px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); font: 600 11px/1 ui-monospace, Menlo, monospace; color: var(--ink-2); }
.mode:hover .ms-vec .curve { animation: ms-draw 1.2s var(--ease); }
.mode:hover .ms-vec .knob { animation: ms-knob 1.2s var(--ease); }
@keyframes ms-draw { from { stroke-dashoffset: 1; } }
@keyframes ms-knob { 0% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; } }
.ms-vec .knob { transform-box: fill-box; transform-origin: center; }

.mf-win { position: absolute; left: 24px; top: 36px; width: 440px; height: 240px; display: grid; grid-template-columns: 170px 1fr; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.mf-layers { padding: 14px 10px; background: var(--soft); border-right: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.mf-layers small { display: block; padding: 0 6px 8px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.mf-layers div { position: relative; display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; }
.mf-layers .d1 { padding-left: 18px; } .mf-layers .d2 { padding-left: 30px; }
.mf-layers u { text-decoration: none; width: 10px; text-align: center; font-weight: 700; color: var(--ink-2); }
.mf-layers div.on { background: color-mix(in srgb, var(--violet) 22%, transparent); }
.mf-canvas { position: relative; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 14px 14px; }
.mf-frame { position: absolute; left: 20px; top: 36px; width: 150px; height: 84px; padding: 12px; border-radius: 8px; background: var(--soft); outline: 1.5px solid #0d99ff; }
.mf-frame span { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; font-size: 10px; font-weight: 600; color: #0d99ff; }
.mf-frame b { display: block; width: 20px; height: 20px; border-radius: 6px; background: var(--c); }
.mf-frame i { display: block; width: 75%; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--line); }
.mode:hover .mf-layers div:not(small) { animation: mf-row .5s var(--ease) backwards; }
.mode:hover .mf-layers div:nth-of-type(2) { animation-delay: .06s; }
.mode:hover .mf-layers div:nth-of-type(3) { animation-delay: .12s; }
.mode:hover .mf-layers div:nth-of-type(4) { animation-delay: .18s; }
.mode:hover .mf-layers div:nth-of-type(5) { animation-delay: .24s; }
.mode:hover .mf-frame { animation: mf-pop .6s var(--ease); }
@keyframes mf-row { from { opacity: 0; transform: translateX(-8px); } }
@keyframes mf-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }

/* How it works: one panel, three cells. Each cell has a number, a mockup that runs off its edges and fades out, then the text. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { --t: 3.6s; --c: var(--tile-blue); display: flex; flex-direction: column; background: var(--bg); }
.step:nth-child(2) { --c: #e0a100; }
.step:nth-child(3) { --c: var(--tile-red); }
.step .n { padding: 18px 28px; border-bottom: 1px solid var(--line); font: 700 44px/1 'Inter Tight', Inter, sans-serif; letter-spacing: -0.03em; color: color-mix(in srgb, var(--ink) 18%, transparent); transition: color .5s var(--ease); }
.step.play .n { color: var(--c); }
.step-txt { padding: 24px 28px 28px; border-top: 1px solid var(--line); }
.step h3 { font-size: 22px; letter-spacing: -0.02em; }
.step p { color: var(--ink-2); margin: 8px 0 0; }

/* Mockups: the end state shows at rest; the .play class (added in turn by the script) replays it */
.step-art, .mode-art {
  position: relative; height: 250px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 22%), linear-gradient(to bottom, #000 70%, transparent);
  mask-composite: intersect;
}
.step-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 70% at 60% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 75%); opacity: 0; transition: opacity .6s var(--ease); }
.step.play .step-art::before { opacity: 1; }
.art-stage { position: absolute; inset: 0 auto 0 0; width: 400px; }
.art-stage .mcur { position: absolute; width: 16px; height: 20px; fill: #0e0e10; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transform-origin: 2px 2px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); z-index: 3; }

.s1-win { position: absolute; left: -56px; top: 40px; width: 380px; height: 240px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.s1-bar { height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.s1-url { flex: 1; height: 30px; border-radius: 15px; background: var(--bg); }
.s1-btn { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); }
.s1-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linejoin: round; }
.s1-btn svg circle { fill: var(--ink-2); stroke: none; }
.s1-ext img { width: 20px; height: 20px; }
.s1-page { position: relative; margin: 18px; height: 130px; padding: 18px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.s1-page b { display: block; width: 110px; height: 14px; border-radius: 7px; background: var(--line); }
.s1-page i { position: absolute; top: 16px; right: 18px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel-blue); }
.s1-page span { display: block; width: 88%; height: 7px; margin-top: 14px; border-radius: 4px; background: var(--soft); }
.s1-tb { position: absolute; left: 92px; top: 136px; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 12px; background: #1b1b1f; color: #f3f3f5; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 28px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.08); }
.s1-tb img { width: 16px; height: 16px; margin-left: 3px; }
.s1-tb i { width: 1px; height: 14px; background: rgba(255,255,255,.16); }
.s1-tb span { padding: 6px 9px; border-radius: 7px; color: #c9cad0; }
.s1-tb span.on { background: var(--violet); color: #fff; }
.s1 .mcur { left: 215px; top: 70px; }

.s2-page { position: absolute; left: -40px; top: 36px; width: 400px; height: 240px; padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line); }
.s2-head { display: flex; gap: 6px; align-items: center; height: 14px; margin-bottom: 14px; }
.s2-head b { width: 14px; height: 14px; border-radius: 4px; background: var(--tile-blue); }
.s2-head span { width: 30px; height: 6px; border-radius: 3px; background: var(--line); }
.s2-head span:first-of-type { margin-left: auto; }
.s2-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s2-card { position: relative; height: 80px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.s2-card b { display: block; width: 22px; height: 22px; border-radius: 6px; background: var(--panel-yellow); }
.s2-card.c2 b { background: var(--panel-violet); }
.s2-card span { display: block; width: 80%; height: 6px; margin-top: 9px; border-radius: 3px; background: var(--line); }
.s2-card::after { content: ''; position: absolute; inset: -3px; border: 2px solid #2563eb; border-radius: 12px; background: rgba(37,99,235,.16); opacity: 0; }
.s2-card.c2::after { opacity: 1; }
.s2-card em { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 7px); padding: 3px 6px; border-radius: 4px; background: #2563eb; color: #fff; font: 600 10px/1 ui-monospace, Menlo, monospace; font-style: normal; white-space: nowrap; }
.s2 .mcur { left: 262px; top: 118px; }

.s3-win { position: absolute; left: -40px; top: 36px; width: 440px; height: 240px; display: grid; grid-template-columns: 130px 1fr; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.s3-layers { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); border-right: 1px solid var(--line); }
.s3-layers small { font-size: 11px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.s3-layers i { display: block; width: 80%; height: 6px; border-radius: 3px; background: var(--line); }
.s3-layers i.d { width: 58%; margin-left: 12px; }
.s3-canvas { position: relative; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 14px 14px; }
.s3-frame { position: absolute; left: 50%; top: 30px; width: 170px; height: 80px; padding: 12px; transform: translateX(-50%); border-radius: 8px; background: var(--bg); outline: 1.5px solid #0d99ff; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.s3-frame span { position: absolute; bottom: 100%; left: 0; margin-bottom: 4px; font-size: 10px; font-weight: 600; color: #0d99ff; }
.s3-frame b { display: block; width: 20px; height: 20px; border-radius: 6px; background: var(--tile-green); }
.s3-frame i { display: block; width: 75%; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--line); }
.s3-keys { position: absolute; top: 124px; left: 50%; display: flex; gap: 6px; transform: translateX(-50%); }
.s3-keys kbd { min-width: 28px; height: 26px; display: grid; place-items: center; padding: 0 6px; font-size: 12px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); }

.step.play .s1 .mcur { animation: s1-cur var(--t) var(--ease) infinite; }
.step.play .s1-ext { animation: s1-ring var(--t) ease-out infinite; }
.step.play .s1-tb { animation: s1-tb var(--t) var(--ease) infinite; }
.step.play .s2 .mcur { animation: s2-cur var(--t) var(--ease) infinite; }
.step.play .s2-card.c1::after { animation: s2-h1 var(--t) linear infinite; }
.step.play .s2-card.c2::after { animation: s2-h2 var(--t) linear infinite; }
.step.play .s2-card em { animation: s2-lbl var(--t) var(--ease) infinite; }
.step.play .s3-keys kbd { animation: s3-key var(--t) ease infinite; }
.step.play .s3-keys kbd + kbd { animation-delay: .12s; animation-fill-mode: backwards; }
.step.play .s3-frame { animation: s3-frame var(--t) var(--ease) infinite; }
.step.play .s3-layers i { animation: s3-row var(--t) var(--ease) infinite backwards; }
.step.play .s3-layers i:nth-of-type(2) { animation-delay: .12s; }
.step.play .s3-layers i:nth-of-type(3) { animation-delay: .24s; }
.step.play .s3-layers i:nth-of-type(4) { animation-delay: .36s; }

@keyframes s1-cur {
  0% { left: 130px; top: 220px; opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  34% { left: 215px; top: 70px; transform: scale(1); }
  40% { transform: scale(.78); }
  46%, 92% { left: 215px; top: 70px; transform: scale(1); opacity: 1; }
  100% { left: 215px; top: 70px; opacity: 0; }
}
@keyframes s1-ring {
  0%, 38% { box-shadow: 0 0 0 0 rgba(124,108,246,.55); }
  64%, 100% { box-shadow: 0 0 0 12px rgba(124,108,246,0); }
}
@keyframes s1-tb {
  0%, 44% { opacity: 0; transform: translateY(-10px) scale(.94); }
  56%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes s2-cur {
  0% { left: 150px; top: 230px; opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  24%, 38% { left: 78px; top: 114px; }
  54% { left: 262px; top: 118px; transform: scale(1); }
  60% { transform: scale(.78); }
  66%, 92% { left: 262px; top: 118px; transform: scale(1); opacity: 1; }
  100% { left: 262px; top: 118px; opacity: 0; }
}
@keyframes s2-h1 {
  0%, 22% { opacity: 0; background: rgba(37,99,235,.06); }
  26%, 42% { opacity: 1; background: rgba(37,99,235,.06); }
  48%, 100% { opacity: 0; }
}
@keyframes s2-h2 {
  0%, 48% { opacity: 0; background: rgba(37,99,235,.06); }
  54%, 59% { opacity: 1; background: rgba(37,99,235,.06); }
  64%, 100% { opacity: 1; background: rgba(37,99,235,.16); }
}
@keyframes s2-lbl {
  0%, 62% { opacity: 0; transform: translate(-50%, 1px); }
  70%, 100% { opacity: 1; transform: translate(-50%, 7px); }
}
@keyframes s3-key {
  0%, 12% { transform: none; box-shadow: 0 2px 0 var(--line); }
  16%, 26% { transform: translateY(2px); box-shadow: 0 0 0 var(--line); background: var(--soft); }
  30%, 100% { transform: none; box-shadow: 0 2px 0 var(--line); }
}
@keyframes s3-frame {
  0%, 26% { opacity: 0; transform: translate(-50%, 8px) scale(.9); }
  36%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
@keyframes s3-row {
  0%, 36% { opacity: 0; transform: translateX(-8px); }
  46%, 100% { opacity: 1; transform: none; }
}

/* Feature grid */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feat { --c: var(--tile-blue); position: relative; padding: 28px; background: var(--bg); overflow: hidden; }
.feat:nth-child(2), .feat:nth-child(8) { --c: var(--tile-green); }
.feat:nth-child(3), .feat:nth-child(7) { --c: var(--violet); }
.feat:nth-child(4) { --c: #e0a100; }
.feat:nth-child(5) { --c: var(--tile-red); }
.feat::before { content: ''; position: absolute; inset: 0; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.feat.play::before { opacity: 1; }
.feat > * { position: relative; }
.feat h3 { font-size: 18px; letter-spacing: -0.01em; }
.feat p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }
.fi { width: 48px; height: 48px; margin-bottom: 28px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.fi svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.fi svg * { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.feat.play .fi { background: var(--c); border-color: var(--c); color: #fff; transform: translateY(-2px); }

.fi .rays { transform-box: view-box; transform-origin: 9px 9px; }
.feat.play .fi .rays { animation: f-burst .7s var(--ease); }
.feat.play .fi .ptr { animation: f-tap .5s var(--ease); }
.feat.play .fi .tl { transform: translate(-1.5px, -1.5px); }
.feat.play .fi .tr { transform: translate(1.5px, -1.5px); }
.feat.play .fi .br { transform: translate(1.5px, 1.5px); }
.feat.play .fi .bl { transform: translate(-1.5px, 1.5px); }
.feat.play .fi .scroll { animation: f-scroll .9s var(--ease); }
.feat.play .fi .l1 { transform: translateY(-2.5px); }
.feat.play .fi .l3 { transform: translateY(2.5px); }
.fi .curve { stroke-dasharray: 1; stroke-dashoffset: 0; }
.feat.play .fi .curve { animation: f-draw .8s var(--ease); }
.feat.play .fi .a1, .feat.play .fi .a2 { transform: rotate(45deg) scale(.9); }
.feat.play .fi .sun { transform: translate(1px, -2px) scale(1.2); }
.feat.play .fi .hill { animation: f-hill .7s var(--ease); }
.fi .front { fill: var(--soft); transition: transform .35s var(--ease), fill .25s var(--ease); }
.feat.play .fi .front { fill: var(--c); animation: f-copy .7s var(--ease); }
.fi .k1, .fi .k2, .fi .k3 { fill: currentColor; }
.feat.play .fi .k1 { transform: translateX(8px); }
.feat.play .fi .k2 { transform: translateX(-7px); }
.feat.play .fi .k3 { transform: translateX(5px); }
.feat.play .fi .shackle { animation: f-unlock .9s var(--ease); }

@keyframes f-burst { 0% { opacity: 1; transform: scale(1); } 35% { opacity: 0; transform: scale(1.6); } 36% { opacity: 0; transform: scale(.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes f-tap { 0%, 100% { transform: none; } 40% { transform: translate(-1.5px, -1.5px) scale(.9); } }
@keyframes f-scroll { 0%, 100% { transform: none; opacity: 1; } 45% { transform: translateY(-4px); opacity: 0; } 55% { transform: translateY(4px); opacity: 0; } }
@keyframes f-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes f-hill { 0%, 100% { transform: none; } 50% { transform: translateY(1.5px); } }
@keyframes f-copy { 0%, 100% { transform: none; } 50% { transform: translate(-5px, -5px); } }
@keyframes f-unlock { 0%, 100% { transform: none; } 35%, 65% { transform: translateY(-3px); } }
kbd { font: 600 13px/1 ui-monospace, Menlo, monospace; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--soft); white-space: nowrap; }

/* Big two-cell panels (Figma mode, privacy): text on the left, artwork on a faded canvas on the right */
.panel { --c: var(--violet); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel.dark { --c: var(--tile-green); }
.panel > * { background: var(--bg); }
.panel > :first-child { padding: 56px; }
.panel h2 { font-size: clamp(34px, 4.4vw, 54px); }
.panel .lede { font-size: 19px; margin: 20px 0 28px; color: var(--ink-2); }
.kicker.with-logo { display: flex; align-items: center; gap: 10px; }
.figma-logo { width: 14px; height: 21px; flex: none; }
.panel .more { margin: 28px 0 0; }
.panel .more a { color: var(--ink); text-underline-offset: 4px; }
.panel-art { position: relative; min-height: 420px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%), radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 16px 16px, var(--bg); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.panel.dark .ticks li::before { background-color: var(--tile-green); }


.layers { position: absolute; left: 56px; top: 56px; width: 400px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 14px; box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 45%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.layers header { display: flex; justify-content: space-between; color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.layers div { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; }
.layers div.on { background: color-mix(in srgb, var(--violet) 22%, transparent); outline: 1px solid var(--violet); }
.layers small { color: var(--ink-2); font-weight: 700; width: 14px; text-align: center; font-size: 13px; }
.layers .d1 { padding-left: 28px; } .layers .d2 { padding-left: 48px; }

/* Style controls demo */
.style-demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.controls { background: var(--bg); padding: 40px; display: grid; gap: 22px; align-content: start; }
.controls h3 { font-size: 28px; }
.controls p { color: var(--ink-2); margin: -10px 0 0; }
.ctl { display: grid; gap: 8px; }
.ctl label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.ctl output { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ctl input[type=range] { width: 100%; accent-color: var(--tile-blue); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--bg) inset; }
.swatches .none { background: repeating-conic-gradient(#d9d9de 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.preview-area { display: grid; place-items: center; padding: 40px 24px; min-height: 420px;
  background: radial-gradient(var(--line) 1px, transparent 1px) 0 0 / 16px 16px, var(--bg); }
.shot { transition: padding .2s var(--ease), border-radius .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); }
.shot { border: 1px solid rgba(255,255,255,.16); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-card { background: #212127; border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
}
.shot-card { width: min(300px, 70vw); border-color: color-mix(in srgb, var(--ink) 16%, transparent); }
.shot-card .chip { position: static; }
.shot-card .app-plot { height: 96px; flex: none; fill: none; stroke-linecap: round; }
.shot-card .app-legend i:first-child { margin-left: 0; }

/* Privacy band */
.privacy-band .panel { grid-template-columns: 1.2fr 1fr; }
.privacy-band .panel-art { display: grid; place-items: center; }
.lock { position: relative; width: 168px; height: 168px; display: grid; place-items: center; border-radius: 40px; background: var(--soft); border: 1px solid var(--line); }
.lock svg { position: relative; width: 76px; height: 76px; stroke: var(--c); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lock i { position: absolute; inset: -1px; border-radius: 40px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); opacity: 0; animation: ring 4.5s var(--ease) infinite; }
.lock i:nth-child(2) { animation-delay: 1.5s; }
.lock i:nth-child(3) { animation-delay: 3s; }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); border-radius: 60px; } }
.lock em { position: absolute; bottom: -15px; font-style: normal; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--bg)); }

/* Browsers */
.browsers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.browsers a, .browsers .soon-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.browsers a:hover { border-color: var(--ink); transform: translateY(-2px); }
.browsers .head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; color: var(--ink); font-size: inherit; }
.browsers .ico { width: 32px; height: 32px; flex: none; transition: transform .2s var(--ease); }
.browsers a:hover .ico { transform: rotate(-8deg) scale(1.06); }
.browsers strong { font-size: 22px; letter-spacing: -0.02em; }
.browsers span { color: var(--ink-2); font-size: 15px; }
.browsers .go { margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); }
.browsers .go.soon { color: var(--ink-2); font-weight: 500; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
/* FAQ accordion (shared by the landing page and blog articles) */
.faq-list { display: grid; gap: 8px; }
.faq-list details { border: 1px solid var(--line); border-radius: 8px; background: var(--soft); overflow: hidden; }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; transition: background .15s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: color-mix(in srgb, var(--ink) 6%, var(--soft)); }
.faq-list summary::after { content: "+"; font-size: 18px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details.closing summary::after { content: "+"; }
.faq-list details[open] summary { background: color-mix(in srgb, var(--ink) 8%, var(--soft)); }
.faq-list .answer { background: var(--bg); padding: 14px 16px 16px; font-size: 16px; }
.faq-list .answer > * + * { margin-top: 12px; }
.faq-list .answer p { margin: 0; }
.faq-list .answer ol { margin: 0; padding-left: 1.3em; }

/* Closing CTA */
.closer { padding: 120px 0; }
.closer .box { border-radius: var(--radius-xl); background: var(--tile-blue); color: #fff; padding: 88px 32px; text-align: center; position: relative; overflow: hidden; }
.closer h2 { font-size: clamp(44px, 8vw, 96px); max-width: 12ch; margin: 0 auto; }
.closer p { font-size: 20px; opacity: .9; margin: 20px 0 32px; }
.closer .btn.solid { background: #fff; color: #0e0e10; border-color: #fff; }
.closer .btn { border-color: #fff; color: #fff; }
.blob { position: absolute; border-radius: 28px; opacity: .95; }
.blob.y { width: 120px; height: 120px; background: var(--tile-yellow); top: -30px; left: 6%; transform: rotate(14deg); }
.blob.r { width: 90px; height: 90px; background: var(--tile-red); bottom: -24px; right: 10%; transform: rotate(-12deg); }
.blob.g { width: 64px; height: 64px; background: var(--tile-green); top: 30%; right: 4%; transform: rotate(20deg); border-radius: 50%; }

footer.site { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-2); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
footer.site nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ---------- Changelog: a timeline of releases, version and date on the left, changes on the right ---------- */
/* Kinds map by role: main accent (blue) = New, cool accent (violet) = Improved, green = Fixed */
.cl { padding: 72px 0 120px; }
.cl-head { max-width: 760px; margin-bottom: 56px; }
.cl-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; font-weight: 700; text-wrap: balance; }
.cl-head p { margin: 18px 0 28px; font-size: 19px; color: var(--ink-2); }
.cl-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-filter button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.cl-filter button:hover { color: var(--ink); border-color: var(--ink-2); }
.cl-filter button[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.k { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.k.new, .tagk.new { --k: var(--blue-ink); } .k.improved, .tagk.improved { --k: var(--violet-ink); } .k.fixed, .tagk.fixed { --k: var(--green-ink); }
.timeline { list-style: none; margin: 0; padding: 0; }
.rel { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 56px; padding-bottom: 56px; }
.rel[hidden] { display: none; }
/* The line runs down between the columns; each release is a dot on it */
.rel::before { content: ""; position: absolute; left: 228px; top: 10px; bottom: -10px; width: 1px; background: var(--line); }
.rel.first::before, .rel:last-child::before { bottom: auto; height: 0; }
.rel::after { content: ""; position: absolute; left: 222px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink-2); }
.rel:first-child::after { background: var(--tile-blue); border-color: var(--tile-blue); box-shadow: 0 0 0 5px color-mix(in srgb, var(--tile-blue) 20%, transparent); animation: rel-live 2s ease-out infinite; }
@keyframes rel-live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tile-blue) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--tile-blue) 0%, transparent); }
}
.rel-when { position: sticky; top: 92px; align-self: start; display: grid; justify-items: start; gap: 4px; }
.ver { font: 700 28px/1 "Inter Tight", "Inter", sans-serif; letter-spacing: -0.03em; text-decoration: none; }
.ver:hover { color: var(--blue-ink); }
.rel-when time { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.latest { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font: 700 12px/1 var(--font-mono); color: var(--blue-ink); background: color-mix(in srgb, var(--tile-blue) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--tile-blue) 35%, var(--line)); }
.rel-body { padding-left: 28px; }
.rel-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 18px; text-wrap: balance; }
.rel-body ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.rel-body li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 20px; font-size: 16px; }
.rel-body li[hidden] { display: none; }
.rel-body li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--line); }
.rel-body li strong { font-weight: 600; }
.tagk { justify-self: start; padding: 4px 9px; border-radius: 999px; font: 700 11.5px/1 var(--font-mono); color: var(--k); background: color-mix(in srgb, var(--k) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--k) 30%, var(--line)); }
.cl-empty { color: var(--ink-2); }
/* Back to top: appears once the reader is a screen deep, styled like the solid nav button. */
.to-top {
  position: fixed; right: 24px; bottom: calc(24px + var(--lift, 0px)); z-index: 40;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--btn-bg); cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.to-top.show:hover { transform: translateY(-2px); }
.to-top.show:active { transform: translateY(0) scale(.96); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .cl { padding-top: 48px; }
  .rel { grid-template-columns: minmax(0, 1fr); padding: 0 0 44px 28px; }
  .rel::before { left: 5px; top: 12px; }
  .rel::after { left: 0; top: 8px; }
  .rel-when { position: static; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 12px; margin-bottom: 12px; }
  .rel-when .latest { margin-top: 0; }
  .rel-body { padding-left: 0; }
  .rel-body li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
  .to-top { right: 16px; bottom: calc(16px + var(--lift, 0px)); width: 44px; height: 44px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .modes, .steps, .browsers { grid-template-columns: 1fr; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .panel, .privacy-band .panel { grid-template-columns: 1fr; }
  .panel > :first-child { padding: 40px 24px; }
  .panel-art { min-height: 320px; }
  .layers { left: 24px; top: 32px; width: 340px; }
  .style-demo { grid-template-columns: minmax(0, 1fr); }
  .preview-area { overflow: hidden; }
  .shot-card { width: min(300px, 56vw); }
  .page.app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side, .app-list, .app-search, .bw-tab:not(.on), .bw-plus { display: none; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  section { padding-top: 88px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { gap: 12px; }
  .hero { padding-top: 48px; }
  /* Headline wraps here; open the leading so the box round "web" clears the line above */
  .hero h1 { white-space: normal; text-wrap: balance; line-height: 1.2; }
  .cursor.team { right: 4%; }
  .app-kpis { grid-template-columns: 1fr 1fr; }
  .app-kpi:nth-child(3), .bw-nav, .bw-ext img { display: none; }
  .app-main { padding: 12px 12px 64px; }
  .demo-badge { font-size: 12px; padding: 7px 13px; }
  .bw-tab.on { min-width: 0; }
  .controls { padding: 24px; }
  .step-txt, .mode-txt { padding: 20px 24px 24px; }
  .step .n, .mode-top { padding: 16px 24px; }
  .feats { grid-template-columns: 1fr; }
  .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .feat p { grid-column: 2; margin-top: 4px; }
  .fi { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
  .closer .box { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
