/* ============================================
   INBOX. — Retention Email Systems for Shopify
   Design tokens & global styling
   ============================================ */

:root {
  /* Color */
  --bg: #12131a;
  --bg-raised: #171821;
  --surface: #1b1d27;
  --surface-2: #22242f;
  --line: #2c2e3b;
  --text: #f2f1ec;
  --text-muted: #8b8d9b;
  --text-faint: #5c5e6b;
  --accent: #ff6b4a;
  --accent-dim: #a84a34;
  --accent-soft: #3a241d;
  --mint: #6ee7b7;
  --mint-soft: #1c3229;
  --bad: #ef4444;
  --bad-soft: #3a1f1f;

  /* Type */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Scale */
  --content-width: 1120px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--text-muted); }

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  margin-bottom: 14px;
  text-transform: lowercase;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #16110d;
}

.btn-primary:hover {
  background: #ff7f61;
  color: #16110d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 19, 26, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.02em;
}

.logo .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-actions .btn-primary { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 4px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.mobile-menu a:last-child { border-bottom: none; }

.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 860px) {
  header.site.menu-open {
    background: var(--bg);
    backdrop-filter: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.15;
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero .lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 34px;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--accent);
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

/* Hero dashboard card */

.inbox-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.inbox-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  background: rgba(23, 24, 33, 0.7);
}

.inbox-card-head .traffic {
  display: flex;
  gap: 6px;
}

.inbox-card-head .traffic span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}

.inbox-card-head .badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 11px;
}

.inbox-card-head .badge-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.inbox-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.inbox-stat-row:last-child { border-bottom: none; }

.inbox-stat-row .label {
  font-size: 14px;
  color: var(--text-muted);
}

.inbox-stat-row .subtext {
  font-size: 11.5px;
  color: var(--text-faint);
  display: block;
  margin-top: 2px;
}

.inbox-stat-row .value {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--mint);
  text-align: right;
}

.inbox-stat-row .value.accent { color: var(--accent); }

/* ---------- "We work with" Logo / Spec Strip ---------- */

.strip {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
  text-align: center;
}

.strip-inner .spec-label {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.strip-inner .spec-pill {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Case Studies & Before/After Section ---------- */

.anatomy-section {
  position: relative;
}

.infographic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-top: 32px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .infographic-card { padding: 22px 18px; }
}

.infographic-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 820px) {
  .infographic-comparison { grid-template-columns: 1fr; gap: 20px; }
}

.infographic-col {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.infographic-col.before {
  border-top: 3px solid var(--bad);
}

.infographic-col.after {
  border-top: 3px solid var(--mint);
  background: linear-gradient(180deg, rgba(28, 50, 41, 0.4) 0%, var(--bg-raised) 100%);
}

.infographic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.infographic-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.infographic-badge.before {
  background: var(--bad-soft);
  color: var(--bad);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.infographic-badge.after {
  background: var(--mint-soft);
  color: var(--mint);
  border: 1px solid rgba(110, 231, 183, 0.4);
}

.infographic-stat {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-left: auto;
}

.infographic-stat .stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.infographic-stat.bad { color: var(--bad); }
.infographic-stat.good { color: var(--mint); }

.infographic-flow-preview {
  margin: 16px 0 20px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.infographic-flow-preview .email-mock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.infographic-flow-preview .email-mock-subject {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
}

.infographic-flow-preview .email-mock-body {
  color: var(--text);
  font-size: 14px;
}

.infographic-flow-preview .tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.infographic-flow-preview .tag-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.infographic-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.infographic-col li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
}

.infographic-col.before li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--bad);
  font-family: var(--font-mono);
  font-size: 12px;
  top: 2px;
}

.infographic-col.after li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  top: 2px;
}

.infographic-caption {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 10px;
}

.infographic-caption::before {
  content: '⚡';
  font-size: 15px;
}

/* Image container for easily plugging in graphic */
.infographic-image-card {
  margin-top: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: var(--bg-raised);
  text-align: center;
  transition: border-color 0.2s ease;
}

.infographic-image-card:hover {
  border-color: var(--text-faint);
}

.infographic-image-card img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* ---------- Services Grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width: 780px) {
  .services-grid { grid-template-columns: 1fr; }
}

.service-cell {
  background: var(--surface);
  padding: 36px 32px;
}

.service-cell .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.service-cell h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service-cell p { font-size: 15px; }

/* ---------- Inbox list (cases) ---------- */

.inbox-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.inbox-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.15s ease;
}

.inbox-row:last-child { border-bottom: none; }

a.inbox-row:hover { background: var(--surface-2); }

@media (max-width: 720px) {
  .inbox-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.inbox-row .sender {
  font-weight: 600;
  font-size: 15px;
}

.inbox-row .sender .company-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 4px;
}

.inbox-row .subject {
  font-size: 15px;
  color: var(--text-muted);
}

.inbox-row .subject strong {
  color: var(--text);
  font-weight: 600;
}

.inbox-row .metric {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--mint);
  text-align: right;
  white-space: nowrap;
}

.inbox-row .metric .metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 2px;
}

/* Case detail block */

.case-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 24px;
}

.case-detail.featured-case {
  border-left: 3px solid var(--accent);
}

