/* Rapid Reports (rpdreports.com) — Light & Warm Cream Editorial Design System
   Independent subsidiary of Rapid Roofing LLC (California). Unified across landing, auth, legal & dashboard. */

:root {
  --bg:         #f5f3ee;
  --paper:      #ffffff;
  --sunk:       #ebe8e1;
  --ink:        #101317;
  --ink-2:      #4b5159;
  --ink-3:      #767c85;
  --rule:       #dcd7ce;
  --rule-strong:#c8c2b6;
  --amber:      #e9a23b;
  --amber-dk:   #a9690a;
  --amber-soft: #fdf4e3;
  --blue:       #1d5fa7;
  --blue-soft:  #eef5fc;
  --good:       #15803d;
  --good-soft:  #ecfdf3;
  --good-line:  #bbf7d0;
  --warn:       #b45309;
  --warn-soft:  #fffbeb;
  --warn-line:  #fde68a;
  --bad:        #b91c1c;
  --bad-soft:   #fef2f2;
  --bad-line:   #fecaca;
  --shadow-sm:  0 1px 3px rgba(16, 19, 23, 0.05), 0 1px 2px rgba(16, 19, 23, 0.03);
  --shadow-md:  0 10px 28px rgba(16, 19, 23, 0.08), 0 2px 6px rgba(16, 19, 23, 0.04);
  --radius:     14px;
  --f-disp:     "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-body:     "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-mono:     "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-disp); letter-spacing: -0.02em; color: var(--ink); }

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-inline: 16px;
}

/* ---- Top Navigation ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-beta {
  font-family: var(--f-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-dk);
  border: 1px solid #f4d69e;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font: 600 0.92rem/1 var(--f-body);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, transform 0.08s;
  white-space: nowrap;
}
.btn:hover { background: var(--sunk); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}
.btn-primary:hover { background: #262e38; border-color: #262e38; }

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #14181d;
}
.btn-amber:hover { background: #d69236; border-color: #d69236; }

.btn-danger {
  background: var(--bad-soft);
  border-color: var(--bad-line);
  color: var(--bad);
}
.btn-danger:hover { background: #fee2e2; }

.btn-danger-solid {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}
.btn-danger-solid:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-good {
  background: var(--good);
  border-color: var(--good);
  color: #ffffff;
}
.btn-good:hover { background: #166534; }

.btn-sm {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.84rem;
  border-radius: 8px;
}

/* Unified homepage-matched subpage header controls */
.nav-signin-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 8px;
  transition: color 0.14s;
}
.nav-signin-link:hover { color: var(--ink); }
.btn-pill-dark {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  border-color: var(--ink);
  color: #f5f3ee;
  font-size: 0.92rem;
  font-weight: 600;
}
.btn-pill-dark:hover { background: #262b32; border-color: #262b32; color: #ffffff; }

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid #f4d69e;
  color: #7c4d08;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}
.credit-pill.unlimited {
  background: var(--good-soft);
  border-color: var(--good-line);
  color: var(--good);
}
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* ---- Cards & Forms ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.input, select.input, textarea.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.96rem/1.4 var(--f-body);
}
textarea.input { min-height: 92px; resize: vertical; }
.input:focus { outline: 2px solid rgba(228, 160, 69, 0.45); border-color: var(--amber-dk); }

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.alert-err  { background: var(--bad-soft);  color: var(--bad);  border: 1px solid var(--bad-line); }
.alert-ok,
.alert-good { background: var(--good-soft); color: var(--good); border: 1px solid var(--good-line); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }

.mono { font-family: var(--f-mono); }

/* ---- Landing Page ---- */
.hero {
  padding: 32px 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.hero-kicker b { color: var(--ink); }
.hero h1 {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.08;
  margin-top: 12px;
}
.hero-lead {
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 60ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
.hero-stats span { display: inline-flex; align-items: center; gap: 6px; }
.hero-stats b { color: var(--ink); }

/* Embedded Interactive Demo Card */
.demo-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  background: #fbfcfe;
}
.demo-title { font-family: var(--f-disp); font-weight: 700; font-size: 0.98rem; }
.demo-sub   { font-size: 0.82rem; color: var(--ink-2); }
.demo-frame-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: #dce8f4;
}
.demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.demo-touch-shield {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 29, 0.14);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
}
.demo-touch-shield button {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font: 600 0.92rem/1 var(--f-body);
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}
@media (hover: none) and (pointer: coarse) {
  .demo-touch-shield.locked { display: flex; }
}

