/* ---------- Design tokens ---------- */
:root {
  --cream: #F2EFE6;
  --sand: #E8E3D5;
  --offwhite: #FDFCF8;
  --white: #FFFFFF;
  --ink: #2E2A26;
  --ink-soft: #4A443D;
  --ink-muted: #6E6961;
  --terracotta: #9E4A31;
  --rose: #8D5560;
  --teal: #4B6A6B;
  --kraft: #C99A5F;
  --kraft-light: #D9AC72;
  --input-dark: #3A352F;
  --on-terracotta: #FDFCF8;

  --cream-92: rgba(242, 239, 230, 0.92);
  --cream-62: rgba(242, 239, 230, 0.62);
  --cream-60: rgba(242, 239, 230, 0.6);
  --cream-20: rgba(242, 239, 230, 0.2);
  --cream-8: rgba(242, 239, 230, 0.08);
  --kraft-33: rgba(201, 154, 95, 0.33);

  --line-4: rgba(46, 42, 38, 0.04);
  --line-6: rgba(46, 42, 38, 0.06);
  --line-8: rgba(46, 42, 38, 0.08);
  --line-13: rgba(46, 42, 38, 0.13);

  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-text: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow-card: 0 24px 60px -30px rgba(46, 42, 38, 0.25);
  --shadow-team: 0 20px 50px -30px rgba(46, 42, 38, 0.31);
  --shadow-menu: 0 18px 40px -20px rgba(46, 42, 38, 0.31);

  --container: 1200px;
  --gutter: 32px;
  --rhythm: 88px;
  --transition: 150ms ease;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}

p { margin: 0; }

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

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rose); }

button { font: inherit; }

::selection { background: var(--kraft-33); }

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* Terracotta is 1.2:1 on teal; dark grounds need the cream ring. */
.band-teal :focus-visible,
.band-ink :focus-visible,
.cta-panel :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section[id] { scroll-margin-top: 80px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--terracotta);
  color: var(--on-terracotta);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--on-terracotta); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--on-terracotta);
  padding: 14px 24px;
  font-size: 16px;
}
.btn-primary:hover { background: var(--rose); color: var(--on-terracotta); }

.btn-cream {
  background: var(--cream);
  color: var(--rose);
  padding: 16px 28px;
  font-size: 16px;
  white-space: nowrap;
}
.btn-cream:hover { background: var(--white); color: var(--rose); }

.btn-kraft {
  background: var(--kraft);
  color: var(--ink);
  padding: 14px 24px;
  font-size: 16px;
}
.btn-kraft:hover { background: var(--kraft-light); }

/* ---------- Shared type ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow-on-dark { color: var(--cream); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}
.section-head h2 {
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1.05;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 239, 230, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }

.logo-mark {
  display: grid;
  grid-template-columns: 11px 11px;
  grid-template-rows: 11px 11px;
  gap: 3px;
}
.logo-mark span { border-radius: 3px; }
.logo-mark span:nth-child(1) { background: var(--terracotta); }
.logo-mark span:nth-child(2) { background: var(--teal); }
.logo-mark span:nth-child(3) { background: var(--kraft); }
.logo-mark span:nth-child(4) { background: var(--rose); }

.logo-mark-lg {
  grid-template-columns: 14px 14px;
  grid-template-rows: 14px 14px;
  gap: 4px;
}
.logo-mark-lg span { border-radius: 4px; }

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--terracotta); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta {
  padding: 10px 20px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  background: var(--offwhite);
  border: 1px solid var(--line-13);
  border-radius: 999px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}
.nav-toggle:hover { border-color: var(--terracotta); }

/* ---------- Language selector ---------- */
.lang { position: relative; }

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--offwhite);
  border: 1px solid var(--line-13);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--transition);
}
.lang-trigger:hover { border-color: var(--terracotta); }

.lang-flag { font-size: 17px; line-height: 1; }
.lang-caret { font-size: 10px; color: var(--ink-muted); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--offwhite);
  border: 1px solid var(--line-13);
  border-radius: 14px;
  box-shadow: var(--shadow-menu);
  z-index: 60;
}
.lang-menu[hidden] { display: none; }

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.lang-menu a:hover { background: var(--line-4); color: var(--ink); }
.lang-menu a[aria-checked="true"] {
  background: var(--teal);
  color: var(--cream);
  font-weight: 700;
}
.lang-menu a[aria-checked="true"]:hover { background: var(--teal); color: var(--cream); }
.lang-menu li + li { margin-top: 2px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 48px;
}

