/* Simple SaaS landing in the order of the business model: empty tables (venues) first, then how a booking
   becomes a 1 BD fee, then the guest side, then pricing and sign-up.
   Semi-flat surfaces with 1px borders; glass only where something floats (nav, tabs bar, hero cards).
   Day theme (restaurants) is the default; night (lounges) only when the visitor picks it. */
:root {
  --bg: #FDFBF7;          /* Soft Linen */
  --card: #FFFFFF;
  --elev: #F5F0EB;        /* Sand */
  --tint: #FCEEE9;
  --amber-tint: #FDF3DC;
  --line: #E8E2DD;
  --fg: #1F1714;
  --muted: #6E625C;
  --primary: #4A0E17;     /* Deep Wine */
  --on-primary: #FDFBF7;
  --heading: #4A0E17;
  --terra: #D96B43;       /* Warm Terracotta */
  --coral: #FF4D4D;       /* Offers */
  --amber: #F4B41A;       /* Availability, ratings */
  --slot-off: #F0EBE7;
  --slot-off-fg: #A39994;
  --bar: #E3D8CF;
  --ring: #EDE5DE;
  --band: #4A0E17;

  --glass: rgba(255, 253, 250, .6);
  --glass-strong: rgba(255, 253, 250, .82);
  --glass-edge: rgba(255, 255, 255, .9);
  --glass-line: rgba(74, 14, 23, .09);
  --glass-shadow: 0 24px 60px -32px rgba(74, 14, 23, .38);

  --f-head: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-badge: 6px; --r-card: 12px; --r-pill: 20px; --r-cap: 99px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1160px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #140F0E; --card: #1E1816; --elev: #29211E; --tint: #38221B; --amber-tint: #33281A; --line: #332A26;
  --fg: #F4ECE6; --muted: #B3A49C; --primary: #8C2232; --on-primary: #FDFBF7; --heading: #F4C3AC;
  --slot-off: #2A2220; --slot-off-fg: #7D706A; --bar: #3A2F2B; --ring: #2C2421; --band: #2B0D12;
  --glass: rgba(38, 29, 26, .5);
  --glass-strong: rgba(38, 29, 26, .86);
  --glass-edge: rgba(255, 228, 210, .12);
  --glass-line: rgba(255, 228, 210, .09);
  --glass-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
:root[lang="ar"] { --f-head: "IBM Plex Sans Arabic", system-ui, sans-serif; --f-body: "IBM Plex Sans Arabic", system-ui, sans-serif; }
:root[lang="ar"] * { letter-spacing: 0 !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--f-body); letter-spacing: 0;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
section { padding-block: 88px; position: relative; }
[id] { scroll-margin-top: 96px; }
/* Each section is its own full-screen frame; taller content just grows. */
main > section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
main > section + section { border-top: 1px solid var(--line); }
main > section > .wrap { width: 100%; }
/* Frames start below the floating nav thanks to their own padding, so land exactly on the frame. */
main > section[id] { scroll-margin-top: 0; }
/* shortcut: 58px = sticky nav's in-flow height, so the first frame fits the screen; update if the nav grows. */
.hero { min-height: calc(100svh - 58px); }
.dial-frame { overflow: hidden; }
.dial-frame .stage { margin-top: 0; }
.band { background: var(--elev); }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--f-head); color: var(--heading); margin: 0; text-wrap: balance; }
h1 { font-size: 56px; font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: 28px; font-weight: 500; line-height: 1.2; }
h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--terra); }
:root[lang="ar"] h1 { line-height: 1.25; } /* Arabic script needs more room between lines than 1.08 */
@media (max-width: 640px) { h1 { font-size: 42px; } }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.sec-head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 720px; }
.sec-head.c { margin-inline: auto; text-align: center; justify-items: center; }
.num { font-family: var(--f-head); font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  border-radius: var(--r-cap); padding: 13px 24px; border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-soft { background: var(--elev); color: var(--heading); border-color: var(--line); }
.band .btn-soft { background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 30; padding-inline: 14px; }
.nav-in {
  max-width: var(--wrap); margin-inline: auto; border-radius: var(--r-cap); display: flex; align-items: center; gap: 18px; padding: 8px 8px 8px 20px;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
:root[dir="rtl"] .nav-in { padding: 8px 20px 8px 8px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--heading); flex: none; }
.logo svg { width: 22px; height: 22px; }
.logo img { height: 28px; width: auto; }
.logo-dark, :root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.logo b { font: 600 1.3rem/1 "Instrument Sans", sans-serif; letter-spacing: -.02em; }
.logo i { font: 600 1.05rem/1 "IBM Plex Sans Arabic", sans-serif; font-style: normal; color: var(--terra); }
.nav-links { display: flex; gap: 2px; margin-inline-start: 6px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); padding: 8px 12px; border-radius: var(--r-pill); }
.nav-links a:hover { color: var(--fg); }
.nav-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.tool { font: 600 .9rem/1 var(--f-body); color: var(--fg); background: transparent; border: 1px solid var(--glass-line); border-radius: var(--r-cap); padding: 9px 13px; cursor: pointer; display: inline-flex; gap: 6px; }
.tool:hover { background: var(--glass); }
.tool .ar { font-family: "IBM Plex Sans Arabic", sans-serif; }
@media (max-width: 1000px) { .nav-links { display: none; } }
@media (max-width: 540px) { .nav-cta { display: none; } .nav-in { padding-inline-start: 16px; } }

