/* ============================================================
   Better Belly — editorial marketing site
   Ivory linen canvas · Fraunces serif · Karla body · coral accent
   ============================================================ */

:root {
  --ivory: #f5f2e8;
  --cream: #fbf9f1;
  --parchment: #ede9da;
  --sand: #e0dbc8;
  --forest: #24422f;
  --forest-deep: #1b3325;
  --forest-ink: #2e4a39;
  --sage: #a9bfa4;
  --sage-soft: #e3ead7;
  --coral: #e07856;
  --coral-deep: #cf6544;
  --ink: #2f342c;
  --muted: #6e7365;
  --low-bg: #dde8d1;
  --low-ink: #3f5c41;
  --mod-bg: #f3e4c2;
  --mod-ink: #7d5f24;
  --high-bg: #f3d5c8;
  --high-ink: #93412a;
  --dep-bg: #e7e2f0;
  --dep-ink: #5a4d7a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Segoe UI", sans-serif;
  --shadow-soft: 0 24px 60px -24px rgba(36, 66, 47, 0.28);
  --shadow-phone: 0 32px 70px -20px rgba(27, 51, 37, 0.42);
  --radius-card: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* subtle linen grain */
  background-image:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(169, 191, 164, 0.16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--sage-soft); color: var(--forest-deep); }

/* ---------- type ---------- */

.h-serif,
h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-variation-settings: "opsz" 90;
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
h2.h-serif { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }

h1 em, h2 em {
  font-style: italic;
  font-weight: 480;
  color: var(--forest-ink);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.1rem;
}

.eyebrow-light { color: var(--sage); }

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 34em;
  margin-top: 1.4rem;
}

/* ---------- buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(224, 120, 86, 0.8);
}
.btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }

.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-deep); transform: translateY(-2px); }

.btn-ghost {
  color: var(--forest);
  border: 1.5px solid var(--sand);
  background: rgba(251, 249, 241, 0.6);
}
.btn-ghost:hover { border-color: var(--sage); transform: translateY(-2px); }

.btn-small { padding: 0.6rem 1.3rem; font-size: 0.92rem; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--forest);
  color: var(--cream);
  border-radius: 14px;
  padding: 0.65rem 1.4rem 0.7rem 1.15rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.appstore-badge:hover { background: var(--forest-deep); transform: translateY(-2px); }
.appstore-badge svg { width: 30px; height: 30px; }
.appstore-badge small { display: block; font-size: 0.68rem; letter-spacing: 0.04em; opacity: 0.85; line-height: 1.1; }
.appstore-badge strong { font-size: 1.25rem; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }

/* ---------- status pills ---------- */

.pill {
  display: inline-block;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  vertical-align: middle;
}
.pill.low { background: var(--low-bg); color: var(--low-ink); }
.pill.mod { background: var(--mod-bg); color: var(--mod-ink); }
.pill.high { background: var(--high-bg); color: var(--high-ink); }
.pill.dep { background: var(--dep-bg); color: var(--dep-ink); }

/* ---------- topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 242, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.topbar.scrolled {
  border-bottom-color: var(--sand);
  box-shadow: 0 10px 30px -20px rgba(36, 66, 47, 0.25);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(27, 51, 37, 0.4); }
.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.topbar-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--forest-ink);
  border: 1.5px solid var(--sand);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(251, 249, 241, 0.6);
  cursor: pointer;
}
.lang-switch svg { width: 18px; height: 18px; flex: none; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest-ink);
  cursor: pointer;
  padding-inline-end: 0.2rem;
}
.lang-switch select:focus { outline: none; }
.lang-switch:focus-within { border-color: var(--sage); }

.topnav { display: flex; gap: 1.8rem; }
.topnav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  background: var(--coral);
  transition: right 0.28s ease;
}
.topnav a:hover::after { right: 0; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; }

.hero-branch {
  position: absolute;
  top: -40px;
  left: -60px;
  width: 420px;
  opacity: 0.14;
  transform: rotate(160deg);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 6.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 2.3rem;
}

.hero-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-visual { position: relative; }

.arch {
  border-radius: 260px 260px var(--radius-card) var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--cream);
}
.arch img { width: 100%; height: 560px; object-fit: cover; object-position: 62% 40%; }

/* ---------- phones ---------- */

.phone {
  border-radius: 44px;
  border: 9px solid #232620;
  background: #232620;
  overflow: hidden;
  box-shadow: var(--shadow-phone);
}
.phone img { border-radius: 34px; }

.phone-hero {
  position: absolute;
  width: min(240px, 42%);
  left: -8%;
  bottom: -3rem;
  transform: rotate(-4deg);
}

.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-12px); }
}

/* ---------- marquee band ---------- */

.marquee-band {
  padding: 5.5rem 0 4.5rem;
  background: var(--parchment);
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
}

