/* Kalory Help: marketing site.
   Tokens follow the app (lib/theme/app_theme.dart, app_palette.dart):
   Readex Pro, warm paper and ink neutrals, sky blue + orange, flat sheets. */

/* ===== Font: Readex Pro (SIL OFL 1.1, fonts/ReadexPro-OFL.txt) ===== */
@font-face { font-family: 'Readex Pro'; font-weight: 400; font-display: swap; src: url('../fonts/ReadexPro-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 500; font-display: swap; src: url('../fonts/ReadexPro-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 600; font-display: swap; src: url('../fonts/ReadexPro-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Readex Pro'; font-weight: 700; font-display: swap; src: url('../fonts/ReadexPro-Bold.ttf') format('truetype'); }
/* Handwriting for notes and captions: Caveat (Latin) and Aref Ruqaa (Arabic), both SIL OFL 1.1 */
@font-face { font-family: 'Hand'; font-weight: 400 700; font-display: swap; src: url('../fonts/Caveat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Hand'; font-weight: 400 700; font-display: swap; src: url('../fonts/ArefRuqaa-Bold-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }

/* ===== Tokens ===== */
:root {
  --paper: #F6F4EF;
  --sheet: #FFFFFF;
  --inset: #F0EDE6;
  --ink: #2B2A27;
  --muted: #6E6A62;
  --outline: #D2CDC2;
  --hairline: #E7E3DA;

  --sky: #4BA3C7;
  --sky-deep: #296F8C;
  --sky-light: #7BC8E2;
  --sky-pale: #D6EEF7;
  --orange: #E8833A;
  --orange-deep: #A8521B;
  --orange-pale: #FDE8D4;
  --coral: #E85D75;
  --coral-pale: #FDE2E7;
  --coral-ink: #B83A55;
  --green: #5AAF6E;
  --green-ink: #2F7A43;
  --green-pale: #D4EDDA;
  --gold: #E6A817;

  --protein: #C8577A;
  --carbs: #D9A441;
  --fat: #5E7FB8;

  --brand: var(--sky-deep);      /* text, links, primary buttons */
  --brand-pale: var(--sky-pale);
  --on-brand: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(43, 42, 39, 0.05), 0 8px 24px rgba(43, 42, 39, 0.06);
  --hand: 'Hand', 'Segoe Print', 'Bradley Hand', cursive;
  --note: #FFF3B8;
  /* Paper grain: a small pre-rendered tile, cheap to paint */
  --grain: url('../assets/photos/grain.png');
  --font: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Arabic', sans-serif;
  --container: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1C1B19; --sheet: #262522; --inset: #302E2B;
    --ink: #F2EFE9; --muted: #A8A298; --outline: #4A4640; --hairline: #34322E;
    --sky-pale: #1F3A46; --orange-pale: #3D2A1B; --coral-pale: #3E2228; --green-pale: #1E3324;
    --brand: var(--sky-light); --brand-pale: #1F3A46; --on-brand: #10252E;
    --green-ink: #8FD3A0; --orange-deep: #F0A76A; --coral-ink: #F08C9E;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1C1B19; --sheet: #262522; --inset: #302E2B;
  --ink: #F2EFE9; --muted: #A8A298; --outline: #4A4640; --hairline: #34322E;
  --sky-pale: #1F3A46; --orange-pale: #3D2A1B; --coral-pale: #3E2228; --green-pale: #1E3324;
  --brand: var(--sky-light); --brand-pale: #1F3A46; --on-brand: #10252E;
  --green-ink: #8FD3A0; --orange-deep: #F0A76A; --coral-ink: #F08C9E;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grain) var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
.hand { font-family: var(--hand); font-weight: 600; letter-spacing: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
bdi { white-space: nowrap; } /* Latin terms in Arabic text stay whole */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 200; background: var(--sheet); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.section-alt { background: var(--inset); }
.section-title { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-title h2 { font-size: clamp(28px, 4vw, 40px); }
.section-title p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px; padding: 5px 12px;
  border-radius: 999px; background: var(--brand-pale); color: var(--brand);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.eyebrow.soon { background: var(--orange-pale); color: var(--orange-deep); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: color-mix(in srgb, var(--brand) 88%, var(--ink)); }
.btn-outline { border-color: var(--outline); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-store { background: var(--ink); color: var(--paper); }
.btn-store:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paper)); }
.btn-store svg { width: 20px; height: 20px; flex: none; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; }
.btn-store span { text-align: start; line-height: 1.15; }

/* ===== Navbar ===== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.navbar.scrolled { border-bottom-color: var(--hairline); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 19px; font-weight: 600; }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a:not(.btn) { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 16px; }
.nav-links > a:not(.btn):hover { color: var(--ink); background: var(--inset); text-decoration: none; }
.nav-links > a.active { color: var(--ink); background: var(--inset); }
.nav-links .btn { min-height: 40px; padding: 8px 18px; font-size: 15px; margin-inline-start: 8px; }
.theme-toggle, .lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px; margin-inline-start: 4px;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--sheet); color: var(--ink); font: 500 15px var(--font); cursor: pointer;
}
.lang-toggle:hover { text-decoration: none; border-color: var(--outline); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.hamburger { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 0; background: none; cursor: pointer; }
.hamburger span { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  --shade: 20, 16, 12;
  position: relative; isolation: isolate; overflow: hidden; padding: 96px 0 120px; color: #FBF8F2; background: #3A2E24;
  view-timeline: --hero;
}
/* Photo on its own layer (taller than the hero so it can drift for parallax), shading above it */
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before {
  inset: -12% 0; z-index: -2;
  background: url('../assets/photos/table-1200.webp') center 40% / cover no-repeat;
  background: image-set(url('../assets/photos/table-1200.webp') 1x, url('../assets/photos/table-1800.webp') 2x) center 40% / cover no-repeat;
}
.hero::after {
  background:
    linear-gradient(90deg, rgba(var(--shade), 0.86) 0%, rgba(var(--shade), 0.62) 42%, rgba(var(--shade), 0.12) 72%, rgba(var(--shade), 0) 100%),
    linear-gradient(180deg, rgba(var(--shade), 0.25), rgba(var(--shade), 0) 30%);
}
[dir="rtl"] .hero::after {
  background:
    linear-gradient(270deg, rgba(var(--shade), 0.86) 0%, rgba(var(--shade), 0.62) 42%, rgba(var(--shade), 0.12) 72%, rgba(var(--shade), 0) 100%),
    linear-gradient(180deg, rgba(var(--shade), 0.25), rgba(var(--shade), 0) 30%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.14); color: #FBF8F2; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -0.035em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
:lang(ar) .hero h1 { letter-spacing: 0; }
.hero h1 em { font-style: normal; color: #9FD8EC; }
.scribble { position: relative; display: inline-block; }
.scribble svg { position: absolute; inset-inline: -2%; bottom: -0.12em; width: 104%; height: 0.32em; overflow: visible; }
.scribble path { fill: none; stroke: #F2A35E; stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 260; stroke-dashoffset: 0; }
.js .scribble path { stroke-dashoffset: 260; animation: draw 0.9s 0.5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-top: 22px; max-width: 540px; color: rgba(251, 248, 242, 0.88); font-size: 19px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn-store { background: #FBF8F2; color: #1F1B16; }
.hero .btn-store:hover { background: #fff; }
.hero .btn-outline { border-color: rgba(251, 248, 242, 0.5); color: #FBF8F2; }
.hero .btn-outline:hover { border-color: #FBF8F2; background: rgba(255, 255, 255, 0.08); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: rgba(251, 248, 242, 0.85); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: #9BE0AC; flex: none; }
.hero-visual { position: relative; }
.hero .phone { transform: rotate(4deg); box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4), 18px 30px 50px -10px rgba(20, 14, 8, 0.55), 4px 6px 12px rgba(20, 14, 8, 0.3); color: var(--ink); }
[dir="rtl"] .hero .phone { transform: rotate(-4deg); }
.note {
  position: absolute; z-index: 2; top: 36%; inset-inline-start: -64px; width: 168px; padding: 16px 14px 14px;
  background: var(--note); color: #3B3326; box-shadow: 2px 6px 14px rgba(20, 14, 8, 0.35);
  font: 600 22px/1.15 var(--hand); transform: rotate(-6deg);
}
:lang(ar) .note { font-size: 20px; line-height: 1.5; transform: rotate(6deg); }
.note::before { content: ''; position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; margin-left: -32px; background: rgba(255, 255, 255, 0.55); transform: rotate(3deg); }
.note svg { position: absolute; bottom: -40px; inset-inline-end: -26px; width: 50px; height: 42px; fill: none; stroke: #F2A35E; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .note svg { transform: scaleX(-1); }

/* ===== Real food polaroids ===== */
.real-food { padding-bottom: 72px; }
.polaroids { display: flex; justify-content: center; gap: 18px; margin: 0; padding: 8px 0 0; list-style: none; }
.polaroids li {
  flex: 0 1 220px; padding: 10px 10px 0; background: var(--sheet); border: 1px solid var(--hairline);
  box-shadow: 0 2px 4px rgba(43, 42, 39, 0.06), 0 12px 28px rgba(43, 42, 39, 0.1);
  position: relative; will-change: transform; transition: transform 0.2s ease-out;
}
.polaroids li:nth-child(odd) { --tilt: -3deg; }
.polaroids li:nth-child(even) { --tilt: 2.5deg; margin-top: 18px; }
.polaroids li:nth-child(3) { --tilt: -1deg; }
.polaroids li { transform: rotate(var(--tilt)); }
@media (hover: hover) {
  .polaroids li:hover { transform: rotate(0) translateY(-6px) scale(1.03); z-index: 1; }
}
.polaroids img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.polaroids span { display: block; padding: 8px 4px 12px; text-align: center; font: 600 23px/1.2 var(--hand); color: var(--ink); }
:lang(ar) .polaroids span { font-size: 20px; line-height: 1.6; padding-bottom: 6px; }

/* Phone mockup, drawn with the app's own components (iPhone proportions: 71.5 x 146.7 mm) */
.phone {
  position: relative; display: flex; width: min(300px, 100%); aspect-ratio: 71.5 / 146.7; margin: 0 auto; padding: 10px;
  border-radius: 50px; background: #1A1917;
  box-shadow: 0 0 0 1.5px var(--outline), 0 30px 60px -20px rgba(43, 42, 39, 0.35);
}
.phone-screen {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0;
  border-radius: 40px; background: var(--paper); padding: 44px 12px 10px; overflow: hidden;
}
.phone-screen::before { content: ''; position: absolute; top: 11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #0B0B0A; }
.phone-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; padding: 0 2px; }
.phone-top strong { font-size: 18px; font-weight: 600; }
.phone-top span { color: var(--muted); font-size: 12px; }
.m-tabs { flex: none; display: flex; justify-content: space-around; margin: auto -12px -10px; padding: 8px 6px 14px; border-top: 1px solid var(--hairline); background: var(--sheet); }
.m-tabs span { display: grid; justify-items: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.m-tabs span.on { color: var(--brand); }
.m-tabs svg { width: 20px; height: 20px; }
.m-tabs::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 96px; height: 4px; margin-left: -48px; border-radius: 4px; background: var(--ink); opacity: 0.85; }
.m-card { background: var(--sheet); border: 1px solid var(--hairline); border-radius: 15px; padding: 10px 11px; }
.m-card + .m-card { margin-top: 7px; }
.phone .m-card { flex: none; }
.m-budget { display: flex; align-items: center; gap: 14px; }
.ring {
  --p: 64; width: 78px; height: 78px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--sky) calc(var(--p) * 1%), var(--inset) 0);
  display: grid; place-items: center;
}
.ring::before { content: ''; grid-area: 1 / 1; width: 61px; height: 61px; border-radius: 50%; background: var(--sheet); }
.ring b { grid-area: 1 / 1; z-index: 1; font-size: 20px; font-weight: 600; line-height: 1; text-align: center; }
.ring b small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.m-budget dl { margin: 0; flex: 1; display: grid; gap: 6px; font-size: 13px; }
.m-budget dl div { display: flex; justify-content: space-between; }
.m-budget dt { color: var(--muted); }
.m-budget dd { margin: 0; font-weight: 600; }
.macro { font-size: 12px; }
.macro + .macro { margin-top: 6px; }
.macro-head { display: flex; justify-content: space-between; margin-bottom: 4px; }
.macro-head span:last-child { color: var(--muted); }
.bar { height: 7px; border-radius: 99px; background: var(--inset); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--c, var(--sky)); }
.m-meal { display: flex; align-items: center; gap: 9px; font-size: 12.5px; line-height: 1.35; }
.m-meal + .m-meal { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--hairline); }
.m-meal .dot { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 15px; background: var(--inset); }
.m-meal div { flex: 1; min-width: 0; }
.m-meal b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-meal small { color: var(--muted); }
.m-meal em { font-style: normal; font-weight: 600; }
.m-water { display: flex; align-items: center; gap: 8px; font-size: 12.5px; white-space: nowrap; }
.m-water .glasses { display: flex; gap: 4px; margin-inline-start: auto; }
.m-water .glasses i { width: 12px; height: 18px; border-radius: 3px 3px 5px 5px; background: var(--sky-pale); }
.m-water .glasses i.on { background: var(--sky); }

/* ===== Feature grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 26px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--sheet); }
.feature-card h3 { margin-top: 18px; font-size: 20px; }
.feature-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-pale); color: var(--brand); }
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.orange { background: var(--orange-pale); color: var(--orange-deep); }
.icon-tile.coral { background: var(--coral-pale); color: var(--coral-ink); }
.icon-tile.green { background: var(--green-pale); color: var(--green-ink); }

/* ===== Coming soon ===== */
.soon { background: var(--inset); }
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon-card {
  position: relative; padding: 26px; border-radius: var(--radius-lg);
  background: var(--sheet); border: 1px dashed var(--outline);
}
.soon-card h3 { margin-top: 18px; font-size: 20px; }
.soon-card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.soon-card ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 15px; }
.soon-card li { position: relative; padding-inline-start: 20px; margin-top: 6px; }
.soon-card li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.soon-tag {
  position: absolute; top: 22px; inset-inline-end: 22px;
  padding: 3px 10px; border-radius: 999px; background: var(--orange-pale); color: var(--orange-deep);
  font-size: 12px; font-weight: 600;
}
.soon-card.pro { border-style: solid; border-color: color-mix(in srgb, var(--gold) 55%, var(--hairline)); }
.soon-card.pro .soon-tag { background: color-mix(in srgb, var(--gold) 22%, var(--sheet)); color: var(--ink); }
.soon-note { margin-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }

/* ===== Privacy band ===== */
.privacy-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 32px; background: var(--sheet); border: 1px solid var(--hairline);
}
.privacy-band h2 { font-size: clamp(28px, 4vw, 38px); }
.privacy-band h2 .hand { display: inline-block; color: var(--orange-deep); font-size: 1.15em; transform: rotate(-4deg); }
.privacy-band p { margin-top: 14px; color: var(--muted); }
.privacy-band .btn { margin-top: 24px; }
.promise-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.promise-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--inset); }
.promise-list li .icon-tile { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.promise-list li .icon-tile svg { width: 20px; height: 20px; }
.promise-list b { display: block; font-weight: 600; }
.promise-list span { color: var(--muted); font-size: 15px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--hairline); background: var(--sheet); }
.step-number { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-pale); color: var(--orange-deep); font: 700 30px/1 var(--hand); }
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ===== CTA ===== */
.cta-section .container { text-align: center; }
.cta-card {
  padding: 80px 32px; border-radius: 32px; color: #fff;
  background: linear-gradient(rgba(20, 16, 12, 0.62), rgba(20, 16, 12, 0.72)), #3A2E24 url('../assets/photos/brunch-1600.webp') center / cover no-repeat;
}
.cta-card img { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 18px; }
.cta-card h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-card p { margin: 12px auto 0; max-width: 520px; opacity: 0.9; font-size: 18px; }
.cta-card .btn { margin-top: 28px; background: #fff; color: #10252E; }
.cta-card .btn:hover { background: #F6F4EF; }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  --shade: 20, 16, 12;
  position: relative; isolation: isolate; overflow: hidden; padding: 104px 0 96px; text-align: center; color: #FBF8F2; background: #3A2E24;
  view-timeline: --page-hero;
}
/* Same photo-and-shade construction as the home hero, one photo per page */
.page-hero::before, .page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero::before { inset: -15% 0; z-index: -2; background: center / cover no-repeat; }
.page-hero::after { background: radial-gradient(ellipse at center, rgba(var(--shade), 0.72) 0%, rgba(var(--shade), 0.55) 60%, rgba(var(--shade), 0.4) 100%); }
.ph-market::before { background-image: url('../assets/photos/market-1600.webp'); }
.ph-kitchen::before { background-image: url('../assets/photos/kitchen-1600.webp'); background-position: center 35%; }
.ph-greens::before { background-image: url('../assets/photos/greens-1600.webp'); }
.ph-board::before { background-image: url('../assets/photos/board-1600.webp'); }
.ph-board::after { background: radial-gradient(ellipse at center, rgba(var(--shade), 0.78) 0%, rgba(var(--shade), 0.66) 70%, rgba(var(--shade), 0.55) 100%); }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.page-hero p { margin: 14px auto 0; max-width: 620px; color: rgba(251, 248, 242, 0.88); font-size: 19px; }
.page-hero .page-note { display: inline-block; margin-top: 18px; color: #F6B97F; font-size: 30px; line-height: 1.2; transform: rotate(-3deg); }
:lang(ar) .page-hero .page-note { font-size: 28px; line-height: 1.6; transform: rotate(2deg); }
.page-hero + section { padding-top: 72px; }

/* ===== Features page ===== */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h2 { margin-top: 14px; font-size: clamp(26px, 3.6vw, 34px); }
.feature-text > p { margin-top: 12px; color: var(--muted); }
.feature-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F7A43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.visual {
  position: relative; padding: 28px; border-radius: 6px; background: var(--inset);
  box-shadow: 0 2px 4px rgba(43, 42, 39, 0.05), 0 14px 30px rgba(43, 42, 39, 0.08);
  transform: rotate(-1.2deg);
}
.feature-row:nth-child(even) .visual { transform: rotate(1.2deg); }
/* A strip of tape holding each panel to the page */
.visual::before { content: ''; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: color-mix(in srgb, var(--note) 70%, transparent); transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(43, 42, 39, 0.08); }
.visual .m-card + .m-card { margin-top: 12px; }
.score { display: flex; align-items: center; gap: 16px; }
.score .ring { --p: 86; background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--inset) 0); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding-top: 8px; }
.chart i { flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px; background: var(--sky-pale); }
.chart i.today { background: var(--sky); }
.chart-labels { display: flex; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.chart-labels span { flex: 1; text-align: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--hairline); font-size: 14px; }
.chip.on { background: var(--brand-pale); border-color: transparent; color: var(--brand); font-weight: 500; }
.visual-label { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.visual-label.hand { color: var(--orange-deep); font-size: 22px; font-weight: 600; line-height: 1.2; }
:lang(ar) .visual-label.hand { font-size: 19px; line-height: 1.6; }

/* ===== About page ===== */
.about-mission { max-width: 760px; margin: 0 auto; font-size: 19px; }
.about-mission p + p { margin-top: 18px; }
.about-mission p:first-child { font-size: 22px; color: var(--ink); }
.about-mission p:first-child::first-line { font-weight: 500; }
.about-mission p { color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { padding: 26px; border-radius: var(--radius-lg); background: var(--sheet); border: 1px solid var(--hairline); text-align: center; }
.stat-number { font: 700 56px/1 var(--hand); color: var(--orange-deep); }
.stat-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--hairline); overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 0; background: none; color: var(--ink);
  font: 500 17px/1.4 var(--font); text-align: start; cursor: pointer;
}
.faq-toggle { position: relative; width: 14px; height: 14px; flex: none; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute; inset: 6px 0 auto; height: 2px; border-radius: 2px; background: var(--muted); transition: transform 0.2s; }
.faq-toggle::after { transform: rotate(90deg); }
.faq-item.open .faq-toggle::after { transform: rotate(0); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer p { padding: 0 20px 18px; color: var(--muted); }

/* ===== Policy pages (privacy, accessibility) ===== */
.privacy-content { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.privacy-section { padding: 28px; border-radius: var(--radius-lg); background: var(--sheet); border: 1px solid var(--hairline); }
.privacy-section h2 { display: flex; align-items: center; gap: 14px; font-size: 21px; letter-spacing: -0.01em; }
.privacy-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.privacy-icon svg { width: 20px; height: 20px; }
.privacy-section p, .privacy-section li { color: var(--muted); font-size: 16px; }
.privacy-section p { margin-top: 12px; }
.privacy-section ul { margin: 12px 0 0; padding-inline-start: 20px; }
.privacy-section li + li { margin-top: 6px; }
.privacy-section strong { color: var(--ink); font-weight: 600; }

/* ===== Footer ===== */
.footer { margin-top: 32px; padding: 56px 0 32px; border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-col p { margin-top: 12px; max-width: 320px; color: var(--muted); font-size: 15px; }
.footer-col h4 { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.footer-col ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.footer-col a { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 14px; }

/* ===== Motion ===== */
/* Lenis smooth scrolling (js/lenis.min.js) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Scroll-linked motion: progress follows the scroll position, so nothing trails behind it, and
   Chrome runs it off the main thread. Browsers without scroll timelines show the page static. */
@media screen and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero::before { animation: hero-photo linear both; animation-timeline: --hero; animation-range: exit; }
    .hero-copy { animation: hero-copy linear both; animation-timeline: --hero; animation-range: exit 0% exit 80%; }
    .hero-visual { animation: hero-phone linear both; animation-timeline: --hero; animation-range: exit; }
    .page-hero::before { animation: hero-photo linear both; animation-timeline: --page-hero; animation-range: exit; }
    .page-hero .container { animation: hero-copy linear both; animation-timeline: --page-hero; animation-range: exit 0% exit 80%; }
    .visual { animation: pin linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }

    .section-title, .feature-card, .soon-card, .step, .privacy-band, .cta-card, .feature-row,
    .stat-card, .faq-item, .soon-note {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    .feature-grid > :nth-child(3n+2), .soon-grid > :nth-child(3n+2), .steps > :nth-child(2), .stats-grid > :nth-child(even) { animation-range: entry 8% entry 78%; }
    .feature-grid > :nth-child(3n), .soon-grid > :nth-child(3n), .steps > :nth-child(3) { animation-range: entry 16% entry 86%; }

    .polaroids { --dir: 1; }
    [dir="rtl"] .polaroids { --dir: -1; }
    .polaroids li { animation: deal linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .polaroids li:nth-child(1) { --from: 240px; }
    .polaroids li:nth-child(2) { --from: 120px; }
    .polaroids li:nth-child(3) { --from: 0px; }
    .polaroids li:nth-child(4) { --from: -120px; }
    .polaroids li:nth-child(5) { --from: -240px; }
    .privacy-band h2 .hand { animation: stamp linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  }
}
@keyframes hero-photo { to { translate: 0 22%; } }
@keyframes hero-copy { to { translate: 0 -70px; opacity: 0; } }
@keyframes hero-phone { to { translate: 0 -150px; } }
@keyframes rise { from { opacity: 0; translate: 0 48px; } }
@keyframes deal { from { opacity: 0; translate: calc(var(--from) * var(--dir)) 80px; scale: 0.92; } }
@keyframes pin { from { opacity: 0; translate: 0 60px; rotate: 4deg; } }
@keyframes stamp { from { opacity: 0; scale: 1.6; } }
@media (prefers-reduced-motion: reduce) {
  html:not(.lenis) { scroll-behavior: auto; }
  .js .scribble path { animation: none; stroke-dashoffset: 0; }
  .polaroids li, .polaroids li:hover { transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container, .feature-row, .privacy-band { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .hero::after, [dir="rtl"] .hero::after { background: linear-gradient(180deg, rgba(var(--shade), 0.78) 0%, rgba(var(--shade), 0.6) 55%, rgba(var(--shade), 0.35) 100%); }
  .note { inset-inline-start: 0; top: 30%; }
  .polaroids { flex-wrap: wrap; gap: 14px; }
  .polaroids li { flex-basis: 30%; }
  .hero .container { gap: 48px; }
  .feature-row.reverse .feature-text { order: 0; }
  .feature-row { gap: 32px; }
  .feature-grid, .soon-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .privacy-band { padding: 32px; }
}
@media (max-width: 820px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 100%; inset-inline: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 20px 20px; background: var(--paper); border-bottom: 1px solid var(--hairline);
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; }
  .theme-toggle, .lang-toggle { margin: 4px 0 0; width: 100%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .feature-grid, .soon-grid, .steps { grid-template-columns: 1fr; }
  .hero-buttons .btn { width: 100%; }
  .note { position: relative; top: auto; inset-inline-start: auto; width: 190px; margin: 0 0 30px 12px; font-size: 21px; }
  .note svg { bottom: -36px; inset-inline-end: 6px; }
  .polaroids li { flex-basis: 44%; }
  .polaroids li:nth-child(5) { display: none; }
  .privacy-band, .cta-card { padding: 28px 20px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .privacy-section { padding: 22px; }
  .privacy-section h2 { font-size: 19px; }
}
