/* ═══════════════════════════════════════════════════════════════════
   ink-ls · Base
   Public marketing page (Base.html). Hero, animated showcase loop,
   pricing, and bottom CTA. The site-wide design tokens live in
   `Core.css`; this file only adds the landing-specific layout, the
   showcase shell, and the animated views inside it.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Marketing-page body overrides ──
   Layout's body is `display:flex height:100vh` for app pages so they
   fit the viewport. The landing page is a long scrolling marketing
   flow, so we revert body to a plain block and let the document root
   scroll. Hide the html scrollbar but keep scrolling working — body
   must NOT have its own overflow rule, otherwise it becomes a
   competing scroll container and the wheel feels sticky. */
html { overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
body { overflow: visible !important; height: auto !important; display: block !important; }
.page-content { flex: none !important; display: block !important; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 120px 16px 32px;
  min-height: calc(100vh - var(--topbar-height) - 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: opacity, transform, filter;
}

.hero-stage { position: relative; width: 140px; height: 140px; margin-bottom: 14px; }

/* The hero logo is now a clickable <button> wrapping an inline SVG.
   The wrapper is anchored — its position never moves. All animation
   happens on the SVG paths inside, so the logo's bounding box stays
   exactly where it was rendered. */
.hero-logo {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  outline: none;
}
.hero-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* ── Talking animation ─────────────────────────────────────────────
   The actual movement is driven by Base.js (multi-frequency sine
   waves with a ramp-up/ramp-down amplitude envelope), not CSS
   keyframes — keyframes can't ramp out smoothly when stopped, and
   they always feel cyclic. JS lets the motion start gracefully,
   feel non-repeating, and *settle* back to rest instead of snapping.

   What stays in CSS: the goo filter (so the three blue layers visibly
   merge through their JS-driven offsets) and the transform-origin /
   transform-box rules so the JS transforms anchor properly. */
.hero-logo.is-talking .logo-blobs { filter: url(#logoGoo); }

.hero-logo .logo-blob-outer,
.hero-logo .logo-blob-mid,
.hero-logo .logo-blob-inner {
  transform-origin: 50% 30%;
  transform-box: fill-box;
}
.hero-logo .letter-i,
.hero-logo .letter-n,
.hero-logo .letter-k {
  transform-origin: center;
  transform-box: fill-box;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo.is-talking .logo-blobs { filter: none; }
}

/* When the badge is showing a typed response (not the default pill),
   give it a slightly more "speech-bubble" feel — wider, brighter, and
   a tiny tail-vibe via its own small bottom shadow. */
.hero-badge.is-speaking {
  background: var(--bg-elev);
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: 0 4px 18px rgba(0, 81, 255, 0.18);
}
.hero-logo-shadow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 81, 255, 0.4), transparent 70%);
  filter: blur(6px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: 2em;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  padding-bottom: 4px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-input-group {
  display: flex;
  border-radius: 7px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 0 22px rgba(0, 81, 255, 0.18), 0 0 60px rgba(0, 81, 255, 0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.hero-input-group:hover        { box-shadow: 0 0 28px rgba(0, 81, 255, 0.22), 0 0 70px rgba(0, 81, 255, 0.07); }
.hero-input-group:focus-within { box-shadow: 0 0 32px rgba(0, 81, 255, 0.32); border-color: #fff; }
.hero-email {
  width: 300px;
  padding: 11px 16px;
  font-size: 15px;
  color: #000;
  background: #fff;
  border: none;
  outline: none;
  font-family: inherit;
}
.hero-email::placeholder { color: #8b8b8b; }
.hero-signup {
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #0051ff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.hero-signup {
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.2s;
}
.hero-signup:hover  { background: #fff; color: #000; box-shadow: 0 4px 14px rgba(0, 81, 255, 0.42); }
.hero-signup:active { filter: brightness(0.95); }
.hero-login {
  display: inline-flex;
  align-items: center;
  padding: 10px 36px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 3px solid #fff;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.35s ease, color 0.35s ease, box-shadow 0.2s;
}
.hero-login:hover {
  background: #0051ff;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 81, 255, 0.35);
}
.hero-login:active { filter: brightness(0.95); }

/* ── Floaters (Host + Client icons at the bottom of the hero) ──
   Driven by JS — Y-axis rotation tied to scroll. */
.sc-floaters {
  margin-top: auto;
  padding-top: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  perspective: 1000px;
}
.sc-floater-wrap { position: relative; display: inline-flex; cursor: default; }
.sc-floater-wrap::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  margin-top: 10px;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid var(--accent-line);
  border-radius: 2em;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.sc-floater-wrap:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.sc-floater {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform-origin: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 8px 18px rgba(0, 30, 90, 0.45));
}

/* Cone of light from the floor of the hero — soft radial gradients
   with heavy blur so it reads as light, not a wall. */
.sc-floor-glow {
  position: absolute;
  left: 50%;
  bottom: -25%;
  transform: translateX(-50%);
  width: 140vw;
  height: 160%;
  max-width: 1800px;
  background:
    radial-gradient(ellipse 28% 80% at 50% 95%, rgba(0, 81, 255, 0.40) 0%, rgba(0, 81, 255, 0.16) 32%, transparent 70%),
    radial-gradient(ellipse 70% 70% at 50% 95%, rgba(0, 81, 255, 0.22) 0%, rgba(0, 81, 255, 0.09) 35%, rgba(0, 40, 140, 0.04) 60%, transparent 85%),
    radial-gradient(ellipse 95% 60% at 50% 100%, rgba(0, 81, 255, 0.14) 0%, rgba(0, 81, 255, 0.05) 40%, transparent 80%);
  filter: blur(72px);
  pointer-events: none;
  z-index: -1;
  will-change: opacity;
}
@media (max-width: 820px) {
  .sc-floaters { gap: 36px; padding-top: 24px; }
  .sc-floater  { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-floater { transition: none !important; }
}

/* ── Sections ────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.section-sub { font-size: 15px; color: var(--fg-muted); max-width: 600px; line-height: 1.6; margin-bottom: 28px; }
.section-divider {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  position: relative;
  z-index: 1;
}

/* ── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  width: 100%;
  max-width: 980px;
  text-align: left;
}
.price-card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(20, 28, 46, 0.6), rgba(10, 13, 20, 0.92));
  transition: transform 0.25s, border-color 0.2s, box-shadow 0.25s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 81, 255, 0.4);
  box-shadow: 0 14px 32px rgba(0, 30, 90, 0.4);
}
.price-card.featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(0, 81, 255, 0.10), rgba(10, 13, 20, 0.94));
}
.price-tag {
  position: absolute;
  top: -10px;
  right: 18px;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #1a66ff, #0051ff);
  border-radius: 4px;
  box-shadow: 0 5px 12px rgba(0, 81, 255, 0.4);
}
.price-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount .num { font-size: 34px; font-weight: 700; color: #fff; }
.price-amount .per { font-size: 13px; color: var(--fg-muted); }
.price-desc  { font-size: 13px; color: var(--fg-muted); margin-bottom: 18px; line-height: 1.5; }
.price-block {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(0, 81, 255, 0.05);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
}
.price-block-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fg-subtle);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.price-block-val { font-size: 13.5px; color: #fff; font-weight: 600; }
.price-block-val .small { font-weight: 400; color: var(--fg-muted); font-size: 12px; }

.price-feats { list-style: none; padding: 0; margin: 0 0 18px; }
.price-feats li {
  font-size: 12.5px;
  color: var(--fg-soft);
  padding: 5px 0 5px 22px;
  position: relative;
}
.price-feats li.off { color: var(--fg-subtle); }
.price-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
}
.price-feats li.off::before { background: rgba(248, 81, 73, 0.10); border-color: rgba(248, 81, 73, 0.35); }
.price-feats li::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 13px;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid var(--green);
  border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}
.price-feats li.off::after {
  width: 7px;
  height: 7px;
  border: none;
  left: 3.5px;
  top: 11px;
  background:
    linear-gradient(45deg,  transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--red) 45%, var(--red) 55%, transparent 55%);
  transform: none;
}

.price-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 7px;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.2s;
}
.price-cta.alt        { color: var(--fg-soft); background: transparent; border: 1px solid var(--border-strong); }
.price-cta.alt:hover  { background: var(--bg-elev); border-color: var(--accent-line); color: #fff; text-decoration: none; }
.price-cta.primary {
  color: #fff;
  background: linear-gradient(135deg, #1a66ff, #0051ff);
  border: 1px solid var(--accent);
  box-shadow: 0 6px 16px rgba(0, 81, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.price-cta.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 81, 255, 0.5);
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════
   SHOWCASE
   Animated app demo loop. The window is a fixed 1180×663.75 stage
   that gets `transform: scale(...)` by JS to fit the page width.
   ════════════════════════════════════════════════════════════════════ */
.showcase-section { padding-top: 8px; padding-bottom: 64px; max-width: 1240px; }
.showcase-section .section-label { margin-bottom: 80px; color: #fff; will-change: color; }

.sc-scaler {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.sc-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 1180px;
  height: 663.75px;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--bg);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 81, 255, 0.10),
    0 0 80px rgba(0, 81, 255, 0.10);
  overflow: hidden;
  user-select: none;
  font-size: 12px;
  text-align: left;
}
.sc-window[data-chrome="app"]     .sc-chrome-browser { display: none; }
.sc-window[data-chrome="browser"] .sc-chrome-app     { display: none; }

/* ── App chrome (host / client) ──────────────────────────────────── */
.sc-titlebar {
  height: 32px;
  padding: 0 8px 0 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 3;
}
.sc-tb-brand { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.sc-tb-sep   { width: 1px; height: 14px; background: var(--border-strong); }
.sc-tb-app   { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.sc-tb-title { font-size: 11.5px; font-weight: 600; color: var(--fg); }
.sc-tb-spacer { flex: 1; }
.sc-tb-pill {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 3px;
  color: var(--accent-light);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
}
.sc-tb-controls { display: inline-flex; gap: 6px; }
.sc-tb-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-tb-btn svg { width: 10px; height: 10px; }
.sc-tb-btn.close:hover { background: #3a1414; color: var(--red); }

/* ── Browser chrome ──────────────────────────────────────────────── */
.sc-titlebar.sc-chrome-browser { background: var(--bg-surface); height: 38px; padding: 0 12px; gap: 10px; }
.sc-cb-dots { display: inline-flex; gap: 6px; }
.sc-cb-dots i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sc-cb-dots i:nth-child(1) { background: #f85149; }
.sc-cb-dots i:nth-child(2) { background: #d29922; }
.sc-cb-dots i:nth-child(3) { background: #3fb950; }
.sc-cb-nav { display: inline-flex; gap: 4px; }
.sc-cb-icb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-cb-icb svg { width: 12px; height: 12px; }
.sc-cb-url {
  flex: 1;
  max-width: 520px;
  padding: 5px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--fg-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-cb-tabs { margin-left: auto; }
.sc-cb-tab { padding: 4px 12px; font-size: 11px; color: var(--fg-muted); border-radius: 4px; }
.sc-cb-tab.active { color: var(--fg); background: var(--bg-raised); }

/* ── Stage + view stack ──────────────────────────────────────────── */
.sc-stage { position: relative; flex: 1; min-height: 0; background: var(--bg); overflow: hidden; }
.sc-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.985) translateY(6px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}
.sc-view.active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }

/* ── Animated cursor + click ripple ──────────────────────────────── */
.sc-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 8;
  transition: transform 0.55s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.25s ease;
  transform: translate(-1000px, -1000px);
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.sc-cursor svg { display: block; }
.sc-click-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  background: rgba(122, 168, 255, 0.25);
  pointer-events: none;
  z-index: 7;
  transform: translate(-50%, -50%);
  animation: scClick 0.55s ease-out forwards;
}
@keyframes scClick {
  from { opacity: 1; transform: translate(-50%, -50%) scale(0.4); }
  to   { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

/* ── Routing scene overlay ───────────────────────────────────────── */
.sc-route-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0, 81, 255, 0.28), transparent 75%),
    linear-gradient(160deg, #050a18 0%, #08101e 50%, #0a0d18 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
  overflow: hidden;
}
.sc-route-overlay::before {
  content: '';
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(70, 120, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 120, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 90%);
  pointer-events: none;
  animation: scGridPan 14s linear infinite;
}
.sc-route-overlay::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 81, 255, 0.18), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  animation: scRoutePulse 3s ease-in-out infinite;
}
@keyframes scGridPan { from { background-position: 0 0; } to { background-position: 36px 36px; } }
@keyframes scRoutePulse {
  0%, 100% { opacity: 0.5;  transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 0.85; transform: translate(-50%, -50%) scale(1.08); }
}
.sc-route-overlay.on { opacity: 1; }
.sc-route-overlay svg { width: 90%; height: auto; max-height: 78%; position: relative; z-index: 1; }
.sc-route-overlay .sc-route-labels text {
  fill: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.sc-route-overlay g.sc-route-icons image { filter: drop-shadow(0 0 16px rgba(0, 81, 255, 0.55)); }
.sc-route-overlay path {
  filter: drop-shadow(0 0 8px rgba(0, 120, 255, 0.7));
  animation: scDashFlow 1.2s linear infinite;
}
@keyframes scDashFlow { to { stroke-dashoffset: -28; } }

/* ── Loop fade ───────────────────────────────────────────────────── */
.sc-fade {
  position: absolute;
  inset: 0;
  background: #020409;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 6;
}
.sc-fade.on { opacity: 1; }

/* ── Progress dots ───────────────────────────────────────────────── */
.sc-progress {
  display: flex;
  gap: 4px;
  margin-top: 14px;
  padding: 5px 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.sc-progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg-raised);
  transition: background 0.25s, transform 0.25s;
}
.sc-progress-dot.active { background: var(--accent-light); transform: scale(1.18); }
.sc-progress-dot.done   { background: var(--accent); }

/* ════════════════════════════════════════════════════════════════════
   Auth views inside showcase (mirror the real /login)
   ════════════════════════════════════════════════════════════════════ */
.sc-auth {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(0, 81, 255, 0.12), transparent 70%),
    var(--bg);
  overflow-y: auto;
}
.sc-auth::-webkit-scrollbar       { width: 6px; }
.sc-auth::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
.sc-auth-box { width: 100%; max-width: 320px; display: flex; flex-direction: column; align-items: stretch; }
.sc-auth-logo { width: 46px; height: 46px; margin: 0 auto 14px; filter: drop-shadow(0 0 20px rgba(0, 81, 255, 0.45)); }
.sc-auth-logo.big { width: 58px; height: 58px; }
.sc-auth-h { font-size: 20px; font-weight: 300; color: var(--fg); margin-bottom: 24px; text-align: center; }
.sc-auth-h strong { font-weight: 600; color: var(--fg); }
.sc-auth-field { margin-bottom: 16px; }
.sc-auth-field label { display: block; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.sc-auth-input {
  width: 100%;
  padding: 5px 12px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--fg);
  height: 30px;
  display: flex;
  align-items: center;
  transition: border-color 0.12s, box-shadow 0.15s;
}
.sc-auth-input.typing { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.sc-auth-btn {
  width: 100%;
  padding: 7px 16px;
  margin-top: 2px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 81, 255, 0.30);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-auth-divider { display: flex; align-items: center; gap: 8px; margin: 16px 0; font-size: 12px; color: var(--fg-subtle); }
.sc-auth-divider::before,
.sc-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.sc-auth-oauth { display: flex; flex-direction: column; gap: 8px; }
.sc-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.sc-oauth-btn:hover { background: var(--bg-hover); }

.sc-auth-foot { text-align: center; margin-top: 20px; font-size: 13px; color: var(--fg-muted); }
.sc-auth-link { color: var(--accent); cursor: pointer; }
.sc-auth-link:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════════
   Site main inside showcase (replica of /main)
   ════════════════════════════════════════════════════════════════════ */
.sc-portal { display: grid; grid-template-columns: 158px 1fr; height: 100%; min-height: 0; }
.sc-portal-sb {
  background: var(--bg-elev);
  border-right: 1px solid var(--border-strong);
  padding: 8px 8px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11.5px;
}
.sc-portal-sb::-webkit-scrollbar       { width: 5px; }
.sc-portal-sb::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

.sc-portal-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 10px;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 6px;
}
.sc-portal-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sc-portal-pinfo { min-width: 0; flex: 1; }
.sc-portal-pinfo .n { font-size: 12px; font-weight: 600; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-portal-pinfo .r { font-size: 10px; color: var(--fg-subtle); }
.sc-portal-section {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 10px 8px 4px;
}
.sc-portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-portal-nav svg { width: 13px; height: 13px; flex-shrink: 0; }
.sc-portal-nav.active { background: var(--accent-dim); color: var(--accent-light); }
.sc-portal-nav.danger { color: var(--red); }

.sc-portal-pills { display: flex; gap: 3px; padding: 0 8px 4px; }
.sc-portal-pill {
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 2em;
  cursor: pointer;
  font-family: inherit;
}
.sc-portal-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.sc-portal-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--fg-soft);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.sc-portal-tag .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sc-portal-tag.active { background: rgba(0, 81, 255, 0.10); color: var(--accent-light); }

.sc-portal-wrap { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.sc-portal-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-muted);
}
.sc-portal-search {
  position: relative;
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 10px 0 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.sc-portal-search svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  color: var(--fg-subtle);
}
.sc-portal-search-ph { font-size: 11.5px; color: var(--fg-subtle); }
.sc-portal-fbtn {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}
.sc-portal-fbtn.active { background: var(--accent-dim); color: var(--accent-light); border-color: var(--accent-line); }
.sc-portal-sep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }

.sc-portal-cols { flex: 1; display: flex; gap: 14px; padding: 12px 14px; min-height: 0; overflow: hidden; }
.sc-portal-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sc-portal-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 8px;
  border-bottom: 1px solid var(--border-muted);
  font-size: 12px;
  color: var(--fg-muted);
}
.sc-portal-summary b { color: var(--fg); font-weight: 600; }
.sc-portal-summary .dot { color: var(--fg-subtle); }
.sc-portal-summary .online { color: var(--green); }
.sc-portal-summary .online::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  box-shadow: 0 0 4px var(--green);
  vertical-align: 1px;
}
.sc-portal-eplist { flex: 1; min-height: 0; overflow-y: auto; padding-right: 2px; display: flex; flex-direction: column; gap: 6px; }
.sc-portal-empty { font-size: 11.5px; color: var(--fg-subtle); padding: 24px 12px; text-align: center; }

.sc-ep-row {
  position: relative;
  padding: 10px 14px 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  animation: scFadeIn 0.35s ease both;
}
.sc-ep-row::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 6px 0 0 6px;
}
.sc-ep-row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.sc-ep-name  { font-size: 13.5px; font-weight: 600; color: var(--accent-light); }
.sc-ep-slug  { font-size: 10.5px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }
.sc-ep-badge {
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 2em;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sc-ep-badge.public { color: #fff; background: #438440; border-color: #438440; }
.sc-ep-status { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 1px 7px; border-radius: 4px; letter-spacing: 0.05em; }
.sc-ep-status.on  { background: rgba(63, 185, 80, 0.15); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); }
.sc-ep-status.off { background: rgba(110, 118, 129, 0.10); color: var(--fg-subtle); border: 1px solid var(--border); }
.sc-ep-desc { font-size: 11.5px; color: var(--fg-soft); margin-bottom: 5px; }
.sc-ep-meta { display: flex; gap: 10px; font-size: 10.5px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }
@keyframes scFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}

.sc-portal-side { width: 206px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.sc-side-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.sc-side-card-h {
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-soft);
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-muted);
}
.sc-side-card-b { padding: 10px; }

.sc-newep-group { display: flex; height: 28px; }
.sc-newep-input {
  flex: 1;
  min-width: 0;
  padding: 6px 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--fg);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.sc-newep-input:empty::before { content: attr(data-placeholder); color: var(--fg-subtle); }
.sc-newep-input.typing { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 81, 255, 0.12); }
.sc-newep-btn {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.sc-newep-btn .plus { font-size: 13px; line-height: 1; }

.sc-newep-drop {
  display: none;
  margin-top: 8px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.sc-newep-drop.on { display: block; animation: scFadeIn 0.25s ease; }
.sc-newep-field { margin-bottom: 8px; }
.sc-newep-field label {
  display: block;
  font-size: 10px;
  color: var(--fg-subtle);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.sc-newep-text {
  min-height: 24px;
  padding: 5px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--fg);
  display: flex;
  align-items: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sc-newep-text.typing { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 81, 255, 0.12); }
.sc-newep-vis { display: flex; gap: 4px; margin-top: 3px; }
.sc-vis-btn {
  flex: 1;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sc-vis-btn.invisible.active { background: var(--bg-raised); border-color: var(--fg-subtle); color: var(--fg); }
.sc-vis-btn.public.active    { background: #438440; border-color: #438440; color: #fff; }
.sc-newep-actions { display: flex; gap: 5px; margin-top: 6px; }
.sc-newep-actions .sc-btn-primary,
.sc-newep-actions .sc-btn-ghost { flex: 1; padding: 6px 10px; font-size: 11.5px; }

.sc-portal-apps { display: flex; gap: 5px; margin: 8px 0 6px; }
.sc-portal-app {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
}
.sc-portal-app img { width: 14px; height: 14px; }
.sc-portal-app.host   { background: rgba(0, 81, 255, 0.10);    color: var(--accent-light); border: 1px solid rgba(0, 81, 255, 0.28); }
.sc-portal-app.client { background: rgba(163, 113, 247, 0.10); color: #c4a1fb;             border: 1px solid rgba(163, 113, 247, 0.30); }

.sc-side-link {
  display: block;
  width: 100%;
  padding: 7px 10px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), #1a66ff);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.sc-side-tut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-raised);
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}
.sc-side-tut .play { color: var(--accent-light); }

.sc-apikey {
  padding: 7px 10px;
  margin-bottom: 8px;
  font-family: ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--fg-soft);
  background: var(--bg-inset);
  border: 1px solid var(--border-muted);
  border-radius: 5px;
  word-break: break-all;
}
.sc-apikey-copy {
  width: 100%;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--fg-soft);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}

/* ════════════════════════════════════════════════════════════════════
   Host app inside showcase
   ════════════════════════════════════════════════════════════════════ */
.sc-host { display: flex; height: 100%; }
.sc-host-sb {
  width: 178px;
  flex-shrink: 0;
  background: var(--bg-elev);
  border-right: 1px solid var(--border-strong);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sc-host-sb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 8px;
  border-bottom: 1px solid var(--border-muted);
  margin-bottom: 4px;
}
.sc-host-sb-brand img { width: 20px; height: 20px; }
.sc-host-sb-brand .n { font-size: 12px; font-weight: 600; color: var(--fg); }
.sc-host-sb-brand .v { font-size: 10px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }
.sc-host-sb-group {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  padding: 8px 8px 4px;
}
.sc-host-sb-i {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-size: 11.5px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.sc-host-sb-i svg { width: 13px; height: 13px; flex-shrink: 0; }
.sc-host-sb-i.active { background: var(--accent-dim); color: var(--accent-light); }
.sc-host-sb-c {
  margin-left: auto;
  padding: 1px 6px;
  font-size: 9.5px;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
}
.sc-host-main { flex: 1; min-width: 0; padding: 12px 14px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.sc-host-pane { display: none; flex-direction: column; gap: 10px; }
.sc-host-pane.active { display: flex; }

.sc-host-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-host-head h3 { font-size: 14px; font-weight: 600; color: var(--fg); display: flex; align-items: center; gap: 9px; }
.sc-host-sub { font-size: 11px; color: var(--fg-muted); margin-top: 2px; }
.sc-host-actions { display: flex; gap: 6px; }

.sc-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 3px;
  text-transform: uppercase;
  background: rgba(110, 118, 129, 0.2);
  color: var(--fg-muted);
}
.sc-live-badge .d { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-subtle); }
.sc-live-badge.running { background: rgba(63, 185, 80, 0.18); color: var(--green); }
.sc-live-badge.running .d { background: var(--green); animation: scBlink 1.4s ease-in-out infinite; box-shadow: 0 0 6px var(--green); }
@keyframes scBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.sc-host-overview {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.sc-host-oc { display: flex; align-items: center; gap: 8px; }
.sc-host-oc-sep { width: 1px; height: 14px; background: var(--border); margin: 0 12px; }
.sc-host-oc .l { font-size: 10px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.sc-host-drop {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--fg-soft);
  font-size: 11px;
  font-family: ui-monospace, monospace;
  cursor: pointer;
}
.sc-host-drop svg { width: 10px; height: 10px; }

.sc-host-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-stat {
  padding: 8px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 5px;
}
.sc-stat .l { font-size: 9.5px; font-weight: 600; color: var(--fg-subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.sc-stat .v { font-size: 18px; font-weight: 600; color: var(--fg); margin: 2px 0; line-height: 1.1; }
.sc-stat .v.mono {
  font-size: 10.5px;
  font-family: ui-monospace, monospace;
  color: var(--accent-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-stat .t { font-size: 9.5px; color: var(--fg-subtle); }

.sc-host-shead { display: flex; align-items: flex-end; justify-content: space-between; padding: 2px 0; }
.sc-host-shead h4 { font-size: 11px; font-weight: 600; color: var(--fg); text-transform: uppercase; letter-spacing: 0.05em; }
.sc-host-shead .hint { font-size: 10px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }

.sc-host-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sc-g {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-g svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-g .bg { fill: none; stroke: var(--border); stroke-width: 7; }
.sc-g .fl {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.sc-g[data-g="cpu"]  .fl { stroke: var(--purple); }
.sc-g[data-g="gpu"]  .fl { stroke: var(--green); }
.sc-g[data-g="disk"] .fl { stroke: var(--yellow); }
.sc-g .c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.sc-g .c .v { font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1; }
.sc-g .c .l { font-size: 8.5px; font-weight: 700; color: var(--fg-subtle); letter-spacing: 0.1em; margin-top: 2px; }

.sc-users-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sc-user-card {
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}
.sc-user-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sc-user-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-user-id { flex: 1; min-width: 0; }
.sc-user-id .n  { font-size: 13px; font-weight: 600; color: var(--fg); }
.sc-user-id .ip { font-size: 10px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }
.sc-user-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 11px; color: var(--fg-muted); }
.sc-user-row > span:first-child {
  width: 60px;
  flex-shrink: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-subtle);
}
.sc-user-row .mono { font-family: ui-monospace, monospace; color: var(--fg); }

.sc-pill { font-size: 9.5px; padding: 1px 7px; border-radius: 3px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.sc-pill.green { background: rgba(63, 185, 80, 0.18); color: var(--green); }

.sc-ctx-rail { flex: 1; height: 5px; background: var(--bg-raised); border-radius: 3px; overflow: hidden; }
.sc-ctx-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sc-ctx-num { font-family: ui-monospace, monospace; font-size: 10px; color: var(--fg-soft); white-space: nowrap; }

.sc-console-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 5px 5px 0 0;
  border-bottom: none;
  font-size: 10px;
}
.sc-console-seg { display: inline-flex; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; }
.sc-console-seg button {
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.sc-console-seg button.active { background: var(--accent-dim); color: var(--accent-light); }
.sc-console-chips { display: flex; gap: 4px; }
.sc-cchip {
  padding: 2px 8px;
  font-size: 10px;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 2em;
}
.sc-cchip.active { background: var(--accent-dim); color: var(--accent-light); border-color: var(--accent-line); }
.sc-console-meta { margin-left: auto; font-size: 10px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }
.sc-console-body {
  flex: 1;
  min-height: 0;
  padding: 8px 10px;
  background: #020409;
  border: 1px solid var(--border);
  border-top: 1px solid var(--border-muted);
  border-radius: 0 0 5px 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--fg-soft);
  overflow-y: auto;
  height: 100%;
}
.sc-console-body::-webkit-scrollbar       { width: 5px; }
.sc-console-body::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }
.sc-console-empty { color: var(--fg-subtle); padding: 18px 12px; text-align: center; font-family: inherit; }
.sc-cline { display: flex; gap: 8px; padding: 1px 0; opacity: 0; animation: scFadeIn 0.2s ease both; }
.sc-cline .ts  { color: var(--fg-subtle); flex-shrink: 0; }
.sc-cline .lvl { flex-shrink: 0; font-weight: 700; min-width: 48px; }
.sc-cline .mod { flex-shrink: 0; color: var(--accent-light); min-width: 54px; }
.sc-cline .msg { color: var(--fg-soft); flex: 1; min-width: 0; word-break: break-all; }
.sc-cline.info .lvl { color: var(--accent-light); }
.sc-cline.ok   .lvl { color: var(--green); }
.sc-cline.warn .lvl { color: var(--yellow); }
.sc-cline.dbg  .lvl { color: var(--fg-subtle); }

/* ════════════════════════════════════════════════════════════════════
   Client app inside showcase
   ════════════════════════════════════════════════════════════════════ */
.sc-client { display: flex; height: 100%; }
.sc-client-sb { width: 188px; flex-shrink: 0; background: var(--bg-elev); border-right: 1px solid var(--border-strong); }
.sc-client-sb-h { padding: 10px 10px 8px; border-bottom: 1px solid var(--border-muted); }
.sc-client-sb-h .t {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 4px;
}
.sc-ws {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10.5px;
  color: var(--fg-soft);
}
.sc-ws .mono { font-family: ui-monospace, monospace; }

.sc-new-chat {
  width: 100%;
  padding: 6px 10px;
  background: var(--accent-dim);
  color: var(--accent-light);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.sc-hist { padding: 6px 4px; }
.sc-hist-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
}
.sc-hist-i.active { background: var(--bg-elev-hover); color: var(--fg); }
.sc-hist-i .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.sc-hist-i .d { font-size: 9.5px; color: var(--fg-subtle); }

.sc-client-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.sc-client-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.sc-model-sel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 11px;
  color: var(--fg);
}
.sc-model-sel .d { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 5px var(--green); }
.sc-client-api { font-size: 10.5px; color: var(--fg-subtle); font-family: ui-monospace, monospace; }

.sc-usage {
  display: flex;
  gap: 14px;
  padding: 5px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-muted);
  font-size: 10px;
  color: var(--fg-subtle);
  font-family: ui-monospace, monospace;
}
.sc-usage b { color: var(--fg); font-weight: 600; }

.sc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.sc-msgs::-webkit-scrollbar       { width: 6px; }
.sc-msgs::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

.sc-msg { display: flex; max-width: 88%; opacity: 0; transform: translateY(4px); animation: scFadeIn 0.35s ease both; }
.sc-msg.user      { align-self: flex-end; }
.sc-msg.assistant { align-self: flex-start; }
.sc-msg-bubble {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  word-wrap: break-word;
}
.sc-msg.user .sc-msg-bubble { background: var(--accent-dim); border-color: var(--accent-line); }
.sc-msg-bubble code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  padding: 1px 5px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent-light);
}

.sc-typing { display: inline-flex; gap: 3px; padding: 2px 0; }
.sc-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-subtle);
  animation: scTyping 1s ease-in-out infinite;
}
.sc-typing span:nth-child(2) { animation-delay: 0.15s; }
.sc-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes scTyping {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

.sc-srch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin: 6px 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-muted);
  border-radius: 5px;
  font-size: 11px;
}
.sc-srch .ic { width: 14px; height: 14px; flex-shrink: 0; color: var(--accent-light); }
.sc-srch .q  { color: var(--fg); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-srch .ok { font-size: 9.5px; color: var(--green); }

/* Permission card matches the real client (.tool-permission) — yellow
   theme, single horizontal row: text on the left, two buttons on the
   right. */
.sc-perm {
  margin: 8px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--yellow-dim);
  border: 1px solid rgba(210, 153, 34, 0.30);
  border-radius: 6px;
}
.sc-perm-q { flex: 1; font-size: 12px; color: var(--fg); }
.sc-perm-q strong { color: var(--yellow); font-weight: 700; }
.sc-perm-q code {
  font-family: ui-monospace, monospace;
  padding: 1px 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  color: var(--fg-soft);
  font-size: 11px;
}
.sc-perm-actions { display: flex; gap: 6px; flex-shrink: 0; }
.sc-perm-btn {
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border);
}
.sc-perm-btn.deny { background: transparent; color: var(--fg-muted); }
.sc-perm-btn.deny:hover { color: var(--fg); }
.sc-perm-btn.allow {
  background: rgba(63, 185, 80, 0.18);
  color: var(--green);
  border-color: rgba(63, 185, 80, 0.40);
}
.sc-perm-btn.allow:hover { background: rgba(63, 185, 80, 0.28); }
.sc-perm.granted .sc-perm-actions { display: none; }
.sc-perm.granted .sc-perm-q::after { content: ' · allowed'; color: var(--green); font-weight: 600; }