.marquee-heading {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 2rem;
}
.marquee-heading p { color: var(--muted); margin-top: 1rem; }
.marquee-heading .pill { margin: 0 0.15rem; }

.marquee { overflow: hidden; position: relative; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--parchment), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--parchment), transparent); }

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.food-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.45rem 1.1rem 0.45rem 0.45rem;
  white-space: nowrap;
  box-shadow: 0 8px 18px -12px rgba(36, 66, 47, 0.25);
}
.food-chip img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.food-chip span { font-weight: 700; font-size: 0.95rem; color: var(--forest-ink); }

/* ---------- pillars ---------- */

.pillars { max-width: 1200px; margin: 0 auto; padding: 6.5rem 2rem 3rem; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
}

.pillar-card {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  padding: 1.8rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.pillar-icon { width: 54px; height: 54px; margin-bottom: 1rem; }
.pillar-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.pillar-card p { font-size: 0.95rem; color: var(--muted); }

/* ---------- features ---------- */

.feature { padding: 5.5rem 0; }
.feature-alt { background: var(--cream); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }

.feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.feature-copy p { color: var(--muted); margin-top: 1.2rem; max-width: 34em; }
.feature-copy .btn { margin-top: 2rem; }

.check-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.8rem; }
.check-list li { padding-left: 1.9rem; position: relative; color: var(--muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.32em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233f5c41' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list strong { color: var(--ink); }

.soft-quote {
  margin-top: 1.8rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--sage);
  background: var(--sage-soft);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest-ink);
}

/* phone compositions */

.feature-visual { position: relative; min-height: 480px; }

.phone-back,
.phone-front { position: absolute; width: min(250px, 52%); }
.phone-back { left: 2%; top: 0; transform: rotate(-5deg); z-index: 1; }
.phone-front { right: 4%; top: 3.5rem; transform: rotate(3.5deg); z-index: 2; }

.visual-photo { min-height: 520px; }
.photo-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 8px solid var(--cream);
  height: 460px;
}
.feature-alt .photo-card { border-color: var(--ivory); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

.phone-over {
  position: absolute;
  width: min(215px, 40%);
  left: -1.5rem;
  bottom: -2.5rem;
  transform: rotate(-4deg);
}
.phone-over-right { left: auto; right: -1.2rem; transform: rotate(4deg); }

.phone-solo {
  width: min(280px, 62%);
  margin: 0 auto;
  transform: rotate(2deg);
}

/* journal extras */

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-ink);
  background: var(--sage-soft);
  border: 1px solid transparent;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}

.stat-row {
  display: flex;
  gap: 2.6rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 560;
  color: var(--forest);
  line-height: 1;
}
.stat-num em { font-style: normal; font-size: 1.3rem; }
.stat-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* insights quote chips */

.quote-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.quote-chip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--forest);
  background: var(--ivory);
  border: 1px solid var(--sand);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
}
.feature:not(.feature-alt) .quote-chip { background: var(--cream); }

/* ---------- recipe gallery ---------- */

.recipe-gallery {
  max-width: 1200px;
  margin: 4.5rem auto 0;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.recipe-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--sand);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.recipe-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.5s ease; }
.recipe-card:hover img { transform: scale(1.045); }
.recipe-card figcaption { padding: 1rem 1.15rem 1.15rem; }
.recipe-card figcaption span {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--forest);
  line-height: 1.25;
}
.recipe-card figcaption small { display: block; margin-top: 0.45rem; color: var(--muted); font-size: 0.8rem; }
.recipe-card .pill { font-size: 0.66rem; }

/* ---------- phases ---------- */

.phases { max-width: 1200px; margin: 0 auto; padding: 6rem 2rem; }

.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.phase-card {
  text-align: center;
  padding: 2.2rem 1.6rem;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--cream), rgba(251, 249, 241, 0.4));
  border: 1px solid var(--sand);
}
.phase-card img { width: 58px; height: 58px; margin: 0 auto 1.1rem; }
.phase-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}
.phase-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- privacy ---------- */

.privacy {
  background: var(--forest-deep);
  background-image: radial-gradient(ellipse 70% 90% at 85% 10%, rgba(169, 191, 164, 0.14), transparent 60%);
  color: var(--cream);
  padding: 6.5rem 0;
}

.privacy-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.privacy .h-serif { color: var(--cream); }
.privacy-copy > p { color: rgba(251, 249, 241, 0.75); margin-top: 1.2rem; max-width: 32em; }

.privacy-list { list-style: none; margin-top: 2.2rem; display: grid; gap: 1.4rem; }
.privacy-list li { display: flex; gap: 1.1rem; align-items: flex-start; }
.privacy-list img {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream);
  padding: 6px;
}
.privacy-list strong { display: block; font-size: 1.02rem; }
.privacy-list span { font-size: 0.92rem; color: rgba(251, 249, 241, 0.68); }

