/* Framecap website: one small stylesheet and one small script, no web fonts, so pages load fast. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #14171f;
  --muted: #5d6676;
  --border: #e3e7ef;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: #ffe4ea;
  --violet: #7c3aed;
  --card: #ffffff;
  --glass: rgb(255 255 255 / 0.72);
  --radius: 16px;
  --shadow: 0 1px 2px rgb(20 23 31 / 0.05), 0 8px 24px rgb(20 23 31 / 0.07);
  --shadow-lg: 0 2px 6px rgb(20 23 31 / 0.06), 0 30px 70px rgb(30 20 60 / 0.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #151820;
    --text: #e9ecf2;
    --muted: #98a1b2;
    --border: #2a2f3a;
    --accent: #f43f5e;
    --accent-hover: #fb7185;
    --accent-soft: #3a1520;
    --violet: #a78bfa;
    --card: #181b23;
    --glass: rgb(15 17 21 / 0.72);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 30px 70px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; }
kbd {
  font: 0.85em ui-monospace, monospace; padding: 1px 6px; border-radius: 5px;
  border: 1px solid var(--border); border-bottom-width: 2px; background: var(--bg-alt);
}
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
button { font: inherit; color: inherit; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 12px;
  border: 1px solid var(--border); font-weight: 650; text-decoration: none; color: var(--text); background: var(--bg);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #db2777); border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgb(225 29 72 / 0.32);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgb(225 29 72 / 0.42); }
.btn-ghost { background: var(--card); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: #14171f; border-color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }
.btn-sm { padding: 7px 14px; font-size: 0.9rem; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn img { border-radius: 6px; background: #fff; }
/* A light sweep across the main buttons now and then. */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  animation: shine 5s ease-in-out 1.5s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* header & footer */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--glass);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
}
body:not(.home) .site-header, .site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgb(20 23 31 / 0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 550; transition: color 0.15s; }
.nav nav a:not(.btn):hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--text); text-decoration: none; }
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 24px; margin-top: 80px; font-size: 0.95rem; }
.home .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a:not(.brand) { color: var(--text); text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--accent); }
.site-footer p { color: var(--muted); }
.copyright { color: var(--muted); font-size: 0.85rem; margin-top: 32px; }

