/* Rituelle website: same palette and fonts as the app (constants/Colors.ts, constants/Typography.ts) */

@font-face {
  font-family: 'Libre Baskerville';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/libre-baskerville-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
}

:root {
  --sage: #a8c3a0;
  --sage-soft: #e3ece0;
  --brown: #8a6558;
  --brown-light: #9d7869;
  --brown-dark: #4f3e3e;
  --taupe: #b59f91;
  --terracotta: #d59f87;
  --terracotta-soft: #f6e4da;
  --grey-brown: #6f6963;
  --beige: #f4efeb;
  --ivory: #fff7f0;
  --stone: #f5f3f0;
  --border: #e6dcd4;

  /* Roles: what changes between the light and the dark theme */
  --surface: #ffffff;
  --on-brown: #ffffff;
  --brown-strong: #4f3e3e;
  --header-bg: rgba(255, 247, 240, 0.88);
  --legal-text: #5c4b49;
  --icon-chip: transparent;
  --check-bg: var(--sage-soft);
  /* Brown text on tinted backgrounds (sage, terracotta): darker to keep a 4.5:1 contrast */
  --brown-on-tint: #6b4c42;

  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(138, 101, 88, 0.12);
  --shadow-sm: 0 4px 14px rgba(138, 101, 88, 0.1);
  --container: 1120px;
  --gutter: 20px;

  color-scheme: light;
}

/* Dark theme: chosen with the button in the header, remembered by the browser */
:root[data-theme='dark'] {
  color-scheme: dark;
  --sage: #8fb087;
  --sage-soft: #263326;
  --brown: #e0b4a2;
  --brown-light: #d4a593;
  --brown-dark: #f4ebe5;
  --terracotta-soft: #3d2b26;
  --grey-brown: #cdbfb6;
  --beige: #352b29;
  --ivory: #1c1615;
  --stone: #231c1b;
  --border: #4a3c39;

  --surface: #2a2221;
  --on-brown: #2a1f1d;
  --brown-strong: #f4ebe5;
  --header-bg: rgba(28, 22, 21, 0.88);
  --legal-text: #ddd1c9;
  --icon-chip: #fff7f0;
  --check-bg: var(--sage);
  --brown-on-tint: #e0b4a2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown-dark);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brown);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brown-dark);
}

:focus-visible {
  outline: 3px solid var(--brown-strong);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--brown-dark);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

/* Text read by screen readers only */
.sr-only {
  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: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brown);
  color: var(--on-brown);
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  color: var(--grey-brown);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.section {
  padding: clamp(64px, 10vw, 112px) 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(36px, 6vw, 56px);
  text-align: center;
}

.section-head .lead {
  margin-top: 16px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brown);
  color: var(--on-brown);
  font: 600 0.95rem/1.2 var(--sans);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--brown-strong);
  color: var(--on-brown);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
  box-shadow: inset 0 0 0 1.5px var(--brown);
}

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

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Store buttons: preview of the final look, to be replaced by the official badges */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px 8px 14px;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #a6a6a6;
  line-height: 1.1;
}

.store svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
}

.store strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Until the app is out: a neutral mention, the official badges may only link to a live store page */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  color: var(--brown-dark);
  font-weight: 600;
}

.soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-soft);
}

@media (max-width: 420px) {
  .soon-pill {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

.store-badge img {
  width: auto;
  height: 48px;
}

.stores-note {
  margin-top: 14px;
  color: var(--grey-brown);
  font-size: 0.88rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.brand img {
  width: 128px;
  height: auto;
}

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

.nav a:not(.btn) {
  color: var(--brown-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--brown);
}

.nav .btn {
  min-height: 42px;
  padding: 10px 20px;
}

@media (max-width: 820px) {
  .nav a:not(.btn) {
    display: none;
  }
  .brand img {
    width: 112px;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 104px);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta-soft) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero h1 em {
  color: var(--brown);
  font-style: italic;
}

.hero .lead {
  max-width: 520px;
  margin: 22px 0 32px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
}

/* Arch shape: the "rituel" frame used for the photos */
.arch {
  overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow);
}

.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Hero photo: square crop so the bowl and the glass sit in the lower part of the frame */
.hero-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.3;
}

.float-card strong {
  display: block;
  font-size: 1rem;
}

.float-card span {
  color: var(--grey-brown);
}

.float-card img {
  width: 30px;
  height: 30px;
}

.float-card--streak {
  right: -24px;
  bottom: -22px;
}

.float-card--transition {
  left: -28px;
  top: 10%;
}

/* Gentle float when the page opens, two cycles in under 5 s then still (RGAA 13.8 / WCAG 2.2.2:
   a movement that stops by itself within 5 s needs no pause button) */
.float-card {
  animation: float 2.3s ease-in-out 2;
}

.float-card--transition {
  animation-delay: 0.3s;
}

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

.badge-dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--brown-dark);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero .stores {
    justify-content: center;
  }
  .hero-visual {
    width: min(100%, 360px);
  }
  .float-card--streak {
    right: -8px;
  }
  .float-card--transition {
    left: -8px;
  }
}

