/* Ding-Go — Red Earth theme. Tokens and patterns follow the Ding-Go Design Brief. */

:root {
  --sand: #F3E6D3;      /* page background */
  --clay: #EADAC3;      /* surfaces */
  --red: #B8432F;       /* the one accent */
  --red-dark: #9E3725;  /* primary button hover */
  --ink: #2A1D17;       /* text, dark card */
  --bark: #4E3D34;      /* secondary text */
  --dust: #D9C9B4;      /* text on dark */
  --muted: #7A6658;     /* placeholders */
  --hair: rgba(42, 29, 23, .14);
  --outline: rgba(42, 29, 23, .45);
  --dashed: rgba(42, 29, 23, .3);

  /* Fluid sizes are relative to the .page container (cqw) */
  --gutter: clamp(20px, 4cqw, 56px);
  --section-gap: clamp(44px, 8cqw, 112px);
  --radius-card: clamp(20px, 2.2cqw, 28px);

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--sand);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--sand); }
.nowrap { white-space: nowrap; }

.page { container: page / inline-size; width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 0; background: transparent; color: inherit;
}
.btn--primary { background: var(--red); color: var(--sand); font-weight: 700; }
.btn--primary:hover { background: var(--red-dark); color: var(--sand); }
.btn--secondary { border: 1.5px solid var(--outline); color: var(--ink); }
.btn--secondary:hover { border-color: var(--red); }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { color: var(--red); }

.round-btn {
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--outline); background: transparent;
  display: grid; place-content: center; gap: 5px; cursor: pointer;
}
.round-btn > span { display: block; width: 18px; height: 2px; background: var(--ink); }
.round-btn--close > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.round-btn--close > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.text-cta {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px;
  font-weight: 600; text-decoration: underline; text-underline-offset: 5px;
}

/* ---------- Header ---------- */
/* The header floats over the top of .hero-wrap so the hero art runs behind both. */
.page { position: relative; }
.hero-wrap { position: relative; overflow: hidden; padding-top: clamp(72px, 7cqw, 88px); }
.hero-art { position: absolute; pointer-events: none; }
.hero-art--wide { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-art--narrow { display: none; right: -165px; top: 35px; width: 480px; height: 480px; max-width: none; }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter); height: clamp(72px, 7cqw, 88px);
}
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: clamp(30px, 3.2cqw, 40px); width: auto; display: block; }

.main-nav {
  display: flex; gap: 4px; margin-right: auto; margin-left: 24px;
  font-size: 16px; font-weight: 500;
}
.nav-link {
  padding: 12px 14px; text-decoration: none;
  background: none; border: 0; font: inherit; color: inherit; cursor: pointer;
}
.nav-link:hover { color: var(--red); }
.nav-link[aria-current="page"] {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px;
  color: var(--red); font-weight: 600;
}
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 220px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--sand); border: 1px solid var(--hair); border-radius: 16px;
}
.nav-dropdown a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; }
.nav-dropdown a:hover { background: var(--clay); }

.header-actions { display: flex; gap: 10px; align-items: center; }
.header-actions .round-btn { display: none; }

.mobile-ctas {
  display: none; position: relative;
  grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px 8px;
}
.mobile-ctas .btn { padding: 0 12px; }
.mobile-ctas .btn--secondary { background: rgba(243, 230, 211, .85); }

/* Full-screen mobile menu (lives outside .page so position:fixed is viewport-relative) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; overflow-y: auto;
  background: var(--sand); display: flex; flex-direction: column;
}
.mobile-menu__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 20px; flex: none;
}
.mobile-menu__top .logo img { height: 30px; }
.mobile-menu__nav { display: flex; flex-direction: column; padding: 8px 20px 24px; }
.mobile-menu__label {
  margin: 20px 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--red);
}
.mobile-menu__nav a {
  padding: 12px 0; border-bottom: 1px solid var(--hair); text-decoration: none;
  font: 700 22px/1.25 var(--font-head); letter-spacing: -.02em;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--red); }
.mobile-menu__ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 8px 20px 28px; margin-top: auto;
}
.mobile-menu__ctas .btn { padding: 0 12px; }
@media (min-width: 720px) { .mobile-menu { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; max-width: 700px;
  display: flex; flex-direction: column; gap: clamp(16px, 2cqw, 24px);
  padding: clamp(4px, 6cqw, 96px) var(--gutter) clamp(36px, 8cqw, 128px);
}
.hero--about { padding-bottom: clamp(36px, 6cqw, 96px); }
.hero--support { padding-bottom: clamp(36px, 5cqw, 72px); }
.eyebrow {
  margin: 0; font-size: clamp(14px, 1.2cqw, 15px); font-weight: 600;
  letter-spacing: .02em; color: var(--red);
}
.hero h1 {
  margin: 0; font: 800 clamp(40px, 6.6cqw, 92px)/1 var(--font-head);
  letter-spacing: -.045em; text-wrap: balance;
  max-width: calc(100% - 140px + max(0px, 100cqw - 600px));
}
.lede {
  margin: 0; font-size: clamp(17px, 1.6cqw, 21px); max-width: 36ch;
  color: var(--bark); text-wrap: pretty;
}

/* Waitlist */
.waitlist { display: flex; flex-direction: column; gap: 14px; max-width: 540px; scroll-margin-top: 24px; }
.waitlist-form {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 20px;
  background: var(--clay); border: 1px solid rgba(42, 29, 23, .12);
}
.waitlist-form label { flex: 1 1 220px; display: flex; }
.waitlist-form input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px; border: 0;
  background: transparent; font: inherit; font-size: 17px; color: var(--ink);
}
.waitlist-form button {
  height: 54px; padding: 0 24px; border-radius: 14px; border: 0; flex: 1 0 auto;
  background: var(--red); color: var(--sand); font: 700 17px var(--font-body); cursor: pointer;
}
.waitlist-form button:hover { background: var(--red-dark); }
.waitlist-form button:disabled { opacity: .7; cursor: progress; }
.note-success {
  padding: 18px 20px; border-radius: 20px; background: var(--clay);
  border: 1px solid var(--red); font-weight: 600;
}
.form-error { margin: 0; font-size: 15px; font-weight: 600; color: var(--red); }
.app-note {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(14px, 1.2cqw, 15px); line-height: 1.35; color: var(--bark);
}
.app-note img { width: clamp(32px, 3cqw, 40px); height: clamp(32px, 3cqw, 40px); display: block; flex: none; }

