/* ============================================================================
   ClaudeKeep — landing page
   Warm coral→amber on deep ink, with a teal accent. Premium, clean, distinctive.
   ========================================================================== */

:root {
  --bg: #0a0b0f;
  --bg-soft: #0c0d12;
  --surface: #14151c;
  --surface-2: #191b23;
  --glass: rgba(255, 255, 255, .04);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .13);
  --text: #edeef2;
  --muted: #a2a8b4;
  --faint: #6c727e;

  --coral: #ff7a4d;
  --coral-d: #ff6a3d;
  --amber: #ffb259;
  --teal: #2dd4bf;

  --grad: linear-gradient(100deg, #ff8f5e, #ff6a3d);
  --grad-text: linear-gradient(100deg, #ffc39c 4%, #ff8a5c 55%, #ff6a3d);

  --r: 14px;
  --r-lg: 22px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .92em; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

a { color: inherit; text-decoration: none; }
kbd { font-family: var(--mono); font-size: .82em; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 5px; padding: 1px 6px; color: var(--muted); }

::selection { background: rgba(255, 122, 77, .3); }

/* ---------- ambient background ---------- */
/* fixed, full-viewport wrapper with overflow:hidden so the oversized glows are
   clipped to the screen and can never widen the document (mobile h-scroll). */
.bg-fx { position: fixed; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.glow-a { width: 720px; height: 720px; top: -300px; right: -180px; background: radial-gradient(circle, rgba(255, 110, 64, .55), transparent 65%); }
.glow-b { width: 620px; height: 620px; top: 420px; left: -260px; background: radial-gradient(circle, rgba(45, 212, 191, .3), transparent 65%); }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .5;
}

/* ============================ NAV ============================ */
.nav { position: sticky; top: 0; z-index: 100; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10, 11, 15, .72); backdrop-filter: saturate(160%) blur(16px); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.2px; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); }
.nav-ghost { color: var(--muted) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ BUTTONS ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: inherit; font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -8px rgba(255, 106, 61, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(255, 106, 61, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-glass { background: var(--glass); color: var(--text); border-color: var(--border-2); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .07); border-color: var(--border-2); transform: translateY(-2px); }
.btn-glass svg { fill: currentColor; stroke: none; color: var(--amber); }

/* ============================ HERO ============================ */
.hero { display: grid; grid-template-columns: 1.05fr 1.1fr; gap: 56px; align-items: center; padding: 76px 24px 60px; }
/* min-width:0 lets the grid tracks shrink below their content's min size so the
   headline and the mockup wrap/clip to the viewport instead of widening it. */
.hero-copy, .hero-shot { min-width: 0; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--coral); background: rgba(255, 122, 77, .1); border: 1px solid rgba(255, 122, 77, .22); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -1.8px; font-weight: 800; overflow-wrap: break-word; }
.lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); max-width: 540px; margin: 22px 0 30px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 13.5px; color: var(--faint); }
.trust li { position: relative; padding-left: 20px; }
.trust li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .15); }

/* ---------- app mockup ---------- */
.hero-shot { perspective: 1800px; }
.shot {
  background: linear-gradient(160deg, #16181f, #0e0f15);
  border: 1px solid var(--border-2); border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg) translateZ(0);
  transition: transform .5s var(--ease);
}
.hero-shot:hover .shot { transform: rotateY(-3deg) rotateX(1deg); }
.shot-chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255, 255, 255, .02); border-bottom: 1px solid var(--border); }
.shot-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.shot-url { margin-left: 12px; font-size: 11.5px; color: var(--faint); background: rgba(255, 255, 255, .04); padding: 3px 12px; border-radius: 7px; }
.shot-ui { font-size: 12px; }

