:root {
  --bg: #fbf7f4;
  --bg-alt: #fffdfb;
  --surface: #ffffff;
  --surface-strong: #f5efe9;
  --surface-dark: #2d2118;
  --text: #2d2118;
  --text-muted: #796b5f;
  --text-inverse: #fffaf6;
  --border: #eadfd6;
  --border-strong: #ddcbbb;
  --primary: #e8553a;
  --primary-strong: #cc472e;
  --secondary: #f5a623;
  --secondary-strong: #d58913;
  --success: #4caf7d;
  --shadow: 0 18px 40px rgba(45, 33, 24, 0.08);
  --shadow-soft: 0 10px 22px rgba(45, 33, 24, 0.06);
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 8px;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 16rem),
    var(--bg);
}

.container {
  width: min(var(--content), calc(100vw - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(251, 247, 244, 0.9);
  border-bottom: 1px solid rgba(234, 223, 214, 0.9);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.96rem;
  font-weight: 500;
}

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

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-soft);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-strong);
}

.button-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--primary);
}

.button-link {
  color: var(--primary);
  min-height: 40px;
  padding: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  align-items: end;
  overflow: hidden;
  background: var(--surface-dark);
}

.hero.hero-with-image {
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 33, 24, 0.34) 0%, rgba(45, 33, 24, 0.72) 64%, rgba(45, 33, 24, 0.9) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 246, 0.14);
  color: rgba(255, 250, 246, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1,
.page-title {
  margin: 18px 0 12px;
  max-width: 760px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text-inverse);
}

.hero p,
.page-subtitle {
  max-width: 640px;
  margin: 0;
  font-size: 1.06rem;
  color: rgba(255, 250, 246, 0.86);
}

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

.page-header {
  padding: 72px 0 28px;
}

.page-header .page-title,
.page-header .page-subtitle,
.page-header .eyebrow {
  color: var(--text);
}

.page-header .page-subtitle {
  color: var(--text-muted);
}

.section-band {
  padding: 72px 0;
}

.section-band.section-alt {
  background: var(--bg-alt);
}

.section-band.section-surface {
  background: var(--surface);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.stat-strip,
.card-grid,
.step-grid,
.faq-grid,
.legal-grid {
  display: grid;
  gap: 16px;
}

.stat-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.surface-card,
.feature-card,
.step-card,
.stat-card,
.faq-card,
.legal-card,
.form-shell,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.step-card,
.faq-card,
.legal-card,
.contact-card,
.stat-card {
  padding: 20px;
}

.feature-card h3,
.step-card h3,
.faq-card h3,
.legal-card h3,
.contact-card h3,
.stat-card h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  line-height: 1.15;
}

.feature-card p,
.step-card p,
.faq-card p,
.legal-card p,
.contact-card p,
.stat-card p,
.feature-card li,
.step-card li,
.faq-card li,
.legal-card li {
  margin: 0;
  color: var(--text-muted);
}

.feature-kicker,
.step-number {
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary);
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 28px;
  align-items: center;
}

.story-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.story-content h2,
.story-content h3 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

.story-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.story-list li::before {
  content: '•';
  color: var(--primary);
  font-weight: 900;
}

.media-panel {
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-dark);
}

.media-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-shell {
  padding: 24px;
}

.form-shell h2,
.form-shell h3 {
  margin: 0 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.form-shell p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  color: var(--text);
}

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

.field.span-2 {
  grid-column: 1 / -1;
}

.form-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-toc {
  position: sticky;
  top: 96px;
  padding: 20px;
}

.legal-toc h2 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
}

.legal-toc ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--primary);
}

.legal-document {
  display: grid;
  gap: 16px;
}

.legal-section {
  padding: 22px;
}

.legal-section h2 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
}

.legal-section ul {
  margin: 0;
  padding-left: 18px;
}

.faq-item {
  display: grid;
  gap: 10px;
}

.faq-item details {
  padding: 18px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
}

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

.faq-item details p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.cta-band {
  padding: 28px 0 72px;
}

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
}

.cta-inline h2 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
}

.cta-inline p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions .button-secondary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header[data-open='true'] .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 253, 251, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
  }

  .card-grid,
  .step-grid,
  .faq-grid,
  .story-band,
  .legal-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }

  .media-panel {
    min-height: 340px;
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero-inner {
    padding: 104px 0 56px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .hero-actions,
  .footer-row,
  .cta-inline {
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .brand-subtitle {
    white-space: normal;
  }
}