::placeholder { color: var(--muted); opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: var(--section-gap) var(--gutter) 0; scroll-margin-top: 16px; }
.section--flush { padding-top: 0; }
.stack { display: flex; flex-direction: column; gap: clamp(20px, 2.5cqw, 32px); }
.section-title {
  margin: 0; font: 800 clamp(28px, 3.8cqw, 52px)/1.05 var(--font-head); letter-spacing: -.04em;
}
.section-intro { display: flex; flex-direction: column; gap: clamp(12px, 1.4cqw, 16px); }
.section-intro p { margin: 0; color: var(--bark); max-width: 52ch; text-wrap: pretty; }
.caption { margin: 0; font-size: clamp(14px, 1.2cqw, 15px); color: var(--bark); }

/* Highlights strip */
/* Flex rather than grid so a wrapped last cell stretches instead of leaving an empty hairline-coloured gap */
.highlights {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--hair); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.highlight {
  flex: 1 1 220px;
  background: var(--sand); padding: clamp(14px, 2.2cqw, 28px) 4px;
  display: flex; flex-direction: column; gap: 2px;
}
.highlight strong {
  font: 700 clamp(20px, 2cqw, 26px)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--red);
}
.highlight span { color: var(--bark); font-size: clamp(16px, 1.4cqw, 18px); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(12px, 1.2cqw, 16px); }
.card {
  padding: clamp(22px, 2.5cqw, 32px); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: clamp(10px, 1.1cqw, 14px);
}
.card h3 {
  margin: clamp(0px, .6cqw, 8px) 0 0;
  font: 700 clamp(23px, 2.2cqw, 28px)/1.15 var(--font-head); letter-spacing: -.03em;
}
.card h3.flush { margin: 0; }
.card p { margin: 0; color: var(--bark); text-wrap: pretty; }
.card .grow { flex: 1; }
.card > .btn { align-self: flex-start; padding: 0 22px; font-size: 18px; }
.card--dark { background: var(--ink); color: var(--sand); }
.card--dark p { color: var(--dust); }
.card--filled { background: var(--clay); }
.card--outline { border: 1.5px dashed var(--dashed); }
.card-top { display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; }

.icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.icon::before { content: ""; display: block; }
.icon--dot { background: var(--sand); }
.icon--dot::before { width: 16px; height: 16px; border-radius: 50%; background: var(--red); }
.icon--square { background: var(--red); }
.icon--square::before { width: 16px; height: 16px; border-radius: 3px; background: var(--sand); }
.icon--diamond { border: 1.5px solid var(--outline); }
.icon--diamond::before { width: 14px; height: 14px; transform: rotate(45deg); background: var(--ink); }

.tag {
  align-self: flex-start; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--clay); color: var(--red);
}
.card--filled .tag { background: var(--sand); }

/* About: photos, story, team */
.photo {
  position: relative; width: 100%; aspect-ratio: 21 / 9; overflow: hidden;
  border-radius: var(--radius-card); background: var(--clay);
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  text-align: center; font-size: 15px; color: var(--bark);
}
.story-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4cqw, 64px); align-items: start;
}
.prose { display: flex; flex-direction: column; gap: clamp(16px, 2cqw, 24px); }
.prose p { margin: 0; color: var(--bark); max-width: 58ch; text-wrap: pretty; }
.team {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 1.6cqw, 20px);
}
.person { display: flex; flex-direction: column; gap: 12px; }
.person__meta { display: flex; flex-direction: column; }
.person__meta strong { font: 700 clamp(20px, 2cqw, 22px)/1.2 var(--font-head); letter-spacing: -.02em; }
.person__meta span { color: var(--bark); font-size: 16px; }
.join-card { aspect-ratio: 4 / 5; justify-content: flex-end; }

