/* ==============================================================================
   GeoCell landing page — light by default, dark via [data-theme="dark"].
   Mobile-first. All colours come from the tokens below.
   ============================================================================== */

:root,
[data-theme="light"] {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text: #0F172A;
  --text-2: #475569;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --accent: #2563EB;
  --accent-2: #0EA5E9;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --mesh: #0284C7;
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.1);
  --warn: #D97706;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --bad: #DC2626;
  --bad-soft: rgba(220, 38, 38, 0.1);

  --brand-tile: #0F172A;
  --brand-mark: #0E2A5C;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.1);

  --radius: 12px;
  --radius-lg: 18px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #090A0F;
  --surface: rgba(17, 24, 39, 0.7);
  --surface-2: rgba(30, 41, 59, 0.55);
  --surface-glass: rgba(9, 10, 15, 0.8);
  --text: #F8FAFC;
  --text-2: #94A3B8;
  --muted: #7C8BA1;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --accent: #3B82F6;
  --accent-2: #38BDF8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --mesh: #38BDF8;
  --ok: #10B981;
  --ok-soft: rgba(16, 185, 129, 0.14);
  --warn: #F59E0B;
  --warn-soft: rgba(245, 158, 11, 0.16);
  --bad: #F87171;
  --bad-soft: rgba(248, 113, 113, 0.14);

  --brand-tile: #111827;
  --brand-mark: #E2E8F0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* Smooth fade only while the visitor switches theme, not on every hover. */
.theme-transition, .theme-transition *, .theme-transition *::before, .theme-transition *::after {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, fill 0.25s ease, stroke 0.25s ease !important;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); font-size: 0.88rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot-live { background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  padding: 0.7rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 22px rgba(37, 99, 235, 0.32); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 0.85rem; padding: 0.45rem 0.85rem; }
.btn-lg { font-size: 1rem; padding: 0.85rem 1.5rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrapper { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; text-decoration: none; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { flex-shrink: 0; }
.brand-by { font-size: 0.72rem; font-weight: 600; color: var(--muted); white-space: nowrap; align-self: flex-end; margin-bottom: 0.2rem; margin-left: -0.25rem; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.brand-status {
  display: none; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; color: var(--ok);
  background: var(--ok-soft); padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap;
}

.nav-menu-wrap { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.nav-menu-wrap.open { display: block; }
.nav-menu { list-style: none; display: flex; flex-direction: column; padding: 0.5rem 16px 1rem; }
.nav-link { display: block; padding: 0.7rem 0; color: var(--text-2); font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--text); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.nav-cta { display: none; }

.theme-switch { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.theme-switch button { border: 0; background: transparent; cursor: pointer; width: 30px; height: 28px; border-radius: 999px; font-size: 0.85rem; line-height: 1; opacity: 0.6; }
.theme-switch button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow); opacity: 1; }
[data-theme="dark"] .theme-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.12); }

.nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0 10px; background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

@media (min-width: 560px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1100px) { .brand-status { display: inline-flex; } }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu-wrap { display: block; position: static; background: none; border: 0; box-shadow: none; margin-left: auto; }
  .nav-menu { flex-direction: row; align-items: center; gap: 1.4rem; padding: 0; }
  .nav-link { padding: 0; font-size: 0.9rem; }
  .nav-actions { margin-left: 0.5rem; }
}

