/* FieldDocket - Industrial Amber on Deep Slate */
:root {
  --bg: #0F1117;
  --bg-alt: #151821;
  --fg: #F8F6F1;
  --fg-muted: #8B94A7;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --success: #22c55e;
  --danger: #ef4444;
  --border: rgba(139, 148, 167, 0.15);
  --card-bg: #151821;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ───────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ─── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245, 158, 11, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(245, 158, 11, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label { font-size: 12px; color: var(--fg-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── Phone Mockup ──────────────────────────────── */
.hero-right { display: flex; justify-content: center; }
.phone-mockup {
  position: relative;
  filter: drop-shadow(0 40px 80px rgba(245, 158, 11, 0.15));
}
.phone-bezel {
  width: 260px;
  background: #1a1d26;
  border-radius: 36px;
  padding: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
}
.phone-screen {
  background: #0F1117;
  border-radius: 26px;
  padding: 16px 14px;
  min-height: 400px;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.screen-date { font-size: 13px; font-weight: 600; color: var(--fg); }
.screen-notif { display: flex; align-items: center; gap: 6px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notif-count { font-size: 12px; color: var(--accent); font-weight: 700; }

.screen-job {
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 10px;
}
.screen-job.active {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.job-time { font-size: 11px; color: var(--fg-muted); font-weight: 500; }
.job-title { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.job-addr { font-size: 11px; color: var(--fg-muted); }
.job-status { font-size: 10px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.job-status.confirmed { color: var(--success); }

.screen-msg {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.08);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}
.msg-row { display: flex; align-items: center; gap: 8px; }
.msg-icon {
  width: 18px; height: 18px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.msg-icon.amber { background: var(--accent); }
.msg-icon svg { flex-shrink: 0; }
.msg-row span { font-size: 10px; color: var(--fg-muted); }

/* ─── Features ─────────────────────────────────── */
.features {
  background: var(--bg-alt);
  padding: 96px 48px;
}
.features-header { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.features-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}
.features-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.7; }

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(245, 158, 11, 0.4); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* ─── How ──────────────────────────────────────── */
.how { padding: 96px 48px; }
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.how-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 16px;
}
.how-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 32px; }
.how-quote {
  background: var(--bg-alt);
  border-radius: 16px;
  padding: 24px;
  border-left: 3px solid var(--accent);
}
.quote-mark { font-size: 40px; line-height: 1; color: var(--accent); font-family: 'Bricolage Grotesque', serif; margin-bottom: 8px; }
.how-quote p { font-size: 15px; color: var(--fg); font-style: italic; line-height: 1.65; margin-bottom: 10px; }
.quote-attr { font-size: 12px; color: var(--fg-muted); }

/* comparison table */
.comparison { display: flex; flex-direction: column; gap: 0; }
.compare-col { padding: 20px; border-radius: 12px; }
.compare-col.old { background: rgba(239, 68, 68, 0.04); border: 1px solid rgba(239, 68, 68, 0.15); }
.compare-col.new { background: rgba(34, 197, 94, 0.04); border: 1px solid rgba(34, 197, 94, 0.15); }
.compare-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
.compare-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--fg-muted);
}
.compare-col.new .compare-row { color: var(--fg); }
.compare-row svg { flex-shrink: 0; margin-top: 1px; }

/* ─── Pricing ───────────────────────────────────── */
.pricing { background: var(--bg-alt); padding: 96px 48px; }
.pricing-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.pricing-header { margin-bottom: 52px; }
.pricing-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 14px;
}
.pricing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; max-width: 640px; margin: 0 auto; }

/* Two-card grid */
.pricing-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: start;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px 28px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.12), 0 8px 32px rgba(0,0,0,0.4);
}
.price-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0F1117;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.price-card-top { margin-bottom: 24px; }
.price-tier-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2px;
}
.price-tier-tagline { font-size: 13px; color: var(--fg-muted); margin-bottom: 16px; }
.price-amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 52px;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
}
.price-per { font-size: 18px; font-weight: 500; color: var(--fg-muted); }
.price-trial-note { font-size: 12px; color: var(--fg-muted); }

