:root {
  --bg: #fff6ea;
  --ink: #17120d;
  --muted: #6d6257;
  --accent: #ff5a1f;
  --accent-ink: #fff;
  --card: #ffffff;
  --line: rgba(23, 18, 13, 0.12);
  --panel: rgba(255, 181, 148, 0.96);
  --radius: 18px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.poking, html.poking * { cursor: none !important; }
a { color: inherit; }
img { display: block; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 19px var(--display); text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; text-decoration: none;
  font: 600 16px var(--body); padding: 14px 22px; border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 14px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hero { padding: 72px 0 40px; max-width: 760px; }
.eyebrow { margin: 0 0 14px; font: 600 13px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0; font: 800 clamp(52px, 9vw, 104px)/0.95 var(--display); letter-spacing: -0.035em; }
h2 { margin: 0 0 16px; font: 800 clamp(32px, 4.6vw, 48px)/1.05 var(--display); letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font: 800 21px/1.2 var(--display); }
.lede { font-size: 20px; color: #3b3129; max-width: 620px; margin: 26px 0 30px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.fine { color: var(--muted); font-size: 14px; }
.try { margin-top: 36px; color: var(--muted); font-size: 15px; }
.try .key { color: var(--ink); font-weight: 600; }

/* Pretend call */
.stage { padding: 10px 0 90px; }
.call { background: #1d1a17; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(40, 20, 0, .45); }
.call-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #2a2622; color: #b8aea3; font-size: 13px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.call-title { margin-left: 10px; }
.call-body { display: grid; grid-template-columns: 1fr 200px; gap: 14px; padding: 14px; }
.slide { background: #fffdf8; border-radius: 14px; padding: 34px 38px; min-height: 380px; display: flex; flex-direction: column; }
.slide-kicker { margin: 0; color: var(--accent); font-weight: 600; font-size: 14px; }
.slide h3 { font-size: 32px; margin: 4px 0 20px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 22px; min-height: 180px; border-bottom: 2px solid var(--line); }
.bar { flex: 1; height: var(--h); background: #e9ddd0; border-radius: 10px 10px 0 0; position: relative; }
.bar.hot { background: var(--accent); }
.bar span { position: absolute; bottom: -28px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); }
.slide-note { margin: 40px 0 0; color: var(--muted); font-size: 15px; }
.tiles { display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px; }
.tile { border-radius: 12px; display: grid; place-items: center; color: rgba(255,255,255,.9); font: 800 20px var(--display); min-height: 84px; }
.t1 { background: linear-gradient(135deg, #5b7cfa, #3a4fd1); }
.t2 { background: linear-gradient(135deg, #2fb89a, #13806b); }
.t3 { background: linear-gradient(135deg, #f2a541, #d77a17); }
.t4 { background: linear-gradient(135deg, #8a7f74, #5b524a); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0 90px; }
.split p { color: #3b3129; }
.muted { color: var(--muted) !important; font-size: 15px; }
.prompt-demo { display: grid; place-items: center; padding: 40px 0; background: radial-gradient(circle at 50% 30%, #ffe3cc, transparent 70%); border-radius: var(--radius); }
.prompt {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px); box-shadow: 0 12px 40px -12px rgba(0,0,0,.3);
  border: 1px solid var(--line); max-width: 100%;
}
.prompt-icon { width: 38px; height: 38px; object-fit: contain; background: #ff9a3c; border-radius: 50%; padding: 5px; }
.prompt-text { display: flex; flex-direction: column; font-size: 13px; line-height: 1.35; }
.prompt-text span { color: var(--muted); font-size: 11.5px; }
.pill { font: 600 12px var(--body); padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.07); white-space: nowrap; }
.pill.hot { background: var(--accent); color: #fff; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 90px; }
.features article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.features p { margin: 0; color: #4a4037; font-size: 15.5px; }
kbd { font: 600 13px var(--body); background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; margin: 0 1px; }

.install { padding-bottom: 80px; max-width: 720px; }
.install ol { padding-left: 22px; margin: 0; }
.install li { margin: 10px 0; font-size: 17px; }

.faq { padding-bottom: 100px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font: 800 19px var(--display); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: #4a4037; margin: 10px 0 0; }

.footer { max-width: 1120px; margin: 0 auto; padding: 28px 24px 48px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }

/* Live pointer */
#poker { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; display: none; will-change: transform; transform-origin: 0 0; }
#poker .hand { position: absolute; transform-origin: var(--tx) var(--ty); }
#poker .stick { position: absolute; border-radius: 999px; background: linear-gradient(to bottom, #000 0%, #000 25%, rgba(0,0,0,0) 100%); }
.burst { position: fixed; z-index: 9998; pointer-events: none; animation: burst .32s ease-out forwards; }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.55); opacity: 1; }
  45% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.12); opacity: 0; }
}

/* Right-edge panel (same controls as the app) */
#edge-panel { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 9990; display: none; }
#edge-panel.on { display: block; }
.ep-body { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; background: var(--panel); border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(80, 30, 0, .35); border: 1px solid rgba(0,0,0,.08); }
#edge-panel button { appearance: none; border: 0; background: transparent; color: rgba(0,0,0,.85); width: 42px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 700 20px var(--body); padding: 0; }
#edge-panel button:hover:not(:disabled) { background: rgba(0,0,0,.08); }
#edge-panel button:disabled { opacity: .35; }
#edge-panel .ep-style { height: 44px; }
#edge-panel .ep-style img { height: 28px; width: auto; }
#edge-panel .ep-style[aria-pressed="true"] { background: rgba(0,0,0,.16); }
#edge-panel .ep-icon { font-size: 18px; }
#edge-panel hr { width: 28px; border: 0; border-top: 1px solid rgba(0,0,0,.2); margin: 3px 0; }
#edge-panel .ep-grip span { width: 6px; height: 24px; border-radius: 3px; background: rgba(0,0,0,.55); }
#edge-panel .ep-tab { display: none; width: 26px !important; height: 70px !important; border-radius: 12px 0 0 12px !important; background: var(--panel) !important; font-size: 22px !important; }
#edge-panel.collapsed { right: 0; }
#edge-panel.collapsed .ep-body { display: none; }
#edge-panel.collapsed .ep-tab { display: grid; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .call-body { grid-template-columns: 1fr; }
  .tiles { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); }
  .tile { min-height: 64px; }
}
@media (max-width: 600px) {
  .nav nav a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .slide { padding: 24px; min-height: 300px; }
  .prompt .pill:not(.hot) { display: none; }
}