/* ---------- Hero ---------- */
.hero { padding-block: 80px 32px; overflow: hidden;
  background: radial-gradient(40% 50% at 30% 35%, rgba(217, 107, 67, .16), transparent 70%),
              radial-gradient(40% 50% at 72% 30%, rgba(244, 180, 26, .2), transparent 70%); }
.hero-copy { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 820px; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { font-size: .92rem; color: var(--muted); margin-top: -8px; }
.status { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--r-cap); padding: 6px 14px; font-size: .88rem; font-weight: 600; color: var(--fg); background: var(--card); border: 1px solid var(--line); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.status .dot.calm { background: var(--amber); }

/* ---------- Table dial console ---------- */
.stage { position: relative; display: grid; place-items: center; width: min(820px, 100%); margin: 48px auto 0; padding-block: 16px; }
.plate { position: relative; width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; }
.plate svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial-center { position: absolute; inset: 24%; display: grid; place-content: center; text-align: center; gap: 6px; }
.dial-center small { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dial-center b { font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; letter-spacing: -.02em; }
.dial-center .off { justify-self: center; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-badge); background: var(--coral); color: #FFFFFF; }
.dial-center .off.none { background: var(--slot-off); color: var(--slot-off-fg); }
.dial-center button { margin-top: 6px; justify-self: center; }
.slotdot { cursor: pointer; }
.slotdot:focus { outline: none; }
.slotdot:focus-visible circle.hit { stroke: var(--terra); stroke-width: 2; }
.hand { transition: transform 1s ease; transform-origin: 200px 200px; }

.float { position: absolute; border-radius: var(--r-card); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; }
.float b { font: 600 1rem/1.2 var(--f-head); color: var(--heading); }
.float .meta { font-size: .8rem; color: var(--muted); }
.float.f-venue { top: 10%; inset-inline-start: 0; width: 220px; }
.float.f-check { bottom: 12%; inset-inline-end: 0; width: 210px; }
.float.f-offer { top: 22%; inset-inline-end: 4%; padding: 8px 12px; border-radius: var(--r-pill); display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; }
.float.f-offer i { font-style: normal; background: var(--coral); color: #FFFFFF; padding: 2px 7px; border-radius: var(--r-badge); font-size: .8rem; }
.glass {
  background: var(--glass); -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-edge), var(--glass-shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-strong); } }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.stars::before { content: "★ "; color: var(--amber); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tags span { font-size: .74rem; font-weight: 600; padding: 2px 7px; border-radius: var(--r-badge); background: var(--elev); }
.check-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 700; flex: none; }
.mock-note { display: grid; justify-items: center; gap: 10px; font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
/* Keep "-15%" reading minus-first in Arabic */
.big-off, .dial-center .off, .float.f-offer i { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 760px) {
  .stage { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .plate { flex: 1 1 100%; }
  .float { position: static; width: auto !important; flex: 1 1 160px; }
  .float.f-offer { flex: 1 1 100%; justify-content: center; }
  .mock-note { flex: 1 1 100%; }
}

/* ---------- Venues ---------- */
.split2 { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .split2 { grid-template-columns: 1fr; gap: 40px; } }
.benefits { display: grid; gap: 24px; margin-block: 32px; }
.benefit { display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.benefit .ico-box { grid-row: span 2; }
.benefit p { color: var(--muted); max-width: 48ch; }
.ico-box { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--tint); color: var(--terra); }

.pane { border-radius: 16px; padding: 28px; min-width: 0; background: var(--card); border: 1px solid var(--line); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 24px; }
.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 190px; position: relative; }
.chart .col { display: flex; flex-direction: column-reverse; height: 100%; min-width: 0; position: relative; z-index: 1; }
.chart .usual { background: var(--bar); border-radius: 0 0 4px 4px; }
.chart .spoon { background: var(--coral); border-radius: 4px 4px 0 0; }
.chart .col.only .usual { border-radius: 4px; }
.quiet { position: absolute; top: -8px; bottom: -4px; border-radius: 10px; z-index: 2; background: color-mix(in srgb, var(--amber) 10%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 70%, transparent); }
.quiet span { position: absolute; top: 6px; inset-inline-start: 8px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.caption { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.control { display: grid; gap: 2px; min-width: 0; }
.control span { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.control b { font-weight: 600; }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; counter-increment: s; }
.steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--terra); font: 600 1rem/1 var(--f-head); }
.steps p { color: var(--muted); }
.hud { border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.hud > div { padding: 20px 22px; display: grid; gap: 2px; min-width: 0; border-inline-start: 1px solid var(--line); }
.hud > div:first-child { grid-column: 1 / -1; border-inline-start: 0; border-bottom: 1px solid var(--line); }
.hud > div:nth-child(2n) { border-inline-start: 0; }
.hud > div:nth-child(n+4) { border-top: 1px solid var(--line); }
.hud .live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hud .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hud span { font-size: .88rem; color: var(--muted); }
.hud b { font-size: 2rem; line-height: 1.15; }
.hud em { font-style: normal; font-size: .84rem; color: var(--terra); font-weight: 700; }
.dash-cap { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Guest tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); width: fit-content; max-width: 100%; margin: 0 auto 48px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: 600 .95rem/1 var(--f-body); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 15px; padding: 11px 16px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--card); color: var(--heading); border-color: var(--line); }
.panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: fade 250ms ease both; }
.panel-copy { display: grid; gap: 12px; }
.panel-copy p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.vis-card { border-radius: 16px; min-height: 280px; padding: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--tint); }
.vis-card.amber { background: var(--amber-tint); }
.vis-card.plain { background: var(--card); }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; gap: 24px; } .vis-card { min-height: 220px; padding: 24px 18px; } }