.section { padding: 28px 0; }
.section-h { font-size: clamp(1.35rem, 3.2vw, 1.75rem); margin-bottom: 6px; }
.section-sub { color: var(--ink-2); margin-bottom: 18px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--amber-soft); color: var(--amber-dk); border: 1px solid #f4d69e;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-disp); font-weight: 700; font-size: 0.92rem;
  margin-bottom: 10px;
}
.step-card h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step-card p  { font-size: 0.9rem; color: var(--ink-2); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.price-big {
  font-family: var(--f-disp);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.price-unit { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.check-list li::before { content: "✓"; color: var(--good); font-weight: 700; flex-shrink: 0; }

/* ---- Auth Pages ---- */
.auth-wrap {
  min-height: calc(100dvh - 130px);
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.auth-card { width: min(420px, 100%); padding: 24px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-sub { color: var(--ink-2); font-size: 0.92rem; margin-bottom: 18px; }
.oauth-stack { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.oauth-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  color: var(--ink);
  font: 600 0.92rem/1 var(--f-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}
.oauth-btn:hover { background: var(--sunk); }
.oauth-btn.apple { background: #14181d; color: #fff; border-color: #14181d; }
.oauth-btn.apple:hover { background: #262e38; }
.divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-3); font-size: 0.8rem; margin: 14px 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--rule); }

/* ---- Dashboard & Map ---- */
.dash-wrap { padding: 20px 0 56px; display: flex; flex-direction: column; gap: 18px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.dash-head h1 { font-size: clamp(1.38rem, 3.2vw, 1.8rem); }
.dash-sub { color: var(--ink-2); font-size: 0.9rem; margin-top: 2px; }

.worker-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500;
  background: var(--paper); border: 1px solid var(--rule);
}
.w-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.worker-pill.on .w-dot  { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.worker-pill.off .w-dot { background: var(--warn); }

.addr-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.addr-input-wrap { position: relative; flex: 1 1 230px; min-width: 0; }
.addr-input-wrap .input { width: 100%; }
.addr-suggest {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 4px);
  z-index: 650;
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.addr-opt {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 13px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--f-body);
}
.addr-opt:hover, .addr-opt.active { background: var(--sunk); }
.addr-opt-main { font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.addr-opt-sub  { font-size: 0.8rem; color: var(--ink-2); line-height: 1.25; }
.addr-attr {
  padding: 5px 12px;
  font-size: 0.7rem;
  color: var(--ink-3);
  text-align: right;
  background: #fbfcfe;
}

.map-toggle-row {
  margin-top: 10px;
}
.map-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--sunk);
  color: var(--ink-2);
  font: 600 0.85rem/1.2 var(--f-body);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.map-toggle:hover { background: #e6ecf3; color: var(--ink); border-color: var(--rule-strong); }
.map-toggle-left { display: inline-flex; align-items: center; gap: 8px; }
.map-toggle-left svg { color: var(--amber-dk); flex-shrink: 0; }
.map-toggle-chev { flex-shrink: 0; transition: transform 0.18s ease; }
.map-toggle.open .map-toggle-chev { transform: rotate(180deg); }
.map-drawer[hidden] { display: none !important; }

.map-stage {
  position: relative; width: 100%; height: 420px; margin-top: 12px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--rule);
  background: #d8e2ec;
}
#gmap, #lmap { width: 100%; height: 100%; }
.center-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 500;
  display: flex; flex-direction: column; align-items: center;
}
.crosshair { width: 44px; height: 44px; position: relative; }
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.85);
}
.crosshair::before { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.crosshair::after  { top: 50%; left: 0; height: 2px; width: 100%; transform: translateY(-50%); }
.crosshair-dot {
  position: absolute; left: 50%; top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: #e4a045; border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%);
}
.pin-tip {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(20, 24, 29, 0.84); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  pointer-events: none; z-index: 500; white-space: nowrap;
}

.map-bar {
  margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px;
}
.map-bar-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.coord-chip {
  font-family: var(--f-mono); font-size: 0.79rem; padding: 4px 9px;
  border-radius: 7px; background: var(--sunk); color: var(--ink);
}
.chk-large { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--ink-2); cursor: pointer; }

/* ---- Instant Satellite Ballpark Card (Dashboard) ---- */
.qe-quota {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--sunk);
  color: var(--ink-2);
}
.qe-card {
  margin-top: 12px;
  padding: 14px 15px;
  border-radius: 12px;
  border: 1px solid var(--rule-strong);
  background: #faf8f4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qe-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.qe-head-l { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.qe-head-r { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-3); }
.qe-kicker {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.qe-close {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.qe-close:hover { color: var(--ink); }
.qe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.qe-stat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
}
.qe-stat-k { font-size: 0.74rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.qe-stat-v { font-family: var(--f-disp); font-size: 1.32rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.qe-stat-s { font-size: 0.78rem; color: var(--ink-2); margin-top: 2px; }
.qe-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.qe-warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  color: var(--warn);
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 0.81rem;
  line-height: 1.4;
}
.qe-foot {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---- Jobs Cards ---- */
.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.j-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 13px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.j-thumb { width: 100%; height: 152px; object-fit: cover; background: #dce4ec; border-bottom: 1px solid var(--rule); }
.j-thumb-ph {
  width: 100%; height: 100px; background: var(--sunk);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 0.86rem; border-bottom: 1px solid var(--rule); padding: 12px; text-align: center;
}
/* Notification question + the card a notification or email links to */
.notif-bell {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-dk); border: 1px solid #f4d69e;
}
.j-flash { animation: jFlash 2.6s ease-out 1; }
@keyframes jFlash {
  0%, 35% { box-shadow: 0 0 0 3px var(--amber), var(--shadow-md); }
  100%    { box-shadow: 0 0 0 3px rgba(228, 160, 69, 0), var(--shadow-sm); }
}

/* Report being drafted: percentage, bar, stage and a rotating line */
.j-prog {
  padding: 16px 14px 14px;
  background: var(--sunk);
  border-bottom: 1px solid var(--rule);
  min-height: 100px;
}
.j-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.j-prog-pct { font-family: var(--f-disp); font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.j-prog-pct b { font-size: 1.9rem; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.j-prog-time { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.j-prog-bar { height: 6px; margin: 8px 0 11px; border-radius: 999px; background: #dfe5ec; overflow: hidden; }
.j-prog-bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-dk), var(--amber));
  transition: width 1s linear;
}
.j-prog-head { font-family: var(--f-disp); font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.j-prog-line { margin-top: 2px; font-size: 0.84rem; color: var(--ink-2); min-height: 1.3em; }
.j-prog-queue { display: flex; flex-direction: column; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .j-prog-bar i { transition: none; } }

.j-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.j-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px;
}
.st-queued     { background: var(--sunk); color: var(--ink-2); }
.st-processing { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.st-ready      { background: var(--good-soft); color: var(--good); border: 1px solid var(--good-line); }
.st-failed     { background: var(--bad-soft);  color: var(--bad);  border: 1px solid var(--bad-line); }
.st-flag-open     { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); }
.st-flag-refunded { background: var(--good-soft); color: var(--good); border: 1px solid var(--good-line); }
.st-flag-rerun    { background: var(--blue-soft); color: var(--blue); border: 1px solid #bfdbfe; }
.st-flag-dismissed{ background: var(--sunk); color: var(--ink-2); }

.j-addr { font-family: var(--f-disp); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.j-kpis { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.j-kpis span { background: var(--sunk); padding: 3px 8px; border-radius: 6px; color: var(--ink); font-weight: 500; }
.j-meta { font-size: 0.78rem; color: var(--ink-3); }
.j-foot { margin-top: auto; padding-top: 6px; display: flex; gap: 7px; flex-wrap: wrap; }
.j-foot .btn { flex: 1 1 auto; min-height: 38px; padding: 0 11px; font-size: 0.85rem; }

.sp-mini {
  width: 11px; height: 11px; border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Modals (Mobile-Friendly Bottom Sheet on Small Screens) ---- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15, 23, 36, 0.45);
  z-index: 2000; display: grid; place-items: center; padding: 16px;
}
.modal-bg[hidden] { display: none !important; }
.modal-box {
  width: min(500px, 100%); max-height: 90dvh; overflow-y: auto;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 16px;
  padding: 20px; box-shadow: 0 16px 48px rgba(15, 23, 36, 0.22);
  display: flex; flex-direction: column; gap: 12px;
}
.reason-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.reason-chip {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: var(--paper); color: var(--ink-2); font: 500 0.84rem/1 var(--f-body); cursor: pointer;
}
.reason-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Confirm Order Modal ---- */
.confirm-pin-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--amber-soft); color: var(--amber-dk); border: 1px solid #edd099;
}
.confirm-summary {
  background: #faf8f4;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.confirm-addr {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}
.confirm-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: 0.78rem;
  color: var(--ink-2);
}
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

/* ---- Admin Tabs, Settings & Diagnostics Panel ---- */
.admin-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}
.admin-redirect-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-row-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.flag-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 12px;
}
.flag-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.flag-head-btns {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.flag-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tabs-bar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2);
  font: 600 0.88rem/1 var(--f-body); cursor: pointer; white-space: nowrap;
}
.tab-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.flag-review-card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 14px;
  padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
}
.flag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.diag-box {
  background: #faf8f4; border: 1px solid var(--rule); border-radius: 11px; padding: 13px;
  display: flex; flex-direction: column; gap: 10px;
}
.diag-transcript {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 8px;
  padding: 10px 12px; font-size: 0.84rem; color: var(--ink-2);
  max-height: 240px; overflow-y: auto; white-space: pre-wrap; line-height: 1.5;
}
.conf-chip { font-size: 0.74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.conf-high   { background: var(--good-soft); color: var(--good); }
.conf-medium { background: var(--warn-soft); color: var(--warn); }
.conf-low    { background: var(--bad-soft);  color: var(--bad); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); font-weight: 600; }

.code-pre {
  background: #14181d; color: #e8edf4; padding: 12px; border-radius: 9px;
  font-family: var(--f-mono); font-size: 0.78rem; overflow-x: auto; line-height: 1.5;
}

/* ---- Stripe Buy Credits Modal ---- */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pack-card {
  position: relative;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--paper);
  padding: 14px 10px 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--ink);
  font-family: var(--f-body);
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.pack-card:hover { background: var(--sunk); }
.pack-card.on {
  border-color: var(--ink);
  background: #faf8f4;
  box-shadow: 0 0 0 2px rgba(16, 19, 23, 0.12);
}
.pack-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #14181d;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.pack-qty   { font-family: var(--f-disp); font-weight: 700; font-size: 0.98rem; }
.pack-price { font-family: var(--f-mono); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.pack-sub   { font-size: 0.72rem; color: var(--ink-3); }
.custom-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.qty-stepper { display: inline-flex; align-items: center; gap: 6px; }
.qty-stepper .btn { min-width: 36px; min-height: 36px; padding: 0; font-size: 1.05rem; }
.qty-stepper input {
  width: 64px;
  min-height: 36px;
  text-align: center;
  font-family: var(--f-mono);
  font-weight: 600;
  padding: 4px 6px;
}
.stripe-foot {
  font-size: 0.76rem;
  color: var(--ink-3);
  text-align: center;
}

/* ---- Legal Editorial Docs (terms.php, privacy.php) ---- */
.legal-wrap {
  padding: 32px 16px 56px;
  max-width: 820px;
}
.legal-doc {
  padding: clamp(22px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legal-doc h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-stretch: 110%;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.legal-meta {
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.legal-doc h2 {
  font-size: 1.14rem;
  font-stretch: 108%;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-doc p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.62; }
.legal-doc ul {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.6;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-doc a { color: var(--amber-dk); font-weight: 600; text-decoration: underline; }
.legal-callout {
  background: var(--amber-soft);
  border: 1px solid #edd099;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
}

/* ---- Footer ---- */
.site-foot {
  margin-top: 32px;
  border-top: 1px solid var(--rule);
  background: var(--sunk);
  padding: 24px 0;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.site-foot-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---- Flagship Public Landing Page (.lp-*) ---- */
.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}
.lp-nav-links a { transition: color 0.14s; }
.lp-nav-links a:hover { color: var(--ink); }

.lp-hero-band {
  position: relative;
  background:
    radial-gradient(ellipse 85% 65% at 50% 0%, rgba(228, 160, 69, 0.09), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.lp-hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(20, 24, 29, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 24, 29, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 18%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 72% at 50% 18%, #000 35%, transparent 100%);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(34px, 6vw, 66px) 0 clamp(32px, 5vw, 54px);
}
.lp-hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.lp-kicker span { white-space: nowrap; }
.lp-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
  flex-shrink: 0;
}
.lp-kicker b { color: var(--ink); }
.lp-hero-copy h1 {
  font-size: clamp(2.15rem, 5.6vw, 3.85rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
  margin-top: 18px;
  color: #0e1318;
}
.lp-hero-copy h1 .lp-accent {
  color: var(--amber-dk);
  white-space: nowrap;
}
.lp-lead {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.56;
  color: var(--ink-2);
  margin-top: 16px;
  max-width: 58ch;
}
.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.lp-btn-lg {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.96rem;
  border-radius: 11px;
}
.lp-micro {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* 4-Stat Architectural Strip */
.lp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px auto 0;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lp-metric {
  padding: 15px 16px;
  text-align: center;
  border-right: 1px solid var(--rule);
}
.lp-metric:last-child { border-right: 0; }
.lp-metric-v {
  font-family: var(--f-disp);
  font-weight: 700;
  font-size: clamp(1.22rem, 2.5vw, 1.52rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
}
.lp-metric-k {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 3px;
}

/* Framed Live 3D Showcase Window */
.lp-demo-wrap { margin-top: 30px; }
.lp-demo-window {
  background: #ffffff;
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 54px rgba(15, 23, 36, 0.11), 0 4px 12px rgba(15, 23, 36, 0.05);
}
.lp-demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 13px 18px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--rule);
}
.lp-demo-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.lp-demo-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lp-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--good-soft);
  border: 1px solid var(--good-line);
  color: var(--good);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lp-live-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}
.lp-demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.lp-demo-chips span {
  background: var(--sunk);
  border: 1px solid var(--rule);
  padding: 2px 8px;
  border-radius: 6px;
}
.lp-demo-frame-wrap {
  position: relative;
  width: 100%;
  height: 510px;
  background: #dce8f4;
}
.lp-demo-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 18px;
  background: #fbfcfe;
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
  color: var(--ink-2);
}
.lp-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.lp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.lp-swatch i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

/* Landing Sections */
.lp-sec {
  padding: clamp(40px, 6vw, 72px) 0;
}
.lp-sec-alt {
  background: #ffffff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lp-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dk);
  margin-bottom: 8px;
}
.lp-sec-head {
  max-width: 680px;
  margin-bottom: 26px;
}
.lp-sec-head h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.lp-sec-head p {
  color: var(--ink-2);
  font-size: 1rem;
  margin-top: 8px;
}

/* Comparison Matrix */
.lp-compare-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.lp-compare-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}
.lp-compare-tbl th, .lp-compare-tbl td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.lp-compare-tbl tr:last-child td { border-bottom: 0; }
.lp-compare-tbl th {
  font-family: var(--f-disp);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-2);
  background: #fbfcfe;
}
.lp-compare-tbl td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 26%;
}
.lp-col-us {
  background: #fffdf7;
  color: var(--ink);
  font-weight: 600;
  border-left: 1px solid #f4dfb6;
  border-right: 1px solid #f4dfb6;
}
.lp-compare-tbl th.lp-col-us {
  background: #fef8eb;
  color: var(--ink);
  border-top: 3px solid var(--amber);
}
.lp-chk { color: var(--good); font-weight: 700; margin-right: 5px; }
.lp-muted { color: var(--ink-2); }

/* Asymmetric Bento Grid */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.lp-bento-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.lp-span-7 { grid-column: span 7; }
.lp-span-5 { grid-column: span 5; }
.lp-bento-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.lp-bento-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lp-bento-card p {
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* Miniature Product Previews Inside Bento Cards */
.lp-mini-sheet {
  background: #f8fafc;
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
}
.lp-mini-row {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 0.85fr 0.65fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}
.lp-mini-row:last-child { border-bottom: 0; }
.lp-mini-row.head {
  font-family: var(--f-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding-top: 0;
}
.lp-mini-row b { color: var(--ink); }
.lp-line-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.lp-line-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--rule);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}
.lp-line-pill span {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--ink-2);
  font-size: 0.76rem;
}
.lp-line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lp-url-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--ink-2);
}
.lp-url-badge {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--good);
  background: var(--good-soft);
  border: 1px solid var(--good-line);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.lp-phone-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lp-phone-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 500;
}
.lp-phone-step span { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-3); }

