/* === Tokens ============================================================ */
:root {
  --bg: #0a0a0c;
  --surface: #15151a;
  --surface-2: #1d1d24;
  --border: #28282f;
  --border-soft: #1f1f25;

  --text: #f5f5f7;
  --text-2: #a0a0a8;
  --text-3: #6a6a72;

  --gold: #ffb800;
  --gold-soft: #ffb8001a;
  --magenta: #ff3d8e;
  --magenta-soft: #ff3d8e1a;
  --electric: #00ff94;
  --electric-soft: #00ff941a;
  --purple: #a855f7;
  --purple-soft: #a855f71a;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 22px;

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

@supports (font-variation-settings: normal) {
  :root { --font-sans: "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

.accent-gold { color: var(--gold); }
.accent-magenta { color: var(--magenta); }
.accent-electric { color: var(--electric); }
.accent-purple { color: var(--purple); }

.hl-gold { color: var(--gold); }
.hl-magenta { color: var(--magenta); }
.hl-electric { color: var(--electric); }

/* === Logo ============================================================== */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 22px; height: 22px;
  background: var(--gold);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 0 24px var(--gold-soft);
  flex-shrink: 0;
}
.logo-mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 2px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%);
}
.logo-text { font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }

/* === Buttons =========================================================== */
.primary-btn {
  background: var(--text);
  color: var(--bg);
  border: 0;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.primary-btn:hover { background: var(--electric); }
.primary-btn.full { width: 100%; padding: 16px; }

.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.ghost-btn:hover { border-color: var(--electric); color: var(--electric); }
.ghost-btn.small { padding: 6px 12px; font-size: 12px; margin-top: 8px; }

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: pulse 2s infinite;
}

/* ============================================================================
   LANDING PAGE
   ============================================================================ */

body.landing { background: var(--bg); }

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
}
.landing-nav-links { display: flex; gap: 28px; }
.landing-nav-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
}
.landing-nav-links a:hover { color: var(--text); }

/* Hero -------------------------------------------------------------------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 100px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 18px 0 22px;
}
.hero-title-mute { color: var(--text-3); font-weight: 700; }
.hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-meta {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.store-btn:hover {
  border-color: var(--electric);
  background: var(--surface-2);
}
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; }
.store-btn-eyebrow { font-size: 10px; color: var(--text-3); letter-spacing: 0.04em; }
.store-btn-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero phone -------------------------------------------------------------- */
.hero-phone {
  display: grid;
  place-items: center;
  position: relative;
}
.hero-phone::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: radial-gradient(60% 60% at 50% 40%, var(--gold-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-phone .phone { position: relative; z-index: 1; transform: rotate(-3deg); }

/* === Strip (stats) ====================================================== */
.strip {
  border-block: 1px solid var(--border-soft);
  background: var(--surface);
}
.strip-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.strip-cell { text-align: left; }
.strip-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.strip-label { font-size: 13px; color: var(--text-2); line-height: 1.5; max-width: 280px; }

/* === VS strip =========================================================== */
.vs-strip {
  border-bottom: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg) 0%, #150d12 100%);
}
.vs-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}
.vs-strip-text {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vs-strip-lhs { color: var(--text-3); }
.vs-strip-rhs { color: var(--text); }
.vs-strip-rhs strong { font-weight: 700; color: var(--gold); }

/* === Why features ======================================================= */
.why-features, .how, .final-cta, .faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
}
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 14px 0 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon.gold { background: var(--gold-soft); color: var(--gold); }
.feature-icon.purple { background: var(--purple-soft); color: var(--purple); }
.feature-icon.electric { background: var(--electric-soft); color: var(--electric); }
.feature-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.feature-body { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* === How it works ======================================================= */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: start;
}
.step:last-child { border-bottom: 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.step-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.step-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--electric);
  background: var(--electric-soft);
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.step-body p { font-size: 15px; color: var(--text-2); margin: 0; line-height: 1.55; max-width: 640px; }

/* === FAQ =============================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.faq-q {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--text);
}
.faq-a {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}

/* === Final CTA ========================================================== */
.final-cta-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.final-cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 100% at 100% 100%, var(--gold-soft), transparent 70%);
  pointer-events: none;
}
.final-cta-card > * { position: relative; z-index: 1; }
.final-cta .hero-cta { margin-top: 24px; }

/* === Footer ============================================================= */
.landing-foot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 60px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foot-meta { font-size: 12px; color: var(--text-3); }