.price-features { list-style: none; margin-bottom: 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
}
.price-features svg { flex-shrink: 0; margin-top: 2px; }

.price-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Bricolage Grotesque', sans-serif;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 10px;
}
.price-cta:hover { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.05); }
.price-cta-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #0F1117;
}
.price-cta-featured:hover { background: #e08f0a; border-color: #e08f0a; }
.price-cta-sub { font-size: 12px; color: var(--fg-muted); text-align: center; }

.pricing-guarantee { font-size: 14px; color: var(--fg-muted); max-width: 540px; margin: 0 auto; line-height: 1.6; }

/* ─── Closing ───────────────────────────────────── */
.closing { padding: 100px 48px; text-align: center; }
.closing-inner { max-width: 720px; margin: 0 auto; }
.closing-headline {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 18px;
}
.closing-sub { font-size: 18px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 40px; }
.closing-cta { display: flex; justify-content: center; }
.cta-box {
  background: var(--bg-alt);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 24px 40px;
  text-align: center;
}
.cta-label { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.cta-price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; color: var(--fg); margin-bottom: 6px; }
.cta-trial { font-size: 13px; color: var(--fg-muted); }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.footer-tagline { font-size: 12px; color: var(--fg-muted); padding-left: 38px; }
.footer-links { font-size: 12px; color: var(--fg-muted); }

/* ─── Hero CTAs ──────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0F1117;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-demo:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-secondary-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.btn-secondary-link:hover { color: var(--fg); }

/* ─── Interactive Demo Shell ─────────────────────── */
.demo-shell {
  position: relative;
  width: 100%;
  max-width: 540px;
  min-height: 380px;
  background: #151821;
  border: 1px solid rgba(139, 148, 167, 0.18);
  border-radius: 20px;
  overflow: hidden;
  filter: drop-shadow(0 32px 64px rgba(245, 158, 11, 0.12));
}

/* Idle state */
.demo-idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(21, 24, 33, 0.95);
  z-index: 10;
  cursor: pointer;
}
.demo-idle-icon { opacity: 0.9; }
.demo-idle-label { font-size: 14px; color: var(--fg-muted); }
.demo-start-btn {
  background: var(--accent);
  color: #0F1117;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.demo-start-btn:hover { opacity: 0.85; }

/* Demo content: two panels side by side */
.demo-content {
  display: flex;
  gap: 0;
  height: 100%;
  min-height: 380px;
}

.demo-panel-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* SMS panel */
.demo-sms {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  border-right: 1px solid rgba(139, 148, 167, 0.12);
  overflow: hidden;
}
.sms-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
  scroll-behavior: smooth;
}
.sms-thread::-webkit-scrollbar { width: 2px; }
.sms-thread::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sms-bubble {
  max-width: 86%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 11.5px;
  line-height: 1.5;
  animation: bubblePop 0.22s ease-out;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.sms-in  {
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}
.sms-out {
  background: rgba(245, 158, 11, 0.18);
  color: var(--fg);
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.sms-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 2px 2px;
}
.typing-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Calendar panel */
.demo-cal {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 14px;
  overflow: hidden;
}
.cal-slots { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.cal-slot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 10px;
  transition: background 0.25s, border-color 0.25s;
}
.cal-slot-time {
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-muted);
  width: 28px;
  flex-shrink: 0;
}
.cal-slot.busy {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.cal-slot.free {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(139,148,167,0.25);
}
.cal-slot.booked {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  animation: slotFill 0.3s ease-out;
}
@keyframes slotFill {
  from { opacity: 0.5; transform: scale(0.97); }
  to   { opacity: 1;   transform: scale(1); }
}
.cal-slot-open { font-size: 9px; color: var(--fg-muted); font-style: italic; }
.cal-slot-job { display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.cal-slot-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-slot-addr { font-size: 9px; color: var(--fg-muted); white-space: nowrap; }
.new-job .cal-slot-name { color: var(--accent); }

/* Job card confirmation */
.demo-job-card {
  margin-top: 10px;
  padding: 10px 10px 8px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.demo-job-card.job-card-visible {
  opacity: 1;
  transform: translateY(0);
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.job-card-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.job-card-time { font-size: 9px; color: var(--fg-muted); }
.job-card-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 5px;
}
.job-card-detail {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--fg-muted);
  margin-bottom: 3px;
}

/* AI badge */
.demo-ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  animation: badgePop 0.2s ease-out;
  z-index: 5;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Replay button */
.demo-replay-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 148, 167, 0.1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  z-index: 5;
}
.demo-replay-btn:hover { color: var(--fg); background: rgba(139, 148, 167, 0.18); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 64px 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: flex; justify-content: center; }
  .demo-shell { max-width: 100%; min-height: 340px; }
  .demo-cal { width: 150px; }
  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .how { padding: 64px 24px; }
  .how-inner { grid-template-columns: 1fr; }
  .pricing { padding: 64px 24px; }
  .pricing-tiers { grid-template-columns: 1fr; }
  .price-card { padding: 28px 20px; }
  .closing { padding: 64px 24px; }
  .site-footer { padding: 20px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-tagline { padding-left: 0; }
}

/* ─── Morning Digest Section ────────────────────── */
.digest-section {
  padding: 96px 48px;
  background: var(--bg-alt);
  position: relative;
}
.digest-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.digest-section-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.digest-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.digest-section-title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 16px;
}
.digest-section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* The card itself */
.digest-card {
  background: var(--bg);
  border: 1px solid rgba(139, 148, 167, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(245, 158, 11, 0.06);
}

/* Digest header strip */
.digest-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 158, 11, 0.04);
}
.digest-date-line {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.digest-greeting {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}
.digest-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.digest-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.digest-chip-ok {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.digest-chip-warn {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.digest-chip-alert {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Digest blocks */
.digest-block {
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}
.digest-block:last-child { border-bottom: none; }

.digest-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

/* Schedule rows */
.digest-schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.digest-job {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.digest-job-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  min-width: 56px;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.digest-job-body {
  flex: 1;
  background: rgba(139, 148, 167, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}
.digest-job-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.digest-job-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}
.digest-job-type.hvac {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}
.digest-job-type.plumbing {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}
.digest-job-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.digest-job-details {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.digest-job-customer,
.digest-job-addr,
.digest-job-tech {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* Flagged estimates */
.digest-flags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.digest-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
}
.digest-flag-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flag-age {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.flag-age-mild {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
}
.flag-age-hot {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}
.flag-customer {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}
.flag-desc {
  font-size: 12px;
  color: var(--fg-muted);
}
.flag-nudge-btn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.flag-nudge-btn:hover { background: rgba(245, 158, 11, 0.18); }
.flag-nudge-btn.flag-nudge-sent {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
  cursor: default;
}

/* Overdue invoices */
.digest-invoices { display: flex; flex-direction: column; gap: 8px; }
.digest-invoice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 8px;
  padding: 10px 14px;
}
.digest-invoice-left { display: flex; flex-direction: column; gap: 2px; }
.invoice-customer { font-size: 13px; font-weight: 600; color: var(--fg); }
.invoice-desc { font-size: 12px; color: var(--fg-muted); }
.digest-invoice-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.invoice-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.invoice-age {
  font-size: 11px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
}
.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent);
}

/* Wins block */
.digest-block-wins .digest-block-title svg path { stroke: #22c55e; }
.digest-wins-text {
  font-size: 15px;
  color: var(--fg);
  font-weight: 500;
  line-height: 1.5;
}

/* AI Notes block */
.digest-block-ai {
  background: rgba(245, 158, 11, 0.03);
}
.digest-ai-text {
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.55;
}

/* Digest responsive */
@media (max-width: 768px) {
  .digest-section { padding: 64px 20px; }
  .digest-header { padding: 18px 18px 16px; }
  .digest-block { padding: 16px 18px; }
  .digest-job { gap: 10px; }
  .digest-job-time { min-width: 44px; font-size: 11px; }
  .digest-meta { gap: 6px; }
  .digest-flag { flex-direction: column; align-items: flex-start; gap: 8px; }
  .digest-invoice { flex-direction: column; align-items: flex-start; gap: 8px; }
  .digest-invoice-right { flex-wrap: wrap; }
  .digest-job-details { gap: 8px; }
}