/* 3-Step Horizontal Rail */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-step {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.lp-step-idx {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber-dk);
  background: var(--amber-soft);
  border: 1px solid #f4d69e;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 7px;
  margin-bottom: 12px;
}
.lp-step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.lp-step p  { font-size: 0.9rem; color: var(--ink-2); }

/* Pricing & Guarantee Split */
.lp-price-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}
.lp-price-card {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.lp-guar-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.lp-pack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.lp-pack-strip span {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.lp-guar-foot {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-2);
}
.lp-guar-foot b { color: var(--ink); }

/* FAQ Accordion */
.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.lp-faq details {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: 13px;
  padding: 15px 18px;
  box-shadow: var(--shadow-sm);
}
.lp-faq summary {
  font-family: var(--f-disp);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 1.15rem;
  color: var(--ink-3);
  flex-shrink: 0;
}
.lp-faq details[open] summary::after { content: "−"; color: var(--ink); }
.lp-faq details p {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.58;
}

/* Final Closing Conversion Banner */
.lp-closing {
  background: linear-gradient(135deg, #ffffff 0%, #fef9ee 100%);
  border: 1px solid #f0d7a6;
  border-radius: 20px;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.lp-closing h2 {
  font-size: clamp(1.65rem, 4vw, 2.45rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.lp-closing p {
  color: var(--ink-2);
  max-width: 52ch;
  margin: 10px auto 0;
  font-size: 1rem;
}

/* ---- Mobile Refinements ---- */
@media (max-width: 900px) {
  .lp-nav-links { display: none; }
  .lp-span-7, .lp-span-5 { grid-column: span 12; }
  .lp-steps, .lp-price-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .lp-kicker { font-size: 0.74rem; padding: 5px 12px; gap: 6px; }
  .lp-mini-sheet { padding: 10px 10px; font-size: 0.7rem; }
  .lp-mini-row { gap: 4px; }
  .lp-metrics { grid-template-columns: repeat(2, 1fr); }
  .lp-metric:nth-child(2) { border-right: 0; }
  .lp-metric:nth-child(1), .lp-metric:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .lp-demo-frame-wrap { height: 390px; }
  .lp-demo-bar, .lp-demo-legend { padding: 11px 13px; }
  .lp-bento-card, .lp-price-card, .lp-guar-card { padding: 18px; }
  .lp-cta-row .btn { width: 100%; }
  .site-nav-inner { gap: 6px; min-height: 54px; padding-block: 6px; flex-wrap: wrap; }
  .brand-link { font-size: 0.96rem; gap: 7px; }
  .brand-beta { display: none; }
  .nav-actions { gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-actions .btn-sm, .nav-actions .credit-pill { padding: 0 9px; font-size: 0.76rem; min-height: 32px; }
  .hero-kicker { font-size: 0.78rem; gap: 6px; padding: 5px 10px; }
  .flag-grid { grid-template-columns: 1fr; }
  .demo-frame-wrap { height: 390px; }
  .map-stage { height: 52dvh; min-height: 300px; }
  .card { padding: 14px; }
  .hide-xs { display: none; }
  .modal-bg { align-items: end; padding: 0; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 88dvh; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

  /* ---- Mobile-First Admin Console ---- */
  .admin-main .dash-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .admin-main .worker-pill { width: 100%; justify-content: center; }
  .admin-main .tabs-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }
  .admin-main .tab-btn {
    justify-content: center;
    padding: 0 6px;
    font-size: 0.78rem;
    min-height: 38px;
    gap: 4px;
    text-align: center;
  }
  .admin-bar-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-bar-row .btn { width: 100%; }
  .flag-review-card { padding: 13px; gap: 11px; }
  .flag-head { flex-direction: column; align-items: stretch; }
  .flag-head-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flag-head-btns .btn { width: 100%; }
  .flag-action-btns { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .flag-action-btns .btn { width: 100%; min-height: 40px; }
  .admin-settings-grid { grid-template-columns: 1fr; }
  .admin-redirect-row { flex-direction: column; align-items: stretch; }
  .admin-redirect-row .btn { width: 100%; }
  .admin-main code { overflow-wrap: anywhere; word-break: break-word; }
  .code-pre { white-space: pre-wrap; word-break: break-all; font-size: 0.72rem; padding: 10px; }

  /* Convert wide admin tables into clean stacked cards on phones */
  .table-wrap { overflow: visible; }
  .tbl-cards, .tbl-cards tbody { display: flex; flex-direction: column; gap: 10px; }
  .tbl-cards thead { display: none; }
  .tbl-cards tr {
    display: flex;
    flex-direction: column;
    background: #faf8f4;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 10px 12px;
    gap: 2px;
  }
  .tbl-cards td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--rule);
    text-align: right;
    font-size: 0.84rem;
    word-break: break-word;
  }
  .tbl-cards td:last-child { border-bottom: 0; padding-bottom: 0; }
  .tbl-cards td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    text-align: left;
    flex-shrink: 0;
    padding-top: 2px;
  }
  .tbl-cards td.td-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding-top: 8px;
  }
  .tbl-cards td.td-actions::before { margin-bottom: 4px; }
  .tbl-cards td.td-actions .admin-row-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tbl-cards td.td-actions .admin-row-btns .btn {
    flex: 1 1 auto;
    min-height: 36px;
  }
  .tbl-cards td > div { min-width: 0; max-width: 100%; }
  .tbl-cards td.td-empty {
    justify-content: center;
    text-align: center;
    border-bottom: 0;
  }
  .tbl-cards td.td-empty::before { display: none; }
}

.admin-err-details {
  margin-top: 6px;
  text-align: left;
  max-width: 100%;
}
.admin-err-details summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bad);
  user-select: none;
}
.admin-err-pre {
  margin: 5px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bad-soft, #fdecec);
  border: 1px solid rgba(185, 28, 28, 0.22);
  color: #7f1d1d;
  font: 400 0.72rem/1.4 var(--f-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 170px;
  overflow: auto;
  text-align: left;
}

/* ---- Buy Credits / Quick Ballparks Modal Tabs & Bonus Pills ---- */
.modal-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  border-radius: 11px;
  background: var(--sunk);
  border: 1px solid var(--rule);
}
.modal-seg-btn {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.85rem/1.2 var(--f-body);
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.14s;
}
.modal-seg-btn.on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 19, 23, 0.1);
}
.pack-bonus {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--good);
}
.bp-featured {
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #faf8f4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-featured-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.bp-featured-title { font-family: var(--f-disp); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.bp-featured-price { font-family: var(--f-disp); font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.bp-featured-sub { font-size: 0.82rem; color: var(--ink-2); line-height: 1.45; }
.bp-nudge {
  font-size: 0.82rem;
  color: var(--ink-2);
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.45;
}
.bp-nudge button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--amber-dk);
  font: 600 0.82rem/1.4 var(--f-body);
  text-decoration: underline;
  cursor: pointer;
}
.qe-upsell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