.sc-files {
  margin: 8px 0;
  padding: 10px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  max-height: 160px;
  overflow-y: auto;
}

.sc-run {
  margin: 8px 0;
  background: #020409;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  overflow: hidden;
}
.sc-run-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-muted);
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--fg-soft);
}
.sc-run-h svg { color: var(--green); }
.sc-run-out {
  padding: 7px 10px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: #a0e3a0;
  max-height: 120px;
  overflow-y: auto;
}
.sc-run-line { opacity: 0; animation: scFadeIn 0.2s ease both; }

.sc-files-h {
  font-size: 10px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-files-h .count { color: var(--accent-light); }
.sc-file {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 0;
  color: var(--fg-soft);
  opacity: 0;
  animation: scFileIn 0.25s ease forwards;
}
.sc-file::before { content: '+'; color: var(--green); font-weight: 700; width: 10px; flex-shrink: 0; }
@keyframes scFileIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: none; }
}

.sc-input-area { padding: 8px 12px 12px; border-top: 1px solid var(--border-muted); }
.sc-ctx-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--fg-subtle);
  font-family: ui-monospace, monospace;
}
.sc-ctx-text { white-space: nowrap; }
.sc-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 6px 6px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
}
.sc-input-wrap.typing { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(0, 81, 255, 0.10); }
.sc-input-tool { color: var(--fg-subtle); padding: 4px; }
.sc-input {
  flex: 1;
  padding: 6px 4px;
  color: var(--fg);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
  min-height: 24px;
  max-height: 80px;
  overflow-y: auto;
  word-wrap: break-word;
}
.sc-input:empty::before { content: attr(data-placeholder); color: var(--fg-subtle); }
.sc-send {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-input-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10px; color: var(--fg-subtle); }
.sc-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}
.sc-mode .d { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-subtle); }
.sc-mode.active { background: var(--accent-dim); color: var(--accent-light); border-color: var(--accent-line); }
.sc-mode.active .d { background: var(--accent); box-shadow: 0 0 4px var(--accent); }