.m-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.m-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; }
.m-logo { width: 16px; height: 16px; border-radius: 5px; background: var(--grad); }
.m-search { flex: 1; display: flex; align-items: center; justify-content: space-between; color: var(--faint); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 11px; }
.m-pill { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 11px; }
.m-body { display: grid; grid-template-columns: 130px 1fr; min-height: 270px; }
.m-side { border-right: 1px solid var(--border); padding: 12px 10px; display: flex; flex-direction: column; gap: 3px; }
.m-side-h { font-size: 9.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--faint); padding: 0 6px 6px; }
.m-proj { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--muted); font-size: 11.5px; }
.m-proj b { margin-left: auto; font-weight: 600; font-size: 10px; color: var(--faint); background: rgba(255, 255, 255, .05); border-radius: 999px; padding: 0 6px; }
.m-proj.active { background: rgba(255, 122, 77, .12); color: var(--coral); }
.m-proj.active b { background: var(--coral); color: #fff; }
.cd { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); flex-shrink: 0; }
.m-main { padding: 12px 14px; }
.m-chips { display: flex; gap: 6px; margin-bottom: 12px; }
.chip { font-size: 10.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.chip.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.m-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px; }
.m-card.pin { border-color: rgba(255, 178, 89, .4); }
.m-card-h { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 7px; }
.m-title { font-weight: 600; font-size: 11.5px; line-height: 1.3; flex: 1; }
.m-star { color: var(--amber); font-size: 12px; }
.m-badge { font-size: 8px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .06); border-radius: 999px; padding: 1px 6px; }
.m-path { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-bottom: 8px; }
.m-meta { font-size: 10px; color: var(--faint); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.m-cost { color: var(--teal); font-weight: 600; background: rgba(45, 212, 191, .12); border-radius: 999px; padding: 1px 7px; }

/* ============================ CONTEXT BAND ============================ */
.ctx { max-width: 820px; margin: 22px auto 0; text-align: center; }
.ctx p { font-size: clamp(17px, 2.3vw, 22px); line-height: 1.55; color: var(--muted); font-weight: 400; }
.ctx strong { color: var(--text); font-weight: 600; }

/* ============================ SECTIONS ============================ */
.section { padding: 96px 24px; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.section-head h2, .showcase h2, .safety-head h2, .cta h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1px; line-height: 1.12; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 16px; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; transition: transform .25s var(--ease), border-color .25s, background .25s; position: relative; overflow: hidden; }
.feat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(140% 90% at 0% 0%, color-mix(in srgb, var(--fc, var(--coral)) 12%, transparent), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feat:hover { transform: translateY(-4px); border-color: var(--border-2); background: rgba(255, 255, 255, .055); }
.feat:hover::after { opacity: 1; }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; color: var(--fc, var(--coral)); background: color-mix(in srgb, var(--fc, var(--coral)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--fc, var(--coral)) 28%, transparent); }
.feat-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; letter-spacing: -.3px; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feat em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- insights showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: linear-gradient(150deg, rgba(255, 122, 77, .06), rgba(45, 212, 191, .04)); border: 1px solid var(--border); border-radius: 28px; padding: 48px; }
.showcase-copy h2 { margin-bottom: 16px; }
.showcase-copy > p { color: var(--muted); font-size: 16px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--teal); background: rgba(45, 212, 191, .14); border-radius: 50%; }

.ins { background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.ins-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.ins-cell { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; }
.ins-cell b { display: block; font-size: 19px; letter-spacing: -.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ins-cell b.money { color: var(--teal); } .ins-cell b.accent { color: var(--coral); }
.ins-cell span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--faint); }
.ins-tok { display: flex; height: 22px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.ins-tok span { height: 100%; }
.ins-bars { display: grid; gap: 9px; margin-bottom: 18px; }
.ib { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; }
.ib-l { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ib-t { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ib-t i { display: block; height: 100%; border-radius: 999px; }
.ins-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.ins-heat i { aspect-ratio: 1; border-radius: 2.5px; background: var(--hc, rgba(255, 255, 255, .05)); }

/* ============================ INSTALL ============================ */
.steps { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
/* min-width:0 lets the grid item shrink so the long `git clone …` line scrolls
   inside the code block (overflow-x:auto) instead of widening the page. */
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; min-width: 0; }
.step-body { min-width: 0; }
.step-n { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: var(--coral); background: rgba(255, 122, 77, .1); border: 1px solid rgba(255, 122, 77, .25); border-radius: 13px; }
.step-body h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -.2px; }
.step-note { font-size: 13.5px; color: var(--faint); margin-top: 9px; }
.code { position: relative; min-width: 0; background: #0c0d12; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.code pre { padding: 15px 18px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13px; color: #e6e7ec; line-height: 1.7; white-space: pre; }
.copy { position: absolute; top: 9px; right: 9px; font-family: var(--font); font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 8px; padding: 5px 11px; cursor: pointer; transition: all .15s; }
.copy:hover { color: var(--text); border-color: var(--coral); }
.copy.done { color: var(--teal); border-color: var(--teal); }
.alt-install { text-align: center; color: var(--muted); margin-top: 30px; font-size: 15px; }
.alt-install a { color: var(--coral); border-bottom: 1px solid rgba(255, 122, 77, .35); }
.alt-install a:hover { border-color: var(--coral); }

/* ============================ SAFETY ============================ */
.safety { background: var(--glass); border: 1px solid var(--border); border-radius: 28px; padding: 48px; }
.safety-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.safety-head p { color: var(--muted); margin-top: 14px; }
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.safe { text-align: left; }
.safe-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; color: var(--teal); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .22); margin-bottom: 14px; }
.safe-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.safe h4 { font-size: 15.5px; margin-bottom: 7px; }
.safe p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ============================ FAQ ============================ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--glass); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { padding: 18px 22px; font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--coral); transition: transform .25s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ============================ CTA ============================ */
.cta { text-align: center; max-width: 800px; margin: 40px auto 0; background: linear-gradient(150deg, rgba(255, 122, 77, .1), rgba(255, 178, 89, .05)); border: 1px solid rgba(255, 122, 77, .2); border-radius: 28px; padding: 56px 40px; }
.cta p { color: var(--muted); font-size: 17px; margin: 16px 0 26px; }
.cta .hero-cta { justify-content: center; }
.cta-code { max-width: 640px; margin: 0 auto 28px; text-align: left; }
.cta-code code { white-space: pre-wrap; word-break: break-word; }