/* ---- Estimates, Invoices & Stripe Connect ("Caveman-Simple") ---- */
.est-pay-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffdf7 0%, #fef6e4 100%);
  border: 1px solid #f0d7a6;
  box-shadow: var(--shadow-sm);
}
.est-pay-bar.unlocked {
  background: var(--good-soft);
  border-color: var(--good-line);
}
.est-pay-bar-l {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 320px;
  min-width: 0;
}
.est-pay-bar-r {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.est-pay-lock {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--amber-soft);
  color: var(--amber-dk);
  border: 1px solid #edd099;
}
.est-pay-bar.unlocked .est-pay-lock {
  background: #ffffff;
  color: var(--good);
  border-color: var(--good-line);
}
.est-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.est-kpi {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-sm);
}
.est-kpi-k {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.est-kpi b {
  font-family: var(--f-disp);
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.est-kpi.warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  cursor: pointer;
}
.est-kpi.warn .est-kpi-k,
.est-kpi.warn b { color: var(--warn); }
.est-kpi.good {
  background: var(--good-soft);
  border-color: var(--good-line);
}
.est-kpi.good .est-kpi-k,
.est-kpi.good b { color: var(--good); }
.est-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.est-next-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-width: 1.5px;
  border-color: var(--rule-strong);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 100%);
}
.est-next-card.status-signed { border-color: #93c5fd; }
.est-next-card.status-invoiced { border-color: #f0d7a6; }
.est-next-card.status-paid { border-color: var(--good-line); }
.est-next-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.est-next-money {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 11px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.est-next-money > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.est-next-money span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.est-next-money b {
  font-family: var(--f-mono);
  font-size: 1.08rem;
}
.est-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.est-inline-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.45;
}
.est-calc-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.est-calc-bar > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.est-calc-bar span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.est-calc-bar b {
  font-family: var(--f-mono);
  font-size: 0.98rem;
  color: var(--ink);
}
.est-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 112px auto;
  gap: 8px;
  align-items: center;
}

/* ---- Personal API Keys & Developers / MCP Page ---- */
.api-key-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.api-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--sunk);
  border: 1px solid var(--rule);
  font-size: 0.85rem;
}
.api-key-prefix {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2px 7px;
  border-radius: 6px;
}
.api-key-secret-box {
  background: var(--good-soft);
  border: 1px solid var(--good-line);
  border-radius: 11px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dev-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.dev-tool-card {
  background: #faf8f4;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dev-tool-card code {
  font-family: var(--f-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}
.dev-tool-card p {
  font-size: 0.84rem;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.48;
}

@media (max-width: 720px) {
  .est-pay-bar { padding: 12px; }
  .est-pay-bar-r, .est-pay-bar-r .btn { width: 100%; }
  .est-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-toolbar #estSearch { max-width: 100% !important; width: 100%; }
  .est-next-money { width: 100%; justify-content: space-between; }
  .est-next-actions .btn { flex: 1 1 100%; }
  .est-calc-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .est-item-row { grid-template-columns: 1fr 1fr auto; }
  .est-item-row .it-desc { grid-column: 1 / -1; }
  #estForm [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* ---- Simpler dashboard (2026-11-30) ---- */
.map-bar { justify-content: space-between; }
.btn-big { min-height: 48px; padding: 0 22px; font-size: 1rem; font-weight: 700; }
.credit-pill-buy { opacity: 0.7; font-weight: 500; }
.j-foot .j-open { flex: 2 1 auto; }
.j-more { position: relative; flex: 0 0 auto; }
.j-more > summary { list-style: none; cursor: pointer; min-height: 38px; min-width: 44px; padding: 0 12px; font-size: 1.25rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.j-more > summary::-webkit-details-marker { display: none; }
.j-more-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 230px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 10px 30px rgba(20, 24, 29, 0.16); padding: 6px; display: flex; flex-direction: column; }
.j-more-menu a, .j-more-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 0.92rem; color: var(--ink); cursor: pointer; text-decoration: none; }
.j-more-menu a:hover, .j-more-menu button:hover { background: var(--sunk); }
@media (max-width: 560px) {
  .map-bar { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .map-bar .btn { width: 100%; }
  .credit-pill-buy { display: none; }
}

/* ---- Simpler Estimates (2026-11-30) ---- */
.est-more-sum { cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink); padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sunk); list-style: none; }
.est-more-sum::-webkit-details-marker { display: none; }
.est-more-sum::before { content: "+ "; }
details[open] > .est-more-sum::before { content: "\2212  "; }
.est-more-sum span { font-weight: 400; color: var(--ink-3); font-size: 0.82rem; margin-left: 6px; }
.est-opt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .est-opt-grid { grid-template-columns: 1fr; } }