/* ---------- Hero (headline + the ChatOps console) ---------- */
.hero {
  padding: 14px 0 40px; scroll-margin-top: 64px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero-head { text-align: center; margin-bottom: 12px; }
.hero-title { font-size: clamp(1.55rem, 4.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin-bottom: 0.3rem; }
.hero-title .accent { background: linear-gradient(135deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 0.95rem; color: var(--text-2); font-weight: 500; }
@media (min-width: 900px) { .hero { padding: 28px 0 64px; } .hero-head { margin-bottom: 20px; } }

/* Bold Problem Statement Hero & Value Pillars */
.hero-problem-wrap {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.25rem;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-problem-kicker {
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.hero-problem-title {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 850;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.hero-problem-title .accent {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-problem-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--text-2);
  margin-bottom: 1.25rem;
  font-weight: 450;
}
.hero-problem-sub strong {
  color: var(--text);
  font-weight: 700;
}
.hero-problem-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 1.75rem;
}
.hero-ctas-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.hero-cta-trust {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 6-Card Problem & Solution Pillars Grid */
.problem-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  max-width: 1040px;
  margin: 0 auto 3rem;
  text-align: left;
}
@media (min-width: 840px) {
  .problem-pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* "What GeoCell does": five cards under a section heading */
.capability-grid { margin-bottom: 0; }
#capabilities .capability-grid { max-width: none; }
.problem-pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.problem-pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.problem-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.problem-pillar-icon {
  flex: none;
  color: var(--accent);
}
.problem-pillar-title {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.problem-pillar-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.problem-pillar-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  flex-grow: 1;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-tint { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
[data-theme="dark"] .section-tint { background: rgba(255, 255, 255, 0.02); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; margin-bottom: 0.75rem; }
.section-sub { color: var(--text-2); font-size: 1.05rem; }

/* ==============================================================================
   Playground (ChatGPT-style: sidebar · dashboard on top · chat · composer)
   ============================================================================== */
.pg {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 860px; margin: 0 auto; width: 100%;
}
[data-theme="dark"] .pg { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

.pg-body { display: flex; flex-direction: column; width: 100%; }
.pg-convo { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; }


/* Phones: title and Reset share a row, the preview tag sits under the title. */
.pg-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
@media (min-width: 560px) { .pg-header { flex-wrap: wrap; align-items: center; padding: 0.8rem 1rem; } }
.pg-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.75rem; font-size: 0.95rem; min-width: 0; }
.pg-conn { display: none; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--ok); font-weight: 600; }
.pg-sim-tag { font-size: 0.72rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 0.1rem 0.55rem; }
@media (min-width: 560px) { .pg-conn { display: inline-flex; } }
.pg-header-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
#pg-reset { display: inline-block; }
/* "Reset" on phones; the full label stays in the accessible name. */
@media (max-width: 559px) { .pg-reset-more { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .pg-busy { display: none; } }
.pg-busy { font-size: 0.78rem; color: var(--warn); font-weight: 600; }

/* Dashboard */
.pg-dashboard { padding: 1rem; border-top: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), transparent); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.9rem; scroll-margin-top: 72px; }
/* Without this the scrolling region row widens the column past the screen. */
.pg-dashboard > * { min-width: 0; }
@media (min-width: 1024px) { .pg-dashboard { border-top: 0; overflow-y: auto; min-height: 0; } }
.pg-app-title { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--text-2); overflow-wrap: anywhere; }
/* The dashboard flashes when it redraws as the visitor's own GeoCell. */
.pg-redraw .pg-dashboard { animation: redraw 1s ease; }
.pg-redraw .pg-topology svg, .pg-redraw .pg-app-title { animation: rise 0.5s ease; }
@keyframes redraw { from { box-shadow: inset 0 0 0 2px var(--accent-2); } to { box-shadow: inset 0 0 0 2px transparent; } }

.pg-topology svg { width: 100%; height: auto; max-height: 210px; display: block; }
.pg-link { stroke: var(--mesh); stroke-width: 2.5; stroke-dasharray: 6 6; animation: flow 1.2s linear infinite; transition: stroke 0.3s ease, opacity 0.3s ease; }
.pg-link-degraded { stroke: var(--warn); animation-duration: 3s; }
.pg-link-down { stroke: var(--bad); opacity: 0.45; animation: blink 0.6s steps(2) 4, none; stroke-dasharray: 2 8; }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes blink { 50% { opacity: 0.1; } }
.pg-link-label { font-size: 11px; fill: var(--muted); font-family: var(--mono); }

.pg-node circle { fill: var(--surface); stroke: var(--ok); stroke-width: 3; transition: stroke 0.3s ease, fill 0.3s ease; }
[data-theme="dark"] .pg-node circle { fill: #0F172A; }
.pg-node-name { font-size: 14px; font-weight: 700; fill: var(--text); }
.pg-node-traffic { font-size: 12px; font-family: var(--mono); fill: var(--text-2); }
.pg-node-region { font-size: 12px; font-family: var(--mono); fill: var(--muted); }
.pg-role-primary circle { stroke-width: 5; }
.pg-node-draining circle { stroke: var(--warn); stroke-dasharray: 5 4; }
.pg-node-degraded circle { stroke: var(--warn); }
.pg-node-offline circle { stroke: var(--bad); fill: var(--bad-soft); }
.pg-node-offline .pg-node-traffic { fill: var(--bad); }
.pg-role-promoting circle { stroke: var(--accent-2); animation: blink 0.8s ease-in-out infinite; }

/* Phones: swipeable row so the dashboard doesn't push the chat a screen down. */
.pg-regions { display: flex; gap: 0.5rem; margin-top: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.25rem; }
.pg-regions .pg-region { flex: 0 0 72%; scroll-snap-align: start; }
@media (min-width: 560px) {
  .pg-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .pg-regions .pg-region { flex: none; }
}
.pg-region { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.7rem; cursor: pointer; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pg-region:hover { border-color: var(--accent); }
.pg-region-offline { border-color: var(--bad); background: var(--bad-soft); }
.pg-region-degraded, .pg-region-draining { border-color: var(--warn); }
.pg-region-head { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.85rem; }
.pg-mono { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.pg-region-place { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.4rem; }
.pg-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.35rem; }
.pg-pill { font-size: 0.7rem; font-weight: 600; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pg-pill-healthy { background: var(--ok-soft); color: var(--ok); }
.pg-pill-draining, .pg-pill-degraded { background: var(--warn-soft); color: var(--warn); }
.pg-pill-offline { background: var(--bad-soft); color: var(--bad); }
.pg-pill-db-primary { background: var(--accent-soft); color: var(--accent); }
.pg-pill-db-promoting, .pg-pill-db-demoting { background: var(--warn-soft); color: var(--warn); }
.pg-region-stats { display: flex; gap: 0.8rem; font-size: 0.75rem; color: var(--muted); }
.pg-region-stats strong { color: var(--text); font-family: var(--mono); font-weight: 600; }

.pg-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.pg-sim-note { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--muted); }
.pricing-note { margin: 1.25rem auto 0; max-width: 46rem; text-align: center; font-size: 0.9rem; color: var(--text-2); }
.plan-talk { margin: 0.6rem 0 0; text-align: center; font-size: 0.85rem; }
.pg-metric { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.75rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pg-metric-label { display: block; font-size: 0.72rem; color: var(--muted); }
.pg-metric strong { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; }
/* Four small tiles in a 2×2, the p95 sparkline full width underneath. */
.pg-metric-p95 { grid-column: 1 / -1; order: 5; }
.pg-metric-p95.is-hot strong { color: var(--bad); }
.pg-spark { display: block; width: 100%; height: 30px; margin-top: 0.25rem; }
.pg-spark rect { fill: var(--accent-2); opacity: 0.55; }
.pg-spark rect.is-hot { fill: var(--bad); opacity: 0.85; }

/* What a chat answer is about lights up on the dashboard. */
.pg[data-highlight="links"] .pg-link { stroke-width: 4; filter: drop-shadow(0 0 4px var(--mesh)); }
.pg[data-highlight="regions"] .pg-region,
.pg[data-highlight="db"] .pg-pill-db,
.pg[data-highlight="db"] .pg-metric-lag,
.pg[data-highlight="metrics"] .pg-metric { box-shadow: 0 0 0 2px var(--accent-2); }
.pg[data-highlight="db"] .pg-role-primary circle { filter: drop-shadow(0 0 6px var(--accent-2)); }

/* Chat */
/* Phones: the chat is short until the conversation starts, so the starters and input sit above the fold. */
.pg-chat { overflow-y: auto; padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: 1rem; scroll-behavior: smooth; }
.pg-has-messages .pg-chat { height: clamp(380px, 58vh, 600px); }
@media (min-width: 1024px) {
  .pg-chat { height: clamp(400px, 58vh, 600px); }
  .pg-has-messages .pg-chat { height: clamp(420px, 60vh, 620px); }
}

@media (min-width: 1024px) { .pg-empty { margin: auto 0; } }
.pg-msg { display: flex; gap: 0.6rem; max-width: 100%; animation: rise 0.2s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.pg-msg-user { justify-content: flex-end; }
.pg-msg-user .pg-msg-body { background: var(--accent); color: #fff; padding: 0.55rem 0.9rem; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.pg-msg-assistant .pg-msg-body { min-width: 0; flex: 1; max-width: 680px; }
.pg-avatar { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }
.pg-text { font-size: 0.92rem; line-height: 1.55; }
.pg-msg-assistant .pg-text { padding-top: 0.2rem; }
.pg-streaming::after { content: "▍"; color: var(--accent-2); animation: blink 0.9s steps(2) infinite; }
.pg-dots { display: inline-flex; gap: 4px; padding-top: 0.6rem; }
.pg-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.pg-dots i:nth-child(2) { animation-delay: 0.15s; }
.pg-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.pg-inline-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.pg-inline-chips .pg-chip { flex-shrink: 1; max-width: 100%; white-space: normal; text-align: left; }
.pg-text-muted { color: var(--muted); font-size: 0.85rem; margin-top: 0.6rem; }
.pg-dash-jump { display: inline-block; font-size: 0.82rem; margin-top: 0.4rem; }
@media (min-width: 1024px) { .pg-dash-jump { display: none; } }
.pg-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-top: 0.7rem; }
.pg-cta-note { font-size: 0.78rem; color: var(--muted); }

/* In-chat cards */
.pg-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 0.8rem 0.9rem; margin-top: 0.15rem; }
.pg-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.88rem; margin-bottom: 0.5rem; }
.pg-pct { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.pg-bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 0.6rem; }
.pg-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; transition: width 0.6s ease; }
.pg-card-progress.is-done .pg-bar span { background: var(--ok); }
.pg-card-progress.is-done .pg-pct { color: var(--ok); }
.pg-steps { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--text-2); font-family: var(--mono); }
.pg-steps li::before { content: "✓ "; color: var(--ok); }
.pg-card-summary { border-left: 3px solid var(--accent); }
.pg-tone-success { border-left-color: var(--ok); }
.pg-tone-warn { border-left-color: var(--warn); }
.pg-dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0.3rem 1rem; font-size: 0.85rem; }
.pg-dl dt { color: var(--muted); }
.pg-dl dd { font-weight: 600; }
.pg-card-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; }
.pg-table-wrap { overflow-x: auto; }
.pg-card-table table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.pg-card-table th, .pg-card-table td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pg-card-table th { color: var(--muted); font-weight: 600; }
.pg-card-table td:not(:first-child), .pg-card-table th:not(:first-child) { text-align: right; font-family: var(--mono); }
.pg-card-table tfoot td { font-weight: 700; border-bottom: 0; }

/* Interactive In-Stream Cards */
.pg-cloud-policy-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.1rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow);
}
.pg-card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.pg-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0.8rem 0 0.4rem;
}
.pg-cloud-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 560px) {
  .pg-cloud-grid { grid-template-columns: repeat(3, 1fr); }
}
.pg-cloud-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.pg-cloud-btn:hover {
  border-color: var(--accent);
}
.pg-cloud-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  font-weight: 600;
}
.pg-cloud-btn.is-active::after {
  content: "✓ Selected";
  font-size: 0.68rem;
  color: var(--accent);
}
.pg-cloud-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.pg-policy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 560px) {
  .pg-policy-grid { grid-template-columns: repeat(2, 1fr); }
}
.pg-policy-card {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pg-policy-card:hover {
  border-color: var(--accent);
}
.pg-policy-card.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.pg-policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.pg-policy-tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
}
.pg-policy-desc {
  font-size: 0.76rem;
  color: var(--text-2);
  line-height: 1.35;
}

