/* Reply Desk Design System v2.0
 * Professional SaaS aesthetic for dfwreplydesk.com
 * No external dependencies. System fonts. Mobile-first.
 */

:root {
  /* Palette: deep navy + warm neutrals + amber accent */
  --navy-900: #0A1E36;
  --navy-800: #0F2A44;
  --navy-700: #163A5C;
  --navy-600: #1E4A73;
  --slate-900: #1A202C;
  --slate-700: #2D3748;
  --slate-500: #4A5568;
  --slate-400: #718096;
  --slate-300: #A0AEC0;
  --slate-200: #CBD5E0;
  --slate-100: #E2E8F0;
  --slate-50: #F7FAFC;
  --amber-500: #D97706;
  --amber-400: #F59E0B;
  --amber-100: #FEF3C7;
  --green-600: #047857;
  --green-100: #D1FAE5;
  --white: #FFFFFF;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-tight: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing & shape */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 30, 54, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 30, 54, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 30, 54, 0.12);

  /* Layout */
  --max-width: 72rem;
  --max-prose: 46rem;
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-700); text-underline-offset: 0.15em; }
a:hover { color: var(--navy-900); }

/* ============ Layout containers ============ */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
}

/* ============ Sticky header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  text-decoration: none;
}
.brand:hover { color: var(--navy-900); text-decoration: none; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { background: var(--slate-50); color: var(--navy-900); }
.site-nav a[aria-current="page"] {
  background: var(--navy-900);
  color: var(--white);
}
.header-cta {
  display: inline-block;
  background: var(--amber-500);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.header-cta:hover { background: var(--amber-400); color: var(--white) !important; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 56rem) {
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--white);
  font-weight: 800;
}
@media (min-width: 48rem) { .hero h1 { font-size: 2.75rem; } }
.hero .lede {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1.75rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-visual svg {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--amber-500);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--amber-400); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover { border-color: var(--white); color: var(--white); }
.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-700); color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--slate-200);
}
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }

/* Legacy .cta mapping (fragments use .cta) */
.cta {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
  margin: 0.25rem 0;
}
.cta:hover { background: var(--navy-700); color: var(--white); text-decoration: none; }
.cta.pay {
  background: var(--amber-500);
  color: var(--white);
}
.cta.pay:hover { background: var(--amber-400); color: var(--white); }

/* ============ Main content ============ */
main { padding: 0 0 3rem; }
main .wrap > *:first-child { margin-top: 0; }
.page-body { padding: 2.5rem 0; }
.page-body h1 {
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0 0 1rem;
  font-weight: 800;
}
@media (min-width: 48rem) { .page-body h1 { font-size: 2.4rem; } }
.page-body h2 {
  font-size: 1.4rem;
  color: var(--navy-900);
  margin: 2.5rem 0 0.75rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.page-body h3 {
  font-size: 1.12rem;
  color: var(--navy-800);
  margin: 1.75rem 0 0.5rem;
  font-weight: 700;
}
.page-body .lede {
  font-size: 1.18rem;
  color: var(--slate-700);
  line-height: 1.65;
}

/* ============ Product cards ============ */
.product-grid {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
@media (min-width: 56rem) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid.two { grid-template-columns: repeat(2, 1fr); }
}
.product-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.product-card.featured {
  border: 2px solid var(--amber-500);
}
.product-badge {
  position: absolute;
  top: -0.85rem;
  left: 1.5rem;
  background: var(--amber-500);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.product-icon svg { width: 28px; height: 28px; }
.product-icon.navy { background: var(--navy-900); color: var(--white); }
.product-icon.amber { background: var(--amber-100); color: var(--amber-500); }
.product-icon.green { background: var(--green-100); color: var(--green-600); }
.product-card h2, .product-card h3 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
  color: var(--navy-900);
  font-weight: 750;
}
.product-card p { color: var(--slate-500); font-size: 0.98rem; margin: 0 0 0.75rem; }
.product-card .price-line {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0.5rem 0 0.25rem;
  letter-spacing: -0.01em;
}
.product-card .price-note {
  font-size: 0.88rem;
  color: var(--slate-400);
  margin-bottom: 1rem;
}
.product-card ul.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}
.product-card ul.checklist li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--slate-700);
}
.product-card ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--green-100);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23047857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.5 3.5L13 4.5'/%3E%3C/svg%3E");
  background-size: 0.7rem;
  background-position: center;
  background-repeat: no-repeat;
}
.product-card .btn, .product-card .cta { margin-top: auto; width: 100%; }

