/*
 * The FoodiSy marketing site. Tokens follow the FoodiSy design system as src/Storefront/src/tokens.css
 * has them; the dark theme changes roles only, never the brand colours. Layout uses logical properties
 * so the Arabic pages (dir="rtl") mirror without extra rules.
 */
:root {
  --steel-blue: #3d6e8f;
  --fresh-mint: #7acca6;
  --honey: #f6c453;
  --vanilla: #fff9f0;
  --ink-navy: #1e3444;
  --lilac: #8c7ae0;
  --white: #ffffff;
  --plate-blue: #e4eef4;
  --hairline: #e3eaf0;

  --surface: var(--vanilla);
  --surface-card: var(--white);
  --surface-tint: var(--plate-blue);
  --text: var(--ink-navy);
  --text-muted: #616e77;
  --text-subtle: #66737c;
  --primary: var(--steel-blue);
  --primary-hover: #335d79;
  --on-primary: var(--white);
  /* border-strong: control borders, 3:1 or more. */
  --control-border: #7f8f9b;
  /* The design system's raspberry: errors only. */
  --error: #b3365b;
  --error-soft: #fcecf1;
  --focus-ring: var(--steel-blue);
  --doodle-opacity: 0.1;
  --header-bg: rgb(255 249 240 / 0.86);

  --font-display: Fredoka, 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: Poppins, Arial, sans-serif;
  --font-arabic: 'Baloo Bhaijaan 2', Tahoma, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  /* shadow-md, for floating pills and toasts; the product shot keeps its own. */
  --shadow-pop: 0 4px 12px rgb(30 52 68 / 0.08), 0 2px 4px rgb(30 52 68 / 0.05);
  --shadow-shot: 0 30px 60px -30px rgb(30 52 68 / 0.45);
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

/* The design system's dark theme, the "midnight dessert bar". Brand fills (Steel Blue bands, Honey)
   keep their values; the primary role lightens, with midnight text on it. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --surface: #0f1b24;
    --surface-card: #172733;
    --surface-tint: #1d3242;
    --text: #f5efe4;
    --text-muted: #a3b1bb;
    --text-subtle: #93a2ad;
    --hairline: #2e4656;
    --control-border: #62798a;
    --primary: #7fb3d5;
    --primary-hover: #9cc5e0;
    --on-primary: #0f1b24;
    --error: #f08aa8;
    --error-soft: #3a2130;
    --focus-ring: #9cc5e0;
    --doodle-opacity: 0.06;
    --header-bg: rgb(15 27 36 / 0.86);
    --shadow-pop: 0 6px 16px rgb(0 0 0 / 0.4);
    --shadow-shot: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --surface: #0f1b24;
  --surface-card: #172733;
  --surface-tint: #1d3242;
  --text: #f5efe4;
  --text-muted: #a3b1bb;
  --text-subtle: #93a2ad;
  --hairline: #2e4656;
  --control-border: #62798a;
  --primary: #7fb3d5;
  --primary-hover: #9cc5e0;
  --on-primary: #0f1b24;
  --error: #f08aa8;
  --error-soft: #3a2130;
  --focus-ring: #9cc5e0;
  --doodle-opacity: 0.06;
  --header-bg: rgb(15 27 36 / 0.86);
  --shadow-pop: 0 6px 16px rgb(0 0 0 / 0.4);
  --shadow-shot: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden;
}
:lang(ar) body, :lang(ar) .display, :lang(ar) input, :lang(ar) button, :lang(ar) select, :lang(ar) textarea { font-family: var(--font-arabic); }
:lang(ar) p, :lang(ar) li { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
:lang(ar) .display { font-weight: 700; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--ink-navy); color: var(--vanilla); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 840px; }
.center { text-align: center; margin-top: 40px; }
.muted { color: var(--text-subtle); font-size: 14px; }
[dir='rtl'] .flip { transform: scaleX(-1); }

.h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.1; }
.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; }
.h3 { font-size: 22px; line-height: 1.3; }
.lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); }
.lead--light { color: #e8f0f5; }
.eyebrow { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--primary); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; font-family: var(--font-arabic); font-weight: 700; }
.eyebrow--light { color: var(--honey); }
.eyebrow-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border-radius: var(--radius-pill); background: var(--surface-tint); color: var(--text);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
}
:lang(ar) .eyebrow-pill { font-family: var(--font-arabic); }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---------------------------------------------------------------- buttons */
.pill-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 2px solid transparent; font-family: var(--font-display); font-weight: 600;
  font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .22s var(--ease), background-color .2s, color .2s;
}
:lang(ar) .pill-btn { font-family: var(--font-arabic); font-weight: 700; }
.pill-btn:hover { transform: translateY(-2px) scale(1.02); }
.pill-btn:active { transform: scale(.97); }
.pill-btn--lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.pill-btn--block { width: 100%; }
.pill-btn--primary { background: var(--primary); color: var(--on-primary); }
.pill-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.pill-btn--outline { border-color: var(--text); color: var(--text); background: transparent; }
.pill-btn--outline:hover { background: var(--text); color: var(--surface); }
.pill-btn--ghost { border-color: var(--control-border); color: var(--text); background: transparent; font-size: 15px; padding: 0 14px; }
.pill-btn--light { background: var(--vanilla); color: var(--ink-navy); }
.pill-btn--light:hover { color: var(--ink-navy); background: var(--white); }
.pill-btn--outline-light { border-color: var(--vanilla); color: var(--vanilla); }
.pill-btn--outline-light:hover { background: var(--vanilla); color: var(--ink-navy); }
.pill-btn--dark { background: var(--ink-navy); color: var(--vanilla); }
.pill-btn--dark:hover { color: var(--vanilla); background: #12222e; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.icon-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border-radius: var(--radius-pill); border: 2px solid var(--control-border); background: transparent; color: var(--text); cursor: pointer;
}
.text-link { display: inline-block; margin-top: 20px; font-family: var(--font-display); font-weight: 600; font-size: 17px; text-decoration-thickness: 2px; text-underline-offset: 4px; }
:lang(ar) .text-link { font-family: var(--font-arabic); font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--control-border); background: var(--surface-card); color: var(--text);
  font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.chip:hover { transform: translateY(-2px); color: var(--text); border-color: var(--primary); }
