/* Al Mada marketing site.
   Palette: Gulf navy, coral (brand), sea-salt ground, saffron = reserved, seat green = seated (both from the product floor). */
@font-face { font-family: "Montserrat"; src: url("assets/fonts/montserrat.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0b2549;
  --coral: #e5384a;
  --coral-dark: #c92a3c;
  --coral-text: #c92a3c;
  --ground: #edf2f5;
  --tint: #e2eaef;
  --paper: #ffffff;
  --ink: #16202f;
  --muted: #55627a;
  --head: #0b2549;
  --line: rgba(11, 37, 73, 0.14);
  --saffron: #f0b23e;
  --seat: #1f6b4f;
  --nav-bg: rgba(237, 242, 245, 0.74);
  --float-bg: rgba(255, 255, 255, 0.82);
  --bezel: #ffffff;
  --scrim: rgba(10, 29, 58, 0.34);

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, sans-serif;
  --font-ar: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", Tahoma, system-ui, sans-serif;

  /* Critically damped spring (no overshoot) and a 0.8 damping momentum spring, as CSS linear() */
  --spring: linear(0, 0.2079, 0.5044, 0.7205, 0.8514, 0.9239, 0.9621, 0.9815, 0.9911, 0.9958, 0.998, 0.9991, 0.9996, 1);
  --spring-momentum: linear(0, 0.1823, 0.4878, 0.738, 0.8949, 0.9752, 1.0075, 1.0151, 1.0129, 1.0082, 1.0043, 1.0018, 1.0005, 0.9999, 0.9998, 0.9998, 0.9999, 0.9999, 1, 1);
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);

  --r-sm: 10px; --r-md: 16px; --r-lg: 24px;
  --shadow-1: 0 1px 2px rgba(11, 37, 73, 0.06), 0 10px 28px rgba(11, 37, 73, 0.07);
  --shadow-2: 0 2px 4px rgba(11, 37, 73, 0.06), 0 28px 70px rgba(11, 37, 73, 0.16);
  --maxw: 1200px;
  --nav-h: 64px;
  --pad-y: clamp(72px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--head); font-optical-sizing: auto; }
p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
small, .fine, .hero-note { letter-spacing: 0.01em; }
b { font-weight: 650; }

html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.75; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: var(--font-ar); letter-spacing: 0 !important; line-height: 1.3 !important; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; transition: top 0.2s var(--ease-out); }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 650; font-size: 1rem; white-space: nowrap; transition: transform 0.1s var(--ease-out), background 0.2s, box-shadow 0.2s, opacity 0.2s; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { cursor: not-allowed; opacity: 0.45; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 20px rgba(229, 56, 74, 0.3); }
.btn-primary:hover:not(:disabled) { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--head); }
.btn-ghost:hover { background: color-mix(in srgb, var(--head) 8%, transparent); }
.btn-sm { min-height: 38px; padding: 0 18px; font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.nav::after { content: ""; position: absolute; inset: 100% 0 auto 0; height: 28px; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease-out); background: linear-gradient(to bottom, var(--nav-bg), transparent); }
.nav.scrolled::after { opacity: 1; }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; font-size: 0.92rem; font-weight: 500; color: var(--muted); }
.nav-links a { padding: 8px 0; transition: color 0.2s; }
.nav-links a:hover { color: var(--head); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { min-height: 38px; min-width: 56px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; color: var(--head); transition: transform 0.1s var(--ease-out), background 0.2s; }
.lang:hover { background: color-mix(in srgb, var(--head) 8%, transparent); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: var(--head); transition: transform 0.1s var(--ease-out); }
.lang:active, .menu-btn:active, .faq summary:active { transform: scale(0.97); }
.btn, .lang, .menu-btn, .faq summary, .nav-links a, .chip, .tbl { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---------- Type scale ---------- */
.h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 800; text-wrap: balance; }
.h2.narrow { max-width: 21ch; }
.sub { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 58ch; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 46ch; text-wrap: pretty; }
.aside { margin-top: 48px; max-width: 62ch; color: var(--muted); }

/* ---------- Sections ---------- */
.sect { padding-block: var(--pad-y); }
.tint { background: var(--tint); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(56px, 7vw, 104px); background: radial-gradient(900px 480px at 85% 0%, rgba(229, 56, 74, 0.1), transparent 70%), var(--ground); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); max-width: 46ch; }
html[dir="rtl"] .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.25 !important; }