/* Animated Deployment Stepper Frames */
.pg-frame-stepper {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  margin: 0.5rem 0;
}
.pg-stepper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.pg-frames-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pg-frame-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-2);
  transition: all 0.3s ease;
}
.pg-frame-item.is-done {
  color: var(--text);
  font-weight: 600;
}
.pg-frame-item.is-done .pg-frame-badge {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: var(--ok);
}
.pg-frame-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  flex-shrink: 0;
}

/* Chaos Drill Card */
.pg-chaos-card {
  border: 1px solid var(--warn);
  background: linear-gradient(180deg, var(--warn-soft), var(--surface));
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.5rem 0;
  text-align: left;
}
.pg-chaos-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.pg-chaos-desc {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.btn-chaos {
  background: #DC2626;
  color: #fff;
  border: 0;
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-chaos:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-chaos:active {
  transform: translateY(0);
}

/* Conversion CTA Card */
.pg-conversion-card {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 1.25rem;
  margin: 0.75rem 0;
  box-shadow: var(--shadow);
}
.pg-conversion-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.pg-conversion-sub {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}
.pg-conversion-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.pg-conversion-points li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 700;
}
.pg-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Storyboard & Product Screenshot Cards */
.pg-screenshot-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  margin: 0.6rem 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}
.pg-storyboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.pg-storyboard-part {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.pg-storyboard-frame-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.pg-storyboard-title {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text);
  margin: 0;
}
.pg-storyboard-filter-chips {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
}
.pg-storyboard-chip {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.pg-storyboard-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pg-storyboard-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.pg-screenshot-media {
  position: relative;
  background: #0B0F19;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.pg-screenshot-img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}
.pg-screenshot-media:hover .pg-screenshot-img {
  transform: scale(1.015);
}
.pg-screenshot-zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.pg-screenshot-caption {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
  background: var(--surface-2);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.pg-storyboard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.pg-storyboard-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pg-storyboard-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.pg-storyboard-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Lightbox Modal */
.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.pg-lightbox[hidden] {
  display: none !important;
}
.pg-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}
.pg-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pg-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pg-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}
.pg-lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.pg-lightbox-caption {
  margin-top: 0.75rem;
  color: #fff;
  text-align: center;
  max-width: 720px;
}
.pg-lightbox-caption strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.pg-lightbox-caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Predefined Question Category Tabs & Buttons (Mimicking aarlika.com) */
.pg-predefined-header {
  margin-bottom: 0.5rem;
}
.pg-category-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.45rem;
  scrollbar-width: thin;
  margin-bottom: 0.4rem;
}
.pg-category-tab {
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.pg-category-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pg-category-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}

