/* Callstage site. Palette from the app icon: a dark stage, lilac type, a coral → amber tally. */
:root {
  --stage-0: #07051a;
  --stage-1: #120c33;
  --stage-2: #231a5c;
  --ink: #f4f1ff;
  --ink-2: #c9c2ec;
  --ink-3: #8f87b8;
  --line: rgba(201, 194, 236, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --tally-a: #ff4f6d;
  --tally-b: #ff9a3d;
  --tally: linear-gradient(135deg, var(--tally-a), var(--tally-b));
  --radius: 18px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stage-0);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
code, kbd { font: 0.92em/1.4 ui-monospace, "SF Mono", Menlo, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* --- Top bar ------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: rgba(7, 5, 26, 0.72);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top .btn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 720px) { .top nav { display: none; } .top .btn { margin-left: auto; } }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--tally); color: #1a0710; box-shadow: 0 8px 30px -8px rgba(255, 110, 80, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(255, 110, 80, 0.75); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn svg { width: 18px; height: 18px; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(255, 231, 194, 0.16), transparent 70%),
    linear-gradient(180deg, var(--stage-2) 0%, var(--stage-1) 45%, var(--stage-0) 100%);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero { padding: 56px 0 48px; } .hero .wrap { grid-template-columns: 1fr; gap: 44px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 12px var(--tally-b); }
h1 {
  font-size: clamp(40px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 18px 0 20px; font-weight: 750;
}
h1 em { font-style: normal; background: var(--tally); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* --- The demo call tile ------------------------------------------------- */
.call {
  border-radius: 20px; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0,0,0,0.3);
}
.call-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 10px; }
.call-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.call-bar span { margin-left: 8px; font-size: 12px; color: var(--ink-3); }
.tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(30% 40% at 18% 30%, rgba(255, 196, 120, 0.35), transparent 70%),
    radial-gradient(25% 35% at 82% 22%, rgba(120, 160, 255, 0.30), transparent 70%),
    radial-gradient(40% 50% at 70% 85%, rgba(160, 110, 255, 0.28), transparent 70%),
    linear-gradient(160deg, #3b3256, #1d1934 60%, #15122a);
}
.tile .bokeh { position: absolute; border-radius: 50%; filter: blur(10px); opacity: 0.55; }
.tile .person { position: absolute; left: 50%; bottom: -2%; width: 46%; transform: translateX(-50%); }
.tile .bug { position: absolute; top: 5%; right: 4%; width: 9%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4)); }
.tile .chip {
  position: absolute; top: 6%; left: 4%;
  display: flex; align-items: center; gap: 6px;
  padding: 0.35em 0.75em; border-radius: 999px;
  background: rgba(10, 8, 30, 0.55); backdrop-filter: blur(6px);
  font-size: clamp(9px, 1.4vw, 13px); font-weight: 600; color: #fff;
}
.tile .chip b { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--tally-a); box-shadow: 0 0 8px var(--tally-a); }
.tile .banner {
  position: absolute; left: 4%; bottom: 8%;
  display: flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.6);
  font-size: clamp(10px, 1.7vw, 16px);
}
.tile .banner .accent { width: 0.45em; background: var(--tally); }
.tile .banner .text { background: rgba(250, 248, 255, 0.95); color: #1a1438; padding: 0.45em 0.9em 0.5em; line-height: 1.2; }
.tile .banner strong { display: block; font-size: 1.05em; letter-spacing: -0.01em; }
.tile .banner small { font-size: 0.78em; color: #5a5480; }
.call-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 2px; font-size: 12px; color: var(--ink-3); }
.call-foot .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.call-foot .live b { width: 7px; height: 7px; border-radius: 50%; background: var(--tally-a); }

/* --- Sections ----------------------------------------------------------- */
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.kicker { font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tally-b); margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; font-weight: 720; }
.sub { color: var(--ink-2); max-width: 40em; margin: 0 0 44px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card {
  padding: 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.card .ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 79, 109, 0.18), rgba(255, 154, 61, 0.18));
  border: 1px solid rgba(255, 140, 90, 0.25);
}
.card .ic svg { width: 21px; height: 21px; stroke: #ffb48a; }
.card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card code { color: var(--ink); background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 6px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--tally); color: #1a0710; font-weight: 750; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.install { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .install { grid-template-columns: 1fr; } }
.install .card h3 { font-size: 20px; }
.install .card p { margin-bottom: 18px; }
.cmd {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 16px; border-radius: 12px;
  background: #05040f; border: 1px solid var(--line);
  overflow-x: auto;
}
.cmd code { flex: 1; white-space: nowrap; color: #e9e5ff; }
.cmd button {
  flex: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.06); color: var(--ink); font: 600 13px/1 inherit; cursor: pointer;
}
.fine { font-size: 14px; color: var(--ink-3); margin-top: 14px; }

.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 12px 0 0; }

.closing { text-align: center; }
.closing img { width: 96px; height: 96px; margin: 0 auto 22px; }
.closing .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; }
footer nav { display: flex; gap: 20px; margin-left: auto; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* --- Text pages (privacy, support) -------------------------------------- */
.doc { padding: 64px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; }
.doc .updated { color: var(--ink-3); margin: 0 0 36px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc a { color: #ffb48a; }

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

/* Grid items default to min-width:auto, so a long command line would widen the page. */
.hero .wrap > *, .grid > *, .steps > *, .install > * { min-width: 0; }
.fine code, .card p code { overflow-wrap: anywhere; }
@media (max-width: 600px) { .cmd code { white-space: normal; overflow-wrap: anywhere; } }