/* === Interstitial ======================================================= */
.interstitial {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 24px;
}
.interstitial[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.interstitial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 420px;
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.2s;
}
.interstitial[aria-hidden="false"] .interstitial-card { transform: scale(1); }
.interstitial-mark {
  width: 56px; height: 56px;
  background: var(--gold);
  border-radius: 16px;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 0 40px var(--gold-soft);
}
.interstitial-mark::after {
  content: "";
  position: absolute; inset: 14px;
  border-radius: 4px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 60%, 60% 100%, 0 100%);
}
.interstitial-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.interstitial-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 24px;
}
.interstitial .primary-btn { width: 100%; }

/* ============================================================================
   PHONE FRAME + APP SHELL
   ============================================================================ */

body.app-shell {
  background: radial-gradient(60% 60% at 50% 30%, #1a1015 0%, var(--bg) 70%);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 16px;
}

.exit-mock {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 80;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.exit-mock:hover { color: var(--electric); border-color: var(--electric); }

.phone {
  width: 390px;
  height: 800px;
  background: #1a1a1f;
  border-radius: 50px;
  padding: 12px;
  box-shadow:
    0 0 0 1px #2a2a32,
    0 50px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(168, 85, 247, 0.05);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0a0a0c;
  border-radius: 0 0 16px 16px;
  z-index: 20;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 28px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.phone-status-right { letter-spacing: 0.2em; color: var(--text); font-size: 10px; }
.phone-home {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 134px; height: 5px;
  background: var(--text);
  border-radius: 3px;
  opacity: 0.6;
  z-index: 30;
}

/* App bar -------------------------------------------------------------- */
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.app-bar-left { display: flex; align-items: center; gap: 10px; }
.app-bar-co { display: flex; flex-direction: column; }
.company-name { font-weight: 600; font-size: 14px; }
.app-bar-sub { font-size: 11px; color: var(--text-3); }
.company-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--purple), var(--magenta));
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  color: white;
}

