:root {
  --red: #d41f0b;
  --red-dark: #b01a09;
  --red-darker: #7a1206;
  --red-light: #ffe8e6;
  --red-tint: #fff5f4;
  --green-yes: #2fb574;
  --green-yes-ink: #134e30;
  --ink: #1a1a1a;
  --ink-soft: #2c2c2c;
  --muted: #6f6f6f;
  --muted-soft: #9a9a9a;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-warm: #fffafa;
  --line: #f0d6d3;
  --line-strong: #e6b8b3;

  --max-width: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(122, 18, 6, 0.10);
  --shadow-soft: 0 6px 18px rgba(122, 18, 6, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Avenir Next", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0% 0%, var(--red-light) 0%, var(--red-tint) 28%, transparent 50%),
    radial-gradient(circle at 100% 0%, var(--red-tint) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--red-tint) 100%);
  line-height: 1.65;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--red-dark);
}

a:hover {
  color: var(--red);
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

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

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--red-darker);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-light);
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #4d3838;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  background: var(--red-light);
  color: var(--red-dark);
}

.nav-links a[aria-current='page'] {
  background: var(--red);
  color: #ffffff;
}

.hero,
.page-main {
  padding: clamp(2.4rem, 5vw, 5rem) 0 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--red);
  font-weight: 700;
  margin: 0 0 0.7rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
  max-width: 18ch;
}

.lead,
.hero p {
  max-width: 62ch;
  color: var(--ink-soft);
}

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

.btn {
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.78rem 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-soft);
  font-size: 0.98rem;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #ffffff;
}

.btn-secondary {
  background: var(--red-light);
  color: var(--red-dark);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #ffd9d4;
  color: var(--red-darker);
}

.btn-ghost {
  background: transparent;
  color: var(--red-dark);
  border: 1.5px solid var(--red-light);
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--red-light);
}

.btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin: 1.2rem auto 2.5rem;
}

.cards-grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card .card-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  background: var(--red-light);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.description-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.4rem;
}

.section-title {
  margin: 2.5rem 0 0.4rem;
}

.section-lead {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 1rem;
}

.thread-divider {
  display: block;
  width: 80%;
  max-width: 360px;
  height: 2px;
  margin: 2.2rem auto;
  background: linear-gradient(90deg, transparent 0%, var(--red) 50%, transparent 100%);
  border: 0;
  opacity: 0.7;
}

.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.form-embed {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 0.6rem;
  margin: 1rem 0 0.6rem;
}

.form-embed iframe {
  width: 100%;
  min-height: 1400px;
  border: 0;
  display: block;
  border-radius: var(--radius-sm);
  background: #ffffff;
}

.form-embed-fallback {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.badge.muted {
  background: #2c2c2c;
  color: #c8c8c8;
  cursor: default;
}

.badge .badge-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.contact {
  margin: 1rem auto 3rem;
}

.contact-panel {
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 0.6rem;
  transform-origin: top center;
  transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
  max-height: 1400px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.contact-panel.is-submitted .contact-form {
  opacity: 0;
  transform: scale(0.72);
  max-height: 0;
  pointer-events: none;
}

label {
  font-size: 0.9rem;
  color: #5d4747;
  font-weight: 500;
}

input,
textarea,
select {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-light);
}

.form-status {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  color: var(--red-dark);
  font-size: 0.92rem;
}

.form-status.error {
  color: #ba2222;
}

.form-success {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.form-success.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 260px;
  pointer-events: auto;
}

.checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--green-yes-ink);
  background: rgba(47, 181, 116, 0.18);
}

.form-success.visible .checkmark {
  animation: pop-check 0.55s ease;
}

#revertSubmit {
  margin-top: 0.4rem;
}

.policy {
  margin-top: 1.1rem;
  margin-bottom: 2.1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 2vw, 2rem);
}

.policy h2 {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--red-darker);
}

.policy h3 {
  margin-top: 1.35rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.policy h4 {
  margin-top: 1rem;
  font-size: 1.02rem;
}

.policy p,
.policy li {
  font-size: 0.98rem;
}

.policy ul,
.policy ol {
  padding-left: 1.4rem;
}

.policy .version-stamp {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  background: var(--red-light);
  color: var(--red-darker);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.policy .toc {
  background: var(--red-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0 1.8rem;
}

.policy .toc h2 {
  margin-top: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}

.policy .toc ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.policy .toc li {
  font-size: 0.92rem;
}

.callout {
  border-left: 4px solid var(--red);
  background: var(--red-tint);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}

.callout.warning {
  border-left-color: #b9591a;
  background: #fff6ed;
}

.faq {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  box-shadow: var(--shadow-soft);
}

.faq details[open] {
  border-color: var(--line-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--red-darker);
  list-style: none;
  padding: 0.4rem 0;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

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

.faq details p {
  margin: 0.4rem 0 0.6rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 1.6rem 0;
  color: #6f5252;
  background: rgba(255, 250, 250, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-brand .brand {
  font-size: 1.05rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 0.6rem;
  color: var(--red);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--red-dark);
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Page transitions */
.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-enter.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-exit-active {
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes pop-check {
  0% { transform: scale(0.45); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .hero,
  .page-main {
    padding-top: 2rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