/* ════════════════════════════════════════════════════════════════════
   Browser frame & deployed site (final beat of the loop)
   ════════════════════════════════════════════════════════════════════ */
.sc-browser { display: flex; flex-direction: column; height: 100%; }
.sc-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.sc-browser-dots { display: inline-flex; gap: 5px; }
.sc-browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: inline-block; }
.sc-browser-dots i:nth-child(1) { background: #f85149; }
.sc-browser-dots i:nth-child(2) { background: #d29922; }
.sc-browser-dots i:nth-child(3) { background: #3fb950; }
.sc-browser-nav { display: inline-flex; gap: 4px; }
.sc-browser-icb {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--bg-raised);
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sc-browser-icb svg { width: 12px; height: 12px; }
.sc-browser-url {
  flex: 1;
  padding: 5px 12px;
  max-width: 520px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--fg-soft);
}
.sc-browser-tabs { margin-left: auto; }
.sc-browser-tab { padding: 3px 10px; font-size: 10.5px; color: var(--fg-muted); }
.sc-browser-tab.active { color: var(--fg); }

.sc-browser-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #050810 0%, #0a0d18 50%, #0e1424 100%);
  overflow: hidden;
}
.sc-site-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}
.sc-site-page-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 420px;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(0, 81, 255, 0.40), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.sc-site-page-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 30px rgba(0, 81, 255, 0.6));
  position: relative;
  z-index: 1;
}
.sc-site-page-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  max-width: 600px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}
.sc-site-page-cta {
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a66ff, #0051ff);
  border: 1px solid var(--accent);
  border-radius: 7px;
  box-shadow: 0 6px 20px rgba(0, 81, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
  cursor: pointer;
  font-family: inherit;
}

/* ── Showcase utility buttons ────────────────────────────────────── */
.sc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0, 81, 255, 0.35);
  cursor: pointer;
  font-family: inherit;
}
.sc-btn-primary svg { width: 10px; height: 10px; }
.sc-btn-ghost {
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
}