/* Tabview --------------------------------------------------------------- */
.tabview {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.tab-panel {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 16px 18px 90px;
  display: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-panel::-webkit-scrollbar { display: none; }
.tab-panel.active { display: block; }
.tab-panel.agent-tab { padding: 0 0 90px; display: none; flex-direction: column; }
.tab-panel.agent-tab.active { display: flex; }

/* Tabbar (bottom) ------------------------------------------------------- */
.tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-soft);
  padding: 8px 4px 16px;
  z-index: 25;
}
.tabbtn {
  background: none;
  border: 0;
  color: var(--text-3);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.tabbtn span:not(.tab-pip) {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.tabbtn.active { color: var(--gold); }
.tabbtn:not(.active):hover { color: var(--text); }
.tab-pip {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(18px);
  background: var(--magenta);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 8px;
  min-width: 16px;
  padding: 1px 5px;
  letter-spacing: 0;
  line-height: 1.3;
}

/* ============================================================================
   COMPONENT PRIMITIVES (shared by landing-preview and app)
   ============================================================================ */

/* Surface heads --------------------------------------------------------- */
.surface-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.surface-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}
.surface-title.small { font-size: 22px; }
.surface-sub { font-size: 13px; color: var(--text-2); margin: 0; font-variant-numeric: tabular-nums; }
.surface-head.tight { margin-bottom: 18px; }

/* Banner ---------------------------------------------------------------- */
.banner.small {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #FF3D8E14, #A855F714);
  border: 1px solid #FF3D8E33;
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.banner-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 0 var(--magenta);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 142, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 61, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 142, 0); }
}
.banner-body { flex: 1; min-width: 0; }
.banner-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 2px;
}
.banner-title { font-size: 13px; color: var(--text); font-weight: 500; line-height: 1.3; }
.banner-title strong { font-weight: 700; }
.banner-arrow {
  background: var(--magenta);
  color: var(--bg);
  border: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Pie ------------------------------------------------------------------- */
.pie-wrap.mobile {
  display: grid;
  place-items: center;
  padding: 18px 0;
}
.pie-wrap.mobile .pie { width: 200px; height: 200px; }
.pie path { transition: opacity 0.2s; cursor: pointer; }
.pie path:hover { opacity: 0.85; }
.pie-label-small {
  font-size: 9px;
  fill: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pie-label-large {
  font-size: 18px;
  fill: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Holders --------------------------------------------------------------- */
.holders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.holders.mobile li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.holders.mobile li:last-child { border-bottom: 0; }
.holder-swatch { width: 10px; height: 10px; border-radius: 2px; }
.holder-name { font-size: 13px; font-weight: 500; }
.holder-role { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.holder-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.holder-shares { display: none; }

/* Sliders --------------------------------------------------------------- */
.sliders.compact {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.slider-row { display: flex; flex-direction: column; gap: 6px; }
.slider-meta { display: flex; justify-content: space-between; align-items: baseline; }
.slider-label { font-size: 11px; color: var(--text-2); }
.slider-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: var(--surface-2);
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  background: var(--purple);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--purple), 0 0 14px var(--purple-soft);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  background: var(--purple);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid var(--bg);
}

/* Exits ----------------------------------------------------------------- */
.exits {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.exits-head { font-size: 10px; color: var(--text-3); margin-bottom: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.exits-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.exit-card {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  min-width: 0;
}
.exit-card .exit-cap { font-size: 9px; color: var(--text-3); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.exit-card .exit-stake {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.exits-foot { font-size: 11px; color: var(--text-3); }

/* Flags ----------------------------------------------------------------- */
.flags { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flags.mobile .flag {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 14px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.flag-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.flag.warn .flag-tag { background: var(--magenta-soft); color: var(--magenta); }
.flag.note .flag-tag { background: var(--purple-soft); color: var(--purple); }
.flag-body { font-size: 13px; line-height: 1.5; color: var(--text-2); }
.flag-body strong { color: var(--text); font-weight: 600; }

/* Agent (tab) ----------------------------------------------------------- */
.agent-tab .agent-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.agent-id { display: flex; align-items: center; gap: 8px; }
.agent-dot {
  width: 8px; height: 8px;
  background: var(--electric);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--electric);
}
.agent-name { font-weight: 600; font-size: 14px; }
.agent-meta { font-size: 11px; color: var(--text-3); margin-top: 3px; letter-spacing: 0.02em; }

.agent-thread {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
}
.agent-thread::-webkit-scrollbar { display: none; }
.msg { display: flex; max-width: 88%; }
.agent-msg { align-self: flex-start; }
.user-msg { align-self: flex-end; }
.msg-body {
  padding: 11px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--text);
}
.user-msg .msg-body { background: var(--text); color: var(--bg); border-bottom-right-radius: 4px; }
.agent-msg .msg-body { border-bottom-left-radius: 4px; }
.msg-body strong { font-weight: 600; }
.msg-body .hl {
  background: var(--electric-soft);
  color: var(--electric);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}

.agent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover, .chip:active {
  border-color: var(--electric);
  color: var(--electric);
  background: var(--electric-soft);
}

.agent-input {
  display: flex;
  gap: 8px;
  padding: 10px 16px 14px;
  flex-shrink: 0;
}
.agent-input input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.agent-input input:focus { border-color: var(--electric); }
.agent-input button {
  background: var(--electric);
  color: var(--bg);
  border: 0;
  width: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ============================================================================
   PHONE PREVIEW (in landing hero — static, decorative)
   ============================================================================ */

.preview-banner {
  margin: 14px 18px 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #FF3D8E14, #A855F714);
  border: 1px solid #FF3D8E33;
  border-radius: var(--radius-sm);
}
.preview-banner-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
}
.preview-banner-title { font-size: 12px; font-weight: 600; margin-top: 2px; }

.preview-card {
  margin: 0 18px 10px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  position: relative;
}
.preview-card-eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.preview-card-big {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}
.preview-card-small { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.preview-pie {
  position: absolute;
  right: 14px; top: 12px;
  width: 60px; height: 60px;
}

.preview-card-projection .preview-card-eyebrow { color: var(--purple); }
.preview-card-projection { background: linear-gradient(135deg, #A855F70a, #FF3D8E0a); }

.preview-agent {
  margin: 14px 18px 18px;
  padding: 10px 12px;
  background: var(--electric-soft);
  border: 1px solid #00FF9433;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--electric);
  font-weight: 500;
}
.preview-agent-dot {
  width: 6px; height: 6px;
  background: var(--electric);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--electric);
  flex-shrink: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 900px) {
  .landing-nav { padding: 18px 20px; }
  .landing-nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 20px 60px;
    text-align: left;
  }
  .hero-phone { margin: 0 auto; }
  .hero-phone .phone { transform: rotate(0); width: 320px; height: 660px; }
  .strip-grid { grid-template-columns: 1fr; gap: 24px; padding: 32px 20px; }
  .why-features, .how, .final-cta, .faq { padding: 60px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .vs-strip-inner { padding: 28px 20px; }
  .final-cta-card { padding: 32px 24px; }
  .landing-foot {
    padding: 24px 20px 40px;
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  body.app-shell { padding: 0; display: block; }
  .exit-mock { top: 8px; left: 8px; }
  .phone {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone-screen { border-radius: 0; }
  .phone-notch { display: none; }
  .phone-home { display: none; }
}