/* Reasons for stopping the pill: photo in an organic shape, reasons as an editorial list */

.reasons {
  overflow: hidden;
  background: var(--surface);
}

.reasons-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.reasons-media {
  position: relative;
  width: min(100%, 480px);
  justify-self: center;
}

/* Soft blob behind the photo */
.reasons-media::before {
  content: '';
  position: absolute;
  inset: 6% 10% -6% -14%;
  border-radius: 46% 54% 42% 58% / 58% 44% 56% 42%;
  background: var(--terracotta-soft);
}

.reasons-photo {
  position: relative;
  overflow: hidden;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  box-shadow: var(--shadow);
}

.reasons-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 62%;
}

/* Fine sage line drawn across the photo edge */
.reasons-line {
  position: absolute;
  z-index: 1;
  top: -4%;
  right: -10%;
  width: 70%;
  height: 108%;
  pointer-events: none;
}

.reasons-line path {
  stroke: var(--sage);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.reasons-content .lead {
  margin-top: 16px;
}

.reasons-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.reason h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
}

.reason p {
  margin-top: 8px;
  color: var(--grey-brown);
  font-size: 0.95rem;
}

.reasons-outro {
  max-width: 760px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.reasons-promise {
  color: var(--grey-brown);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}

.reasons-promise strong {
  color: var(--brown);
}

.reasons-note {
  margin-top: 16px;
  color: var(--grey-brown);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .reasons-layout {
    grid-template-columns: 1fr;
  }
  .reasons-media {
    width: min(82%, 400px);
  }
  .reasons-photo img {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 600px) {
  .reasons-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Stages: before / around / after stopping the pill */

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

.stage {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.stage-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--beige);
  color: var(--brown);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
}

.stage:nth-child(2) .stage-tag {
  background: var(--terracotta-soft);
}

.stage:nth-child(3) .stage-tag {
  background: var(--sage-soft);
}

.stage p {
  margin-top: 10px;
  color: var(--grey-brown);
}

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

/* Features */

.features {
  background: var(--surface);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.feature + .feature {
  margin-top: clamp(64px, 10vw, 112px);
}

.feature:nth-child(even) .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.feature-copy .lead {
  margin-top: 16px;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--check-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F3E3E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* Phone showing a real screen of the app */
.phone {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 48px;
  background: #4f3e3e;
  box-shadow: 0 30px 60px rgba(79, 62, 62, 0.22), inset 0 0 0 2px #6b5656;
}

.phone picture {
  display: block;
  overflow: hidden;
  border-radius: 38px;
  background: var(--ivory);
}

.phone img {
  width: 100%;
}

/* Soft halo behind each phone, in the brand colors */
.feature-media::before {
  content: '';
  position: absolute;
  inset: 8% -6%;
  z-index: 0;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: var(--terracotta-soft);
}

.feature:nth-child(2) .feature-media::before {
  background: var(--sage-soft);
}

.feature:nth-child(3) .feature-media::before {
  background: var(--beige);
}

.feature-media .phone {
  z-index: 1;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature:nth-child(even) .feature-media {
    order: 0;
  }
  .feature-media {
    width: min(100%, 340px);
  }
  .phone {
    width: min(100%, 260px);
  }
}

/* Goals */

.goals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  text-align: center;
}

/* The round chip is on the wrapper, so the drawing itself is never cropped */
.goal-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--icon-chip);
}

.goal-icon img {
  width: 44px;
  height: 44px;
}

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

/* Privacy band */

.privacy {
  position: relative;
  overflow: hidden;
  color: var(--ivory);
  background: #4f3e3e url('img/splash-background.webp') center / cover no-repeat;
}

.privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(79, 62, 62, 0.8), rgba(79, 62, 62, 0.9));
}