.privacy-quote {
  border: 1px solid rgba(251, 249, 241, 0.25);
  border-radius: var(--radius-card);
  padding: 2.4rem 2.2rem;
  background: rgba(251, 249, 241, 0.05);
}
.privacy-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--cream);
}
.privacy-quote cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- cta ---------- */

.cta { padding: 6.5rem 2rem; }

.cta-card {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 34px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% -20%, var(--sage-soft), transparent 65%);
  pointer-events: none;
}
.cta-icon {
  width: 84px; height: 84px;
  border-radius: 20px;
  margin: 0 auto 1.6rem;
  box-shadow: 0 14px 30px -12px rgba(27, 51, 37, 0.45);
  position: relative;
}
.cta-card p { color: var(--muted); margin: 0.9rem 0 1.8rem; position: relative; }
.cta-note { font-size: 0.82rem !important; margin-top: 1.4rem !important; }

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--sand);
  background: var(--parchment);
  padding: 3.5rem 2rem 3rem;
}
.footer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  margin-bottom: 1.6rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--muted); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.6rem;
}
.footer-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--forest-ink);
  text-decoration: none;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 46em;
  margin: 0 auto 1.4rem;
}
.footer-legal { font-size: 0.85rem; color: var(--muted); }
.footer-legal a { color: var(--forest-ink); }
.footer-langnote { margin-top: 0.8rem; font-size: 0.78rem; color: var(--muted); opacity: 0.8; }

.btn-ghost-light {
  margin-top: 2rem;
  color: var(--cream);
  border-color: rgba(251, 249, 241, 0.35);
  background: rgba(251, 249, 241, 0.06);
}
.btn-ghost-light:hover { border-color: var(--sage); }

/* ---------- RTL (Arabic) ---------- */

[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.9rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .soft-quote {
  border-left: none;
  border-right: 3px solid var(--sage);
  border-radius: 14px 0 0 14px;
}
[dir="rtl"] .hero-branch { left: auto; right: -60px; transform: rotate(-160deg) scaleX(-1); }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

/* ---------- legal pages ---------- */

.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.legal-wrap h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}
.legal-updated {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2.2rem;
}
.legal-notice {
  background: var(--sage-soft);
  border: 1px solid var(--sand);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  font-size: 0.95rem;
  color: var(--forest-ink);
  margin-bottom: 2.5rem;
}
.legal-notice.warn {
  background: var(--mod-bg);
  color: var(--mod-ink);
}
.legal-wrap h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--forest);
  margin: 2.8rem 0 0.9rem;
  scroll-margin-top: 90px;
}
.legal-wrap h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--forest-ink);
  margin: 1.9rem 0 0.6rem;
}
.legal-wrap p, .legal-wrap li { color: var(--ink); font-size: 0.99rem; }
.legal-wrap p { margin-bottom: 0.9rem; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 1rem 1.4rem; }
.legal-wrap li { margin-bottom: 0.45rem; }
.legal-wrap a { color: var(--forest-ink); }
.legal-wrap strong { color: var(--forest-deep); }
.legal-toc {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.7rem;
  margin-bottom: 1.5rem;
}
.legal-toc ol { margin: 0.4rem 0 0 1.2rem; columns: 2; column-gap: 2.5rem; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-caps {
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
@media (max-width: 700px) {
  .legal-toc ol { columns: 1; }
}

/* ---------- reveal animations ---------- */

/* reveal styles only apply when JS is running (html.js set inline in <head>),
   so content is never hidden for no-JS visitors */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .marquee-track { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 3.5rem; gap: 3rem; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .arch img { height: 420px; }
  .phone-hero { left: -4%; width: 200px; }
  .feature-inner, .privacy-inner { grid-template-columns: 1fr; gap: 3rem; }
  .feature-visual { min-height: 460px; max-width: 520px; margin: 0 auto; width: 100%; }
  .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}

@media (max-width: 480px) {
  .lang-switch svg { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-inner, .pillars, .phases, .feature-inner, .privacy-inner { padding-left: 1.3rem; padding-right: 1.3rem; }
  .arch { border-radius: 160px 160px 18px 18px; }
  .arch img { height: 330px; }
  .phone-hero { width: 150px; bottom: -2rem; }
  .feature-visual { min-height: 400px; }
  .phone-back, .phone-front { width: 55%; }
  .phone-front { top: 2.5rem; }
  .phone-over { width: 46%; bottom: -1.8rem; left: -0.4rem; }
  .phone-over-right { left: auto; right: 0; }
  .photo-card { height: 330px; }
  .recipe-gallery { grid-template-columns: 1fr; }
  .cta-card { padding: 3rem 1.6rem; }
  .stat-row { gap: 1.6rem; }
}
