@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8f4f2;
  --ink: #1d1c23;
  --muted: #6f6a70;
  --purple: #7c59b5;
  --purple-deep: #6d4aa6;
  --eyebrow: #9b59c4;
  --line: #ece7ea;
  --card: #fff;
  --field: #e4dfe4;
  --shadow: 0 18px 50px rgba(48, 32, 64, 0.06);
  --header: 96px;
  --page: 1248px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 16px;
}

.logo {
  display: flex;
  flex: 0 0 auto;
}

.logo img {
  width: auto;
  height: 64px;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--purple);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--purple-deep);
}

.button-small {
  min-height: 46px;
  min-width: 168px;
  padding: 0 26px;
  font-size: 0.95rem;
}

.button:focus-visible,
.nav-link:focus-visible,
.logo:focus-visible,
.site-footer a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.hero {
  padding: 72px 0 28px;
}

.hero-grid,
.faq-grid,
.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1,
.faq-intro h2,
.join-copy h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 12em;
  font-size: clamp(1.85rem, 3.15vw, 3rem);
}

.hero-copy .button {
  min-width: 250px;
  margin-top: 32px;
}

.hero-figure {
  margin: 0;
}

.hero-figure img,
.faq-intro img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.hero-figure figcaption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.faq {
  padding: 88px 0 40px;
}

.faq-grid {
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--eyebrow);
  font-size: 0.86rem;
  font-weight: 500;
}

.faq-intro h2,
.join-copy h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.faq-intro img {
  aspect-ratio: 0.92;
  margin-top: 28px;
  object-fit: cover;
  object-position: 84% 62%;
}

.faq-list {
  margin-top: 38px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #6f6a70;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  max-width: 38rem;
  margin: 0 0 22px;
  color: var(--muted);
}

.join {
  padding: 72px 0 96px;
}

.join-copy p {
  max-width: 22rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  display: grid;
  gap: 18px;
  padding: 36px 36px 32px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
}

.card input[type="text"],
.card input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--field);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.card input::placeholder {
  color: #b3aeb3;
}

.card input.is-invalid {
  border-color: var(--purple);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 400;
}

.field-error[hidden] {
  display: none;
}

.field-error img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(29, 28, 35, 0.16);
}

.card .button {
  width: 100%;
  margin-top: 6px;
}

.send {
  display: grid;
  gap: 10px;
}

.send-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 88px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  :root {
    --header: 80px;
    --gutter: 24px;
  }

  .logo img {
    height: 56px;
  }

  .nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.86rem;
  }

  .button-small {
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.86rem;
  }

  .hero,
  .faq,
  .join {
    padding: 36px 0;
  }

  .hero-grid,
  .faq-grid,
  .join-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 1.7rem;
  }

  .card .button {
    width: 100%;
  }

  .faq-list {
    margin-top: 8px;
  }

  .card {
    padding: 24px 20px 20px;
  }
}

@media (max-width: 600px) {
  .hero-copy .button {
    width: 100%;
  }
}

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