@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  --ink: #0b1220;
  --ink-soft: #243044;
  --muted: #5b6472;
  --line: rgba(11, 18, 32, 0.1);
  --paper: #ffffff;
  --wash: #f6f7f9;
  --accent: #147a4c;
  --accent-ink: #0d5c38;
  --danger: #9b1c1c;
  --ok-bg: #e8f6ee;
  --warn-bg: #fff6e8;
  --bad-bg: #fdecea;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
  --max: 1120px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--wash);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--accent-ink); font-weight: 600; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 249, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand span { color: inherit; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, .display {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.15rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

.lede {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.btn,
button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-primary,
button.primary,
button.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost,
button.secondary,
button.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-accent { background: var(--accent); color: #fff; }

.ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.hero {
  display: grid;
  gap: 2.5rem;
  padding: 4.5rem 0 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding: 5.5rem 0 4rem; }
}

.product-card {
  background: #10160f;
  color: #e8eee9;
  border-radius: 16px;
  padding: 1.35rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.wallet-chip {
  background: #1c2a1c;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.wallet-chip strong { color: #7dcea0; }

.bubble {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.55rem 0;
  font-size: 0.92rem;
  line-height: 1.4;
  background: #1b241b;
}

.bubble.out {
  background: var(--accent);
  color: #fff;
  margin-left: 1.6rem;
}

.section {
  padding: 4.5rem 0;
}

.section.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: #eef1f4; }
.section.dark .eyebrow,
.section.dark .lede,
.section.dark p { color: rgba(238, 241, 244, 0.72); }
.section-head { max-width: 38rem; margin-bottom: 2rem; }

.steps,
.facts,
.split,
.stat-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps, .facts { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}

.steps .step-num {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-family: var(--serif);
  font-size: clamp(4.4rem, 9vw, 6.4rem);
  font-weight: 600;
  line-height: 0.78;
  letter-spacing: -0.07em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.04em;
  margin: 0.2rem 0 0.35rem;
}

.list {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
}

.list li { margin: 0.35rem 0; }

.field, label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.9rem 0 0.35rem;
}

input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

textarea { min-height: 7rem; resize: vertical; }

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.site-footer a { color: var(--ink-soft); }

.err { color: var(--danger); min-height: 1.2em; margin-top: 0.7rem; font-size: 0.9rem; }
.ok { color: var(--accent-ink); }

.banner {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.92rem;
}
.banner.ok { background: var(--ok-bg); border: 1px solid #b7e0c6; }
.banner.bad { background: var(--bad-bg); border: 1px solid #f0b8b4; }
.banner.warn { background: var(--warn-bg); border: 1px solid #ecd3a4; }

.app-shell { min-height: 100vh; }

.app-bar {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.app-main {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
  display: grid;
  gap: 1rem;
}

.app-kicker {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.panel-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.muted { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.86em;
  background: #eef1f4;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
}

.big {
  background: #eef1f4;
  padding: 0.7rem;
  border-radius: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 600;
  text-align: center;
  width: 100%;
  word-break: break-all;
}
.card.warn { background: var(--warn-bg); }
.card.ok { background: var(--ok-bg); }
.code-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0.75rem 0 0.25rem; }

.lead {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.lead:last-child { border-bottom: 0; }

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(26rem, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}

.owner-gate {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.hidden { display: none !important; }

.narrow { width: min(32rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.5rem 0; }

@media (max-width: 720px) {
  .nav-links a:not(.btn):not(.profile-pill) { display: none; }
  .site-header .wrap, .app-bar { min-height: 60px; }
  .hero, .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  max-width: 16rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.profile-pill strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.15;
}

.profile-pill small {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.live-dot i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(20, 122, 76, 0.55);
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 122, 76, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(20, 122, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 122, 76, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot i { animation: none; }
}

.console-hero {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .console-hero { grid-template-columns: 1.2fr 0.8fr; gap: 1.25rem; }
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}

.hello {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.15rem 0 0.5rem;
}

.wallet-panel {
  background: #10160f;
  color: #e8eee9;
  border-radius: 16px;
  padding: 1.3rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.wallet-panel .eyebrow { color: #9aa89f; }
.wallet-panel .muted { color: rgba(232, 238, 233, 0.68); }
.wallet-amt {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0.15rem 0 0.45rem;
}

.fold {
  padding: 0;
  overflow: hidden;
}

.fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
}

.fold > summary::-webkit-details-marker { display: none; }

.fold-copy { min-width: 0; }

.fold-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #eef1f4;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.chev {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.fold[open] .chev { transform: rotate(90deg); }

.fold-body { padding: 0 1.3rem 1.2rem; }

.lead {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.lead strong { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.9rem; }

/* Dashboard — match store/pingback-dashboard-preview.jpg */
body.dash {
  background: #f7f8fa;
}

body.dash.preview #advancedFold,
body.dash.preview .edit-fold { display: none !important; }

body.dash .site-header {
  background: #fff;
  border-bottom: 1px solid #eceef2;
}

body.dash .app-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  width: min(1180px, calc(100% - 3rem));
}

body.dash .brand {
  display: inline;
  font-family: var(--sans);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.mark { display: none; }

body.dash .center-nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
}

body.dash .center-nav a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

body.dash .center-nav a.on {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

body.dash .right-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.85rem;
}

body.dash .app-main {
  width: min(1180px, calc(100% - 3rem));
  padding: 2rem 0 4rem;
  gap: 1.15rem;
}

body.dash .console-hero {
  align-items: start;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
}

body.dash .work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

body.dash .stat-grid {
  grid-template-columns: repeat(3, 1fr);
}

body.dash .hello {
  font-size: clamp(2.2rem, 3.6vw, 2.85rem);
  margin: 0.05rem 0 0.4rem;
  white-space: nowrap;
}

body.dash .hero-sub {
  margin: 0;
  color: #5b6472;
  font-size: 0.92rem;
}

body.dash .wallet-panel {
  background: #111315;
  border-radius: 14px;
  padding: 0.95rem 1.05rem 1rem;
  box-shadow: none;
}

body.dash .wallet-top {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

body.dash .wallet-amt {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  margin: 0;
}

body.dash .wallet-panel .muted { color: #9aa0a6; font-size: 0.72rem; line-height: 1.3; }
body.dash .wallet-panel .btn-add {
  margin-top: 0.7rem;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  width: auto;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.lbl {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0;
  text-transform: none;
}

.sub { margin: 0.1rem 0 0; font-size: 0.75rem; color: #8b929c; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.35rem 0.2rem;
}

.ico-line {
  color: #111315;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ico-line svg { width: 2.85rem; height: 2.85rem; fill: none; stroke: currentColor; stroke-width: 1.45; }

.stat .ico-line {
  width: 3.25rem;
  height: 3.25rem;
}

.fact-mini .ico-line { justify-content: start; margin: 0 0 0.5rem; }
.fact-mini .ico-line svg { width: 2.85rem; height: 2.85rem; }

.stat strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.leads-bar {
  border-radius: 14px;
}

.leads-bar > summary {
  padding: 0.95rem 1.15rem;
}

.leads-bar .panel-title {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  margin: 0;
}

.leads-bar .count {
  background: #eef1f4;
  color: #4b5563;
}

.leads-bar .chev {
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  color: #9aa0a6;
}

.leads-bar[open] .chev { transform: rotate(180deg); }

.work-card h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.work-card h2 em {
  display: block;
  width: 2.1rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.65rem;
  font-style: normal;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.fact-mini .eyebrow { margin: 0.45rem 0 0.15rem; }
.fact-mini strong { font-size: 0.92rem; }

.sms-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding: 0.95rem 1rem;
  background: #f3f4f6;
  border-radius: 12px;
}

.sms-box p { margin: 0; color: #4b5563; font-size: 0.92rem; line-height: 1.45; }

.btn-outline {
  background: #fff;
  color: var(--accent-ink);
  border: 1px solid #cfe3d6;
  white-space: nowrap;
}

@media (max-width: 720px) {
  body.dash .center-nav { display: none; }
  body.dash .app-bar { grid-template-columns: 1fr auto; }
}

/* Phones: stack the dashboard (was overflowing sideways) */
@media (max-width: 760px) {
  body.dash .console-hero { grid-template-columns: 1fr; gap: 1rem; }
  body.dash .work-grid { grid-template-columns: 1fr; }
  body.dash .stat-row { grid-template-columns: 1fr; }
  body.dash .app-bar, body.dash .app-main { width: calc(100% - 2rem); }
  body.dash .profile-pill small, body.dash .profile-pill strong { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.dash .wallet-panel { width: 100%; }
}
@media (max-width: 420px) {
  body.dash .profile-pill > span:last-child { display: none; }
}