.chip.on, .chip[aria-pressed='true'], .chip[aria-selected='true'] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); animation: pop .28s var(--ease); }
.chip .swatch { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--control-border); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex: none; border-radius: 8px; }
.brand-logo { height: 40px; width: auto; }
.brand-logo--dark { display: none; }
.nav-menu { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-links { display: flex; gap: 22px; flex: 1; font-weight: 500; font-size: 15px; }
.navlink { position: relative; color: var(--text); text-decoration: none; }
.navlink::after {
  content: ''; position: absolute; inset-inline: 0; bottom: -6px; height: 3px; border-radius: 9px; background: var(--honey);
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.navlink:hover::after, .navlink[aria-current='page']::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-signin { font-weight: 500; font-size: 15px; margin-inline: 6px; }
.nav-toggle { display: none; margin-inline-start: auto; }
.nav-toggle .i-close { display: none; }
.theme-toggle .i-sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand-logo--light { display: none; }
  :root:not([data-theme='light']) .brand-logo--dark { display: block; }
  :root:not([data-theme='light']) .theme-toggle .i-moon { display: none; }
  :root:not([data-theme='light']) .theme-toggle .i-sun { display: block; }
}
:root[data-theme='dark'] .brand-logo--light { display: none; }
:root[data-theme='dark'] .brand-logo--dark { display: block; }
:root[data-theme='dark'] .theme-toggle .i-moon { display: none; }
:root[data-theme='dark'] .theme-toggle .i-sun { display: block; }

@media (max-width: 1060px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 24px;
  }
  .nav.open .nav-menu { display: flex; }
  .nav.open .nav-toggle .i-open { display: none; }
  .nav.open .nav-toggle .i-close { display: block; }
  .nav-links { flex-direction: column; gap: 0; font-size: 18px; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links .navlink::after { display: none; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .pill-btn--primary { flex: 1 1 100%; }
}

/* ---------------------------------------------------------------- doodle backgrounds */
.doodle {
  position: absolute; inset: -160px 0 0; pointer-events: none; opacity: var(--doodle-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='%231e3444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='36' cy='36' r='18'/%3E%3Ccircle cx='36' cy='36' r='6'/%3E%3Cpath d='M24 26l3 2M44 24l-2 3M48 40l-3-1M28 48l2-3M104 30l10 32 10-32M100 30a14 14 0 0 1 28 0zM24 112h28l-4 22H28zM22 112c0-10 6-16 16-16s16 6 16 16M80 78v14M73 85h14M148 70v8M144 74h8'/%3E%3Ccircle cx='38' cy='92' r='3'/%3E%3Crect x='96' y='104' width='40' height='8' rx='4'/%3E%3Crect x='92' y='114' width='48' height='8' rx='4'/%3E%3Crect x='96' y='124' width='40' height='8' rx='4'/%3E%3Ccircle cx='70' cy='142' r='5'/%3E%3Ccircle cx='80' cy='149' r='4'/%3E%3C/svg%3E");
}
:root[data-theme='dark'] .doodle:not(.doodle--light) { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .doodle:not(.doodle--light) { filter: invert(1); } }
.doodle--light { filter: invert(1); opacity: 0.12; inset: 0; }
.doodle--soft { inset: 0; opacity: calc(var(--doodle-opacity) * .8); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; padding-block: 64px 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-title { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.06; letter-spacing: -0.02em; }
:lang(ar) .hero-title { line-height: 1.3; }
.squiggle { display: block; width: 220px; height: 20px; margin-top: 8px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--text-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.check { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--fresh-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3444' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.check--lg { width: 32px; height: 32px; background-size: 17px; }

.hero-visual { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.hero-plate { position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--surface-tint); }
.sprinkles { position: absolute; width: min(520px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; pointer-events: none; }
.sprinkles span { position: absolute; top: -30px; left: var(--x); width: 6px; height: 14px; border-radius: 9px; background: var(--c); animation: fall 3.2s linear var(--d) infinite; }
.hero-phone { position: relative; width: 280px; transform: rotate(-3deg); }
[dir='rtl'] .hero-phone { transform: rotate(3deg); }
.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-pop);
}
:lang(ar) .float-chip { font-family: var(--font-arabic); font-weight: 700; }
.float-chip--dark { top: 56px; inset-inline-end: 0; background: var(--ink-navy); color: var(--vanilla); font-size: 13px; letter-spacing: .08em; }
.float-chip--card { bottom: 150px; inset-inline-start: 0; background: var(--surface-card); color: var(--text); border: 1px solid var(--hairline); }
.float-chip--card .swatch { width: 18px; height: 18px; border-radius: 50%; }
.float-chip--order { bottom: 48px; inset-inline-end: 4px; background: var(--surface-card); color: var(--text); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 12px 18px; }
.float-chip--order span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.float-chip--order small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--text-subtle); }
:lang(ar) .float-chip--order small { font-family: var(--font-arabic); }

/* ---------------------------------------------------------------- device frames */
.phone {
  margin: 0; padding: 10px; border-radius: 44px; background: var(--ink-navy); box-shadow: var(--shadow-shot);
  aspect-ratio: 780 / 1690; overflow: hidden; position: relative;
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 99px; background: var(--ink-navy); z-index: 1; opacity: .0; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; background: var(--vanilla); }
.browser { margin: 0; border-radius: 20px; overflow: hidden; background: var(--surface-card); border: 1px solid var(--hairline); box-shadow: var(--shadow-shot); }
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--surface-card); border-bottom: 1px solid var(--hairline); direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--control-border); }
.browser-bar i:first-child { background: var(--honey); }
.browser img { width: 100%; }

