/* ==========================================================================
   DateChef — datechefapp.com
   One stylesheet for all 16 language pages. No JavaScript on the site: menus
   use the Popover API, the FAQ uses <details>, motion uses CSS (scroll-driven
   animations where supported). The index.html CSP allows 'self' styles only,
   so nothing here may depend on inline style attributes.
   ========================================================================== */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  color-scheme: light dark;

  --font-sans: system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --font-display: "Bricolage", var(--font-sans);
  --font-accent: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --bg: #fff8f5;
  --bg-2: #fff1ee;
  --surface: #ffffff;
  --surface-2: #fff6f4;
  --ink: #1d1317;
  --ink-2: #54464c;
  --ink-3: #85747b;
  --line: rgb(29 19 23 / 0.08);
  --line-2: rgb(29 19 23 / 0.14);

  --rose: #f43f5e;
  --rose-2: #e11d48;
  --rose-3: #be123c;
  --brand: #d60847;
  --rose-soft: #ffe4e6;
  --rose-wash: #fff1f2;
  --gold: #f59e0b;
  --gold-soft: #fef3c7;
  --violet: #8b5cf6;
  --violet-soft: #ede9fe;
  --green: #10b981;
  --green-soft: #d1fae5;
  --sky: #0ea5e9;

  --night: #13070d;
  --night-2: #1f0c16;
  --on-night: #fbeff3;
  --on-night-2: #d9c2cb;

  --shadow-1: 0 1px 2px rgb(60 12 30 / 0.05), 0 6px 20px -6px rgb(60 12 30 / 0.12);
  --shadow-2: 0 40px 80px -30px rgb(90 10 40 / 0.45), 0 18px 36px -18px rgb(90 10 40 / 0.35);
  --shadow-3: 0 60px 120px -40px rgb(120 10 50 / 0.55);

  --radius: 24px;
  --radius-lg: 32px;
  --gutter: 20px;
  --container: 1200px;
  --header-h: 68px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1280px) {
  :root { --gutter: 40px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120a0e;
    --bg-2: #180d13;
    --surface: #1d1217;
    --surface-2: #23161c;
    --ink: #fbf0f3;
    --ink-2: #d6c1c8;
    --ink-3: #a4909a;
    --line: rgb(255 228 238 / 0.09);
    --line-2: rgb(255 228 238 / 0.16);
    --rose-soft: #3b1422;
    --rose-wash: #2a0f19;
    --gold-soft: #3b2a0c;
    --violet-soft: #2a1f47;
    --green-soft: #0f3326;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -8px rgb(0 0 0 / 0.5);
    --shadow-2: 0 40px 80px -30px rgb(0 0 0 / 0.75), 0 18px 36px -18px rgb(0 0 0 / 0.6);
    --shadow-3: 0 60px 120px -40px rgb(0 0 0 / 0.8);
  }
}

/* Scripts the Latin display fonts do not cover fall back to the platform's own faces. */
:lang(ru) {
  --font-display: var(--font-sans);
  --font-accent: Georgia, "Times New Roman", serif;
}
:lang(ar) {
  --font-sans: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-accent: var(--font-sans);
}
:lang(hi) {
  --font-sans: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Mangal, system-ui, sans-serif;
  --font-display: var(--font-sans);
  --font-accent: var(--font-sans);
}
:lang(ja) {
  --font-sans: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo,
    "Noto Sans JP", sans-serif;
  --font-display: var(--font-sans);
  --font-accent: var(--font-sans);
}
:lang(zh) {
  --font-sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-display: var(--font-sans);
  --font-accent: var(--font-sans);
}
:lang(ko) {
  --font-sans: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-display: var(--font-sans);
  --font-accent: var(--font-sans);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; overflow-wrap: break-word; }