.pg-predefined-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
@media (min-width: 640px) {
  .pg-predefined-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pg-predefined-q {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.8rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.pg-predefined-q:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.pg-predefined-q::after {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.8;
  flex-shrink: 0;
}

/* Composer */
.pg-composer { border-top: 1px solid var(--border); padding: 0.65rem 0.9rem 0.5rem; }
@media (min-width: 560px) { .pg-chat { padding: 1rem; } .pg-composer { padding: 0.75rem 1rem 0.6rem; } }
.pg-chips { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: thin; }
.pg-chip { flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.8rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.pg-chip:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pg-chip:disabled { opacity: 0.45; cursor: default; }
.pg-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pg-chip[aria-pressed="true"]::before { content: "✓ "; }
.pg-chip.is-chosen:disabled { opacity: 1; border-color: var(--accent); color: var(--accent); }
.pg-chip-go { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pg-chip-go:hover:not(:disabled) { color: #fff; filter: brightness(1.1); }
.pg-is-busy #pg-drill-chips .pg-chip { opacity: 0.55; }

.pg-starters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; margin-bottom: 0.55rem; }
@media (min-width: 640px) { .pg-starters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-starter { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.42rem 0.75rem; font-size: 0.85rem; line-height: 1.35; color: var(--text); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.pg-starter:hover { border-color: var(--accent); background: var(--accent-soft); }
.pg-tools-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.3rem; }
.pg-tools .pg-chips { padding-bottom: 0.45rem; }
.pg-skip { display: block; background: none; border: 0; padding: 0.25rem 0; margin-top: 0.4rem; font-size: 0.82rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.pg-skip:hover { text-decoration: underline; }
.pg-form { display: flex; align-items: center; gap: 0.5rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 0.35rem 0.35rem 0.35rem 0.9rem; transition: border-color 0.15s ease; }
.pg-form:focus-within { border-color: var(--accent); }
/* 16px on phones so iOS doesn't zoom in when the input is focused. */
.pg-form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: inherit; font-size: 16px; padding: 0.45rem 0; }
@media (min-width: 1024px) { .pg-form input { font-size: 0.92rem; } }
.pg-form input::placeholder { color: var(--muted); }
.pg-send { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.pg-send:hover { filter: brightness(1.1); }

/* ---------- Quickstart ---------- */
.steps { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { color: var(--text-2); font-size: 0.93rem; }

/* ---------- Calculator ---------- */
.cc-status { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.cc-stale { color: var(--warn); }
.cc-loading .calc, .cc-unavailable .calc, .cc-unavailable .cc-how { opacity: 0.45; pointer-events: none; }
.calc { display: grid; gap: 1.25rem; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow); }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 1.75rem; gap: 2rem; } }
.calc-clouds { border: 0; margin-bottom: 1.25rem; }
.calc-clouds legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.calc-cloud { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.4rem; }
.calc select { width: 100%; min-width: 0; font: inherit; font-size: 0.88rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0.6rem; }
.cc-errors { color: var(--bad); font-size: 0.85rem; }
.slider { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.2rem 1rem; margin-bottom: 1.1rem; font-size: 0.9rem; font-weight: 600; }
.slider small { font-weight: 400; color: var(--muted); }
.slider output { font-family: var(--mono); color: var(--accent); }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); }
.calc-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.calc-selects label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; }

.compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.compare th, .compare td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); text-align: right; }
.compare th:first-child, .compare tbody th { text-align: left; font-weight: 500; color: var(--text-2); }
.compare thead th { font-size: 0.8rem; color: var(--text); font-weight: 700; vertical-align: bottom; }
.compare thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.compare td { font-family: var(--mono); }
.compare .compare-total th, .compare .compare-total td { font-weight: 800; font-size: 1rem; color: var(--text); border-bottom: 0; }
.compare .compare-total td:nth-child(2) { color: var(--ok); }
.compare.cc-no-aws th:nth-child(3), .compare.cc-no-aws td:nth-child(3) { display: none; }
.cc-diff { margin-top: 0.75rem; font-weight: 600; color: var(--ok); font-size: 0.92rem; }
.cc-labor { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  /* Full-width row under inputs and results: intro and rate on the left, hours on the right. */
  .cc-labor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 2rem; align-items: start; }
  .cc-labor-intro { grid-column: 1; grid-row: 1 / span 2; }
  .cc-labor > .cc-labor-table, .cc-labor > #cc-labor-diff { grid-column: 2; }
}
.cc-labor-title { font-size: 1rem; margin: 0 0 0.35rem; }
.cc-labor-sub { font-size: 0.82rem; color: var(--muted); margin: 0 0 0.75rem; }
.cc-rate { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; }
.cc-rate-field { font-family: var(--mono); }
.cc-labor-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
.cc-hours, .cc-rate input { width: 5.5rem; max-width: 100%; padding: 0.3rem 0.4rem; text-align: right; font: inherit; font-family: var(--mono); color: var(--text); background: var(--surface, transparent); border: 1px solid var(--border-strong); border-radius: 6px; }
.cc-in-managed { font-family: inherit; font-size: 0.78rem; color: var(--muted); }
.cc-notes { list-style: none; margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.2rem; }
.cc-how { margin-top: 1.25rem; }
.cc-how summary { cursor: pointer; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.75rem; }
.cc-how p { margin-bottom: 0.75rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.how-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.how-table th, .how-table td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.how-table th { color: var(--muted); font-weight: 600; }
.how-table code { font-family: var(--mono); font-size: 0.78rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pricing { grid-template-columns: repeat(4, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -11px; left: 1.5rem; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.plan h3 { font-size: 1.05rem; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.4rem 0 1rem; }
.price span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; color: var(--text-2); margin-bottom: 1.5rem; flex: 1; }
.plan li { padding-left: 1.3rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 1.1rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); font-size: 0.93rem; padding-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9rem; }
.footer-links a { color: var(--text-2); }
.footer-legal { font-size: 0.8rem; color: var(--muted); }

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

/* Skip link: hidden until focused with the keyboard */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: 0.6rem 1rem; border-radius: 8px; background: #1A6BE0; color: #fff; font-weight: 600; }
.skip-link:focus { top: 0.75rem; }
main:focus { outline: none; }

/* Tap targets of at least 24px for small text links */
.footer-links a, .cc-status a { display: inline-block; padding: 4px 0; }
@media (min-width: 900px) { html:not(.geocell-docked) .nav-link { padding: 4px 0; } }

/* Early access (/signup, /login while the app isn't open) */
.ea-wrap { max-width: 640px; text-align: center; }
.ea-form { margin: 2rem auto 0; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.ea-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
.ea-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ea-input { flex: 1 1 240px; min-height: 44px; padding: 0.6rem 0.85rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; }
.ea-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.ea-row .btn { min-height: 44px; }
.ea-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ea-plan-note { margin: 0.75rem 0 0; font-size: 0.88rem; color: var(--text-2); }
.ea-status { margin: 0.75rem 0 0; min-height: 1.4em; font-size: 0.92rem; font-weight: 600; }
.ea-status.ea-ok { color: #16A34A; }
.ea-status.ea-error { color: #DC2626; }
.ea-fine { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--muted); }
.ea-fine a { color: inherit; text-decoration: underline; }
.ea-next { margin-top: 2rem; display: flex; gap: 0.6rem; justify-content: center; align-items: center; flex-wrap: wrap; color: var(--text-2); font-size: 0.9rem; }
.ea-next p { margin: 0; }
@media (max-width: 520px) { .ea-row .btn { width: 100%; } }