/* ---------------------------------------------------------------- marquee */
.marquee-band { background: var(--steel-blue); color: var(--vanilla); padding: 22px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; font-size: 26px; font-weight: 500; animation: marquee 36s linear infinite; }
[dir='rtl'] .marquee { animation-name: marquee-rtl; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; padding-inline-end: 48px; white-space: nowrap; }
.marquee span::after {
  content: ''; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f6c453'%3E%3Cpath d='M12 2l2.4 7.6L22 12l-7.6 2.4L12 22l-2.4-7.6L2 12l7.6-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: 104px; overflow: hidden; }
.section--flush-top { padding-top: 0; overflow: visible; }
.section--tint { background: var(--surface-tint); }
.section--card { background: var(--surface-card); border-block: 1px solid var(--hairline); }
.section--blue { background: var(--steel-blue); color: var(--white); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-head .eyebrow { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--center { align-items: center; }
.split > * { min-width: 0; }
.split .lead { margin-top: 18px; }

.card {
  background: var(--surface-card); border: 1.5px solid var(--hairline); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 14px; color: var(--text);
  transition: transform .3s var(--ease), border-color .3s;
}
a.card { text-decoration: none; }
a.card:hover, .card.feature:hover, .steps .card:hover, .pay-grid .card:hover { transform: translateY(-6px) rotate(-.4deg); border-color: var(--primary); color: var(--text); }
.card p { color: var(--text-muted); }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.ico {
  width: 56px; height: 56px; border-radius: 18px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--plate-blue); color: var(--ink-navy); transition: transform .3s var(--ease);
}
.card--honey { background: var(--honey); border-color: var(--honey); color: var(--ink-navy); }
.card--honey p { color: var(--ink-navy); }
.card--honey .pill-btn { align-self: flex-start; }

.stat-list { display: flex; flex-direction: column; gap: 16px; }
.stat-list li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius-lg); background: var(--surface-card); border: 1.5px solid var(--hairline); }
.stat-list strong { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
:lang(ar) .stat-list strong { font-family: var(--font-arabic); font-weight: 700; }
.stat-list p { color: var(--text-muted); margin-top: 4px; }
.stat-ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-navy); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 26px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid .h3 { font-size: 20px; }
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.ticks { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-inline-start: 34px; }
.ticks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--fresh-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3444' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
:lang(ar) .ticks li::before { top: .35em; }
.ticks--light li { color: var(--white); }