.slots { display: flex; flex-wrap: wrap; gap: 6px; max-width: 320px; justify-content: center; }
.slot { font: 700 .82rem/1 var(--f-body); padding: 8px 11px; border-radius: var(--r-pill); font-variant-numeric: tabular-nums; border: 1.5px solid var(--amber); background: var(--bg); display: inline-flex; align-items: center; gap: 6px; }
.slot.avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.slot.sel { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.slot.sel::after { content: "✓"; }
.slot.full { background: var(--slot-off); border-color: transparent; color: var(--slot-off-fg); text-decoration: line-through; }
.slot.vip { background: var(--tint); border-color: var(--terra); color: var(--terra); }
.policy { display: grid; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; border: 1px solid var(--line); width: min(320px, 100%); }
.policy div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--card); font-size: .92rem; }
.policy span { color: var(--muted); }
.big-off { font: 600 clamp(3.4rem, 8vw, 5rem)/.95 var(--f-head); color: var(--coral); letter-spacing: -.03em; text-align: center; }
.big-off small { display: block; font: 700 .85rem/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
:root[lang="ar"] .big-off small { direction: rtl; }
.bubble { border-radius: 14px 14px 14px 4px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); font-size: .95rem; display: grid; gap: 10px; max-width: 300px; }
:root[dir="rtl"] .bubble { border-radius: 14px 14px 4px 14px; }
.bubble .who { font-size: .78rem; font-weight: 700; color: var(--terra); }
.bubble button { justify-self: start; font: 600 .85rem/1 var(--f-body); padding: 8px 12px; border-radius: var(--r-cap); border: 1px solid var(--line); background: var(--elev); color: var(--heading); cursor: default; }
.qr { width: 132px; height: 132px; border-radius: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); }