/* scroll reveal (only when the script runs and motion is welcome) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(40% 50% at 80% 20%, rgb(244 63 94 / 0.18), transparent 70%),
    radial-gradient(35% 45% at 95% 70%, rgb(124 58 237 / 0.14), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, rgb(59 130 246 / 0.10), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
  /* follows the mouse a little (set by site.js) */
  translate: calc(var(--tx, 0) * -50px) calc(var(--ty, 0) * -40px);
  transition: translate 0.6s ease-out;
}
/* a faint grid behind the hero, fading out at the edges */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: 0.5;
  mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%);
}
.scroll-bar {
  position: fixed; left: 0; top: 0; z-index: 30; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), #db2777, var(--violet)); pointer-events: none;
}
.words .word { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(2deg); filter: blur(6px); animation: word 0.7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
.ghost-cursor {
  position: absolute; left: 0; top: 0; z-index: 5; width: 26px; height: 26px; margin: -3px 0 0 -4px; pointer-events: none;
  opacity: 0; transition: opacity 0.3s ease; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.35));
}
.ghost-cursor.on { opacity: 1; }
.ghost-cursor svg { width: 100%; height: 100%; fill: #14171f; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: transform 0.15s ease; }
.ghost-cursor::after { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -14px 0 0 -14px; border-radius: 50%; background: rgb(225 29 72 / 0.35); transform: scale(0); transition: transform 0.25s ease; }
.ghost-cursor.down svg { transform: scale(0.85); }
.ghost-cursor.down::after { transform: scale(1); }
.ribbon { overflow: hidden; padding: 18px 0; border-bottom: 1px solid var(--border); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-row { display: flex; gap: 14px; padding-right: 14px; }
.ribbon-row span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-weight: 650; color: var(--muted); white-space: nowrap; }
.ribbon-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--violet)); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate3d(-3%, 4%, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 0.86rem; font-weight: 650; color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgb(239 68 68 / 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(239 68 68 / 0); } 100% { box-shadow: 0 0 0 0 rgb(239 68 68 / 0); } }
.hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); margin: 18px 0 18px; letter-spacing: -0.03em; }
.grad { background: linear-gradient(120deg, var(--accent), #db2777 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 550; }
.checks li::before { content: "✓ "; color: #16a34a; font-weight: 800; }

/* ---------- home: the live demo ---------- */
.demo { position: relative; }
.demo-tabs {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.demo-tabs button {
  border: 0; background: none; padding: 7px 14px; border-radius: 9px; cursor: pointer;
  font-size: 0.88rem; font-weight: 650; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.demo-tabs button[aria-selected="true"] { background: var(--card); color: var(--accent); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.demo-window { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px rgb(0 0 0 / 0.06); transform: perspective(1400px) rotateY(calc(-4deg + var(--tx, 0) * 12deg)) rotateX(calc(2deg - var(--ty, 0) * 9deg)); transition: transform 0.4s ease-out; }
.win-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  background: linear-gradient(#f7f7f9, #ececf0); border-bottom: 1px solid #dcdde3; color: #4b4f58;
}
.win-bar > i, .tpl-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.18); }
.win-bar > i:nth-of-type(2), .tpl-bar > i:nth-of-type(2) { background: #febc2e; }
.win-bar > i:nth-of-type(3), .tpl-bar > i:nth-of-type(3) { background: #28c840; }
.win-title { flex: 1; text-align: center; font-size: 0.78rem; font-weight: 600; }
.rec-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  background: #fff; border: 1px solid #e5e7eb; font: 600 0.74rem ui-monospace, monospace; color: #111827;
}
.rec-pill b { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: blink 1.2s steps(2, start) infinite; }
.rec-pill.paused b { background: #f59e0b; animation: none; }
@keyframes blink { to { visibility: hidden; } }
.demo-screen { position: relative; aspect-ratio: 16 / 10; background: #f4f6fb; overflow: hidden; }

/* the mock dashboard being recorded */
.dash { position: absolute; inset: 0; padding: 4% 4.5%; display: flex; flex-direction: column; gap: 4%; color: #14171f; transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.dash-stats div { background: #fff; border: 1px solid #e3e7ef; border-radius: 8px; padding: 6% 8%; }
.dash small { display: block; color: #667085; font-size: clamp(0.5rem, 1vw, 0.68rem); }
.dash b { font-size: clamp(0.8rem, 1.9vw, 1.25rem); font-weight: 750; }
.dash .g { color: #16a34a; } .dash .b { color: #2563eb; } .dash .r { color: #e11d48; }
.dash-chart { flex: 1; background: #fff; border: 1px solid #e3e7ef; border-radius: 8px; padding: 2.5% 3%; display: flex; flex-direction: column; }
.dash-chart svg { flex: 1; width: 100%; }
.line { fill: none; stroke: #3b82f6; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); animation: draw 2.2s ease 0.4s forwards; }
.area { clip-path: inset(0 100% 0 0); animation: draw 2.2s ease 0.4s forwards; }
.line.drawn { clip-path: none; animation: none; }
@keyframes draw { to { clip-path: inset(0 0 0 0); } }

.demo-cam {
  position: absolute; left: 3.5%; top: 58%; width: 24%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 3px solid #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 0.3); cursor: grab; touch-action: none; z-index: 2;
  transition: left 0.45s cubic-bezier(.2,.7,.2,1), top 0.45s cubic-bezier(.2,.7,.2,1), width 0.45s cubic-bezier(.2,.7,.2,1), opacity 0.3s, transform 0.3s, border-radius 0.45s;
  animation: nudge 3s ease-in-out 2.5s 2;
}
.demo-cam svg { display: block; width: 100%; height: 100%; }
.demo-cam.dragging { cursor: grabbing; transition: width 0.45s, transform 0.2s; transform: scale(1.06); box-shadow: 0 16px 36px rgb(15 23 42 / 0.4); animation: none; }
.demo-cam:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translate(6px, -4px) scale(1.04); } 60% { transform: translate(-2px, 2px); } }
.demo[data-mode="screen"] .demo-cam { opacity: 0; transform: scale(0.6); pointer-events: none; }
.demo[data-mode="camera"] .demo-cam { left: 50% !important; top: 50% !important; width: 52%; transform: translate(-50%, -50%); cursor: default; animation: none; }
.demo[data-mode="camera"] .dash { opacity: 0.25; filter: blur(6px); transform: scale(1.04); }
.demo.paused .demo-screen::after {
  content: "Paused"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 3;
  background: rgb(15 17 21 / 0.35); color: #fff; font-weight: 750; letter-spacing: 0.04em; backdrop-filter: blur(2px);
}
.demo-saved { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgb(15 17 21 / 0.45); backdrop-filter: blur(3px); animation: fade 0.3s ease; }
.demo-saved[hidden] { display: none; }
.saved-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 22px; border-radius: 14px;
  background: #fff; color: #14171f; box-shadow: var(--shadow-lg); text-align: center; animation: pop 0.35s cubic-bezier(.2,.9,.3,1.3);
}
.saved-card svg { width: 30px; height: 30px; fill: none; stroke: #16a34a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.saved-card span { color: #5d6676; font-size: 0.82rem; margin-bottom: 6px; }
.saved-card .link { border: 0; background: none; color: #5d6676; font-size: 0.82rem; text-decoration: underline; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }

.demo-controls { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ctl {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.15s ease, background 0.2s;
}
.ctl:hover { transform: translateY(-1px); }
.ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ctl[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.ctl.stop { background: #dc2626; border-color: #dc2626; color: #fff; }
.ctl.stop svg { fill: currentColor; stroke: none; }
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.meter i { width: 3px; border-radius: 2px; background: #16a34a; animation: level 0.9s ease-in-out infinite alternate; }
.meter i:nth-child(2) { animation-delay: -0.3s; } .meter i:nth-child(3) { animation-delay: -0.6s; }
.meter i:nth-child(4) { animation-delay: -0.15s; } .meter i:nth-child(5) { animation-delay: -0.45s; }
@keyframes level { from { height: 3px; } to { height: 14px; } }
.demo.muted .meter i, .demo.paused .meter i, .demo.stopped .meter i { animation: none; height: 3px; background: var(--muted); }
.demo-hint { color: var(--muted); font-size: 0.88rem; margin-left: 4px; }

/* ---------- home: highlight strip ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.strip-grid div { padding: 26px 10px; }
.strip-grid div + div { border-left: 1px solid var(--border); }
.strip b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(120deg, var(--accent), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strip span { color: var(--muted); font-size: 0.92rem; font-weight: 550; }

/* ---------- home: sections ---------- */
.section { padding: 88px 20px; }
.section.alt { background: var(--bg-alt); }
.kicker { text-align: center; margin: 0 0 8px; color: var(--accent); font-weight: 750; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); text-align: center; margin: 0 0 44px; }
.section h2.left, .tpl-grid .kicker { text-align: left; }
.section h2.left { margin-bottom: 14px; }

/* features: a bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(244 63 94 / 0.08), transparent 45%);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgb(225 29 72 / 0.3); }
.tile:hover::before { opacity: 1; }
.tile-wide { grid-column: span 2; }
.tile h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.tile-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform 0.3s ease; }
.tile:hover .tile-icon { transform: rotate(-6deg) scale(1.08); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.choice span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: all 0.2s; }
.tile:hover .choice span:nth-child(2) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 26px; margin-top: 14px; }
.bars i { flex: 1; border-radius: 3px; background: linear-gradient(var(--accent), var(--violet)); opacity: 0.75; animation: level 1s ease-in-out infinite alternate; height: 6px; }
.bars i:nth-child(3n) { animation-delay: -0.4s; } .bars i:nth-child(3n+1) { animation-delay: -0.7s; } .bars i:nth-child(4n) { animation-duration: 0.7s; }
.tile .bars i { animation-name: tall; }
@keyframes tall { from { height: 4px; } to { height: 26px; } }

/* templates */
.tpl-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.tpl-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tpl-picker button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-weight: 650; font-size: 0.92rem; cursor: pointer; transition: all 0.2s ease;
}
.tpl-picker button:hover { border-color: var(--accent); }
.tpl-picker button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.tpl-stage {
  --g: linear-gradient(135deg, #4f6bff, #9a5cf5 55%, #ff7aa2);
  aspect-ratio: 16 / 10; border-radius: 18px; display: grid; place-items: center; padding: 7%;
  background: var(--g); box-shadow: var(--shadow-lg); transition: background 0.5s ease, padding 0.45s ease;
}
.tpl-stage[data-tpl="mac-dark"] { --g: linear-gradient(135deg, #0b1023, #2b2470 55%, #5b2a86); }
.tpl-stage[data-tpl="browser"] { --g: linear-gradient(135deg, #0ea5e9, #3b82f6 55%, #6366f1); }
.tpl-stage[data-tpl="rounded"] { --g: linear-gradient(135deg, #f59e0b, #f43f5e 55%, #9333ea); }
.tpl-stage[data-tpl="clean"] { --g: linear-gradient(135deg, #e2e8f0, #f1f5f9 55%, #e0e7ff); }
.tpl-stage[data-tpl="none"] { --g: #14171f; padding: 0; }
.tpl-frame {
  width: 100%; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 60px rgb(15 10 40 / 0.45); transition: border-radius 0.45s, box-shadow 0.45s;
}
.tpl-stage[data-tpl="none"] .tpl-frame { border-radius: 18px; box-shadow: none; }
.tpl-stage[data-tpl="rounded"] .tpl-frame, .tpl-stage[data-tpl="clean"] .tpl-frame { border-radius: 16px; }
.tpl-stage[data-tpl="clean"] .tpl-frame { box-shadow: 0 20px 50px rgb(30 41 59 / 0.28); }
.tpl-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; background: linear-gradient(#f7f7f9, #ececf0); border-bottom: 1px solid #dcdde3; overflow: hidden; transition: height 0.4s ease, background 0.4s; }
.tpl-url { display: none; flex: 1; margin-left: 10px; padding: 2px 12px; border-radius: 999px; background: #fff; color: #667085; font-size: 0.7rem; border: 1px solid #e3e7ef; }
.tpl-stage[data-tpl="browser"] .tpl-url { display: block; }
.tpl-stage[data-tpl="mac-dark"] .tpl-bar { background: linear-gradient(#2b2f3a, #232631); border-bottom-color: #14161d; }
.tpl-stage[data-tpl="none"] .tpl-bar, .tpl-stage[data-tpl="rounded"] .tpl-bar, .tpl-stage[data-tpl="clean"] .tpl-bar { height: 0; border: 0; }
.tpl-video { position: relative; aspect-ratio: 16 / 9.4; background: #f4f6fb; }
.dash.mini { padding: 4%; }
.tpl-cam { position: absolute; left: 3.5%; bottom: 5%; width: 20%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 6px 16px rgb(15 23 42 / 0.3); }

/* how it works */
.steps-ui { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.step-list button {
  position: relative; display: flex; gap: 14px; width: 100%; padding: 16px 18px; text-align: left; overflow: hidden;
  border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.step-list button:hover { background: var(--bg-alt); }
.step-list button[aria-current] { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
.step-list .num {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; background: var(--bg-alt); color: var(--muted); transition: all 0.25s;
}
.step-list button[aria-current] .num { background: linear-gradient(135deg, var(--accent), #db2777); color: #fff; }
.step-list strong { display: block; font-size: 1.04rem; }
.step-list small { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-top: 2px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease; }
.step-list button[aria-current] small { max-height: 120px; opacity: 1; }
.step-list .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--violet)); }
.step-list button.run .bar { animation: progress 5s linear forwards; }
@keyframes progress { to { width: 100%; } }
.step-shots { position: relative; aspect-ratio: 560 / 800; width: 100%; max-width: 440px; justify-self: center; background: #eef0f5; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.step-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 0.5s ease, transform 0.6s ease; }
.step-shots img.on { opacity: 1; transform: none; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; margin: 10px 0; transition: box-shadow 0.25s, border-color 0.25s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgb(225 29 72 / 0.3); }
.faq summary { list-style: none; cursor: pointer; font-weight: 650; font-size: 1.04rem; padding: 18px 54px 18px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-alt); color: var(--muted); font-weight: 500; font-size: 1.2rem; line-height: 1;
  transition: transform 0.25s ease, background 0.25s, color 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details > div { padding: 0 20px 18px; }
.faq details p { color: var(--muted); margin: 0; }
.faq details[open] > div { animation: open 0.3s ease; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* closing call to action */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, #14171f, #2a1530 60%, #3b0f2a); color: #fff; text-align: center; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { color: #c9cfdb; margin: 0 0 26px; }
.cta-band .container { position: relative; }
.cta-orbs i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0.55; animation: float 12s ease-in-out infinite alternate; }
.cta-orbs i:nth-child(1) { width: 320px; height: 320px; left: -60px; top: -80px; background: #e11d48; }
.cta-orbs i:nth-child(2) { width: 280px; height: 280px; right: -40px; bottom: -120px; background: #7c3aed; animation-delay: -4s; }
.cta-orbs i:nth-child(3) { width: 180px; height: 180px; left: 55%; top: -60px; background: #2563eb; opacity: 0.35; animation-delay: -8s; }
@keyframes float { to { transform: translate3d(40px, 30px, 0) scale(1.1); } }

/* ---------- articles ---------- */
.article { max-width: 760px; padding-top: 32px; }
.article h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 8px 0 14px; }
.article h2 { margin-top: 40px; font-size: 1.5rem; }
.article img { border-radius: 12px; border: 1px solid var(--border); margin: 12px 0; }
.article li { margin: 6px 0; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { color: var(--muted); font-size: 0.9rem; }
.cta-box { margin: 48px 0 24px; padding: 28px; border-radius: var(--radius); background: var(--accent-soft); }
.cta-box h2 { margin: 0 0 6px; }
.related { border-top: 1px solid var(--border); margin-top: 32px; }
.related h2 { font-size: 1.1rem; }
.eyebrow { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps img { border-radius: 12px; border: 1px solid var(--border); }
.steps h3 { margin: 16px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- uninstall survey ---------- */
.bye .site-footer { margin-top: 0; }
.bye-main { position: relative; overflow: hidden; padding: 56px 16px 80px; min-height: calc(100vh - 64px); }
.bye-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-alt); }
.bye-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; animation: float 14s ease-in-out infinite alternate; }
.bye-bg i:nth-child(1) { width: 420px; height: 420px; left: -120px; top: -100px; background: rgb(244 63 94 / 0.45); }
.bye-bg i:nth-child(2) { width: 380px; height: 380px; right: -120px; top: 30%; background: rgb(124 58 237 / 0.35); animation-delay: -5s; }
.bye-bg i:nth-child(3) { width: 300px; height: 300px; left: 35%; bottom: -160px; background: rgb(59 130 246 / 0.3); animation-delay: -9s; }
.bye-card {
  max-width: 720px; margin: 0 auto; padding: 36px 36px 26px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.bye-head { text-align: center; }
.bye-badge { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); animation: bob 4s ease-in-out infinite; }
.bye-badge img { border-radius: 10px; }
.wave { position: absolute; right: -14px; bottom: -8px; font-size: 1.7rem; transform-origin: 70% 80%; animation: wave 2.4s ease-in-out 0.6s infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }
.bye h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 22px 0 8px; letter-spacing: -0.03em; }
.bye-lead { color: var(--muted); font-size: 1.08rem; margin: 0 auto; max-width: 520px; }
.bye-steps { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 24px 0 26px; }
.bye-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 650; color: var(--muted); }
.bye-steps li + li::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--border); margin-right: 2px; transition: background 0.4s; }
.bye-steps span { position: relative; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); border: 1px solid var(--border); font-size: 0.8rem; transition: all 0.35s ease; }
.bye-card[data-step="1"] [data-n="1"], .bye-card[data-step="2"] [data-n="2"], .bye-card[data-step="3"] [data-n="3"] { color: var(--text); }
.bye-card[data-step="1"] [data-n="1"] span, .bye-card[data-step="2"] [data-n="2"] span, .bye-card[data-step="3"] [data-n="3"] span {
  background: linear-gradient(135deg, var(--accent), #db2777); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgb(225 29 72 / 0.35); transform: scale(1.1);
}
.bye-card[data-step="2"] [data-n="1"] span, .bye-card[data-step="3"] [data-n="1"] span, .bye-card[data-step="3"] [data-n="2"] span { background: #16a34a; border-color: transparent; color: transparent; }
.bye-card[data-step="2"] [data-n="1"] span::after, .bye-card[data-step="3"] [data-n="1"] span::after, .bye-card[data-step="3"] [data-n="2"] span::after { content: "\2713"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.bye-card[data-step="2"] [data-n="2"]::before, .bye-card[data-step="3"] li::before { background: #16a34a; }

.pane:not([hidden]) { animation: pane 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes pane { from { opacity: 0; transform: translateX(18px); } }
.reason-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.reason-grid button {
  display: flex; align-items: center; gap: 14px; width: 100%; height: 100%; padding: 16px; text-align: left;
  border-radius: 16px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-weight: 600; line-height: 1.35;
  box-shadow: 0 1px 2px rgb(20 23 31 / 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.reason-grid li { opacity: 0; animation: pop-in 0.45s cubic-bezier(.2,.9,.3,1.2) forwards; }
.reason-grid li:nth-child(1) { animation-delay: 0.15s; } .reason-grid li:nth-child(2) { animation-delay: 0.22s; }
.reason-grid li:nth-child(3) { animation-delay: 0.29s; } .reason-grid li:nth-child(4) { animation-delay: 0.36s; }
.reason-grid li:nth-child(5) { animation-delay: 0.43s; } .reason-grid li:nth-child(6) { animation-delay: 0.5s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
.reason-grid button:hover { transform: translateY(-3px); border-color: rgb(225 29 72 / 0.45); box-shadow: var(--shadow); }
.reason-grid button.on { border-color: var(--accent); background: var(--accent-soft); transform: scale(0.98); }
.ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform 0.25s ease, background 0.25s, color 0.25s; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reason-grid button:hover .ico { transform: rotate(-8deg) scale(1.08); }
.reason-grid button.on .ico { background: var(--accent); color: #fff; }

.picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgb(225 29 72 / 0.3); }
.picked strong { flex: 1; }
.picked .ico { background: var(--accent); color: #fff; }
.change { border: 0; background: none; color: var(--accent); font-weight: 650; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.change:hover { background: rgb(225 29 72 / 0.1); }
.tip { margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px dashed var(--border); color: var(--muted); font-size: 0.96rem; animation: pane 0.5s ease 0.1s backwards; }
.tip strong { color: var(--text); }
.tip a { font-weight: 650; white-space: nowrap; }
#feedback label { display: block; margin: 20px 0 8px; font-weight: 650; }
#feedback label span { color: var(--muted); font-weight: 500; }
#feedback textarea {
  display: block; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font: inherit; resize: vertical; transition: border-color 0.2s, box-shadow 0.2s;
}
#feedback textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(225 29 72 / 0.15); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.count { color: var(--muted); font-size: 0.85rem; }
.send { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.send:disabled { cursor: progress; opacity: 0.85; }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.4); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.send.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { color: var(--accent); font-size: 0.92rem; min-height: 1.4em; margin: 10px 0 0; }

.done { text-align: center; padding: 6px 0 4px; }
.done h2 { font-size: 1.9rem; margin: 14px 0 6px; }
.done p { color: var(--muted); margin: 0 auto 22px; max-width: 440px; }
.check { width: 84px; height: 84px; }
.check circle { fill: none; stroke: #16a34a; stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: stroke 0.6s ease forwards; }
.check path { fill: none; stroke: #16a34a; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: stroke 0.35s ease 0.5s forwards; }
.done:not([hidden]) .check { animation: pulse-ok 0.5s ease 0.8s; }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes pulse-ok { 50% { transform: scale(1.12); } }
.bye-foot { text-align: center; color: var(--muted); font-size: 0.92rem; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--border); }
.bye-card[data-step="3"] .bye-foot { display: none; }
@media (max-width: 620px) {
  .bye-card { padding: 26px 18px 20px; border-radius: 20px; }
  .reason-grid { grid-template-columns: 1fr; }
  .bye-steps li + li::before { width: 16px; }
  .form-row { flex-direction: column-reverse; align-items: stretch; }
  .send { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reason-grid li { opacity: 1; }
  .check circle, .check path { stroke-dashoffset: 0; }
}

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .tpl-grid, .steps-ui { grid-template-columns: 1fr; gap: 40px; }
  .demo-window { transform: none; }
}
@media (max-width: 860px) {
  .cards, .steps, .footer-grid { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding-top: 36px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid div:nth-child(3) { border-left: 0; }
  .strip-grid div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .section { padding: 64px 16px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .demo-tabs button { padding: 6px 10px; font-size: 0.8rem; }
  .demo-hint { display: none; }
  .tpl-stage { padding: 5%; }
}

/* People who ask for less motion get a still page. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .line, .area { clip-path: none; }
}