/* ============ Legacy .card mapping ============ */
.card {
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.card h2 { margin-top: 0.25rem; }

/* ============ At-a-glance / key facts ============ */
.glance {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}
.glance h2 {
  color: var(--white);
  font-size: 1.15rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.glance ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 48rem) { .glance ul { grid-template-columns: 1fr 1fr; } }
.glance li {
  padding-left: 1.6rem;
  position: relative;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
}
.glance li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--amber-400);
}

/* ============ Social proof strip ============ */
.proof-strip {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding: 2rem 0;
  margin: 0;
}
.proof-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
}
.proof-stat { min-width: 10rem; }
.proof-stat .number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  display: block;
}
.proof-stat .label {
  font-size: 0.9rem;
  color: var(--slate-500);
}

/* ============ Comparison table ============ */
.compare-wrap { overflow-x: auto; margin: 1.75rem 0; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--white);
  min-width: 34rem;
}
table.compare th,
table.compare td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-100);
}
table.compare thead th {
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.compare thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
table.compare thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr.highlight td {
  background: var(--amber-100);
  font-weight: 700;
  color: var(--navy-900);
}
table.compare td:first-child { font-weight: 600; color: var(--slate-700); }

/* ============ FAQ accordion (CSS-only) ============ */
.faq-list { margin: 1.5rem 0 2.5rem; }
.faq-item {
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-500);
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--amber-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--slate-500);
}
.faq-item .faq-answer p { margin: 0.5rem 0; }
.faq-item[open] { border-color: var(--slate-200); }

/* Legacy .qa mapping */
.qa { margin: 0 0 1.75rem; }
.qa h2 { display: block; font-size: 1.15rem; margin: 1.75rem 0 0.4rem; }

/* ============ Steps / how it works ============ */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
  counter-reset: step;
}
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--navy-900); }
.step p { margin: 0; font-size: 0.95rem; color: var(--slate-500); }

/* ============ Callout / example boxes ============ */
.example {
  background: var(--amber-100);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--amber-500);
}
.example p { margin: 0.4rem 0; }
.note { color: var(--slate-400); font-size: 0.92rem; }
.src { font-size: 0.9rem; color: var(--slate-400); }

/* ============ Price display ============ */
.price { font-weight: 700; color: var(--navy-900); }
.price-hero {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.25rem;
}
.price-sub { color: var(--slate-500); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ============ Breadcrumbs ============ */
.crumbs { font-size: 0.88rem; color: var(--slate-400); margin: 0 0 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--slate-300); }
.crumbs a { color: var(--slate-500); text-decoration: none; }
.crumbs a:hover { color: var(--navy-700); }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 2rem;
  font-size: 0.93rem;
  margin-top: 2rem;
}
.site-footer .wrap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 56rem) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 0.9rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.footer-brand .brand-mark { background: var(--white); color: var(--navy-900); }
.footer-brand span { font-weight: 800; color: var(--white); font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Legacy footer mapping */
footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  font-size: 0.93rem;
}
footer a { color: rgba(255, 255, 255, 0.8); }
footer ul { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* ============ Utilities ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-2 { margin-bottom: 2rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-500);
  margin-bottom: 0.6rem;
}
.hero .eyebrow { color: var(--amber-400); }
.divider {
  border: none;
  border-top: 1px solid var(--slate-100);
  margin: 2.5rem 0;
}
address { font-style: normal; }

/* ============ Responsive tweaks ============ */
@media (max-width: 40rem) {
  .site-header .wrap { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .site-nav { display: none; }
  .hero { padding: 2.75rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .product-grid { grid-template-columns: 1fr; }
}