/* ============================ FOOTER ============================ */
.footer { border-top: 1px solid var(--border); margin-top: 100px; padding: 56px 0 40px; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--faint); font-size: 14px; margin-top: 14px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 12.5px; color: var(--faint); }
.footer-base .warn { color: var(--amber); opacity: .85; }

/* ============================ REVEAL ============================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 48px; }
  .hero-shot { perspective: none; }
  .shot { transform: none; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .safety-grid { grid-template-columns: 1fr; }
  .showcase { padding: 32px; gap: 36px; }
  .safety-grid { gap: 24px; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 70px 0 auto; flex-direction: column; align-items: stretch; gap: 4px; background: rgba(10, 11, 15, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 16px 24px 22px; transform: translateY(-120%); transition: transform .3s var(--ease); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 8px; }
  .nav-links .btn { margin-top: 6px; }
  .nav-toggle { display: flex; }
  .section { padding: 64px 24px; }
  .feat-grid { grid-template-columns: 1fr; }
  .safety, .cta { padding: 32px 24px; }
  .ins-cells { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-n { width: 38px; height: 38px; font-size: 16px; }
  /* keep the app mockup from overflowing on phones */
  .m-body { grid-template-columns: 104px 1fr; }
  .m-cards { grid-template-columns: 1fr; }
  .m-main, .m-card, .m-search { min-width: 0; }
  .m-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-path { overflow: hidden; }
  .m-path, .m-search { white-space: nowrap; }
  .m-search { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot { transform: none !important; }
}

/* ============================================================================
   THEME TOGGLE + LIGHT THEME
   ========================================================================== */
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--glass); border: 1px solid var(--border-2); color: var(--muted); cursor: pointer; transition: color .15s, background .15s, border-color .15s; }
.theme-btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ic-moon { display: none; }
[data-theme="light"] .theme-btn .ic-sun { display: none; }
[data-theme="light"] .theme-btn .ic-moon { display: block; }

/* The app mockup, insights widget and code blocks stay dark in BOTH themes —
   they read as product screenshots. Lock their palette regardless of theme. */
.shot, .ins, .code {
  --surface: #14151c; --surface-2: #191b23;
  --border: rgba(255, 255, 255, .08); --border-2: rgba(255, 255, 255, .13);
  --text: #edeef2; --muted: #a2a8b4; --faint: #6c727e;
}
.shot, .ins { color: #edeef2; }

[data-theme="light"] {
  --bg: #f3f2fb;
  --bg-soft: #ecebf6;
  --surface: #ffffff;
  --surface-2: #f1f0f8;
  --glass: rgba(30, 26, 64, .03);
  --border: rgba(28, 24, 70, .1);
  --border-2: rgba(28, 24, 70, .15);
  --text: #19182a;
  --muted: #54506a;
  --faint: #8884a0;
  --grad-text: linear-gradient(100deg, #ff7a4d 8%, #e8452a);
}
/* coral peach + indigo + teal — a richer, premium light wash */
[data-theme="light"] .glow { opacity: .4; }
[data-theme="light"] .glow-a { background: radial-gradient(circle, rgba(255, 122, 77, .5), transparent 64%); }
[data-theme="light"] .glow-b { background: radial-gradient(circle, rgba(99, 102, 241, .34), transparent 64%); }
[data-theme="light"] .grid-bg { opacity: .42; }
[data-theme="light"] .nav.scrolled { background: rgba(255, 255, 255, .76); }
[data-theme="light"] .btn-glass:hover, [data-theme="light"] .theme-btn:hover { background: #fff; box-shadow: 0 6px 16px -8px rgba(50, 40, 100, .22); }
[data-theme="light"] .feat { background: #fff; box-shadow: 0 1px 2px rgba(40, 32, 80, .05); }
[data-theme="light"] .feat:hover { background: #fff; border-color: var(--border-2); box-shadow: 0 18px 42px -18px rgba(54, 44, 104, .3); }
[data-theme="light"] .safety { background: linear-gradient(160deg, #ffffff, #f6f5fc); }
[data-theme="light"] .faq details { background: #fff; }
[data-theme="light"] .kicker { color: #c47e1a; }
[data-theme="light"] .footer-base .warn { color: #b07d1a; }
/* darker coral for text on the light background (AA contrast) */
[data-theme="light"] .alt-install a { color: #c2400f; border-bottom-color: rgba(194, 64, 15, .4); }
[data-theme="light"] .eyebrow { color: #c2400f; }
[data-theme="light"] .step-n { color: #c2400f; }

@media (max-width: 720px) {
  [data-theme="light"] .nav-links { background: rgba(255, 255, 255, .97); }
}
