/* Brand guide: Signal Red leads, Paper supports (pure white is retired), ink for text, canvas behind Paper cards.
   Readex Pro for Arabic and English. The logo is always the SVG file, never typed. */
:root {
  --red: #E0262F;
  --red-deep: #B81C24;
  --canvas: #ECE9E6;
  --ink: #1C1A1A;
  --paper: #F6F4F2;
  --muted: #5E5856;
  --line: #E4E0DC;
  --wall: linear-gradient(170deg, #E0262F 0%, #8E1219 62%, #4A0A0F 100%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Readex Pro", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  caret-color: var(--red);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--red); color: var(--paper); }
.hero ::selection, .join-copy ::selection { background: var(--paper); color: var(--red); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.hero :focus-visible, .join :focus-visible { outline-color: var(--paper); }
.join .panel :focus-visible { outline-color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -0.025em; }

/* Buttons and chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px;
  font-size: 18px; font-weight: 600; text-decoration: none;
  transition: transform .16s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-white { background: var(--paper); color: var(--red); box-shadow: 0 2px 4px rgb(74 10 15 / .18), 0 12px 28px -12px rgb(74 10 15 / .5); }
.btn-red { background: var(--red); color: var(--paper); }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-white:hover { box-shadow: 0 4px 8px rgb(74 10 15 / .2), 0 18px 36px -14px rgb(74 10 15 / .6); }
  .btn-red:hover { background: var(--red-deep); }
  .chip:hover { border-color: var(--ink); }
  .chip-solid:hover { background: #000; }
}

.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: none; color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.chip-solid { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Top bar: red logo in the top corner (right for Arabic), as the guide asks. */
.top { background: var(--paper); }
.top-row { display: flex; align-items: center; gap: 14px; min-height: 76px; }
.brand { display: block; border-radius: 8px; }
.top-actions { display: flex; gap: 8px; margin-inline-start: auto; }

/* Hero */
.hero { background: var(--red); color: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end;
  padding-top: 72px;
}
.hero-copy { padding-bottom: 112px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(44px, 7.2vw, 96px); line-height: 1.02; font-weight: 700; max-width: 11ch; }
[dir="rtl"] .hero h1 { line-height: 1.2; max-width: 14ch; }
.hero .lead { font-size: 20px; line-height: 1.55; max-width: 34ch; }
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.cta-note { font-size: 15px; font-weight: 500; }

.hero-phone { display: flex; flex-direction: column; align-items: center; align-self: end; padding-bottom: 40px; }

/* ---------- Devices ----------
   Sizes are in iPhone points: --pt is one point of a 393-point-wide screen, so every phone
   scales from its own width. iOS parts use the system font, as on a real iPhone. */
.iphone, .android {
  --w: 236px; --pt: calc(var(--w) / 393);
  position: relative; flex: none; width: var(--w); aspect-ratio: 393 / 852;
  padding: calc(13 * var(--pt)); border-radius: calc(68 * var(--pt));
  background: linear-gradient(145deg, #4B4A4F, #1D1C20 38%, #2E2D32 62%, #121114);
  box-shadow: inset 0 0 0 calc(2.5 * var(--pt)) #5C5B61, inset 0 0 0 calc(6 * var(--pt)) #0A0A0B,
    0 2px 4px rgb(28 26 26 / .14), 0 34px 70px -28px rgb(28 26 26 / .5);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Readex Pro", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.iphone::before, .iphone::after, .android::before {
  content: ""; position: absolute; width: calc(4 * var(--pt)); border-radius: 2px; background: #3A393E;
}
.iphone::before { inset-inline-start: calc(-3 * var(--pt)); top: 22%; height: 7%; box-shadow: 0 calc(85 * var(--pt)) 0 #3A393E; }
.iphone::after { inset-inline-end: calc(-3 * var(--pt)); top: 28%; height: 11%; }
.iphone-lg { --w: 304px; box-shadow: inset 0 0 0 calc(2.5 * var(--pt)) #5C5B61, inset 0 0 0 calc(6 * var(--pt)) #0A0A0B, 0 50px 90px -34px rgb(40 4 8 / .75); }
[dir="rtl"] .iphone, [dir="rtl"] .android { direction: ltr; }

.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: calc(55 * var(--pt));
  display: flex; flex-direction: column; align-items: center; color: var(--paper); background: #000;
  isolation: isolate;
}
[dir="rtl"] .screen > * { direction: rtl; }
[dir="rtl"] .screen .sbar, [dir="rtl"] .screen .asbar { direction: ltr; }
.grow { flex: 1; }

/* Status bar and the home indicator */
.sbar {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: calc(54 * var(--pt));
  display: flex; align-items: center; justify-content: space-between; padding: calc(4 * var(--pt)) calc(34 * var(--pt)) 0 calc(44 * var(--pt));
  font-size: calc(17 * var(--pt)); font-weight: 600; color: var(--paper); pointer-events: none;
  transition: color .3s var(--ease-out);
}
.sb-icons { display: flex; align-items: center; gap: calc(6 * var(--pt)); }
.sb-icons svg { width: calc(18 * var(--pt)); height: auto; }
.batt { position: relative; width: calc(26 * var(--pt)); height: calc(12.5 * var(--pt)); border-radius: calc(4 * var(--pt)); border: calc(1.2 * var(--pt)) solid currentColor; opacity: .95; }
.batt i { position: absolute; inset: calc(1.6 * var(--pt)); right: 22%; border-radius: calc(2 * var(--pt)); background: currentColor; }
.home-ind { position: absolute; z-index: 6; bottom: calc(8 * var(--pt)); left: 50%; translate: -50% 0; width: calc(140 * var(--pt)); height: calc(5 * var(--pt)); border-radius: 9px; background: var(--paper); transition: background-color .3s; }

/* Dynamic Island: a black pill that grows into an alert, with a little spring, as on iOS. */
.island {
  position: absolute; z-index: 7; top: calc(11 * var(--pt)); left: 50%; translate: -50% 0;
  width: calc(126 * var(--pt)); height: calc(37 * var(--pt)); border-radius: calc(20 * var(--pt)); background: #000;
  transition: width .6s cubic-bezier(.34, 1.36, .5, 1), height .6s cubic-bezier(.34, 1.36, .5, 1), border-radius .6s var(--ease-out);
}
.isl-compact { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(9 * var(--pt)); opacity: 0; transition: opacity .25s var(--ease-out); }
.isl-compact img { width: calc(22 * var(--pt)); height: calc(22 * var(--pt)); border-radius: calc(6 * var(--pt)); }
.isl-ring { width: calc(19 * var(--pt)); height: calc(19 * var(--pt)); border-radius: 50%; background: conic-gradient(var(--paper) 0 62%, rgb(255 255 255 / .25) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); }
.isl-open {
  position: absolute; inset: 0; display: flex; align-items: center; gap: calc(12 * var(--pt)); padding: 0 calc(20 * var(--pt)) 0 calc(16 * var(--pt));
  opacity: 0; transition: opacity .2s var(--ease-out);
}
.isl-open img { width: calc(46 * var(--pt)); height: calc(46 * var(--pt)); border-radius: calc(12 * var(--pt)); flex: none; }
.isl-text { flex: 1; min-width: 0; }
.isl-text b { display: block; font-size: calc(16 * var(--pt)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-text small { display: block; font-size: calc(13 * var(--pt)); color: rgb(235 235 245 / .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.isl-num { font-size: calc(24 * var(--pt)); font-weight: 700; color: var(--paper); flex: none; padding: calc(4 * var(--pt)) calc(10 * var(--pt)); border-radius: 999px; background: var(--red); }

[data-scene="lock"] .isl-compact, [data-scene="prep"] .isl-compact { opacity: 1; transition-delay: .2s; }
[data-scene="lock"] .island, [data-scene="prep"] .island { width: calc(150 * var(--pt)); }
[data-scene="ready"] .island { width: calc(100% - 22 * var(--pt)); height: calc(84 * var(--pt)); border-radius: calc(42 * var(--pt)); }
[data-scene="ready"] .isl-open { opacity: 1; transition-delay: .22s; }
.lockscr .island { width: calc(126 * var(--pt)) !important; height: calc(37 * var(--pt)) !important; }

/* Wallpaper */
.lockscr, .home {
  background:
    radial-gradient(60% 40% at 20% 18%, rgb(255 120 100 / .55), transparent 70%),
    radial-gradient(70% 50% at 85% 70%, rgb(120 10 30 / .9), transparent 70%),
    linear-gradient(170deg, #E0262F, #8E1219 60%, #3C070C);
}
.lock-date { margin-top: calc(104 * var(--pt)); font-size: calc(19 * var(--pt)); font-weight: 600; color: rgb(255 255 255 / .9); }
.lock-time { font-size: calc(96 * var(--pt)); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: rgb(255 255 255 / .96); font-family: "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Readex Pro", sans-serif; direction: ltr; }
.lock-btns { display: flex; justify-content: space-between; width: 100%; padding: calc(18 * var(--pt)) calc(46 * var(--pt)) calc(40 * var(--pt)); }
.lock-btns span { width: calc(50 * var(--pt)); height: calc(50 * var(--pt)); border-radius: 50%; display: grid; place-items: center; background: rgb(30 6 10 / .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lock-btns svg { width: calc(22 * var(--pt)); height: auto; }

/* Live Activity: the system lock-screen banner, edge to edge with 14-point margins. */
.lact {
  width: calc(100% - 28 * var(--pt)); padding: calc(15 * var(--pt)) calc(16 * var(--pt)) calc(14 * var(--pt)); border-radius: calc(24 * var(--pt));
  background: rgb(22 6 9 / .62); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  display: grid; gap: calc(11 * var(--pt)); text-align: start;
}
.lact-top { display: flex; align-items: center; gap: calc(11 * var(--pt)); }
.lact-top img { width: calc(40 * var(--pt)); height: calc(40 * var(--pt)); border-radius: calc(10 * var(--pt)); flex: none; }
.lact-title { flex: 1; min-width: 0; }
.lact-title b { display: block; font-size: calc(17 * var(--pt)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lact-title small { display: block; font-size: calc(14 * var(--pt)); color: rgb(235 235 245 / .62); }
.lact-state { display: grid; justify-items: end; }
.st { grid-area: 1 / 1; font-size: calc(17 * var(--pt)); font-weight: 700; white-space: nowrap; transition: opacity .3s var(--ease-out), transform .35s var(--ease-out); }
.st-prep { color: var(--paper); }
.st-ready { color: var(--paper); background: var(--red); padding: 0 .6em; border-radius: 999px; opacity: 0; transform: translateY(40%); }
[data-scene="ready"] .st-prep { opacity: 0; transform: translateY(-40%); }
[data-scene="ready"] .st-ready { opacity: 1; transform: none; }
.lact-track { height: calc(6 * var(--pt)); border-radius: 9px; background: rgb(255 255 255 / .16); overflow: hidden; }
.fill { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--paper); transform-origin: left; transform: scaleX(.38); transition: transform 1.1s var(--ease-in-out), background-color .4s; }
[data-scene="lock"] .fill, [data-scene="prep"] .fill { transform: scaleX(.62); transition-duration: 2.4s; }
[data-scene="ready"] .fill { transform: none; background: var(--red); }
.lact-steps { display: flex; justify-content: space-between; font-size: calc(12 * var(--pt)); color: rgb(235 235 245 / .55); margin-top: calc(-4 * var(--pt)); }

/* Scenes in the hero phone */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity .45s var(--ease-out), transform .55s var(--ease-out); }
[data-scene="app"] .scr-app { opacity: 1; }
[data-scene="lock"] .scr-lock, [data-scene="ready"] .scr-lock { opacity: 1; }
.scr-app { transform: scale(.94); }
[data-scene="app"] .scr-app { transform: none; }
.scr-lock { transform: translateY(-4%); }
[data-scene="lock"] .scr-lock, [data-scene="ready"] .scr-lock { transform: none; }

/* 1. The stage: the real plaque (rendered from its 3D model) beside the phone.
   Everything is placed as a fraction of the stage width --S. */
.stage { --S: 460px; position: relative; width: var(--S); height: calc(var(--S) * 1.2); direction: ltr; }
/* A paper counter top for the plaque, so the red stand reads against the red hero */
.stage::before { content: ""; position: absolute; left: calc(var(--S) * -.06); right: calc(var(--S) * -.06); top: 22%; bottom: calc(var(--S) * -.04); border-radius: calc(var(--S) * .08); background: linear-gradient(180deg, var(--paper), var(--canvas)); box-shadow: 0 30px 60px -30px rgb(60 4 8 / .55); }
.plaque { position: absolute; left: calc(var(--S) * .02); bottom: calc(var(--S) * .02); width: calc(var(--S) * .6); }
.plaque img { width: 100%; height: auto; }

.stage .iphone-lg {
  --w: calc(var(--S) * .52); position: absolute; right: 0; top: 0; z-index: 2;
  transform-origin: 50% 1%; transition: transform .8s var(--ease-in-out);
}
/* Tap: the phone swings over so its top (where the NFC reader is) touches the ring. */

.scr-lock {
  background:
    radial-gradient(60% 40% at 20% 18%, rgb(255 120 100 / .55), transparent 70%),
    radial-gradient(70% 50% at 85% 70%, rgb(120 10 30 / .9), transparent 70%),
    linear-gradient(170deg, #E0262F, #8E1219 60%, #3C070C);
}

/* The order page: the real customer page, compact */
.scr-app { background: var(--red); padding: calc(64 * var(--pt)) calc(18 * var(--pt)) calc(40 * var(--pt)); gap: calc(16 * var(--pt)); font-family: "Readex Pro", sans-serif; }
.app-card { margin-top: auto; width: 100%; padding: calc(28 * var(--pt)) calc(20 * var(--pt)) calc(24 * var(--pt)); border-radius: calc(22 * var(--pt)); background: var(--paper); color: var(--ink); display: grid; justify-items: center; gap: calc(6 * var(--pt)); }
.app-card small { font-size: calc(14 * var(--pt)); color: var(--muted); }
.app-card small:last-child { font-size: calc(13 * var(--pt)); }
.app-num { font-size: calc(92 * var(--pt)); line-height: 1; font-weight: 700; direction: ltr; }
.app-pill { display: inline-flex; align-items: center; gap: calc(6 * var(--pt)); padding: calc(6 * var(--pt)) calc(14 * var(--pt)); border-radius: 999px; background: var(--canvas); color: var(--ink); font-size: calc(14 * var(--pt)); font-weight: 600; }
.app-pill i { width: calc(7 * var(--pt)); height: calc(7 * var(--pt)); border-radius: 50%; background: var(--red); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; } }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(8 * var(--pt)); width: 100%; }
.app-steps li { display: grid; gap: calc(7 * var(--pt)); font-size: calc(13 * var(--pt)); color: rgb(255 255 255 / .7); }
.app-steps li span { height: calc(6 * var(--pt)); border-radius: 9px; background: rgb(255 255 255 / .28); }
.app-steps li.on { color: var(--paper); font-weight: 500; }
.app-steps li.on span { background: var(--paper); }
.app-steps li.cur { font-weight: 600; }
.app-keep { width: 100%; display: grid; gap: calc(5 * var(--pt)); padding: calc(16 * var(--pt)) calc(18 * var(--pt)); border-radius: calc(18 * var(--pt)); background: var(--paper); color: var(--ink); }
.app-keep b { font-size: calc(15 * var(--pt)); font-weight: 600; }
.app-keep small { font-size: calc(13 * var(--pt)); color: var(--muted); line-height: 1.4; }
.app-row { margin-bottom: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: calc(10 * var(--pt)); }
.app-sound { display: inline-flex; align-items: center; gap: calc(7 * var(--pt)); height: calc(38 * var(--pt)); padding: 0 calc(14 * var(--pt)); border-radius: 999px; border: 1px solid rgb(255 255 255 / .7); font-size: calc(13 * var(--pt)); font-weight: 500; }
.app-sound svg { width: calc(16 * var(--pt)); height: calc(16 * var(--pt)); }
.app-row u { font-size: calc(13 * var(--pt)); font-weight: 500; }

/* Haptic buzz when it's ready */
[data-scene="ready"] .iphone-lg { animation: buzz .42s .15s; }
@keyframes buzz { 20% { transform: translateX(-2px) rotate(-.6deg); } 40% { transform: translateX(2px) rotate(.6deg); } 60% { transform: translateX(-1.5px); } 80% { transform: translateX(1px); } }

/* Hero step labels under the phone */
.demo-steps { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.demo-steps li { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; color: var(--paper); background: rgb(60 0 6 / .2); transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.demo-steps li.on { background: var(--paper); color: var(--red); }

/* Home screen behind the Dynamic Island */
.home .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(26 * var(--pt)) calc(22 * var(--pt)); width: 100%; padding: calc(80 * var(--pt)) calc(26 * var(--pt)) 0; }
.home .apps i, .dock i { aspect-ratio: 1; border-radius: 23%; background: rgb(255 255 255 / .22); }
.home .apps i:nth-child(3n) { background: rgb(255 255 255 / .32); }
.home .apps i:nth-child(5n+1) { background: rgb(40 0 6 / .3); }
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(22 * var(--pt)); width: calc(100% - 24 * var(--pt)); margin-bottom: calc(30 * var(--pt)); padding: calc(16 * var(--pt)); border-radius: calc(34 * var(--pt)); background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Android: a Pixel-style phone with a punch-hole camera, running the web page */
.android { --pt: calc(var(--w) / 412); aspect-ratio: 412 / 892; border-radius: calc(46 * var(--pt)); padding: calc(10 * var(--pt)); background: linear-gradient(145deg, #3A3D42, #16171A 45%, #2B2D31); }
.android::before { inset-inline-end: calc(-3 * var(--pt)); top: 24%; height: 16%; }
.android .screen { border-radius: calc(38 * var(--pt)); background: var(--red); font-family: "Roboto", "Readex Pro", system-ui, sans-serif; }
.asbar { position: absolute; z-index: 6; top: 0; left: 0; right: 0; height: calc(40 * var(--pt)); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(24 * var(--pt)); font-size: calc(14 * var(--pt)); font-weight: 500; color: var(--paper); }
.punch { position: absolute; left: 50%; top: calc(12 * var(--pt)); translate: -50% 0; width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); border-radius: 50%; background: #000; }
.chrome-bar { margin-top: calc(44 * var(--pt)); width: calc(100% - 24 * var(--pt)); height: calc(40 * var(--pt)); border-radius: 999px; background: rgb(255 255 255 / .14); display: flex; align-items: center; gap: calc(10 * var(--pt)); padding: 0 calc(14 * var(--pt)); font-size: calc(14 * var(--pt)); color: rgb(255 255 255 / .85); direction: ltr; z-index: 2; }
.wp { position: absolute; inset: calc(96 * var(--pt)) 0 0; display: flex; flex-direction: column; align-items: center; padding: 0 calc(18 * var(--pt)); transition: opacity .4s var(--ease-out); font-family: "Readex Pro", sans-serif; }
.wp-prep { gap: calc(14 * var(--pt)); justify-content: center; padding-bottom: calc(40 * var(--pt)); }
.wp-card { width: 100%; padding: calc(16 * var(--pt)); border-radius: calc(20 * var(--pt)); background: var(--paper); color: var(--ink); display: grid; justify-items: center; gap: calc(4 * var(--pt)); }
.wp-card small { font-size: calc(13 * var(--pt)); color: var(--muted); }
.wp-card { margin-top: auto; }
.wp-prep .app-keep { margin-bottom: auto; }
.wp-card > b { font-size: calc(58 * var(--pt)); line-height: 1; direction: ltr; }
.wp-ready { background: var(--paper); color: var(--red); justify-content: center; gap: calc(6 * var(--pt)); inset: calc(40 * var(--pt)) 0 0; opacity: 0; }
.web-check { width: calc(64 * var(--pt)); height: calc(64 * var(--pt)); border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-bottom: calc(8 * var(--pt)); }
.web-check svg { width: 40%; height: auto; }
.wp-ready > b { font-size: calc(26 * var(--pt)); }
.web-num { font-size: calc(92 * var(--pt)); line-height: 1; font-weight: 700; direction: ltr; }
.wp-ready small { font-size: calc(15 * var(--pt)); font-weight: 500; }
[data-scene="ready"] .wp-ready { opacity: 1; }
[data-scene="ready"] .asbar { color: var(--ink); }
.a-notif {
  position: absolute; z-index: 7; top: calc(10 * var(--pt)); left: calc(10 * var(--pt)); right: calc(10 * var(--pt));
  padding: calc(14 * var(--pt)) calc(16 * var(--pt)); border-radius: calc(26 * var(--pt)); background: #F1F3F8; color: #1B1B1F; display: grid; gap: calc(4 * var(--pt)); text-align: start;
  box-shadow: 0 calc(6 * var(--pt)) calc(20 * var(--pt)) rgb(0 0 0 / .3);
  transform: translateY(-130%); transition: transform .5s cubic-bezier(.32, .72, 0, 1);
}
[data-scene="ready"] .a-notif { transform: none; transition-delay: .25s; }
.notif-head { display: flex; align-items: center; gap: calc(7 * var(--pt)); font-size: calc(12 * var(--pt)); }
.notif-head img { width: calc(18 * var(--pt)); height: calc(18 * var(--pt)); border-radius: 50%; }
.notif-head span { color: #5F6368; }
.a-notif p { font-size: calc(14 * var(--pt)); line-height: 1.35; }
.a-nav { position: absolute; z-index: 6; bottom: calc(8 * var(--pt)); left: 50%; translate: -50% 0; width: calc(110 * var(--pt)); height: calc(4 * var(--pt)); border-radius: 9px; background: rgb(255 255 255 / .8); }
[data-scene="ready"] .a-nav { background: rgb(0 0 0 / .5); }

@media (prefers-reduced-motion: reduce) {
  .iphone *, .android *, .iphone, .android { transition: none !important; animation: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: 112px; }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; font-weight: 700; }
[dir="rtl"] .section h2 { line-height: 1.3; }
.sub { font-size: 19px; color: var(--muted); max-width: 52ch; }
.section-head { display: grid; gap: 16px; margin-bottom: 64px; }

/* How it works: the line above each step draws itself in */
.how { background: var(--canvas); }
.how h2 { margin-bottom: 64px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { position: relative; padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 2px; background: var(--ink); transform-origin: left; }
[dir="rtl"] .steps li::before { transform-origin: right; }
.steps .num { font-size: 72px; line-height: 1; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: 24px; font-weight: 600; }
.steps p { font-size: 17px; color: var(--muted); max-width: 32ch; }

/* Phones showcase */
.phones { background: var(--paper); }
.mockups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.mock { display: grid; gap: 28px; justify-items: center; }
.mock figcaption { display: grid; gap: 6px; text-align: center; max-width: 30ch; }
.mock figcaption h3 { font-size: 20px; font-weight: 600; }
.mock figcaption p { font-size: 16px; color: var(--muted); }

/* ---------- Entrances ----------
   Content is visible without JavaScript; with it, sections rise in once as they arrive. */
.js .hero-copy > * { animation: rise .9s var(--ease-out) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4) { animation-delay: .22s; }
.js .hero-phone { animation: phone-in 1.2s .15s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(80px) rotate(-3deg); } }
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-kids > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal-kids.in > * { opacity: 1; transform: none; }
.js .reveal-kids.in > :nth-child(2) { transition-delay: .1s; }
.js .reveal-kids.in > :nth-child(3) { transition-delay: .2s; }
.js .reveal-kids.in > :nth-child(4) { transition-delay: .3s; }
.js .reveal-kids.in > :nth-child(5) { transition-delay: .4s; }
.js .steps li::before { transform: scaleX(0); transition: transform 1s var(--ease-in-out); }
.js .steps.in li::before { transform: none; }
.js .steps.in li:nth-child(2)::before { transition-delay: .15s; }
.js .steps.in li:nth-child(3)::before { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *, .js .hero-phone { animation: none; }
  .js .reveal, .js .reveal-kids > * { opacity: 1; transform: none; transition: none; }
  .js .steps li::before { transform: none; transition: none; }
}

/* What the restaurant gets */
.gets { background: var(--canvas); }
.gets-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.gets-head { position: sticky; top: 40px; display: grid; gap: 16px; }
.gets-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding-block: 28px; border-top: 1px solid #D9D4CF; }
.gets-list li:last-child { border-bottom: 1px solid #D9D4CF; }
.gets-list h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.gets-list p { font-size: 17px; color: var(--muted); }

/* Interested */
.join { background: var(--red); color: var(--paper); }
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.join-copy { display: grid; gap: 20px; align-content: start; }
.join-copy .lead { font-size: 20px; max-width: 32ch; }
.join-mail { font-size: 17px; font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1.5px; justify-self: start; }

.panel { position: relative;
  background: var(--paper); color: var(--ink); border-radius: 28px; padding: 32px;
  box-shadow: 0 2px 4px rgb(74 10 15 / .14), 0 28px 60px -28px rgb(74 10 15 / .55);
}
.form-view { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.field input, .phone-input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--paper); font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.field input::placeholder { color: #77706E; }
.field input:focus, .phone-input:focus-within { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(28 26 26 / .08); }
.field input[aria-invalid="true"], .phone-input:has(input[aria-invalid="true"]) { border-color: var(--red); }
.phone-input { display: flex; align-items: center; gap: 8px; }
.phone-input .prefix { color: var(--muted); }
.phone-input input { border: 0; padding: 0; min-height: 48px; box-shadow: none; }
.phone-input input:focus { box-shadow: none; }
.hint, .privacy { font-size: 13px; color: var(--muted); }
.privacy { text-align: center; }
.error { color: var(--red); font-size: 14px; font-weight: 500; }
.trap { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }

.done-view { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 48px; outline: none; }
.done-check { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: grid; place-items: center; margin-bottom: 8px; animation: pop .45s var(--ease-out); }
.done-view h3 { font-size: 28px; font-weight: 700; }
.done-view p { color: var(--muted); font-size: 17px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .done-check { animation: none; } }

/* Footer */
.footer { background: var(--paper); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 36px; }
.footer a { font-weight: 500; text-decoration: none; }
.footer small { color: var(--muted); font-size: 13px; }


/* Tablet */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 48px; }
  .hero-copy { padding-bottom: 40px; }
  .mockups { grid-template-columns: 1fr; gap: 56px; }
  .gets-grid, .join-grid { grid-template-columns: 1fr; gap: 40px; }
  .gets-head { position: static; }
}

/* Phone */
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .top-row { min-height: 64px; gap: 10px; }
  .brand img { width: 85px; height: 32px; }
  .chip { min-height: 38px; padding: 0 13px; font-size: 14px; }
  .hero-grid { padding-top: 36px; }
  .hero .lead { font-size: 18px; }
  .cta { gap: 12px; }
  .stage { --S: min(calc(100vw - 32px), 380px); }
  .demo-steps { gap: 4px; flex-wrap: nowrap; }
  .demo-steps li { font-size: 12px; padding: 5px 9px; white-space: nowrap; }
  .hero-phone { padding-bottom: 32px; }
  .section { padding-block: 72px; }
  .how h2 { margin-bottom: 40px; }
  .section-head { margin-bottom: 48px; }
  .sub { font-size: 17px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 6px; }
  .steps .num { grid-row: span 2; font-size: 52px; margin: 0; }
  .gets-list li { grid-template-columns: 1fr; gap: 6px; padding-block: 22px; }
  .panel { padding: 22px; border-radius: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 18px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
