:root {
  --bg: #f6f0e6;
  --paper: rgba(255, 252, 245, 0.74);
  --ink: #1f2933;
  --muted: #5f6b76;
  --line: rgba(31, 41, 51, 0.14);
  --accent: #b44c2d;
  --accent-deep: #6a2a16;
  --accent-soft: #f0c7a0;
  --shadow: 0 24px 60px rgba(53, 34, 15, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(180, 76, 45, 0.18), transparent 32%),
    radial-gradient(circle at 85% 15%, rgba(240, 199, 160, 0.78), transparent 20%),
    linear-gradient(180deg, #f8f2e8 0%, #f2ebe1 100%);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.6;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%231f2933' fill-opacity='0.06'%3E%3Ccircle cx='22' cy='28' r='1'/%3E%3Ccircle cx='80' cy='61' r='1'/%3E%3Ccircle cx='132' cy='39' r='1'/%3E%3Ccircle cx='38' cy='144' r='1'/%3E%3Ccircle cx='160' cy='126' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer,
.hero,
.split-section,
.compliance-band,
.opt-in-section,
.message-examples,
.legal-shell {
  width: min(1120px, calc(100vw - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.9rem;
  background: var(--accent);
  color: #fff8f0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span:last-child,
.nav a,
.section-kicker,
.eyebrow,
.legal-updated,
.card-label,
.message-type,
.status-row,
.fine-print {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  padding: 4rem 0 2rem;
  align-items: end;
}

.hero-copy,
.hero-card,
.split-section,
.compliance-band,
.mock-form,
.message-list article,
.legal-shell {
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 2.2rem 2.2rem 2.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: 2rem;
}

.hero-card,
.mock-form,
.message-list article {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 1.8rem 1.8rem 0.8rem 1.8rem;
  padding: 1.6rem;
  transform: translateY(2rem);
}

.hero h1,
.split-section h2,
.compliance-band h2,
.opt-in-section h2,
.message-examples h2,
.legal-shell h1,
.legal-section h2 {
  font-family: "Fraunces", serif;
  line-height: 1.02;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  max-width: 10ch;
}

.lede {
  max-width: 56ch;
  font-size: 1.08rem;
}

.eyebrow,
.section-kicker,
.card-label,
.message-type,
.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  background: var(--ink);
  color: #fff7ed;
  border-color: var(--ink);
}

.button.ghost {
  background: transparent;
}

.hero-card ul,
.legal-shell ul {
  padding-left: 1.2rem;
}

.status-row {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #2f7d4d;
  box-shadow: 0 0 0 0.3rem rgba(47, 125, 77, 0.12);
}

.split-section,
.compliance-band,
.opt-in-section,
.message-examples {
  margin-top: 1.5rem;
}

.split-section,
.compliance-band,
.message-examples {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.72);
}

.feature-grid,
.compliance-points,
.message-list {
  display: grid;
  gap: 1rem;
}

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

.feature-grid.single-column {
  grid-template-columns: 1fr;
}

.feature-grid article,
.compliance-points p {
  margin: 0;
  padding: 1rem;
  border-top: 2px solid var(--accent-soft);
  background: rgba(255, 255, 255, 0.48);
}

.feature-grid h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.opt-in-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.consent-copy blockquote {
  margin: 1.4rem 0 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 250, 242, 0.8);
  font-size: 1.05rem;
}

.legal-callout {
  margin: 1.2rem 0 0;
  padding: 1.2rem 1.3rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 250, 242, 0.8);
  font-size: 1.02rem;
}

.mock-form {
  border-radius: 1.6rem;
  padding: 1.4rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  border: 1px solid rgba(31, 41, 51, 0.18);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  margin: 1rem 0;
}

.checkbox-row input {
  margin-top: 0.24rem;
}

.fine-print {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

.message-list article {
  border-radius: 1.4rem;
  padding: 1rem;
}

.message-list p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: start;
  flex-wrap: wrap;
}

.legal-page .site-header {
  padding-bottom: 1rem;
}

.legal-shell {
  background: rgba(255, 252, 246, 0.86);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 2rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.legal-shell h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.4rem;
}

.legal-section {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  margin-top: 1.3rem;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

code {
  font-family: "IBM Plex Mono", monospace;
  background: rgba(31, 41, 51, 0.08);
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .compliance-band,
  .opt-in-section,
  .message-examples {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

  .feature-grid,
  .message-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy,
  .split-section,
  .compliance-band,
  .mock-form,
  .message-list article,
  .legal-shell {
    border-radius: 1.4rem;
  }

  .hero-copy,
  .split-section,
  .compliance-band,
  .mock-form,
  .legal-shell {
    padding: 1.25rem;
  }
}
