:root {
  --ivory: #f7f1ea;
  --ivory-deep: #efe6dc;
  --paper: #fffaf5;
  --burgundy: #5c1f2e;
  --burgundy-soft: #7a3344;
  --ink: #2a2422;
  --sage: #5f6b63;
  --line: rgba(92, 31, 46, 0.14);
  --shadow: 0 24px 60px rgba(42, 36, 34, 0.08);
  --radius: 2px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia,
    serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(92, 31, 46, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(95, 107, 99, 0.1), transparent),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-deep) 100%);
  color: var(--ink);
}

img {
  max-width: 100%;
}

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--burgundy-soft);
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.shell.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 234, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 220ms ease, background 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 241, 234, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--burgundy);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 13.5rem;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem 1.35rem;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

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

.site-nav a.button-primary,
.site-nav a.button-primary:hover,
.site-nav a.button-primary:focus-visible {
  color: #fff8f4;
}

.nav-quiet {
  opacity: 0.72;
  font-size: 0.86rem !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  width: 1.1rem;
  height: 1px;
  margin: 0 auto;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--burgundy);
  color: #fff8f4;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--burgundy-soft);
  color: #fff;
}

.button-secondary {
  background: transparent;
  border-color: rgba(92, 31, 46, 0.35);
  color: var(--burgundy);
}

.header-cta {
  margin-left: 0.35rem;
}

.partnership-header .brand img {
  width: min(13.5rem, 52vw);
}

.hero {
  position: relative;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(247, 241, 234, 0.2), transparent 45%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235c1f2e' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 38rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.85rem);
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.lede,
.section-lede {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--sage);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.trust-line {
  margin: 1.5rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--sage);
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-tint {
  background: rgba(255, 250, 245, 0.55);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head .section-lede {
  max-width: 40rem;
}

.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.journey-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.step-index {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--burgundy);
}

.journey-step p {
  margin: 0;
  color: var(--sage);
  font-weight: 300;
}

.email-preview {
  margin: 3rem 0 0;
}

.preview-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

.email-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.email-from {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.email-subject {
  margin: 0 0 1rem;
}

.email-card p {
  margin: 0 0 1rem;
  color: var(--ink);
  font-weight: 300;
}

.email-link {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(92, 31, 46, 0.28);
  text-decoration: none;
  color: var(--burgundy);
}

.email-note {
  margin-top: 1.25rem !important;
  font-size: 0.86rem;
  color: var(--sage) !important;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 245, 0.7);
}

.benefit p {
  margin: 0;
  color: var(--sage);
  font-weight: 300;
}

.section-demo .button,
.section-contact .button {
  margin-top: 0.5rem;
}

.partnership-form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.partnership-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
}

.optional-label {
  color: var(--sage);
  font-weight: 300;
}

.partnership-form input,
.partnership-form textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(92, 31, 46, 0.25);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.partnership-form input:focus,
.partnership-form textarea:focus {
  outline: 2px solid rgba(92, 31, 46, 0.35);
  outline-offset: 1px;
}

.partnership-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.captcha-wrap {
  min-height: 4.2rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--sage);
}

.form-status.is-error {
  color: #9b2535;
}

.form-status.is-success {
  color: #365e49;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.demo-note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--sage);
}

.site-footer {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: rgba(42, 36, 34, 0.03);
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
}

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

.footer-nav a:hover {
  color: var(--burgundy);
}

.footer-fine {
  margin: 0;
  font-size: 0.86rem;
  color: var(--sage);
  font-weight: 300;
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-policies a,
.footer-policies .footer-policy-placeholder {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.86rem;
}

.footer-policies a:hover,
.footer-policies a[aria-current="page"] {
  color: var(--burgundy);
}

.footer-policies .footer-policy-placeholder {
  cursor: default;
}

/* Policy pages ----------------------------------------------------------- */

body.policy-page {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(92, 31, 46, 0.06), transparent),
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 48%, var(--ivory-deep) 100%);
}

.policy-hero {
  padding: 3.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

.policy-hero .eyebrow {
  margin-bottom: 0.65rem;
}

.policy-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--burgundy);
}

.policy-meta {
  margin: 0;
  color: var(--sage);
  font-size: 0.95rem;
  font-weight: 300;
}

.policy-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 960px) {
  .policy-layout {
    grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }
}

.policy-toc {
  position: sticky;
  top: 5rem;
}

.policy-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.policy-toc a {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.88rem;
}

.policy-toc a:hover {
  color: var(--burgundy);
}

.policy-content {
  max-width: 42rem;
}

.policy-content h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--burgundy);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content h3 {
  margin: 1.5rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.policy-content p,
.policy-content li {
  color: var(--ink);
  font-weight: 300;
}

.policy-content ul,
.policy-content ol {
  padding-left: 1.2rem;
  margin: 0.65rem 0 1rem;
}

.policy-content li + li {
  margin-top: 0.35rem;
}

.policy-note,
.policy-intro {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: rgba(95, 107, 99, 0.08);
  font-size: 0.92rem;
  color: var(--sage);
}

.policy-intro {
  background: rgba(92, 31, 46, 0.05);
  color: var(--ink);
}

.policy-sources {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.policy-sources li {
  word-break: break-word;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  color: var(--burgundy);
  text-decoration: none;
  font-size: 0.92rem;
}

.policy-back:hover {
  color: var(--burgundy-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 90ms;
}
.reveal-delay-2 {
  animation-delay: 180ms;
}
.reveal-delay-3 {
  animation-delay: 270ms;
}
.reveal-delay-4 {
  animation-delay: 360ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1.35rem;
    background: rgba(247, 241, 234, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-cta {
    margin-left: 0;
  }

  .journey-step {
    grid-template-columns: 3rem 1fr;
  }

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

@media (max-width: 480px) {
  .partnership-page .shell.narrow {
    width: min(720px, calc(100% - 1.5rem));
  }

  .partnership-header {
    min-height: 3.75rem;
  }

  .partnership-header .button {
    min-height: 2.45rem;
    padding: 0.45rem 0.8rem;
  }

  .partnership-page .section {
    padding-block: 2.6rem;
  }

  .partnership-page h1 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
  }

  .partnership-form {
    gap: 0.95rem;
    padding: 1rem;
  }

  .partnership-form input,
  .partnership-form textarea {
    min-height: 2.9rem;
    font-size: 16px;
  }

  .partnership-form textarea {
    min-height: 7.5rem;
  }

  .partnership-form > .button {
    width: 100%;
    min-height: 3rem;
  }

  .partnership-page .captcha-wrap {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .button:hover {
    transform: none;
  }
}