/* CTA band */
.cta-band {
  padding: clamp(28px, 5cqw, 72px) clamp(22px, 4cqw, 64px); border-radius: var(--radius-card);
  background: var(--ink); color: var(--sand);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: clamp(20px, 3cqw, 40px);
}
.cta-band__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: clamp(10px, 1.1cqw, 14px); }
.cta-band__text h2 { text-wrap: balance; }
.cta-band__text p { margin: 0; color: var(--dust); max-width: 44ch; text-wrap: pretty; }
.cta-band__actions { flex: 0 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px; }
.cta-band__actions .btn { white-space: nowrap; }

/* ---------- Support form ---------- */
.form-wrap { max-width: 880px; }
.form-card {
  padding: clamp(22px, 3cqw, 40px); border-radius: var(--radius-card); background: var(--clay);
  display: flex; flex-direction: column; gap: clamp(18px, 2cqw, 24px);
}
.form-card > p { margin: 0; }
.form-hint { font-size: 15px; color: var(--bark); }
.req { color: var(--red); font-weight: 700; }
.field-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(18px, 2cqw, 24px) 16px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; font-weight: 600; line-height: 1.3; }
.field .optional { font-weight: 400; color: var(--bark); }
.input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--outline); background: var(--sand);
  font: inherit; font-size: 17px; color: var(--ink);
}
.input[aria-invalid="true"] { border-color: var(--red); }
textarea.input { height: auto; min-height: 168px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 52px; cursor: pointer; }
.select-wrap select:invalid { color: var(--muted); }
.select-wrap option { color: var(--ink); }
.select-wrap::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
}
.field-error { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.field-error::before {
  content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: var(--sand); font: 700 12px/18px var(--font-body); text-align: center;
}
.field-error:empty { display: none; }
.alert {
  margin: 0; padding: clamp(14px, 1.4cqw, 16px) clamp(16px, 1.6cqw, 20px); border-radius: 16px;
  background: var(--sand); border: 1px solid var(--red); font-size: clamp(15px, 1.3cqw, 16px);
}
.alert strong { color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions [role="status"] { font-size: 15px; font-weight: 600; }
.submit-btn {
  height: 54px; padding: 0 28px; border-radius: 14px; border: 0;
  background: var(--red); color: var(--sand); font: 700 17px var(--font-body); cursor: pointer;
}
.submit-btn:hover { background: var(--red-dark); }
.submit-btn:disabled { opacity: .7; cursor: progress; }
.success-card { border: 1px solid var(--red); }
.success-card h2 { margin: 0; font: 700 clamp(23px, 2.2cqw, 28px)/1.15 var(--font-head); letter-spacing: -.03em; }
.success-card p { color: var(--bark); max-width: 52ch; text-wrap: pretty; }
.success-card p strong { color: var(--ink); }
.success-card .btn { align-self: flex-start; }

/* FAQ */
.faq { max-width: 880px; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); scroll-margin-top: 16px; }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; min-height: 64px; padding: 16px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font: 700 clamp(19px, 1.8cqw, 22px)/1.25 var(--font-head); letter-spacing: -.02em;
}
.faq-q:hover { color: var(--red); }
.faq-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--outline);
  display: grid; place-items: center; font: 600 18px/1 var(--font-body); color: var(--ink);
}
.faq-a { margin: 0; padding: 0 4px 20px; max-width: 60ch; color: var(--bark); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(56px, 8cqw, 112px); border-top: 1px solid var(--hair);
  padding: clamp(32px, 5cqw, 64px) var(--gutter) 28px;
  display: flex; flex-direction: column; gap: clamp(24px, 3cqw, 36px);
}
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: clamp(20px, 2.5cqw, 32px); }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { height: clamp(28px, 2.7cqw, 34px); width: auto; align-self: flex-start; }
.footer-brand span { color: var(--bark); font-size: 16px; }
.footer-col { display: flex; flex-direction: column; font-size: 16px; color: var(--bark); }
.footer-col h2 { margin: 0; padding-bottom: 4px; font-size: 16px; font-weight: 700; line-height: 1.55; color: var(--ink); }
.footer-col a { padding: 10px 0; line-height: 1.2; }
.emergency {
  margin: 0; padding: clamp(14px, 1.4cqw, 16px) clamp(16px, 1.6cqw, 20px); border-radius: 16px;
  background: var(--clay); font-size: clamp(15px, 1.3cqw, 16px);
}
.emergency strong { color: var(--red); }
.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; font-size: 15px; color: var(--bark);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--clay);
  display: grid; place-items: center; text-decoration: none; font: 600 12px var(--font-body);
}

/* ---------- Narrow layout: below 720px of page width ---------- */
@container page (max-width: 719.98px) {
  .hero-art--wide { display: none; }
  .hero-art--narrow { display: block; }
  .main-nav, .header-actions .btn { display: none; }
  .header-actions .round-btn { display: grid; }
  .mobile-ctas { display: grid; }
  .icon { display: none; }
  .photo--hero { aspect-ratio: 4 / 3; }
  .cta-band__actions { width: 100%; }
  .submit-btn { width: 100%; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand img { height: 28px; }
  .footer-brand span { display: none; }
}