.privacy .container {
  position: relative;
}

.privacy h2,
.privacy h3 {
  color: white;
}

.privacy .eyebrow {
  color: #f6e4da;
}

.privacy .lead {
  color: rgba(255, 247, 240, 0.92);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.privacy-item {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.privacy-item svg {
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  stroke: #f6e4da;
}

.privacy-item p {
  margin-top: 8px;
  color: rgba(255, 247, 240, 0.92);
  font-size: 0.95rem;
}

.privacy-more {
  margin-top: 36px;
  text-align: center;
}

.privacy-more a {
  color: white;
  font-weight: 600;
}

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

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

/* Yeléma */

.yelema {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

.yelema .arch img {
  aspect-ratio: 1 / 1;
}

.yelema .lead {
  margin: 16px 0 28px;
}

@media (max-width: 760px) {
  .yelema {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .yelema .arch {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

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

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background: var(--beige)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A6558' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--grey-brown);
}

/* Final call to action */

.cta {
  text-align: center;
}

.cta .lead {
  max-width: 560px;
  margin: 16px auto 32px;
}

.cta .stores {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  background: var(--stone);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

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

.footer-brand img {
  width: 120px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  color: var(--grey-brown);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--brown-dark);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brown);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--grey-brown);
  font-size: 0.85rem;
}

/* Legal pages (CGU, confidentialité) */

.legal {
  padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 104px);
}

.legal .container {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
}

.legal-meta {
  margin: 14px 0 0;
  color: var(--grey-brown);
  font-size: 0.92rem;
}

.legal-summary {
  margin: 36px 0 8px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--sage-soft);
}

.legal-summary ul {
  margin: 12px 0 0;
}

.legal h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  scroll-margin-top: 96px;
}

.legal p,
.legal li {
  color: var(--legal-text);
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 14px;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--brown-dark);
}

.legal code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--beige);
  font-size: 0.88em;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.legal table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--beige);
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--stone);
  color: var(--brown-dark);
  font-weight: 700;
}

.legal tr:last-child td {
  border-bottom: 0;
}

/* Information still to fill in before going live: highlighted so it can't be missed */
.todo {
  padding: 1px 4px;
  border-radius: 4px;
  background: #ffe9a8;
  color: #6b4e00;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-weight: 600;
  text-decoration: none;
}

/* 404 */

.not-found {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 64px 0;
  text-align: center;
}

.not-found .lead {
  margin: 16px 0 28px;
}

/* FAQ "+" icon drawn in light brown */
[data-theme='dark'] .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E0B4A2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}

/* Highlighted information still to fill in */
[data-theme='dark'] .todo {
  background: #5c4a12;
  color: #ffe9a8;
}

.stage-tag,
.yelema .eyebrow,
.legal-summary a {
  color: var(--brown-on-tint);
}

.yelema .lead {
  color: var(--legal-text);
}

.yelema .btn-ghost {
  color: var(--brown-on-tint);
  box-shadow: inset 0 0 0 1.5px var(--brown-on-tint);
}

.yelema .btn-ghost:hover {
  background: var(--brown-on-tint);
  color: var(--on-brown);
}

.privacy :focus-visible {
  outline-color: #fff7f0;
}

/* Light / dark switch */
.theme-toggle {
  display: inline-grid;
  margin-left: 8px;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--brown-dark);
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--brown);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun,
[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

/* Logo: brown in the light theme, ivory in the dark theme */
.logo-dark,
[data-theme='dark'] .logo-light {
  display: none;
}

[data-theme='dark'] .logo-dark {
  display: block;
}

@media (max-width: 480px) {
  .nav .btn {
    display: none;
  }
}

/* Pages without navigation (404): the switch still sits on the right */
.brand + .theme-toggle {
  margin-left: auto;
}

/* Hero without store buttons: the short note follows the text closely */
.hero .lead + .stores-note {
  margin-top: -16px;
}
