:root {
  --bg: #f3f5f7;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --ink: #0f1720;
  --muted: #5c6672;
  --line: #d9e0e7;
  --accent: #17456f;
  --accent-soft: #edf4fb;
  --accent-strong: #0d3357;
  --success: #1f6b4f;
  --success-soft: #eaf6f0;
  --warn: #9a6200;
  --warn-soft: #fff4dd;
  --danger: #9a3333;
  --danger-soft: #fdeaea;
  --radius: 18px;
  --shadow: 0 12px 36px rgba(15, 23, 32, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8fa 0%, #f3f5f7 100%);
  min-height: 100vh;
}

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

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Space Grotesk", sans-serif;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 28px;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.home-main,
main {
  display: grid;
  gap: 28px;
}

.section-panel,
.proof-card,
.offer-card,
.timeline-step,
.contact-form,
.stat-card,
.alias-card,
.activity-card,
.table-card,
.reply-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.95;
  max-width: 10ch;
}

.lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-secondary {
  background: var(--surface-muted);
  color: var(--ink);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.signal-list,
.offer-grid,
.proof-grid,
.timeline,
.contact-section,
.admin-cards,
.alias-grid,
.activity-grid,
.reply-worklist {
  display: grid;
  gap: 18px;
}

.signal-list {
  gap: 14px;
}

.signal-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.signal-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.signal-item strong,
.hero-note strong {
  display: block;
  font-size: 1.05rem;
}

.signal-item span,
.hero-note span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(23, 69, 111, 0.12);
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.offers-section,
.process-section,
.admin-section,
.alias-section {
  display: grid;
  gap: 18px;
}

.offer-grid,
.proof-grid,
.timeline {
  grid-template-columns: repeat(3, 1fr);
}

.offer-card,
.proof-card,
.timeline-step {
  padding: 24px;
}

.offer-tier,
.proof-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.offer-card p,
.proof-card p,
.timeline-step p,
.contact-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin: 12px 0 0;
}

.featured-offer {
  border-color: rgba(23, 69, 111, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.timeline-step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-section {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.contact-copy {
  padding: 10px 0 0;
}

.contact-form {
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--surface-muted);
  font: inherit;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
}

.admin-shell {
  padding-bottom: 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.admin-cards {
  grid-template-columns: repeat(2, 1fr);
}

.stat-card,
.alias-card,
.activity-card,
.reply-card {
  padding: 22px;
}

.stat-card span,
.alias-card span,
.activity-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-card strong,
.alias-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.alias-grid {
  grid-template-columns: repeat(3, 1fr);
}

.table-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
}

.activity-grid {
  grid-template-columns: repeat(3, 1fr);
}

.activity-card strong {
  display: block;
  margin-bottom: 8px;
}

.activity-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.reply-worklist {
  grid-template-columns: repeat(2, 1fr);
}

.reply-card-top,
.reply-card-badges {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.reply-card-top strong {
  display: block;
  font-size: 1.12rem;
}

.reply-card-top span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.reply-card-badges {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.reply-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.reply-badge-new {
  background: var(--accent-soft);
  color: var(--accent);
}

.reply-badge-positive,
.reply-badge-meeting {
  background: var(--success-soft);
  color: var(--success);
}

.reply-badge-later,
.reply-badge-price {
  background: var(--warn-soft);
  color: var(--warn);
}

.reply-badge-stop {
  background: var(--danger-soft);
  color: var(--danger);
}

.reply-badge-manual {
  background: #eef1f4;
  color: #52606f;
}

.reply-meta,
.reply-snippet,
.reply-next-step p {
  color: var(--muted);
  line-height: 1.6;
}

.reply-meta {
  margin: 14px 0 10px;
  font-size: 0.92rem;
}

.reply-subject {
  margin: 0;
  font-weight: 700;
}

.reply-snippet {
  margin: 10px 0 0;
}

.reply-next-step {
  margin: 16px 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reply-next-step strong {
  display: block;
  margin-bottom: 8px;
}

.email-preview-card {
  padding: 0;
}

.email-preview-body {
  padding: 22px;
}

@media (max-width: 1080px) {
  .hero,
  .admin-hero,
  .contact-section,
  .offer-grid,
  .proof-grid,
  .timeline,
  .activity-grid,
  .reply-worklist {
    grid-template-columns: 1fr;
  }

  .alias-grid,
  .admin-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-copy,
  .hero-panel,
  .offer-card,
  .proof-card,
  .timeline-step,
  .contact-form,
  .stat-card,
  .alias-card,
  .activity-card,
  .reply-card {
    padding: 20px;
  }

  .alias-grid,
  .admin-cards {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px;
    font-size: 0.92rem;
  }

  h1 {
    max-width: 11ch;
  }
}
