/* Chrome web volontairement hors crème/clay de l’app :
   les captures gardent l’orange, la page reste en pierre / encre / sauge. */
:root {
  --bg: #f1efeb;
  --bg-band: #e6e3dc;
  --mist: #d8d4cb;
  --primary: #24352f;
  --primary-hover: #1a2622;
  --secondary: #e6e3dc;
  --secondary-hover: #d8d4cb;
  --accent: #3f6f5c;
  --accent-hover: #2e5747;
  --ink: #1a1815;
  --ink-soft: #5a564e;
  --paper: #ffffff;
  --on-primary: #f7f6f3;
  --border: #d0ccc3;
  --shadow: 0 14px 40px rgba(28, 32, 28, 0.12);
  --radius: 22px;
  --radius-lg: 28px;
  --max: 1080px;
  --font: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

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

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--secondary);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, #dfe8e3, transparent 55%),
    radial-gradient(ellipse 70% 50% at 5% 90%, #e8e5deaa, transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-copy .lede {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.phone {
  justify-self: end;
  width: min(100%, 290px);
  aspect-ratio: 9 / 19.2;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #3a2f27, #191410);
  box-shadow: var(--shadow);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 18px;
  border-radius: 999px;
  background: #191410;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  background: var(--mist);
}

/* ——— Sections ——— */
section {
  padding: 4rem 0;
}

.section-kicker {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1.15;
}

.section-lede {
  margin: 0 0 2rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-weight: 600;
}

.band {
  background: var(--bg-band);
}

/* ——— Steps ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  padding: 0.25rem;
}

.step-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  aspect-ratio: 9 / 16;
}

.step-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
  font-weight: 800;
}

/* ——— Features ——— */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.feature {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  aspect-ratio: 9 / 16;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.gallery figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ——— CTA band ——— */
.cta {
  text-align: center;
  padding: 4rem 0;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--mist) 45%, transparent)),
    var(--bg);
}

.cta h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0 auto 1.5rem;
  max-width: 40ch;
  color: var(--ink-soft);
  font-weight: 600;
}

.cta .btn-row {
  justify-content: center;
}

/* ——— Legal / support pages ——— */
.page-hero {
  padding: 2.5rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 50ch;
}

.prose {
  padding-bottom: 4rem;
  max-width: 68ch;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-weight: 600;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-band);
  color: var(--ink);
  font-weight: 800;
}

.prose td {
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 600;
}

.support-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 36rem;
}

.support-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.support-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ——— Invitation /j/<code> ——— */
.join-main {
  min-height: calc(100vh - 12rem);
  padding: 2.5rem 0 4rem;
}

.join-wrap {
  max-width: 34rem;
}

.join-root {
  margin-top: 0.75rem;
}

.join-card {
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.join-card h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.15;
}

.join-card p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.join-kicker {
  margin: 0 0 0.45rem !important;
  color: var(--accent) !important;
  font-weight: 800 !important;
  font-size: 0.95rem;
}

.join-loading {
  margin: 0;
}

.join-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.join-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-band);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}

.join-meta {
  font-size: 0.95rem;
}

.join-meta strong {
  letter-spacing: 0.08em;
  color: var(--ink);
}

.join-actions {
  margin: 1.25rem 0 0.75rem;
}

.join-stores {
  margin-top: 0.35rem;
}

.join-copied {
  margin: 0 0 0.85rem !important;
  color: var(--accent) !important;
  font-size: 0.9rem;
}

.join-note {
  margin: 1.1rem 0 0 !important;
  font-size: 0.88rem;
}

.join-form {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 1.5rem;
}

.join-form label {
  font-weight: 800;
  font-size: 0.9rem;
}

.join-form input {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.join-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  background: color-mix(in srgb, var(--bg-band) 70%, var(--bg));
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

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

.footer-meta {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lede {
    margin-inline: auto;
  }

  .btn-row {
    justify-content: center;
  }

  .phone {
    justify-self: center;
    width: min(100%, 250px);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0.5rem;
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.35rem;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .prose table {
    display: block;
    overflow-x: auto;
  }
}

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

  .btn:hover {
    transform: none;
  }
}