/* ── Bottom CTA ──────────────────────────────────────────────────── */
.bottom-cta {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 60px 16px 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottom-cta .section-title { max-width: none; }
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #1a66ff, #0051ff);
  border: none;
  border-radius: 7px;
  box-shadow:
    0 6px 18px rgba(0, 81, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 81, 255, 0.55);
  text-decoration: none;
}
.cta-primary:active { transform: translateY(0); }
.cta-primary svg { width: 14px; height: 14px; }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──
   The showcase window is fluidly scaled by JS, so mobile rules here
   only touch the surrounding layout (hero, pricing, section padding). */
@media (max-width: 820px) {
  .hero {
    padding: 60px 16px 32px;
    min-height: calc(100vh - var(--topbar-height) - 80px);
  }
  .hero-title { font-size: 34px; line-height: 1.22; }
  .hero-sub   { font-size: 15px; }
  .hero-cta   { gap: 10px; width: 100%; max-width: 380px; }
  .hero-input-group { flex: 1 1 100%; min-width: 0; }
  .hero-email  { width: 0; flex: 1; min-width: 0; padding: 10px 12px; font-size: 14px; }
  .hero-signup { padding: 10px 14px; font-size: 13.5px; }
  .hero-login  { width: 100%; padding: 11px; justify-content: center; text-align: center; font-size: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 26px; line-height: 1.22; }
  .section { padding: 36px 14px; }
  .showcase-section { padding: 8px 12px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-route-overlay path { animation: none !important; }
  .sc-route-overlay::before,
  .sc-route-overlay::after { animation: none !important; }
  .sc-live-badge.running .d { animation: none !important; }
  .sc-typing span { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   CURIOUS — flat Q&A list at the very bottom of the landing page.
   No card boxes around items — just thin row separators. Clicking a
   question reveals the answer in a slightly darker drop-down panel
   right under it. Data comes from Data/Curious.json via App.py;
   items past the third one carry `.is-hidden` until "I'm still
   curious!" is clicked.
   ═══════════════════════════════════════════════════════════════════ */
/* Modest bottom padding — answer animates open inside the row, so the
   page itself doesn't need a big runway below the section. */
#curious { padding: 56px 20px 56px; }

/* Search input sits above the list — minimal, transparent, with a small
   leading magnifier so it reads as a search box without shouting. */
.curious-search-wrap {
  width: 100%;
  max-width: 880px;
  margin: 22px auto 0;
  position: relative;
}
.curious-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--fg-subtle);
  pointer-events: none;
  transition: color 0.15s;
}
.curious-search {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: transparent;
  border: 1px solid var(--border-muted);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.curious-search::placeholder {
  color: var(--fg-subtle);
  font-weight: 400;
}
.curious-search:focus {
  border-color: var(--accent-line);
  background: var(--bg-inset);
}
.curious-search:focus + .curious-search-icon,
.curious-search-wrap:focus-within .curious-search-icon { color: var(--accent-light); }

/* Wider list so each row has room to breathe. Question and answer rows
   share the same outer width — neither one is wider than the other.
   `width: 100%` is critical: `.section` is a flex column with
   `align-items: center`, so without it the list sizes to its current
   content width and grows when an answer reveals (= visible width
   shift on every open/close). */
.curious-list {
  width: 100%;
  max-width: 880px;
  margin: 14px auto 0;
  border-top: 1px solid var(--border-muted);
  text-align: left;
}

/* Search active: hide every item, then explicitly show matches. The
   .search-match rule wins over .is-hidden via specificity, so questions
   still under "I'm still curious!" remain findable. */
.curious-list.search-active .curious-item { display: none; }
.curious-list.search-active .curious-item.search-match { display: block; }
.curious-list.search-active.no-matches .curious-empty { display: block; }
.curious-empty {
  display: none;
  padding: 24px 18px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
  font-style: italic;
}

.curious-item {
  border-bottom: 1px solid var(--border-muted);
}
.curious-item.is-hidden { display: none; }

.curious-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg);
  user-select: none;
  transition: color 0.15s, background 0.15s;
}
.curious-q::-webkit-details-marker { display: none; }
.curious-q::marker { display: none; content: ''; }
.curious-q:hover { color: var(--accent-light); }

