:root {
  --brand: #c0392b;
  --brand-dark: #922b21;
  --cream: #faf6f2;
  --cream-deep: #f3ebe2;
  --surface: #ffffff;
  --text: #2b2320;
  --text-muted: #7a6f68;
  --border: #e8ddd4;
  --green: #2e7d32;
  --char: #231c19;
  --gold: #f4b942;
  --radius: 18px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: var(--brand); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--brand);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn-light:hover { background: var(--cream); border-color: var(--cream); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark { width: 28px; height: 28px; display: block; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
  background: var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.highlight {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}
.lead { font-size: 1.12rem; color: #4a3f3a; margin: 0 0 28px; max-width: 560px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-center { justify-content: center; }
.fine { font-size: 0.9rem; color: var(--text-muted); margin-top: 16px; }

/* Hero: channels → live dashboard hub */
.hero-visual { display: flex; justify-content: center; }
.hub { width: 100%; max-width: 470px; }
.hub-sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hub-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 16px rgba(35, 28, 25, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hub-icon { font-size: 1.5rem; line-height: 1; }
.hub-source.active {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15), 0 10px 22px rgba(35, 28, 25, 0.1);
}
.hub-lines { display: block; width: 100%; height: 80px; overflow: visible; }
.hub-lines path:not(.hub-arrowhead) {
  fill: none;
  stroke: var(--border);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
  vector-effect: non-scaling-stroke;
}
.hub-arrowhead { fill: var(--text-muted); }
#hubDot { fill: var(--brand); }

.hub-dashboard {
  background: var(--surface);
  border: 2px solid var(--char);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(35, 28, 25, 0.16);
  overflow: hidden;
}
.hub-dash-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--char);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}
.hub-live { color: #7bd88f; animation: blink 1.6s infinite; }
.hub-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; min-height: 250px; background: var(--cream); }
.hub-col h4 {
  margin: 0 0 6px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.hub-ticket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 8px;
  margin-bottom: 6px;
  font-size: 0.7rem;
  line-height: 1.3;
}
.hub-ticket.fresh { border-left: 3px solid var(--brand); animation: pop 0.35s ease-out, flash 1.2s ease-out; }
.hub-ticket-top { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 2px; }
.hub-ticket-top span { color: var(--text-muted); white-space: nowrap; }
.hub-ticket-item { color: var(--text); }
.hub-ticket-total { font-weight: 800; margin-top: 2px; }

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0.3; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--char); color: #fff; }
.section-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-align: center;
  margin: 0 0 10px;
}
.section-sub { text-align: center; color: var(--text-muted); margin: 0 auto 44px; max-width: 560px; font-size: 1.05rem; }
.section-dark .section-sub { color: #bfb3aa; }

/* Live board mock — mirrors the real /:slug/dashboard styling */
.browser {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(35, 28, 25, 0.12);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-url {
  flex: 1;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-live { color: var(--green); font-weight: 700; animation: blink 1.6s infinite; }

.board-demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 16px;
  min-height: 380px;
}
.board-col {
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.board-col h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.board-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--border);
  color: var(--text);
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.board-col[data-status='new'] .board-count { background: var(--brand); color: #fff; }

.board-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.board-card.new { border-left: 4px solid var(--brand); }
.board-card.collected { opacity: 0.6; }
.board-card.flash { animation: pop 0.35s ease-out, flash 1.2s ease-out; }
.board-card-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.board-card-num { font-weight: 800; font-size: 0.92rem; }
.board-card-time { color: var(--text-muted); font-size: 0.72rem; }
.board-card-tag {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--cream-deep);
  font-size: 0.7rem;
  font-weight: 600;
}
.board-card ul { margin: 2px 0 6px; padding-left: 16px; }
.board-card-total { font-weight: 800; }
.board-card-customer { color: var(--text-muted); font-size: 0.74rem; }
.board-card-btn {
  margin-top: 8px;
  padding: 6px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 0.75rem;
}
.board-card.accepted .board-card-btn { background: var(--char); }
.board-card.ready .board-card-btn { background: var(--green); }

@keyframes flash { 0% { box-shadow: 0 0 0 3px rgba(244, 185, 66, 0.9); } 100% { box-shadow: 0 0 0 3px rgba(244, 185, 66, 0); } }

/* Before / after */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.versus-col { border-radius: var(--radius); padding: 28px; }
.versus-col h3 { margin: 0 0 16px; font-size: 1.3rem; }
.before { background: #f1e7e4; }
.after { background: #e6f2e4; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li { display: flex; gap: 12px; font-size: 0.97rem; }
.timeline time {
  flex: 0 0 auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  border-radius: 6px;
  height: fit-content;
  font-size: 0.85rem;
}
.before time { background: #e2cbc5; color: var(--brand-dark); }
.after time { background: #c9e3c5; color: #1f5a22; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 26px;
  text-align: center;
}
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.4rem; margin-bottom: 6px; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--text-muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(35, 28, 25, 0.08); }
.feature span { font-size: 1.8rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start; }
.calc fieldset {
  border: 1px solid #4a3f3a;
  border-radius: var(--radius);
  padding: 18px 20px 8px;
  margin: 0 0 18px;
}
.calc legend { font-weight: 800; padding: 0 8px; }
.calc label { display: block; margin-bottom: 14px; font-size: 0.93rem; color: #e6ddd6; }
.calc output { float: right; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.calc input[type='range'] { width: 100%; margin-top: 6px; accent-color: var(--gold); }
.calc-results {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 84px;
}
.result { padding: 12px 0; border-bottom: 1px solid var(--border); }
.result-num { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.result-label { color: var(--text-muted); font-size: 0.92rem; }
.result-total { border-bottom: none; }
.result-total .result-num { font-size: 2.6rem; color: var(--green); }
.calc-note { font-size: 0.8rem; color: var(--text-muted); margin: 10px 0 0; }

/* Journey */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.journey-step { display: flex; gap: 14px; }
.journey-step > span {
  flex: 0 0 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--brand); color: var(--brand); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.journey-step h3 { margin: 4px 0 4px; font-size: 1.05rem; }
.journey-step p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.final-cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 10px; letter-spacing: -0.015em; }
.final-cta > .wrap > p { margin: 0 0 28px; opacity: 0.9; font-size: 1.08rem; }
.final-cta .fine { color: rgba(255, 255, 255, 0.85); }
.final-cta .fine a { color: #fff; }

.footer { padding: 28px 0; font-size: 0.9rem; color: var(--text-muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer a { color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .calc, .versus { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-visual { margin-top: 8px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .journey { grid-template-columns: 1fr 1fr; }
  .calc-results { position: static; }
  .board-demo { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .nav-links { gap: 12px; }
  .nav-links .btn-small { padding: 7px 12px; font-size: 0.85rem; }
  .logo { font-size: 0.95rem; }
  .section { padding: 56px 0; }
  .steps, .features, .journey { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .cta-row .btn { flex: 1 1 auto; text-align: center; }
  .versus-col { padding: 22px 18px; }
  .hub-source { font-size: 0.7rem; padding: 8px 4px; }
  .hub-icon { font-size: 1.25rem; }
  .hub-cols { gap: 6px; padding: 8px; min-height: 230px; }
  .hub-ticket { font-size: 0.64rem; padding: 6px; }
  .board-demo { gap: 8px; padding: 10px; }
  .board-col { padding: 8px 6px; }
  .board-card { padding: 8px; font-size: 0.74rem; }
}

@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn) { font-size: 0.88rem; }
  .logo { font-size: 0.88rem; }
}

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