/* ---------------------------------------------------------------- builder demo */
.builder { display: flex; flex-direction: column; gap: 24px; }
.builder-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.builder-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: stretch; }
.stage {
  position: relative; min-height: 480px; border-radius: var(--radius-xl); background: var(--vanilla); overflow: hidden;
  display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--hairline);
}
.stage .doodle--soft { filter: none !important; opacity: .08; }
.stage-plate { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; background: #e4eef4; }
.stage-shadow { position: absolute; left: 50%; bottom: 92px; width: 270px; height: 30px; margin-left: -135px; border-radius: 50%; background: rgb(30 52 68 / .15); filter: blur(10px); }
.stage[data-kind='pizza'] .stage-shadow { display: none; }
.stage-treat { position: absolute; inset: 0; direction: ltr; }
.stage-badge { position: absolute; bottom: 20px; inset-inline-start: 20px; padding: 8px 14px; border-radius: var(--radius-pill); background: var(--ink-navy); color: var(--vanilla); font-size: 12px; letter-spacing: .08em; }
.stage-noscript { position: relative; padding: 24px; text-align: center; color: var(--ink-navy); }
.toast {
  position: absolute; top: 20px; inset-inline: 20px; display: none; align-items: center; gap: 12px; padding: 14px 18px; z-index: 3;
  border-radius: var(--radius-lg); background: var(--white); color: var(--ink-navy); border: 1px solid var(--hairline);
  font-family: var(--font-display); font-weight: 600; font-size: 17px; box-shadow: var(--shadow-pop);
}
:lang(ar) .toast { font-family: var(--font-arabic); font-weight: 700; }
.toast.show { display: flex; animation: toast .35s var(--ease) both; }
.burst { position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 2; }
.burst i { position: absolute; width: 8px; height: 16px; border-radius: 9px; animation: burst .9s cubic-bezier(.2,.7,.3,1) both; }

.options { background: var(--surface-card); border: 1.5px solid var(--hairline); border-radius: var(--radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 26px; }
.opt-group { display: flex; flex-direction: column; gap: 12px; }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.opt-head h3 { font-size: 20px; }
.opt-head small { display: block; color: var(--text-subtle); font-size: 13px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--hairline); }
.stepper output { min-width: 22px; text-align: center; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.step-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--control-border); background: var(--surface-card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .2s var(--ease); }
.step-btn:hover:not(:disabled) { transform: scale(1.08); }
.step-btn:disabled { opacity: .4; cursor: not-allowed; }
.opt-total { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 16px; }
.opt-total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.opt-total-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-total-row > div:last-child { align-items: flex-end; flex: none; }
.opt-total .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
:lang(ar) .opt-total .name { font-family: var(--font-arabic); font-weight: 700; }
.opt-total .summary, .opt-total small { color: var(--text-subtle); font-size: 14px; }
.opt-total .price { font-family: var(--font-display); font-size: 30px; font-weight: 600; direction: ltr; }
.builder-note { text-align: center; color: var(--text-subtle); font-size: 14px; max-width: 640px; margin: 0 auto; }

/* treat pieces (drawn in CSS, always left-to-right) */
.pc { position: relative; flex: none; }
.drop { animation: drop .42s var(--ease) both; }
.stack { position: absolute; left: 0; right: 0; bottom: 104px; display: flex; flex-direction: column-reverse; align-items: center; }
.pancake { height: 46px; border-radius: 9999px; background: #fbe2a6; box-shadow: inset 0 -11px 0 #f0b93f, inset 0 3px 0 #fff3d6; margin-bottom: -17px; }
.syrup { width: 210px; height: 28px; border-radius: 9999px; margin-bottom: -24px; transition: background-color .35s; }
.syrup i { position: absolute; top: 14px; border-radius: 9999px; background: inherit; transform-origin: top center; animation: drip 2.4s ease-in-out infinite alternate; }
.syrup .sp { position: absolute; width: 5px; height: 12px; border-radius: 9px; }
.tops-row { height: 38px; width: 220px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; margin-bottom: -12px; }
.berry { width: 22px; height: 22px; border-radius: 50%; background: #3d6e8f; box-shadow: inset -4px -4px 0 #2c5470; }
.berry--l { width: 18px; height: 18px; background: #8c7ae0; box-shadow: inset -3px -3px 0 #6f5cc4; }
.butter { width: 42px; height: 26px; border-radius: 8px; background: #fff9f0; border: 2px solid #f0b93f; }
.leaf { width: 30px; height: 16px; border-radius: 0 100% 0 100%; background: #7acca6; margin-bottom: 12px; }

.pizza { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: #e6ad62; box-shadow: inset 0 -10px 0 #c98d43, inset 0 0 0 14px #f0c27f; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease); }
.pizza-sauce { position: absolute; inset: 22px; border-radius: 50%; transition: background-color .35s; }
.pizza-cheese { position: absolute; inset: 34px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 30% 30%, #fff1c2 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #fff1c2 0 14%, transparent 15%), #f8dc8c; opacity: .92; }
.pizza-cheese.extra { inset: 28px; background: radial-gradient(circle at 25% 65%, #fff6d8 0 16%, transparent 17%), radial-gradient(circle at 30% 30%, #fff1c2 0 18%, transparent 19%), radial-gradient(circle at 70% 60%, #fff1c2 0 14%, transparent 15%), #fbe39c; }
.pizza i { position: absolute; transform: translate(-50%, -50%); }
.pep { width: 13%; aspect-ratio: 1; border-radius: 50%; background: #b9503d; box-shadow: inset -3px -3px 0 #96402f; }
.mush { width: 11%; aspect-ratio: 1.2; border-radius: 50% 50% 30% 30%; background: #efe4d3; border: 2px solid #c9b79c; }
.olive { width: 7%; aspect-ratio: 1; border-radius: 50%; border: 4px solid #1e3444; }
.basil { width: 10%; aspect-ratio: 1.6; border-radius: 0 100% 0 100%; background: #4f9e78; }

.cup { position: absolute; left: 50%; bottom: 96px; width: 170px; height: 110px; margin-left: -85px; border-radius: 0 0 70px 70px; background: #fff; border: 3px solid #e3eaf0; z-index: 1; }
.cup::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 60px; height: 26px; margin-left: -30px; background: #e3eaf0; border-radius: 0 0 14px 14px; }
.scoops { position: absolute; left: 0; right: 0; bottom: 186px; display: flex; flex-direction: column-reverse; align-items: center; }
.scoop { width: 140px; height: 96px; border-radius: 50% 50% 42% 42%; margin-bottom: -34px; box-shadow: inset -10px -8px 0 rgb(0 0 0 / .08); }
.scoop:first-child { margin-bottom: 0; }
.choc-sauce { position: absolute; left: 50%; width: 150px; height: 30px; margin-left: -75px; border-radius: 50%; background: #5a3a2a; z-index: 2; }
.choc-sauce i { position: absolute; top: 18px; width: 12px; border-radius: 9px; background: #5a3a2a; transform-origin: top; animation: drip 2.4s ease-in-out infinite alternate; }
.cherry { position: absolute; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; background: #c8475a; box-shadow: inset -5px -5px 0 #a3364a; z-index: 3; }
.cherry::before { content: ''; position: absolute; left: 14px; top: -20px; width: 3px; height: 22px; background: #4f9e78; border-radius: 3px; transform: rotate(18deg); }
.wafer { position: absolute; left: 50%; width: 26px; height: 90px; margin-left: 24px; border-radius: 6px; background: repeating-linear-gradient(45deg, #e6ad62 0 6px, #f0c27f 6px 12px); transform: rotate(18deg); z-index: 0; }
.scoop-spr { position: absolute; left: 0; right: 0; height: 0; z-index: 3; }
.scoop-spr b { position: absolute; width: 5px; height: 12px; border-radius: 9px; }

/* ---------------------------------------------------------------- showcase */
.showcase { display: flex; flex-direction: column; gap: 32px; }
.showcase-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.show-tab {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: start; padding: 18px 22px; border-radius: var(--radius-lg);
  border: 1.5px solid var(--hairline); background: var(--surface-card); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.show-tab .display { font-size: 20px; }
.show-tab small { color: var(--text-subtle); font-size: 14px; }
.show-tab:hover { transform: translateY(-2px); border-color: var(--primary); }
.show-tab[aria-selected='true'] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.show-tab[aria-selected='true'] small { color: #e8f0f5; }
.show-panel { animation: fadeup .5s var(--ease-out) both; }
.show-panel--phones { display: flex; justify-content: center; align-items: center; gap: 32px; }
.show-panel--phones .phone { width: 260px; }
.phone--raised { transform: translateY(-24px); }
.show-panel .browser { max-width: 1040px; margin: 0 auto; }

/* ---------------------------------------------------------------- blue band */
.section--blue .h2 { color: var(--white); }
.section--blue .split { position: relative; }
.browser--tilt { transform: perspective(1400px) rotateY(-8deg); }
[dir='rtl'] .browser--tilt { transform: perspective(1400px) rotateY(8deg); }

/* ---------------------------------------------------------------- pricing */
.price-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
.seg { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--surface); border: 1.5px solid var(--hairline); }
.seg-btn {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.seg-btn.on { background: var(--primary); color: var(--on-primary); }
.save { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--honey); color: var(--ink-navy); font-size: 12px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; gap: 18px; padding: 36px 32px; }
.plan .ticks { margin-top: 0; flex: 1; }
.plan .ticks li { font-size: 15px; }
.plan-desc { min-height: 3.2em; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan-price .amount { font-size: 42px; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
.plan-price .per { color: var(--text-subtle); font-size: 15px; }
.plan--featured { border: 2px solid var(--primary); }
.plan-flag { position: absolute; top: -16px; inset-inline-start: 32px; padding: 6px 16px; border-radius: var(--radius-pill); background: var(--honey); color: var(--ink-navy); font-size: 14px; }
.plans-note { text-align: center; color: var(--text-subtle); font-size: 14px; margin-top: 28px; }
.enterprise { margin-top: 24px; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; background: var(--surface-tint); }
.enterprise p { margin-top: 6px; }

.table-box { overflow-x: auto; border-radius: var(--radius-lg); border: 1.5px solid var(--hairline); background: var(--surface-card); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--hairline); }
.compare th[scope='row'] { text-align: start; font-weight: 500; }
.compare thead th { font-size: 20px; padding-block: 22px; }
.compare .group th { text-align: start; background: var(--surface); font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; color: var(--primary); text-transform: uppercase; }
:lang(ar) .compare .group th { font-family: var(--font-arabic); letter-spacing: 0; font-size: 15px; }
.compare .is-featured { background: color-mix(in srgb, var(--steel-blue) 7%, transparent); }
.compare td { font-weight: 600; direction: ltr; }
.compare tr:last-child > * { border-bottom: 0; }
.yes { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; background: var(--fresh-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3444' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------------------------------------------------------------- faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { border-radius: var(--radius-lg); background: var(--surface-card); border: 1.5px solid var(--hairline); padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: var(--primary); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-tint); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--text-muted); }

/* ---------------------------------------------------------------- CTA */
.cta { position: relative; overflow: hidden; border-radius: 40px; background: var(--steel-blue); color: var(--white); padding: 88px 32px; text-align: center; }
.cta-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-title { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.15; max-width: 820px; }
.cta-line { font-size: clamp(22px, 3vw, 32px); color: var(--honey); }
.cta-sub { font-size: 17px; color: #eef4f8; max-width: 580px; }
.cta .btn-row { margin-top: 12px; }

/* ---------------------------------------------------------------- page heroes */
.page-hero { position: relative; overflow: hidden; padding-block: 88px 72px; text-align: center; }
.page-hero--short { padding-bottom: 56px; }
.page-hero-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 880px; }
.page-hero .eyebrow-pill { align-self: center; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.feature-row--flip .split > :first-child { order: 2; }
.shots { display: flex; justify-content: center; }
.shots .phone { width: 280px; }
.shots--pair { gap: 24px; }
.shots--pair .phone { width: 240px; }
.shots--stack { position: relative; display: block; padding-bottom: 80px; }
.shots--stack .browser--back { position: absolute; inset-inline-start: 18%; bottom: 0; width: 82%; z-index: -0; transform: translateY(0); }
.shots--stack .browser:first-child { position: relative; z-index: 1; width: 88%; }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.role { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--radius-md); background: var(--surface-card); border: 1.5px solid var(--hairline); }
.role strong { font-size: 17px; }
.role span { font-size: 14px; color: var(--text-muted); }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: start; }
.contact-form { gap: 18px; }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-side .ticks { margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 10px 16px; border-radius: var(--radius-md); border: 1.5px solid var(--control-border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus-ring); outline-offset: 1px; border-color: var(--focus-ring); }
.field input[aria-invalid='true'] { border-color: var(--error); }
:lang(ar) .field input[dir='ltr'] { text-align: right; }
.form-error { padding: 12px 16px; border-radius: var(--radius-md); background: var(--error-soft); color: var(--error); font-size: 15px; }
.form-hint { text-align: center; color: var(--text-subtle); font-size: 13px; }

/* ---------------------------------------------------------------- 404 */
.big-404 { font-size: clamp(96px, 16vw, 180px); line-height: 1; color: var(--honey); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink-navy); color: var(--vanilla); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 48px; width: auto; }
.footer-tag { margin-top: 14px; color: var(--honey); font-size: 19px; }
.footer-about { margin-top: 6px; color: #d3dde4; font-size: 14px; max-width: 300px; }
.footer-head { font-family: var(--font-display); font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b9c8d3; margin-bottom: 14px; }
:lang(ar) .footer-head { font-family: var(--font-arabic); letter-spacing: 0; font-size: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a { color: var(--vanilla); text-decoration: none; }
.footer-links a:hover { color: var(--honey); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 249 240 / .18); font-size: 13px; color: #d3dde4; }
.site-footer :focus-visible { outline-color: var(--honey); }

/* ---------------------------------------------------------------- motion */
.fadeup { animation: fadeup .6s var(--ease-out) both; }
.draw { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw .9s .6s cubic-bezier(.65,0,.35,1) forwards; }
.drift { animation: drift 40s linear infinite; }
.bob { animation: bob 4s ease-in-out infinite; }
.bob2 { animation: bob 5s ease-in-out -2s infinite; }
.spin { animation: spin 8s linear infinite; }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes drop { 0% { transform: translateY(-160px) scaleY(1.1); opacity: 0 } 55% { transform: translateY(6px) scaleY(.88); opacity: 1 } 75% { transform: translateY(-5px) scaleY(1.03) } 100% { transform: none } }
@keyframes drip { 0% { transform: scaleY(.35) } 100% { transform: scaleY(1) } }
@keyframes bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } 100% { transform: translateY(560px) rotate(540deg); opacity: 0 } }
@keyframes burst { 0% { transform: translate(0,0) rotate(0) scale(.4); opacity: 0 } 20% { opacity: 1 } 100% { transform: translate(var(--bx), var(--by)) rotate(400deg) scale(1); opacity: 0 } }
@keyframes fadeup { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@keyframes draw { to { stroke-dashoffset: 0 } }
@keyframes drift { from { transform: translateY(0) } to { transform: translateY(160px) } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes marquee-rtl { from { transform: translateX(0) } to { transform: translateX(50%) } }
@keyframes pop { 0% { transform: scale(.9) } 60% { transform: scale(1.08) } 100% { transform: scale(1) } }
@keyframes toast { from { opacity: 0; transform: translateY(16px) scale(.9) } to { opacity: 1; transform: none } }
@keyframes reveal { from { opacity: 0; transform: translateY(40px) scale(.98) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .draw { stroke-dashoffset: 0; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .hero-visual { min-height: 560px; }
  .builder-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-row--flip .split > :first-child { order: 0; }
  .steps, .pay-grid, .plans, .feature-grid--3 { grid-template-columns: 1fr; }
  .plan-desc { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .showcase-tabs { grid-template-columns: 1fr; }
  .show-panel--phones .phone { width: 200px; }
  .show-panel--phones .phone:not(.phone--raised) { display: none; }
  .phone--raised { transform: none; }
  .browser--tilt, [dir='rtl'] .browser--tilt { transform: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .field-row, .roles { grid-template-columns: 1fr; }
  .hero-visual { min-height: 500px; }
  .hero-phone { width: 230px; }
  .float-chip--card { bottom: 120px; }
  .card, .options { padding: 24px; }
  .cta { padding: 64px 20px; border-radius: 28px; }
  .stage { min-height: 420px; }
  .stage-plate { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
  .shots--pair .phone { width: 46%; }
  .footer-grid { grid-template-columns: 1fr; }
  .enterprise { flex-direction: column; align-items: flex-start; }
  .marquee { font-size: 20px; }
}