.curious-chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--fg-muted);
  transition: transform 0.22s ease, color 0.18s;
}
.curious-item[open] .curious-chev {
  transform: rotate(180deg);
  color: var(--accent-light);
}

/* The drop-down sits flush under the question — same outer width, just a
   slightly darker background so it reads as a distinct panel under the
   question instead of an indented card.

   Reveal animation runs every time the details opens. Two layers:
   the panel slides down + fades in (the "drop-down" feel), then the
   text inside reveals via a clip-path sweep that mimics writing out. */
.curious-a {
  margin: 0;
  padding: 4px 18px 20px;
  background: var(--bg-inset);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--fg-soft);
}
.curious-item[open] > .curious-a {
  animation: curiousPanelReveal 0.3s cubic-bezier(0.32, 0.72, 0.3, 1) both;
}
.curious-item[open] > .curious-a > .curious-a-inner {
  animation: curiousTextWrite 0.5s 0.18s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes curiousPanelReveal {
  0%   { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes curiousTextWrite {
  0%   { clip-path: inset(0 100% 0 0); opacity: 0; }
  20%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0);    opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .curious-item[open] > .curious-a,
  .curious-item[open] > .curious-a > .curious-a-inner { animation: none; }
}
.curious-a strong { color: var(--fg); }
.curious-a code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: 12.5px;
  background: var(--bg);
  border: 1px solid var(--border-muted);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent-light);
}
.curious-a a { color: var(--accent-light); text-decoration: none; }
.curious-a a:hover { text-decoration: underline; }