.case-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.case-detail-head h3 { font-size: 24px; margin-bottom: 6px; }
.case-detail-head .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mint);
  background: var(--mint-soft);
  border: 1px solid rgba(110, 231, 183, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.case-metrics {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.case-metrics .metric-block .value {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--mint);
}
.case-metrics .metric-block .value.accent { color: var(--accent); }
.case-metrics .metric-block .label {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

.case-detail-body { font-size: 15.5px; color: var(--text-muted); }
.case-detail-body p + p { margin-top: 12px; }

/* Case charts */

.case-chart {
  margin: 26px 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-chart svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.chart-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Testimonials (Re: thread style) ---------- */

.thread-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 780px) {
  .thread-grid { grid-template-columns: 1fr; }
}

.thread {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.thread-subject {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.thread-body { font-size: 15.5px; color: var(--text); margin-bottom: 20px; }

.thread-from {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thread-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.thread-from .name { font-size: 14px; font-weight: 600; }
.thread-from .role { font-size: 13px; color: var(--text-faint); }

/* ---------- PRICING SECTION RESTRUCTURE ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.price-card:hover {
  border-color: var(--text-muted);
}

.price-card.featured {
  background: var(--surface-2);
  border: 2px solid var(--accent);
  box-shadow: 0 16px 48px rgba(255, 107, 74, 0.15);
  border-radius: var(--radius-lg) var(--radius-sm) var(--radius-lg) var(--radius-sm);
}

.featured-pill {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--accent);
  color: #16110d;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-card .plan-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.price-card.featured .plan-name {
  color: var(--accent);
}

.price-card .price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-card .price .period {
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.price-card .price-terms {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-card .price-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mint);
  background: var(--mint-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  width: fit-content;
}

.price-card.featured .price-note {
  color: var(--accent);
  background: var(--accent-soft);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex-grow: 1;
}

.price-card li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-card li:first-child { border-top: none; }

.price-card li .check-icon {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card.featured li .check-icon {
  color: var(--accent);
}

/* ---------- Offer Box ---------- */

.offer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 40px;
}

.offer-box h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.offer-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.offer-list li {
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--text);
  position: relative;
}

.offer-list li:first-child { border-top: none; }

.offer-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}

.cta-banner h2 { font-size: clamp(24px, 3vw, 34px); max-width: 520px; }

/* ---------- Contact / Form Grid ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.contact-info-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-info-item:first-child { border-top: none; }

.contact-info-item .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.contact-info-item .value { font-size: 17px; }

form.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
}

@media (max-width: 600px) {
  form.request-form { padding: 24px 20px; }
}

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.15s ease, outline 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 90px; }

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: center;
}

.form-success {
  display: none;
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  color: var(--mint);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.45;
}

.form-success.show { display: block; }

/* ---------- AUDIT MODAL DIALOG ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-content {
  transform: translateY(0) scale(1);
}

@media (max-width: 600px) {
  .modal-content { padding: 26px 20px; }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface-2);
}

.modal-header {
  margin-bottom: 24px;
  padding-right: 28px;
}

.modal-header .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-header p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq { max-width: 780px; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  padding: 22px 40px 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 20px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}

.faq details[open] summary::after { content: '–'; }

.faq summary:hover { color: var(--accent); }

.faq .answer {
  padding: 0 40px 24px 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

.faq .answer p + p { margin-top: 12px; }

/* Stat Row */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; gap: 28px; }
}

.stat-block .stat-value {
  font-family: var(--font-mono);
  font-size: 42px;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-block .stat-value.accent { color: var(--accent); }

.stat-block .stat-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 260px;
}

/* Page header */

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.page-header .kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mint);
  margin-bottom: 14px;
  display: block;
}

.page-header h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 17px;
  max-width: 600px;
}

/* Policy Content */

.policy-content {
  max-width: 760px;
}

.policy-content h2 {
  font-size: 21px;
  margin: 44px 0 14px;
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.policy-content li { margin-bottom: 8px; }

.policy-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 40px;
}

/* ---------- Interactive Revenue Leak Calculator (Compact) ---------- */

.calc-section {
  position: relative;
}

.calc-card-compact {
  max-width: 540px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--mint);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .calc-card-compact { padding: 26px 20px; }
}

.calc-slider-group {
  margin-bottom: 22px;
}

.calc-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.calc-slider-head label {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.calc-slider-head .calc-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--mint);
}

.calc-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  border-radius: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.4);
  transition: transform 0.1s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 74, 0.4);
}

.calc-range-limits {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

/* Results Box */
.calc-compact-results {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  margin: 24px 0 20px;
  text-align: center;
}

.calc-compact-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.calc-big-value {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4.2vw, 42px);
  font-weight: 700;
  color: var(--mint);
  line-height: 1;
  margin-bottom: 6px;
}

.calc-orders-sub {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 14px;
}

.calc-chips-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.calc-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.calc-chip strong {
  color: var(--mint);
  font-weight: 600;
}

.calc-chip.accent strong {
  color: var(--accent);
}

.calc-micro-note {
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}

.calc-micro-note {
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

/* Footer */

footer.site {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-bottom: 16px;
  text-transform: lowercase;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--text-muted); font-size: 14.5px; }
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.mt-16 { margin-top: 16px; }