.hero-copy,
.hero-intro,
.hero-signup {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pill-eyebrow {
  align-self: flex-start;
  background: var(--teal);
  color: var(--cream);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
}

.fine-print {
  font-size: 14px;
  color: var(--ink-muted);
}

.hero-visual { position: relative; }

.hero-card {
  background: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  animation: floaty 7s ease-in-out infinite;
}
.hero-card img { border-radius: 16px; width: 100%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.deco { position: absolute; display: block; }
.deco-a {
  top: -18px; right: -14px;
  width: 26px; height: 26px;
  background: var(--kraft);
  border-radius: 6px;
  transform: rotate(12deg);
}
.deco-b {
  bottom: -16px; left: -18px;
  width: 20px; height: 20px;
  background: var(--rose);
  border-radius: 6px;
  transform: rotate(-14deg);
}
.deco-c {
  top: 40%; left: -30px;
  width: 14px; height: 14px;
  background: var(--teal);
  border-radius: 4px;
  transform: rotate(24deg);
}

/* ---------- Forms ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  width: 100%;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-text);
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--line-13);
  background: var(--offwhite);
  color: var(--ink);
  outline: none;
  transition: border-color var(--transition);
}
.waitlist-form input::placeholder { color: var(--ink-muted); opacity: 1; }
.waitlist-form input:focus { border-color: var(--terracotta); }
.waitlist-form input[aria-invalid="true"] { border-color: var(--rose); }

.waitlist-form button[disabled] {
  opacity: 0.65;
  cursor: progress;
}

.waitlist-form-dark {
  max-width: 460px;
}
.waitlist-form-dark input {
  border-color: var(--cream-20);
  background: var(--input-dark);
  color: var(--cream);
}
.waitlist-form-dark input::placeholder { color: var(--cream-62); opacity: 1; }
.waitlist-form-dark input:focus { border-color: var(--kraft); }

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--cream);
  padding: 14px 20px;
  border-radius: 16px;
  max-width: 440px;
  font-weight: 500;
}
.form-success[hidden] { display: none; }

.form-error {
  font-size: 14px;
  color: var(--rose);
  font-weight: 500;
}
.form-error-dark { color: var(--kraft-light); }
.form-error[hidden] { display: none; }

/* ---------- Trust chips ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 64px;
}

.chip {
  background: var(--offwhite);
  border: 1px solid var(--line-8);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- Bands ---------- */
.band-teal { background: var(--teal); }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); }

.how-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}
.how-inner h2 { color: var(--cream); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-well {
  background: var(--white);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-well img { max-height: 100%; object-fit: contain; width: var(--well-scale, auto); }

.image-well-plain {
  background: transparent;
  border-radius: 0;
}
.image-well-plain img { max-width: 94%; }

.step-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--terracotta);
}
.step-text h3 { font-weight: 700; font-size: 22px; }
.step-text p { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.gallery-head .section-head { max-width: 560px; }

.gallery-note {
  max-width: 380px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.comp-card {
  background: var(--white);
  border: 1px solid var(--line-6);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comp-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.comp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}
.comp-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* ---------- Sustainability CTA ---------- */
.cta-wrap { padding-bottom: var(--rhythm); }

.cta-panel {
  background: var(--rose);
  border-radius: 32px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cta-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-text h2 {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  color: var(--cream);
}
.cta-text p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--cream-92);
  max-width: 56ch;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq .section-head h2 { font-size: clamp(32px, 3.6vw, 44px); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line-6);
  border-radius: 18px;
  overflow: hidden;
}

.faq-heading { margin: 0; font: inherit; }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}

.faq-icon {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--terracotta);
  flex-shrink: 0;
}

.faq-panel p {
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-panel[hidden] { display: none; }

.privacy {
  max-width: 840px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.privacy .section-head h1 {
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.05;
}

.privacy-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.privacy-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.privacy-mail {
  color: var(--terracotta);
  font-weight: 700;
}

.page-privacy {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-privacy main { flex: 1; }

/* ---------- Not found ---------- */
.page-not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.page-not-found main {
  flex: 1;
  display: flex;
  align-items: center;
}
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 72px var(--gutter);
  text-align: center;
}
.not-found-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(72px, 12vw, 140px);
  line-height: 1;
  color: var(--terracotta);
}
.not-found h1 {
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 40px);
}
.not-found-body {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.not-found .btn { margin-top: 12px; }

/* ---------- Team ---------- */
.team-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}

.team-card-wrap { position: relative; }

.team-card {
  background: var(--white);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-team);
}

.team-photo {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  object-fit: cover;
}

.team-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand);
  border: 2px dashed var(--line-13);
  font-size: 64px;
  opacity: 0.55;
}

.team-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 8px 6px;
}
.team-role {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}
.team-role-sub { font-size: 14.5px; color: var(--ink-muted); }

.deco-team {
  top: -16px; right: -16px;
  width: 22px; height: 22px;
  background: var(--kraft);
  border-radius: 6px;
  transform: rotate(-12deg);
}

.team-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.team-text h2 {
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.06;
}
.team-text p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}

/* ---------- Waitlist ---------- */
.waitlist-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  padding-top: var(--rhythm);
  padding-bottom: var(--rhythm);
}
.waitlist-inner h2 {
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  color: var(--cream);
  max-width: 20ch;
}
.waitlist-inner .form-success { padding: 14px 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--cream-8);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--cream);
}

.footer-legal {
  font-size: 14px;
  color: var(--cream-60);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.footer-links a { color: var(--cream); }
.footer-links a:hover { color: var(--kraft); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  /* Unwrapping .hero-copy puts the render between the pitch and the field. */
  .hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .hero-copy { display: contents; }
  .deco-c { display: none; }
  .hero-intro { order: 1; }
  .hero-visual { order: 2; }
  .hero-signup { order: 3; }
  .team-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-panel {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .btn-cream { justify-self: flex-start; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --rhythm: 56px; }

  /* These three sat under the 44px touch target. */
  .nav-toggle { display: flex; width: 44px; height: 44px; }
  .lang-trigger { min-height: 44px; }
  .logo { min-height: 44px; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line-8);
    font-size: 17px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 12px 0; }

  .header-inner { position: relative; }
  .header-actions { gap: 12px; }
  .nav-cta { padding: 9px 16px; font-size: 14px; }

  .footer-links a { padding: 12px 0; }

  .faq { padding-bottom: 64px; }
  .trust { padding-bottom: 40px; }
  .cta-panel { padding: 32px; border-radius: 24px; }
}

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

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
  .waitlist-form button { width: 100%; }
  .logo-word { font-size: 20px; }
  .header-actions { gap: 10px; }
  /* Too narrow for a locale-proof header CTA — it moves into the menu panel. */
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; align-self: flex-start; margin-top: 8px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