/* Subtle text-link suggestion — not a button. No border, no fill, no
   pill shape. Just centered hint text + small chevron. */
.curious-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 6px 10px;
  background: transparent;
  color: var(--fg-muted);
  border: none;
  border-radius: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.15s;
}
.curious-more svg {
  width: 12px;
  height: 12px;
  opacity: 0.65;
  transition: opacity 0.15s, transform 0.2s;
}
.curious-more:hover { color: var(--accent-light); }
.curious-more:hover svg { opacity: 1; transform: translateY(1px); }

@media (max-width: 700px) {
  #curious { padding: 40px 14px 40px; }
  .curious-q { padding: 16px 14px; font-size: 13.5px; }
  .curious-a { padding: 4px 14px 16px; font-size: 13px; }
}

/* ── Base-page footer ────────────────────────────────────────────────
   Minimal footer at the very bottom of the public landing page.
   Surface the Terms of Use link without dominating the design — a
   small dim strip with brand · copyright · link. */
.base-footer {
  border-top: 1px solid var(--border);
  padding: 24px 32px 32px;
  margin-top: 40px;
}
.base-footer-inner {
  max-width: var(--page-max, 1200px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}
.base-footer-brand { color: var(--fg-muted); font-weight: 600; }
.base-footer-sep   { color: var(--border-strong); }
.base-footer-rights { }
.base-footer-spacer { flex: 1; }
.base-footer-link {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 120ms, background 120ms;
}
.base-footer-link:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); text-decoration: none; }

@media (max-width: 700px) {
  .base-footer { padding: 20px 16px 24px; }
  .base-footer-inner { flex-wrap: wrap; gap: 6px 10px; font-size: 11px; }
}