/* ---------- Why venues add Spoon (dark band) ---------- */
.dark { background: var(--band); color: #FDFBF7; }
.dark h2 { color: #FDFBF7; }
.dark h2 em { color: #F4B98F; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; max-width: 900px; margin-inline: auto; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr; } }
.perk { display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px; }
.perk .ico-box { grid-row: span 2; width: 44px; height: 44px; color: #FDFBF7; background: rgba(253, 251, 247, .08); border: 1px solid rgba(253, 251, 247, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.perk h3 { color: #FDFBF7; }
.perk p { color: rgba(253, 251, 247, .74); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin-inline: auto; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }
.plan { border-radius: var(--r-card); padding: 26px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.plan.hl { border-color: var(--terra); }
.plan > p { color: var(--muted); }
.plan .amt { display: flex; align-items: baseline; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.plan .amt b { font-size: 2.4rem; line-height: 1; }
.plan .amt span { color: var(--muted); font-size: .92rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; align-content: start; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--terra); font-weight: 700; }
.fine { text-align: center; font-size: .92rem; color: var(--muted); margin: 24px auto 0; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
@media (max-width: 800px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-col { display: grid; gap: 12px; }
details { border-radius: var(--r-card); padding: 16px 20px; background: var(--card); border: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--terra); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 8px; max-width: 60ch; }

/* ---------- Join ---------- */
.joincard { display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 20px; overflow: hidden; max-width: 980px; margin-inline: auto; border: 1px solid var(--line); }
@media (max-width: 860px) { .joincard { grid-template-columns: 1fr; } }
.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; min-width: 0; background: var(--card); align-content: start; }
.flow { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; font-weight: 600; color: var(--muted); counter-reset: f; }
.flow span { display: inline-flex; align-items: center; gap: 8px; counter-increment: f; }
.flow span::before { content: counter(f); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--terra); font-size: .78rem; font-weight: 700; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--muted); min-width: 0; }
input, select { font: 400 1rem/1.3 var(--f-body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--terra); outline-offset: 0; border-color: transparent; }

/* Dropdowns. Every browser gets the themed closed box; the chevron is drawn with gradients so it follows the theme colours. */
select {
  appearance: none; cursor: pointer; padding-inline-end: 40px; transition: border-color 160ms ease;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
:root[dir="rtl"] select { background-position: 16px 52%, 21px 52%; }
select:hover { border-color: color-mix(in srgb, var(--terra) 45%, var(--line)); }
/* Browsers with customizable <select> (Chrome, Edge, Brave) also get a themed open list; the others keep their own list. */
@supports (appearance: base-select) {
  select, ::picker(select) { appearance: base-select; }
  select { display: flex; align-items: center; gap: 10px; padding-inline-end: 16px; background-image: none; }
  select::picker-icon {
    content: ""; display: block; width: 7px; height: 7px; margin-inline-start: auto;
    border: solid var(--muted); border-width: 0 1.75px 1.75px 0; rotate: 45deg; translate: 0 -2px;
  }
  select:open { border-color: var(--terra); }
  select:open::picker-icon { rotate: 225deg; translate: 0 2px; }
  ::picker(select) {
    position-try-order: normal; /* open below the box when it fits; the default picks whichever side has more room */
    margin-block: 6px; padding: 6px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); color: var(--fg); box-shadow: var(--glass-shadow);
    max-block-size: min(20rem, 60vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--bar) transparent;
  }
  /* text-indent lines the group name up with the option text without indenting the options themselves */
  optgroup { padding: 8px 0 2px; text-indent: 12px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terra); }
  optgroup + optgroup, optgroup + option { margin-top: 6px; }
  option { padding: 10px 12px; border-radius: 8px; text-indent: 0; font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--fg); }
  :root[lang="ar"] optgroup { letter-spacing: 0; }
  option:hover, option:focus-visible { background: var(--elev); outline: none; }
  option:checked { background: var(--tint); color: var(--heading); font-weight: 600; }
  option::checkmark { order: 1; margin-inline-start: auto; color: var(--terra); }
  @media (prefers-reduced-motion: no-preference) {
    select::picker-icon { transition: rotate 200ms var(--ease-out), translate 200ms var(--ease-out); }
    ::picker(select) { transition: opacity 160ms ease, translate 180ms var(--ease-out), overlay 180ms allow-discrete, display 180ms allow-discrete; }
    ::picker(select):not(:popover-open) { opacity: 0; translate: 0 -4px; }
    @starting-style { ::picker(select):popover-open { opacity: 0; translate: 0 -4px; } }
  }
}
.tel { display: grid; grid-template-columns: auto 1fr; gap: 0; direction: ltr; }
.tel span { display: grid; place-items: center; padding-inline: 12px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--elev); font-weight: 600; color: var(--fg); }
.tel input { border-radius: 0 10px 10px 0; }
.err { color: var(--coral); font-size: .92rem; font-weight: 600; }
.brings { background: var(--band); color: #FDFBF7; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; align-content: start; }
.brings h3 { color: #FDFBF7; }
.brings div { display: grid; padding-bottom: 14px; border-bottom: 1px solid rgba(253, 251, 247, .14); }
.brings div:last-child { border-bottom: 0; }
.brings b { font: 600 1.8rem/1.15 var(--f-head); color: #F4B98F; font-variant-numeric: tabular-nums; }
.brings span { color: rgba(253, 251, 247, .78); }

/* ---------- Footer ---------- */
footer { padding-block: 56px 36px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot > div { display: grid; gap: 8px; align-content: start; }
.foot h4 { margin: 0 0 4px; font: 500 1rem/1.3 var(--f-head); color: var(--fg); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--heading); }
.foot .motto { color: var(--muted); max-width: 32ch; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ---------- Thanks page (thanks.html, shown after a venue request) ---------- */
.thanks {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 16px;
  background: radial-gradient(50% 40% at 50% 30%, rgba(217, 107, 67, .14), transparent 70%);
}
.thanks .logo img { height: 34px; }
.thanks-card {
  width: 100%; max-width: 560px; display: grid; gap: 14px; justify-items: center; text-align: center;
  padding: clamp(28px, 5vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: 20px;
}
.thanks-ico { width: 60px; height: 60px; padding: 16px; border-radius: 50%; background: var(--tint); fill: none; stroke: var(--terra); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(30px, 6vw, 42px); }
.thanks .btn { margin-top: 10px; }
/* Both languages are in the markup; show the one the visitor picked on the landing page. */
:root[lang="ar"] .thanks [lang="en"], :root:not([lang="ar"]) .thanks [lang="ar"] { display: none; }

/* ---------- Motion: one load sequence in the hero, nothing else moves on its own ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
.hero-copy > * { animation: rise 600ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-copy > :nth-child(n+5) { animation-delay: 240ms; }
.plate { animation: fade 700ms ease 250ms both; }
.dial-draw { stroke-dasharray: 1; animation: draw 1000ms var(--ease-out) both; }
.slotdot { transform-box: fill-box; transform-origin: center; animation: pop 350ms var(--ease-out) both; }
.float { animation: rise 600ms var(--ease-out) 900ms both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .float { animation-name: fade; }
  .dial-draw, .slotdot { animation: none; }
  .btn:active { transform: none; }
  .hand { transition: none; }
}