p, li, dd { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--rose); color: #fff; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* Accent words inside headings: serif italic in Latin scripts, colour + weight elsewhere. */
.accent, h1 em, h2 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--rose-2);
  font-size: 1.08em;
  line-height: 0;
}
:lang(ar) h1 em, :lang(ar) h2 em,
:lang(hi) h1 em, :lang(hi) h2 em,
:lang(ja) h1 em, :lang(ja) h2 em,
:lang(zh) h1 em, :lang(zh) h2 em,
:lang(ko) h1 em, :lang(ko) h2 em {
  font-style: normal;
  font-weight: inherit;
  font-size: 1em;
  background: linear-gradient(120deg, var(--rose), var(--rose-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .accent, h1 em, h2 em { color: #ff7a93; }
}

/* ---------- buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #fb7185 0%, var(--rose-2) 55%, var(--rose-3) 100%);
  box-shadow: 0 10px 24px -10px rgb(225 29 72 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgb(225 29 72 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.25); transform: translateY(-1px); }
.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: var(--surface-2); }

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding-inline: 16px 22px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .store-text { display: grid; line-height: 1.1; text-align: start; }
.store-badge .store-small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.9; }
.store-badge .store-big { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.store-badge--apple,
.store-badge--google {
  color: #fff;
  background: #0a0a0c;
  box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.55), inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.store-badge--apple:hover,
.store-badge--google:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgb(0 0 0 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.2); }
@media (prefers-color-scheme: dark) {
  .store-badge--apple,
  .store-badge--google { background: #fff; color: #0a0a0c; box-shadow: 0 12px 28px -14px rgb(0 0 0 / 0.7); }
}
@media (max-width: 479px) {
  .store-row { gap: 10px; }
  .store-badge { gap: 8px; height: 52px; padding-inline: 12px 15px; border-radius: 14px; }
  .store-badge svg { width: 22px; height: 22px; }
  .store-badge .store-small { font-size: 10px; }
  .store-badge .store-big { font-size: 17px; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
}
@supports (animation-timeline: scroll()) {
  .site-header {
    animation: header-shade linear both;
    animation-timeline: scroll(root);
    animation-range: 0 140px;
  }
}
@keyframes header-shade {
  to {
    border-bottom-color: var(--line);
    box-shadow: 0 12px 32px -24px rgb(40 0 20 / 0.35);
  }
}
@supports not (animation-timeline: scroll()) {
  .site-header { border-bottom-color: var(--line); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Bricolage", var(--font-sans);
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 34px; height: 34px; }
.nav-links { display: none; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.nav-cta { display: none; }
@media (min-width: 600px) {
  .nav-cta { display: inline-flex; }
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--line); color: var(--ink); }

@media (min-width: 1080px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline-start: 28px;
  }
  .nav-actions { margin-inline-start: auto; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  min-width: 42px;
  padding-inline: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn .lang-code { letter-spacing: 0.04em; }
.lang-btn .chev { width: 14px; height: 14px; opacity: 0.6; }
.menu-btn { padding-inline: 0; width: 42px; }

/* popovers (language picker + mobile menu) — Popover API, no script */
.popover {
  position: fixed;
  inset: auto;
  inset-block-start: calc(var(--header-h) + 6px);
  inset-inline-end: max(12px, calc((100vw - var(--container)) / 2 - 4px));
  margin: 0;
  padding: 10px;
  width: min(400px, calc(100vw - 24px));
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px rgb(40 0 20 / 0.35);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete;
}
.popover:popover-open { opacity: 1; transform: none; }
@starting-style {
  .popover:popover-open { opacity: 0; transform: translateY(-6px) scale(0.98); }
}
.popover::backdrop { background: rgb(20 5 12 / 0.12); }
@supports not selector(:popover-open) {
  .popover { display: none; }
}
.popover-title {
  padding: 6px 10px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lang-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.lang-list a:hover { background: var(--line); }
.lang-list a[aria-current="page"] {
  background: var(--rose-soft);
  color: var(--rose-3);
  font-weight: 650;
}
.lang-list .lang-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-3); }
.lang-list a[aria-current="page"] .lang-tag { color: inherit; }
@media (prefers-color-scheme: dark) {
  .lang-list a[aria-current="page"] { color: #ffb3c1; }
}

.menu-sheet { width: min(360px, calc(100vw - 24px)); padding: 12px; }
.menu-sheet nav { display: grid; gap: 2px; }
.menu-sheet nav a {
  padding: 14px 14px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.menu-sheet nav a:hover { background: var(--line); }
.menu-sheet .btn { width: 100%; margin-top: 10px; min-height: 52px; font-size: 16px; }
.menu-close {
  display: flex;
  justify-content: flex-end;
}

/* ---------- phone mockup ---------- */
.phone {
  --w: 280px;
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
}
.phone-frame {
  position: relative;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background:
    linear-gradient(150deg, #3a3a42 0%, #111115 18%, #050507 50%, #16161b 82%, #2c2c33 100%);
  box-shadow:
    inset 0 0 0 calc(var(--w) * 0.004) rgb(255 255 255 / 0.18),
    inset 0 0 0 calc(var(--w) * 0.012) #0b0b0e,
    var(--shadow-2);
}
.phone-frame::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.056);
  left: 50%;
  width: calc(var(--w) * 0.29);
  height: calc(var(--w) * 0.084);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background: #f7f7f8;
  aspect-ratio: 720 / 1565;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-screen::after {
  /* faint glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0) 32%);
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px);
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 78% 28%, rgb(244 63 94 / 0.22), transparent 70%),
    radial-gradient(30% 36% at 96% 70%, rgb(139 92 246 / 0.16), transparent 70%),
    radial-gradient(34% 40% at 8% 88%, rgb(245 158 11 / 0.16), transparent 70%),
    radial-gradient(40% 30% at 30% 0%, rgb(251 113 133 / 0.12), transparent 70%);
}
.hero::after {
  /* subtle dotted grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(120 20 60 / 0.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@media (prefers-color-scheme: dark) {
  .hero::after { background-image: radial-gradient(rgb(255 200 220 / 0.07) 1px, transparent 1.2px); }
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 480px) {
  .eyebrow { font-size: 13px; }
}
.eyebrow-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #fb7185, var(--rose-2));
}
.eyebrow-dot svg { width: 14px; height: 14px; }
.hero h1 {
  margin-block: 22px 22px;
  font-family: var(--font-display);
  font-weight: 720;
  font-size: clamp(44px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-variation-settings: "opsz" 96;
}
.hero-lead {
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
}
.hero .store-row { margin-top: 32px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--green); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}
.hero-visual .phone { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero-visual .phone--main { --w: clamp(230px, 27vw, 318px); z-index: 3; }
.hero-visual .phone--side {
  --w: clamp(170px, 20vw, 250px);
  position: absolute;
  top: 50%;
  z-index: 1;
  opacity: 0.98;
}
.hero-visual .phone--left { inset-inline-start: 50%; transform: translate(-128%, -46%) rotate(-9deg); }
.hero-visual .phone--right { inset-inline-start: 50%; transform: translate(28%, -52%) rotate(9deg); }
[dir="rtl"] .hero-visual .phone--left { transform: translate(128%, -46%) rotate(9deg); }
[dir="rtl"] .hero-visual .phone--right { transform: translate(-28%, -52%) rotate(-9deg); }
.hero-visual .phone--side .phone-frame { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), var(--shadow-3); }
.hero-visual .phone--side .phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgb(255 248 245 / 0) 40%, rgb(255 248 245 / 0.18));
}

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px -18px rgb(80 10 40 / 0.45);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
  animation: bob 7s ease-in-out infinite;
}
.float-chip .chip-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 18px;
}
.float-chip small { display: block; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.chip--streak { top: 8%; inset-inline-start: 2%; }
.chip--streak .chip-icon { background: #ffedd5; }
.chip--points { bottom: 12%; inset-inline-end: 0; animation-delay: -2.5s; }
.chip--points .chip-icon { background: var(--gold-soft); }
.chip--split { bottom: 4%; inset-inline-start: 6%; animation-delay: -4.5s; }
.chip--split .chip-icon { background: var(--violet-soft); }
@media (prefers-color-scheme: dark) {
  .chip--streak .chip-icon { background: #3d220b; }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1023.98px) {
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero .store-row, .hero-meta { justify-content: center; }
}
@media (max-width: 640px) {
  .hero-visual { min-height: 440px; }
  .hero-visual .phone--main { --w: 214px; }
  .hero-visual .phone--side { --w: 158px; }
  .hero-visual .phone--left { transform: translate(-112%, -44%) rotate(-9deg); }
  .hero-visual .phone--right { transform: translate(12%, -52%) rotate(9deg); }
  [dir="rtl"] .hero-visual .phone--left { transform: translate(112%, -44%) rotate(9deg); }
  [dir="rtl"] .hero-visual .phone--right { transform: translate(-12%, -52%) rotate(-9deg); }
  .float-chip { font-size: 13px; padding: 8px 12px 8px 8px; }
  .float-chip .chip-icon { width: 30px; height: 30px; font-size: 16px; }
  .chip--streak { top: 2%; inset-inline-start: 0; }
  .chip--points { bottom: 8%; }
  .chip--split { display: none; }
}

/* ---------- marquee ---------- */
.marquee-band {
  padding-block: 22px 26px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.marquee-label {
  margin-bottom: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 10px; }
.marquee-track {
  display: flex;
  flex: none;
  gap: 10px;
  padding-inline-end: 10px;
  animation: marquee 70s linear infinite;
}
.marquee--reverse .marquee-track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(100%); } }
.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}
.theme-pill .emo { font-size: 18px; line-height: 1; }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 11vw, 150px); position: relative; }
.section-head { max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-2);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.section-head--center .kicker::after {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.h2 {
  margin-block: 16px 18px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 720;
  font-variation-settings: "opsz" 80;
}
.section-lead {
  max-width: 38em;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
}
.section-head--center .section-lead { margin-inline: auto; }
@media (prefers-color-scheme: dark) {
  .kicker { color: #ff8aa0; }
}

/* Korean wraps between words, Japanese between phrases (where the browser supports it) */
:lang(ko) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* CJK / Arabic / Devanagari: no negative tracking, a little more leading */
:lang(ja) .hero h1, :lang(zh) .hero h1, :lang(ko) .hero h1,
:lang(ja) .h2, :lang(zh) .h2, :lang(ko) .h2 {
  letter-spacing: -0.01em;
  line-height: 1.18;
}
:lang(ar) *, :lang(hi) .kicker, :lang(hi) .hero h1, :lang(hi) .h2 { letter-spacing: 0 !important; }
:lang(ar) .hero h1, :lang(ar) .h2, :lang(hi) .hero h1, :lang(hi) .h2 { line-height: 1.25; }
:lang(ar) .kicker, :lang(ar) .marquee-label, :lang(ar) .popover-title { text-transform: none; }

/* ---------- how it works ---------- */
.how { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.how-grid {
  display: grid;
  gap: 24px;
  margin-top: clamp(40px, 6vw, 72px);
}
.how-sticky { display: none; }
.how-steps { display: grid; gap: 20px; }
.how-step {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.how-step .phone { --w: min(250px, 70vw); margin-inline: auto; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-family: "Bricolage", var(--font-sans);
  font-weight: 750;
  font-size: 16px;
  color: var(--rose-3);
  background: var(--rose-soft);
}
.how-step h3 {
  margin-block: 14px 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.how-step p { color: var(--ink-2); font-size: 17px; }
@media (prefers-color-scheme: dark) {
  .step-num { color: #ffb3c1; }
}
@media (max-width: 719.98px) {
  .how-steps {
    display: flex;
    gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .how-steps::-webkit-scrollbar { display: none; }
  .how-step {
    flex: 0 0 min(84%, 330px);
    align-content: start;
    scroll-snap-align: center;
    padding: 20px 20px 24px;
  }
  .how-step .phone { --w: min(230px, 62vw); }
  .how-step h3 { font-size: 24px; }
  .how-step p { font-size: 16px; }
}
@media (min-width: 720px) and (max-width: 1023.98px) {
  .how-step { grid-template-columns: auto 1fr; gap: 32px; padding: 28px 32px; }
  .how-step .phone { --w: 220px; order: -1; }
}
/* Desktop without scroll-driven animations (Safari 18 and older, Firefox): wide zigzag rows.
   Browsers with view timelines replace this with the sticky phone below. */
@media (min-width: 1024px) {
  .how-steps { gap: 24px; }
  .how-step {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 88px);
    padding: clamp(32px, 3.4vw, 52px) clamp(36px, 4.4vw, 72px);
  }
  .how-step .phone { --w: clamp(250px, 21vw, 300px); }
  .how-step:nth-child(even) .phone { order: 1; }
  .how-step h3 { font-size: clamp(32px, 3vw, 46px); }
  .how-step p { font-size: 19px; max-width: 28em; }
}

/* Sticky phone with scroll-linked screens (Chromium, Safari 26+). Others keep the list above. */
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  @media (min-width: 1024px) {
    .how-grid {
      grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
      gap: 72px;
      timeline-scope: --st1, --st2, --st3, --st4, --st5;
    }
    .how-sticky {
      display: grid;
      place-items: center;
      position: sticky;
      top: calc(var(--header-h) + 24px);
      height: calc(100vh - var(--header-h) - 48px);
      align-self: start;
    }
    .how-sticky .phone { --w: clamp(250px, calc((100vh - var(--header-h) - 120px) * 0.44), 330px); }
    .how-sticky .phone-screen img {
      position: absolute;
      inset: 0;
      opacity: 0;
      animation: how-mid linear both;
    }
    .how-sticky .phone-screen img:nth-child(1) { animation-name: how-first; animation-timeline: --st1; }
    .how-sticky .phone-screen img:nth-child(2) { animation-timeline: --st2; }
    .how-sticky .phone-screen img:nth-child(3) { animation-timeline: --st3; }
    .how-sticky .phone-screen img:nth-child(4) { animation-timeline: --st4; }
    .how-sticky .phone-screen img:nth-child(5) { animation-name: how-last; animation-timeline: --st5; }
    .how-sticky .glow {
      position: absolute;
      inset: 10% 5%;
      z-index: -1;
      border-radius: 50%;
      background: radial-gradient(closest-side, rgb(244 63 94 / 0.28), transparent);
      filter: blur(20px);
    }

    .how-steps { gap: 0; }
    .how-step {
      display: block;
      min-height: 78vh;
      align-content: center;
      padding: 0;
      background: none;
      box-shadow: none;
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      animation: step-focus linear both;
      animation-timeline: view();
    }
    .how-step .phone { display: none; }
    .how-step:nth-child(1) { view-timeline: --st1 block; }
    .how-step:nth-child(2) { view-timeline: --st2 block; }
    .how-step:nth-child(3) { view-timeline: --st3 block; }
    .how-step:nth-child(4) { view-timeline: --st4 block; }
    .how-step:nth-child(5) { view-timeline: --st5 block; }
    .how-step h3 { font-size: clamp(30px, 3vw, 44px); }
    .how-step p { font-size: 19px; max-width: 30em; }
  }
}
@keyframes how-first {
  0%, 70% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: scale(0.985); }
}
@keyframes how-mid {
  0%, 22% { opacity: 0; transform: scale(1.015); }
  30%, 70% { opacity: 1; transform: none; }
  78%, 100% { opacity: 0; transform: scale(0.985); }
}
@keyframes how-last {
  0%, 22% { opacity: 0; transform: scale(1.015); }
  30%, 100% { opacity: 1; transform: none; }
}
@keyframes step-focus {
  0%, 20% { opacity: 0.28; }
  34%, 66% { opacity: 1; }
  80%, 100% { opacity: 0.28; }
}

/* ---------- cook together (night band) ---------- */
.together {
  color: var(--on-night);
  background:
    radial-gradient(55% 50% at 85% 10%, rgb(244 63 94 / 0.38), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, rgb(139 92 246 / 0.28), transparent 70%),
    radial-gradient(30% 30% at 40% 60%, rgb(245 158 11 / 0.10), transparent 70%),
    var(--night);
  overflow: clip;
}
.together .kicker { color: #ff9fb2; }
.together .h2 { color: #fff; }
.together .h2 em { color: #ff8aa0; }
.together .section-lead { color: var(--on-night-2); }
.together-grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .together-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 72px; }
}
.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
@media (min-width: 640px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}
.feature-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.09);
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.feature-item:hover { background: rgb(255 255 255 / 0.08); transform: translateY(-2px); }
.feature-item h3 { font-size: 17px; font-weight: 700; color: #fff; }
.feature-item p { font-size: 15px; color: var(--on-night-2); }
.fi-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 20px;
  background: rgb(255 255 255 / 0.08);
}
.together-visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 560px;
}
.together-visual .phone { --w: clamp(220px, 24vw, 290px); }
.together-visual .phone--back {
  position: absolute;
  top: 0;
  inset-inline-start: 50%;
  transform: translateX(-104%) rotate(-6deg);
  opacity: 0.92;
}
.together-visual .phone--front { transform: translateX(34%) translateY(40px) rotate(4deg); }
[dir="rtl"] .together-visual .phone--back { transform: translateX(104%) rotate(6deg); }
[dir="rtl"] .together-visual .phone--front { transform: translateX(-34%) translateY(40px) rotate(-4deg); }
.together-visual .phone-frame { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 50px 90px -30px rgb(0 0 0 / 0.8); }
.sync-pill {
  position: absolute;
  z-index: 5;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  background: rgb(20 8 14 / 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16), 0 20px 40px -16px rgb(0 0 0 / 0.7);
  white-space: nowrap;
}
.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
}
.pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #34d399;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) {
  .together-visual { min-height: 470px; }
  .together-visual .phone { --w: 196px; }
  .together-visual .phone--back { transform: translateX(-92%) rotate(-6deg); }
  .together-visual .phone--front { transform: translateX(24%) translateY(36px) rotate(4deg); }
  [dir="rtl"] .together-visual .phone--back { transform: translateX(92%) rotate(6deg); }
  [dir="rtl"] .together-visual .phone--front { transform: translateX(-24%) translateY(36px) rotate(-4deg); }
}

/* ---------- features bento ---------- */
.bento {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 64px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card {
  grid-column: span 6;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* keeps the nowrap typing line from widening the card */
  gap: 18px;
  align-content: start;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
}
.card h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.card-text { display: grid; gap: 8px; }
.card-text p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 720px) {
  .card--half { grid-column: span 3; }
  .card--third { grid-column: span 3; }
}
@media (min-width: 1024px) {
  .card--third { grid-column: span 2; }
  .card--wide { grid-column: span 4; }
}
.card--tint-rose { background: linear-gradient(160deg, var(--rose-wash), var(--surface) 60%); }
.card--tint-gold { background: linear-gradient(160deg, color-mix(in srgb, var(--gold-soft) 70%, var(--surface)), var(--surface) 65%); }
.card--tint-violet { background: linear-gradient(160deg, color-mix(in srgb, var(--violet-soft) 70%, var(--surface)), var(--surface) 65%); }
.card--dark {
  color: var(--on-night);
  background: radial-gradient(80% 90% at 100% 0%, rgb(244 63 94 / 0.3), transparent 60%), #1f2937;
}

/* mini UI pieces styled after the app */
.ui {
  font-family: var(--font-sans);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.ui-input {
  padding: 16px 18px;
  min-height: 92px;
  font-size: 16px;
  color: var(--ink);
}
.typing {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-inline-end: 2px solid var(--rose);
  vertical-align: bottom;
  animation: typing 5.5s steps(42, end) infinite, caret 0.9s step-end infinite;
}
@keyframes typing {
  0% { max-width: 0; }
  55%, 90% { max-width: 100%; }
  100% { max-width: 0; }
}
@keyframes caret { 50% { border-color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .typing { animation: none; border-inline-end: 0; white-space: normal; }
}
.ui-tips {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffbeb;
  box-shadow: inset 0 0 0 1px #fde68a;
  color: #92400e;
  font-size: 14px;
}
.ui-tips li { display: flex; gap: 8px; }
.ui-tips li::before { content: "💡"; flex: none; }
@media (prefers-color-scheme: dark) {
  .ui-tips { background: #2a2110; box-shadow: inset 0 0 0 1px #5b4410; color: #fcd34d; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
}
.chip .emo { font-size: 16px; line-height: 1; }
.chip--off { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rose); text-decoration-thickness: 2px; }
.chip--on { background: var(--rose-soft); color: var(--rose-3); box-shadow: inset 0 0 0 1px rgb(244 63 94 / 0.35); }
.chip--note { background: #eef2ff; color: #4f46e5; box-shadow: none; }
@media (prefers-color-scheme: dark) {
  .chip--on { color: #ffb3c1; }
  .chip--note { background: #1e1b4b; color: #c7d2fe; }
}

.mood-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mood {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600;
  font-size: 15px;
}
.mood .emo { font-size: 22px; line-height: 1; }
.mood--active { background: var(--rose-wash); color: var(--rose-3); box-shadow: inset 0 0 0 1.5px var(--rose); }
@media (prefers-color-scheme: dark) {
  .mood--active { color: #ffb3c1; }
}

.nutri { padding: 18px; display: grid; gap: 14px; }
.nutri-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.nutri-title .emo { font-size: 16px; }
.nutri-row { display: grid; grid-template-columns: 1fr 1fr; }
.nutri-row > div + div { border-inline-start: 2px solid var(--green); padding-inline-start: 14px; }
.nutri-label { font-size: 11px; letter-spacing: 0.05em; color: var(--ink-3); text-transform: uppercase; }
.nutri-big { font-size: 30px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.nutri-big small {
  display: inline-block; /* a two-word unit (e.g. Arabic) moves down whole instead of splitting */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  margin-inline-start: 2px;
}
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macro { padding: 10px 6px; border-radius: 14px; background: var(--surface-2); text-align: center; }
.macro b { display: block; font-size: 20px; letter-spacing: -0.01em; }
:lang(ar) .nutri-label, :lang(ar) .nutri-title { text-transform: none; }

.stars { display: flex; gap: 6px; color: var(--gold); font-size: 30px; line-height: 1; }
.stars span { animation: star-pop 4s ease-in-out infinite; }
.stars span:nth-child(2) { animation-delay: 0.15s; }
.stars span:nth-child(3) { animation-delay: 0.3s; }
.stars span:nth-child(4) { animation-delay: 0.45s; }
.stars span:nth-child(5) { animation-delay: 0.6s; }
@keyframes star-pop {
  0%, 8% { transform: scale(0.6); opacity: 0.3; }
  18%, 80% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.6); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .stars span { animation: none; }
}
.rating-label { font-weight: 700; color: var(--rose-2); }

.lang-cloud { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.lang-cloud a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
}
.lang-cloud a:hover { box-shadow: inset 0 0 0 1px var(--rose); color: var(--rose-3); }
.lang-cloud a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-3); box-shadow: none; }

.tip-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #fbbf24; }
.tip-text { font-size: 17px; line-height: 1.6; color: #f1f5f9; }
:lang(ar) .tip-label { letter-spacing: 0; }

.card-phones {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: -120px;
  padding-top: 6px;
}
.card-phones .phone { --w: min(210px, 42vw); }
.card-phones .phone + .phone { margin-top: 36px; }

/* ---------- social gallery ---------- */
.social { overflow: clip; }
.gallery {
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  margin-top: clamp(40px, 6vw, 64px);
  padding: 12px max(var(--gutter), calc((100vw - var(--container)) / 2)) 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .shot {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 16px;
  scroll-snap-align: center;
}
.gallery .phone { --w: clamp(208px, 60vw, 236px); }
.gallery figcaption {
  max-width: 220px;
  text-align: center;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.35;
}
.gallery figcaption small { display: block; margin-top: 4px; font-weight: 500; font-size: 13px; color: var(--ink-3); }
@media (min-width: 1240px) {
  .gallery { justify-content: center; overflow: visible; padding-inline: 0; }
  .gallery .shot:nth-child(even) { transform: translateY(44px); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .gallery .shot .phone { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- motivation ---------- */
.motivation { background: linear-gradient(180deg, var(--bg-2), var(--bg)); overflow: clip; }
.moti-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}
@media (min-width: 1024px) {
  .moti-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}
.points { display: grid; gap: 10px; margin-top: 30px; }
.point-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.point-row .pi {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  flex: none;
}
.point-row .pt { display: grid; min-width: 0; line-height: 1.3; }
.point-row .pt b { font-size: 16px; }
.point-row .pt span { font-size: 14px; color: var(--ink-3); }
.point-row .pv {
  margin-inline-start: auto;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.pv--gold { background: #f59e0b; }
.pv--green { background: #10b981; }
.pv--violet { background: #7c3aed; }
.pi--rose { background: var(--rose); color: #fff; }
.pi--sky { background: #dbeafe; }
.pi--violet { background: var(--violet-soft); }
@media (prefers-color-scheme: dark) {
  .pi--sky { background: #172554; }
}
.moti-cards { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 560px) {
  .moti-cards { grid-template-columns: 1fr 1fr; }
}
.mini-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-card h3 { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.mini-card p { font-size: 15px; color: var(--ink-2); }
.moti-visual { display: flex; justify-content: center; gap: 18px; }
.moti-visual .phone { --w: clamp(190px, 22vw, 262px); }
@media (max-width: 479px) {
  /* two phones side by side must fit next to each other on small screens */
  .moti-visual .phone { --w: calc((100vw - 2 * var(--gutter) - 18px) / 2); }
}
.moti-visual .phone:first-child { margin-top: 56px; }

/* ---------- plans ---------- */
.trial {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(22px, 3vw, 30px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 255 255 / 0.22), transparent 60%),
    linear-gradient(120deg, #e11d48, #be123c 45%, #7c2d7a);
  box-shadow: 0 30px 60px -30px rgb(190 18 60 / 0.6);
}
@media (min-width: 820px) {
  .trial { grid-template-columns: auto 1fr auto; gap: 24px; }
}
.trial-gift {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.18);
  font-size: 32px;
}
.trial-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; opacity: 0.85; }
.trial-title { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.trial-text { margin-top: 6px; opacity: 0.92; font-size: 15px; }
.trial .btn { background: #fff; color: var(--rose-3); box-shadow: none; }
:lang(ar) .trial-kicker { letter-spacing: 0; }

.plans {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
@media (min-width: 980px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  padding: 28px 24px 24px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
}
.plan-head { display: flex; align-items: center; gap: 14px; }
.plan-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 24px;
  color: #fff;
}
.plan--free .plan-icon { background: linear-gradient(135deg, #94a3b8, #64748b); }
.plan--plus .plan-icon { background: linear-gradient(135deg, #fb7185, #e11d48); }
.plan--master .plan-icon { background: linear-gradient(135deg, #f59e0b, #b45309); }
.plan-name { font-family: "Bricolage", var(--font-sans); font-size: 24px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.plan-sub { font-size: 14px; color: var(--ink-3); font-weight: 550; }
.plan-spot { font-size: 15px; color: var(--ink-2); }
.plan--master {
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, #f59e0b, #e11d48 60%, #8b5cf6) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 60px -30px rgb(180 83 9 / 0.45);
}
.plan-ribbon {
  position: absolute;
  top: -13px;
  inset-inline-end: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 8px 18px -8px rgb(217 119 6 / 0.8);
}
.plan-features { display: grid; gap: 10px; align-content: start; font-size: 14.5px; }
.plan-features li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.plan-features .mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}
.f-yes .mark { background: var(--green-soft); color: #047857; }
.f-no { color: var(--ink-3); }
.f-no .mark { background: var(--line); color: var(--ink-3); }
.f-no .ft { text-decoration: line-through; text-decoration-color: var(--line-2); }
.f-cond .mark { background: var(--gold-soft); color: #b45309; }
.f-hint { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
@media (prefers-color-scheme: dark) {
  .f-yes .mark { color: #6ee7b7; }
  .f-cond .mark { color: #fcd34d; }
}
@media (max-width: 719.98px) {
  .plan-features .f-no { display: none; }
  .plan { padding: 24px 20px 22px; }
}
.plan-notes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
@media (min-width: 820px) {
  .plan-notes { grid-template-columns: repeat(3, 1fr); }
}
.plan-notes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14.5px;
  color: var(--ink-2);
}
.plan-notes .emo { font-size: 20px; line-height: 1.2; }
.plan-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}
.plan-legend span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legend .mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border-radius: 22px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.faq-item[open] { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-1); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 17px;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat,
    var(--rose-soft);
  color: var(--rose-3);
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 22px; color: var(--ink-2); font-size: 16px; }
.faq-answer a { color: var(--rose-2); font-weight: 600; }
@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
  }
}

/* ---------- final CTA ---------- */
.cta {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 40px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(251 113 133 / 0.55), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgb(139 92 246 / 0.45), transparent 60%),
    linear-gradient(135deg, #9f1239, #4c0519 70%, #2e0a1c);
  box-shadow: 0 50px 100px -40px rgb(76 5 25 / 0.7);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  mask-image: linear-gradient(90deg, transparent, #000);
}
@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr) auto; }
}
.cta-icon { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.5); }
.cta h2 {
  margin-block: 22px 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 720;
}
.cta h2 em { color: #ffc2cf; }
.cta p { max-width: 32em; color: #fbd5de; font-size: 18px; }
.cta .store-row { margin-top: 28px; }
.cta .store-badge--apple,
.cta .store-badge--google { background: #fff; color: #0a0a0c; }
.qr-card {
  display: none;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  color: #1d1317;
  text-align: center;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55);
}
.qr-card .qr { width: 150px; height: 150px; }
.qr-card p { max-width: 150px; font-size: 13px; font-weight: 600; color: #54464c; }
.qr-stores { display: flex; gap: 12px; }
.qr-stores svg { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .qr-card { display: grid; }
}

/* ---------- footer ---------- */
.cta-section { padding-block: clamp(48px, 7vw, 96px) 0; }
.site-footer {
  padding-block: 64px 36px;
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 15px;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 1.6fr; }
}
.footer-about p { margin-top: 14px; max-width: 26em; color: var(--ink-2); }
.footer-col h3 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
:lang(ar) .footer-col h3 { letter-spacing: 0; text-transform: none; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--ink-2); }
.footer-col a:hover { color: var(--rose-2); text-decoration: underline; }
.footer-langs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

/* ---------- entrance motion (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero-visual { animation: fade-in 1.1s 0.15s ease both; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .how-sticky .phone-screen img, .how-step { animation-duration: auto !important; }
}

/* ---------- large screens: larger reading sizes ---------- */
@media (min-width: 1280px) {
  body { font-size: 18px; }
  .nav-links a { font-size: 16px; }
  .hero-lead { font-size: 21px; }
  .h2 { font-size: clamp(36px, 5vw, 76px); }
  .section-lead { font-size: 21px; }
  .theme-pill { font-size: 16px; }
  .how-step p { font-size: 20px; }
  .together-visual .phone { --w: clamp(220px, 22vw, 310px); }
  .feature-item h3 { font-size: 19px; }
  .feature-item p { font-size: 16.5px; }
  .card h3 { font-size: 28px; }
  .card-text p { font-size: 17.5px; }
  .ui-input { font-size: 17px; }
  .tip-text { font-size: 18.5px; }
  .gallery .phone { --w: clamp(208px, 16vw, 250px); }
  .gallery figcaption { max-width: clamp(208px, 16vw, 250px); font-size: 16.5px; } /* never wider than the phone */
  .gallery figcaption small { font-size: 14px; }
  .point-row .pt b { font-size: 18px; }
  .point-row .pt span { font-size: 15px; }
  .point-row .pv { font-size: 15px; }
  .mini-card h3 { font-size: 19px; }
  .mini-card p { font-size: 16.5px; }
  .moti-visual .phone { --w: clamp(190px, 20vw, 290px); }
  .trial-text { font-size: 16.5px; }
  .plan-name { font-size: 26px; }
  .plan-sub { font-size: 15px; }
  .plan-spot { font-size: 16.5px; }
  .plan-features { font-size: 16px; }
  .f-hint { font-size: 13.5px; }
  .plan-notes li { font-size: 16px; }
  .plan-legend { font-size: 14px; }
  .faq-item summary { padding: 24px 26px; font-size: 19px; }
  .faq-answer { padding: 0 26px 26px; font-size: 17.5px; }
  .cta p { font-size: 20px; }
  .site-footer { font-size: 16px; }
  .footer-bottom { font-size: 15px; }
}
@media (min-width: 1440px) {
  :root { --container: 1280px; }
}
@media (min-width: 1680px) {
  :root { --container: 1360px; }
  body { font-size: 19px; }
  .hero-lead, .section-lead { font-size: 22px; }
  .card-text p, .faq-answer { font-size: 18px; }
  .hero-visual .phone--main { --w: 340px; }
  .hero-visual .phone--side { --w: 266px; }
}