/* The playable floor */
.try { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 20px; border: 1px solid var(--line); }
.try-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.try-head b { display: block; font-family: var(--font-display); color: var(--head); font-size: 1rem; }
.try-head small { color: var(--muted); font-size: 0.85rem; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--coral); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; }
.try-controls { display: grid; gap: 10px; margin-bottom: 8px; }
.chips { border: 0; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chips legend { float: inline-start; font-size: 0.85rem; color: var(--muted); margin-inline-end: 6px; padding: 0; min-width: 6.6em; }
.chips legend + * { clear: none; }
.chip { min-width: 46px; min-height: 40px; padding: 0 11px; font-size: 0.94rem; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--head); font-weight: 650; cursor: pointer; transition: transform 0.1s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover:not(:disabled):not([aria-pressed="true"]) { background: color-mix(in srgb, var(--head) 7%, transparent); }
.chip:active:not(:disabled) { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: var(--paper); }
.chip:disabled { color: var(--muted); opacity: 0.55; text-decoration: line-through; cursor: not-allowed; }

.floor-wrap { margin-top: 6px; border-radius: var(--r-md); background: var(--ground); padding: 8px; }
.floor { display: block; width: 100%; height: auto; user-select: none; }
.floor .room { fill: color-mix(in srgb, var(--head) 4%, transparent); stroke: var(--line); stroke-width: 1.5; }
.floor .room.out { stroke-dasharray: 6 6; }
.floor .area { font: 600 13px var(--font-body); fill: var(--muted); }
.floor .chair { fill: color-mix(in srgb, var(--head) 22%, transparent); transition: fill 0.4s var(--ease-out); }
.floor .tbl { cursor: default; outline: none; transition: opacity 0.4s var(--ease-out); }
.floor .tbl .body { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; transition: fill 0.5s var(--ease-out), stroke 0.3s, stroke-width 0.3s; }
.floor .tbl text { font: 700 13px var(--font-display); fill: var(--head); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 0.3s; }
.floor .tbl .sub { font: 600 10px var(--font-body); fill: var(--muted); }
.floor .tbl.taken .body { fill: var(--saffron); stroke: color-mix(in srgb, var(--saffron) 70%, #000); }
.floor .tbl.taken text { fill: #3b2a05; }
.floor .tbl.taken .sub { fill: #3b2a05; }
.floor .tbl.seated .body { fill: var(--seat); stroke: var(--seat); }
.floor .tbl.seated text, .floor .tbl.seated .sub { fill: #fff; }
.floor .tbl.dim { opacity: 0.42; }
.floor .tbl.fit { cursor: pointer; }
.floor .tbl.fit .body { stroke: var(--coral); stroke-width: 3; fill: color-mix(in srgb, var(--coral) 9%, var(--paper)); }
.floor .tbl.fit:hover .body { fill: color-mix(in srgb, var(--coral) 20%, var(--paper)); }
.floor .tbl.fit:focus-visible .body { stroke-width: 5; }
.floor .tbl.sel .body { fill: var(--coral); stroke: var(--coral); }
.floor .tbl.sel text, .floor .tbl.sel .sub { fill: #fff; }
.floor .tbl.glow .body { stroke: var(--coral); stroke-width: 3.5; }
.floor .tbl.glow { animation: glow 1.6s var(--ease-out) 1; }
@keyframes glow { 0% { filter: drop-shadow(0 0 0 rgba(229, 56, 74, 0)); } 30% { filter: drop-shadow(0 0 10px rgba(229, 56, 74, 0.8)); } 100% { filter: drop-shadow(0 0 0 rgba(229, 56, 74, 0)); } }
/* The single orchestrated moment: tables settle in on load */
.floor.intro .tbl { animation: settle-in 0.9s var(--spring) both; animation-delay: calc(var(--i, 0) * 55ms + 150ms); }
@keyframes settle-in { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
.floor .tbl, .floor .chair { transform-box: fill-box; transform-origin: center; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 2px 0; font-size: 0.8rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1.5px solid var(--line); background: var(--paper); }
.legend .k-fit { border: 2.5px solid var(--coral); background: color-mix(in srgb, var(--coral) 9%, var(--paper)); }
.legend .k-taken { background: var(--saffron); border-color: color-mix(in srgb, var(--saffron) 70%, #000); }
.legend .k-free { opacity: 0.5; }
.try-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.try-status { font-size: 0.95rem; color: var(--ink); min-height: 3em; max-width: 34ch; }
.try-status.ok { color: var(--seat); font-weight: 600; }

/* ---------- Three questions ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; }
.trio article { padding-inline: 28px; border-inline-start: 1.5px solid var(--line); }
.trio article:first-child { padding-inline-start: 0; border-inline-start: 0; }
.trio h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.trio p { color: var(--muted); max-width: 40ch; }
.trio p b { color: var(--head); }

/* ---------- One evening ---------- */
.evening { padding-block: var(--pad-y); background: var(--tint); }
.ev-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); margin-top: 56px; align-items: start; }
.ev-steps { counter-reset: none; }
.ev-step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; padding-block: 24px; opacity: 0.32; transition: opacity 0.5s var(--ease-out); }
.ev-step:first-child { min-height: 56vh; }
.ev-step:last-child { min-height: 80vh; justify-content: flex-start; }
.ev-step.is-active { opacity: 1; }
.ev-step time { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; color: var(--coral-text); line-height: 1; }
.ev-step h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 14px 0 10px; }
.ev-step p { color: var(--muted); max-width: 44ch; }
.ev-stage { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.ev-panel { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 18px; border: 1px solid var(--line); }
.ev-clock { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; }
.ev-clock b { font-family: var(--font-display); font-size: 1.15rem; color: var(--head); }
.ev-clock span { font-size: 0.85rem; color: var(--muted); }
.ev-see { margin-top: 12px; min-height: 148px; display: grid; align-content: start; gap: 8px; }
.see { animation: see-in 0.55s var(--spring) both; display: grid; gap: 8px; }
@keyframes see-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.see .tag { font-size: 0.82rem; color: var(--muted); }
.see .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ground); font-size: 0.95rem; }
.see .row b { color: var(--head); }
.see .row small { display: block; color: var(--muted); font-size: 0.8rem; }
.see .mini-btn { flex: none; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--head); color: var(--paper); font-weight: 650; font-size: 0.88rem; display: inline-flex; align-items: center; }
.see .mini-btn.done { background: var(--seat); color: #fff; }
.see .b { padding: 10px 14px; border-radius: 16px; font-size: 0.92rem; max-width: 88%; }
.see .b.g { background: #d9fdd3; color: #16202f; justify-self: end; border-end-end-radius: 5px; }
.see .b.a { background: var(--ground); justify-self: start; border-end-start-radius: 5px; }
.see .fork { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.see .fork span { padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 0.88rem; text-align: center; }
.see .fork span.on { background: var(--head); border-color: var(--head); color: var(--paper); font-weight: 650; }
.see .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.see .kp div { padding: 10px 12px; border-radius: 12px; background: var(--ground); }
.see .kp b { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--head); line-height: 1.1; }
.see .kp span { font-size: 0.78rem; color: var(--muted); }
.see .page { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-md); background: var(--ground); }
.see .page b { font-family: var(--font-display); font-size: 1.05rem; }
.see .days { display: flex; gap: 6px; }
.see .days span { flex: 1; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--paper); font-size: 0.82rem; }
.see .days span.on { background: var(--head); color: var(--paper); font-weight: 650; }

/* ---------- Split blocks, lists ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.split.flip > :first-child { order: 2; }
.dl { margin-top: 36px; display: grid; gap: 0; }
.dl > div { padding-block: 18px; border-top: 1.5px solid var(--line); display: grid; gap: 4px; }
.dl > div:last-child { border-bottom: 1.5px solid var(--line); }
.dl.cols { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 88px); margin-top: 56px; }
.dl.cols > div:nth-last-child(2) { border-bottom: 1.5px solid var(--line); }
.dt, dt { font-weight: 650; color: var(--head); font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -0.01em; }
dd { color: var(--muted); max-width: 56ch; }

.phones { display: flex; justify-content: center; gap: 18px; }
.phone { width: 46%; max-width: 270px; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow-2); border: 6px solid var(--bezel); background: var(--bezel); }
.phone:nth-child(2) { margin-top: 56px; }

.chat-wrap { display: flex; justify-content: center; }
.chat { width: 100%; max-width: 420px; background: #efe9e0; border-radius: 34px; padding: 18px; box-shadow: var(--shadow-2); border: 6px solid var(--bezel); }
.chat-top { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; color: #16202f; }
.chat-top b { display: block; font-size: 0.95rem; color: #0b2549; }
.chat-top small { color: #1c8a5a; font-size: 0.78rem; }
.msgs { display: flex; flex-direction: column; gap: 9px; min-height: 290px; }
.bubble { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 0.94rem; line-height: 1.45; color: #16202f; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.3s var(--ease-out), transform 0.7s var(--spring); }
.in-view .bubble { opacity: 1; transform: none; }
.in-view .bubble:nth-child(2) { transition-delay: 0.5s; }
.in-view .bubble:nth-child(3) { transition-delay: 1.1s; }
.in-view .bubble:nth-child(4) { transition-delay: 1.7s; }
.bubble.guest { align-self: flex-end; background: #d9fdd3; border-end-end-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #fff; border-end-start-radius: 6px; }
.bubble small { display: block; margin-top: 4px; color: #6b7280; font-size: 0.72rem; }

.bleed { margin-top: 48px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-2); background: #fff; }

/* ---------- Owner ---------- */
.on-dark { background: var(--navy); color: #fff; }
.on-dark .h2, .on-dark h3 { color: #fff; }
.on-dark .sub, .on-dark .aside { color: rgba(255, 255, 255, 0.74); }
.owner-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); margin-top: 56px; align-items: start; }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35); background: #fff; }
.defs { border-collapse: collapse; width: 100%; }
.defs th, .defs td { text-align: start; vertical-align: top; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.defs tr:last-child th, .defs tr:last-child td { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.defs th { font-family: var(--font-display); font-weight: 700; color: #fff; width: 38%; padding-inline-end: 20px; font-size: 0.98rem; }
.defs td { color: rgba(255, 255, 255, 0.78); font-size: 0.97rem; }

/* ---------- Kuwait ---------- */
.say { display: grid; gap: 18px; align-content: center; padding: clamp(8px, 3vw, 40px); }
.say-ar { font-family: var(--font-ar); font-weight: 700; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.4; color: var(--head); text-align: start; text-wrap: balance; }
.say-en { color: var(--muted); font-size: 1.1rem; border-inline-start: 4px solid var(--coral); padding-inline-start: 16px; }
html[dir="rtl"] .say-en { text-align: end; }

/* ---------- Included lists ---------- */
.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 52px; }
.lists h3 { font-size: 1.2rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--head); }
.lists li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; color: var(--muted); }
.lists li b { color: var(--head); }
.not { margin-top: 48px; padding: 22px 26px; border-radius: var(--r-md); background: var(--paper); max-width: 72ch; border-inline-start: 4px solid var(--coral); color: var(--muted); }
.not b { color: var(--head); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; counter-reset: s; }
.steps li { counter-increment: s; padding-inline-end: 28px; padding-top: 18px; border-top: 2px solid var(--head); position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -17px; inset-inline-start: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--head); color: var(--ground); font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; display: grid; place-items: center; }
.steps h3 { font-size: 1.15rem; margin: 14px 0 8px; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .h2 { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq { border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); interpolate-size: allow-keywords; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 650; color: var(--head); display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; transition: transform 0.1s var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--coral); transition: transform 0.5s var(--spring); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.55s var(--spring), content-visibility 0.55s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA ---------- */
.cta { background: var(--navy); color: #fff; padding-block: var(--pad-y); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -0.028em; font-weight: 800; text-wrap: balance; }
.cta .lead { margin-top: 18px; color: rgba(255, 255, 255, 0.8); }
.cta ul { margin-top: 28px; display: grid; gap: 12px; }
.cta li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, 0.9); }
.cta li .icon { color: #ff8793; }
form.card { --head: #0b2549; --ink: #16202f; --muted: #55627a; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-2); display: grid; gap: 16px; }
form h3 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 650; color: #0b2549; }
.field input, .field select, .field textarea { font: inherit; width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #d5d9e2; background: #f7f9fb; color: #16202f; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(229, 56, 74, 0.16); background: #fff; }
.field input:user-invalid { border-color: var(--coral-dark); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fine { font-size: 0.82rem; color: #6b7280; }
.ok-msg { display: none; text-align: center; padding: 24px 8px; }
.ok-dot { margin: 0 auto 14px; width: 56px; height: 56px; border-radius: 50%; background: #e3f4ec; color: #1f6b4f; display: grid; place-items: center; }
form.sent > :not(.ok-msg) { display: none; }
form.sent .ok-msg { display: block; }

/* ---------- Footer ---------- */
footer { background: #0a1d3a; color: rgba(255, 255, 255, 0.72); padding: 56px 0 40px; font-size: 0.95rem; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot img { height: 26px; width: auto; margin-bottom: 14px; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot a:hover { color: #fff; }
.legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }

/* ---------- Mobile menu scrim ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease-out); }
.nav.open + .scrim { opacity: 1; pointer-events: auto; }
@media (min-width: 1001px) { .scrim { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: flex; flex-direction: column; position: absolute; inset: calc(var(--nav-h) - 4px) 12px auto 12px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 8px 22px; gap: 0;
    transform-origin: top right; opacity: 0; visibility: hidden; transform: scale(0.94) translateY(-10px);
    transition: transform 0.45s var(--spring-momentum), opacity 0.2s var(--ease-out), visibility 0s linear 0.45s; }
  html[dir="rtl"] .nav-links { transform-origin: top left; }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 15px 0; font-size: 1.05rem; min-height: 48px; }
  .nav-links a + a { box-shadow: 0 -1px 0 var(--line); }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid, .split, .owner-grid, .cta-grid, .faq-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .faq-grid .h2 { position: static; }
  .trio { grid-template-columns: 1fr; gap: 36px; }
  .trio article, .trio article:first-child { padding-inline: 0; border-inline-start: 0; padding-top: 24px; border-top: 1.5px solid var(--line); }
  .trio article:first-child { border-top: 0; padding-top: 0; }
  .lists, .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .dl.cols { grid-template-columns: 1fr; }
  .dl.cols > div:nth-last-child(2) { border-bottom: 0; }
  /* evening: the floor pins to the top, steps scroll beneath it */
  .ev-grid { grid-template-columns: 1fr; gap: 0; }
  .ev-stage { position: sticky; top: var(--nav-h); z-index: 5; order: -1; margin-inline: -24px; padding: 10px 24px 14px; background: color-mix(in srgb, var(--tint) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .ev-panel { padding: 10px; box-shadow: var(--shadow-1); }
  .ev-see { min-height: 0; max-height: 132px; overflow: hidden; }
  .ev-step, .ev-step:first-child, .ev-step:last-child { min-height: 52vh; justify-content: flex-start; padding-top: 36px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .nav-actions .btn { display: none; }
  .lists, .steps, .two { grid-template-columns: 1fr; }
  .chips legend { float: none; width: 100%; margin-bottom: 4px; }
  .try { padding: 14px; }
  .try-foot { flex-direction: column; align-items: stretch; }
  .try-status { max-width: none; min-height: 2.6em; }
  .phone:nth-child(2) { margin-top: 28px; }
  .ev-stage { margin-inline: -18px; padding-inline: 18px; }
  .defs th { width: 40%; }
}

/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0a111d; --tint: #0e1727; --paper: #121c2e;
    --ink: #e9edf4; --muted: #a8b2c3; --head: #f1f4fa; --coral-text: #ff8793;
    --line: rgba(255, 255, 255, 0.13);
    --nav-bg: rgba(10, 17, 29, 0.74); --float-bg: rgba(18, 28, 46, 0.8); --bezel: #1b2740; --scrim: rgba(0, 0, 0, 0.55);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 28px 70px rgba(0, 0, 0, 0.5);
  }
  .nav { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  .hero { background: radial-gradient(900px 480px at 85% 0%, rgba(229, 56, 74, 0.16), transparent 70%), var(--ground); }
  .floor .tbl.seated .body { fill: #2a8a65; stroke: #2a8a65; }
  .floor .chair { fill: rgba(255, 255, 255, 0.2); }
  .see .b.g { background: #1f4d36; color: #e9edf4; }
  .floor .tbl.fit .body { fill: color-mix(in srgb, var(--coral) 16%, var(--paper)); }
  .try-status.ok { color: #4fd39b; }
  .chat { background: #1a2230; }
  .on-dark { background: #0b2549; }
  footer, .cta { border-top: 1px solid rgba(255, 255, 255, 0.06); }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floor.intro .tbl, .floor .tbl.glow, .see { animation: none; }
  .bubble { transform: none; transition: opacity 0.2s linear; transition-delay: 0s !important; }
  .nav-links { transform: none !important; transition: opacity 0.2s linear, visibility 0s linear 0.2s; }
  .faq details::details-content { transition: none; }
  .floor .tbl .body { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .ev-stage { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--ground); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(11, 37, 73, 0.5); --muted: #2b313c; }
  .nav { background: var(--ground); }
}
