/* Starlink SpaceX Pre-Order v2: visual journey for older customers.
   Starlink screens are black-heavy. Starlink Qatar elements (.sqa: header strip, trust strip, retailer note, footer,
   help sheet, confirmation) follow the Starlink Qatar design system: plum, amber, white cards, Nohemi and General Sans.
   Large type, one question per screen, 56px+ targets. Logical properties; Arabic is served right to left. */

@font-face { font-family: 'Nohemi'; src: url('/starlink-satellite/assets/fonts/Nohemi-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/starlink-satellite/assets/fonts/GeneralSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/starlink-satellite/assets/fonts/GeneralSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'General Sans'; src: url('/starlink-satellite/assets/fonts/GeneralSans-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --font: 'Barlow', 'D-DIN', 'DIN Alternate', 'DIN 2014', 'Helvetica Neue', Arial, sans-serif;
  --black: #000000;
  --panel: #121212;
  --panel-2: #1C1C1C;
  --line: #2E2E2E;
  --line-strong: #6A6A6A;
  --white: #FFFFFF;
  --muted: #B5B5B5;        /* 10:1 on black */
  --sand: #D9C7A6;
  --error: #FF8A80;
  --ok: #8FE3A8;
  --sqa-maroon: #691A40;   /* white on it 11.5:1 */
  --sqa-gold: #FCAF26;     /* 11:1 on black, 6.9:1 on maroon */
  --stamp-h: 28px;
  --col: 640px;
  --sq-display: 'Nohemi', 'General Sans', Arial, sans-serif;
  --sq-body: 'General Sans', Arial, sans-serif;
  --sq-plum: #691A40;
  --sq-plum-dark: #290F26;
  --sq-amber: #FCAF26;
  --sq-blush: #F0EAED;
  --sq-border: #E7E7E7;
  --sq-text: #1A1A1A;
  --sq-text-body: #444444;
  --font-ar: 'SF Arabic', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-weight: 500; font-size: 18px; line-height: 1.45; letter-spacing: 0.01em; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
bdi.price, .price { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }

/* Stamp and prototype bar */
.stamp { position: sticky; inset-block-start: 0; z-index: 120; height: var(--stamp-h); display: flex; align-items: center; justify-content: center; background: #262626; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.protobar { background: #1A1A1A; border-block-end: 1px solid var(--line); font-size: 12px; }
.protobar-inner { max-width: var(--col); margin: 0 auto; padding: 6px 16px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.protobar strong { letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px; }
.protobar .pill { border: 1px solid var(--line-strong); border-radius: 40px; padding: 3px 10px; }
.protobar a { color: var(--white); }

.shell { max-width: var(--col); margin: 0 auto; min-height: calc(100vh - var(--stamp-h)); position: relative; }

/* Retailer strip (Starlink Qatar) */
.sqa { font-family: var(--sq-body); letter-spacing: 0.01em; }
.retailer-strip { display: flex; align-items: center; gap: 10px 12px; padding: 10px 16px; min-height: 68px; background: var(--sq-plum); border-block-end: 2px solid var(--sq-amber); }
.retailer-strip .sqa-logo { height: 32px; width: auto; flex: none; }
.retailer-strip .label { font-size: 12px; font-weight: 600; color: var(--sq-blush); line-height: 1.25; }
.lang-btn { margin-inline-start: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px; border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.6); background: transparent; color: var(--white); font-family: var(--font-ar), var(--sq-body); font-size: 17px; font-weight: 600; cursor: pointer; }
.lang-btn[lang='en'] { font-family: var(--sq-body); }
.lang-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* Top bar on each step */
.topbar { position: sticky; inset-block-start: var(--stamp-h); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--black); border-block-end: 1px solid var(--line); }
.icon-btn { width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.icon-btn:hover { border-color: var(--white); }
.icon-btn-spacer { width: 56px; flex: none; }
.prog { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prog-text { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }
.dots { display: flex; align-items: center; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 999px; border: 1px solid var(--line-strong); display: block; }
.dots i.past { background: var(--sand); border-color: var(--sand); }
.dots i.now { background: var(--white); border-color: var(--white); width: 22px; }

/* Screen */
.screen { padding: 24px 20px 48px; }
.q-title { font-size: 30px; line-height: 1.12; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin: 4px 0 22px; outline: none; }
.q-sub { font-size: 22px; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin: 30px 0 16px; }

/* Picture tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tiles-1 { grid-template-columns: 1fr; }
.tiles-2 { grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; text-align: start; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--panel); border: 2px solid var(--line); border-radius: 16px; color: var(--white); min-height: 120px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.tile:hover { border-color: var(--line-strong); }
.tile:active { transform: scale(0.98); }
.tile[aria-pressed='true'] { border: 3px solid var(--white); }
.t-img { display: block; background: var(--white); }
.t-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.t-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 1 / 1; background: var(--panel-2); }
.t-big b { font-size: 46px; line-height: 1; letter-spacing: 0.02em; }
.t-label { display: block; padding: 14px 14px 16px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.t-label small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-block-start: 4px; }
.t-check { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 999px; background: var(--white); color: var(--black); display: none; align-items: center; justify-content: center; }
.tile[aria-pressed='true'] .t-check { display: inline-flex; }
/* Wide tiles: icon beside the words (Not sure, call times, who) */
.tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 88px; }
.tile.wide .t-big { aspect-ratio: auto; width: 88px; align-self: stretch; flex: none; }
.tile.wide .t-label { padding: 16px 56px 16px 18px; }
.tiles-2 .tile:not(.has-img) .t-big { aspect-ratio: auto; padding: 22px 0 6px; background: transparent; }
.tiles-2 .tile:not(.has-img) .t-label { text-align: center; padding-block-start: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 40px; border: 1px solid transparent; font-weight: 600; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; text-decoration: none; transition: background-color 150ms ease; }
.btn-xl { min-height: 64px; width: 100%; font-size: 18px; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: #DCDCDC; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--white); }
.btn[aria-disabled='true'] { opacity: 0.6; cursor: progress; }
.actions { margin-block-start: 28px; }
.link-btn { background: none; border: 0; padding: 0; min-height: 48px; color: var(--white); text-decoration: underline; text-underline-offset: 4px; font-size: 17px; font-weight: 600; cursor: pointer; }
.links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: 14px; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-block-start: 18px; padding: 0 16px; border-radius: 40px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 16px; font-weight: 600; cursor: pointer; }
.links .more { margin-block-start: 0; }

/* Welcome */
/* Banner carousel: swipe or tap a dot, no auto-rotate */
.banner { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline-offset: -3px; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111111; }
.slide figcaption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: 48px 20px 48px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0)); }
.b-tag { font-size: 13px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--sand); }
.b-cap { font-size: 22px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.15; }
.b-cap small { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; color: #E0E0E0; text-transform: none; margin-block-start: 4px; }
.bdots { position: absolute; inset-block-end: 4px; inset-inline-end: 10px; display: flex; }
.bdots button { width: 44px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.bdots span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.5); transition: width 150ms ease; }
.bdots button[aria-current='true'] span { width: 26px; background: var(--white); }
.w-text { padding: 24px 20px 40px; display: grid; gap: 14px; }
.w-text .starlink-logo { height: 20px; width: auto; margin-block-end: 6px; }
.greeting { margin: 0; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.18em; }
.w-title { margin: 0 0 10px; font-size: 40px; line-height: 1.05; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; outline: none; }
.w-text .more { justify-self: center; margin-block-start: 4px; }

/* Setup */
.hero-kit { background: var(--white); border-radius: 16px; overflow: hidden; }
.hero-kit img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 18px; }
.item img, .item .ph { width: 64px; height: 64px; border-radius: 10px; background: var(--white); object-fit: contain; }
.item .ph { background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.item.kit-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
.i-name { font-weight: 600; line-height: 1.25; }
.i-name.big { font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; }
.i-name small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; margin-block-start: 2px; }
.i-note { font-size: 14px; color: var(--muted); text-align: end; max-width: 140px; }
.item.note { border-style: dashed; border-color: var(--sand); }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-block-start: 18px; padding-block-start: 16px; border-block-start: 1px solid var(--line); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.total .price { font-size: 30px; letter-spacing: 0.03em; }
.small-note { font-size: 15px; color: var(--muted); margin: 8px 0 0; }
.price { font-weight: 600; }

/* Forms */
.form { display: grid; gap: 8px; }
.big-label { font-size: 20px; font-weight: 600; margin-block-start: 12px; }
.input { width: 100%; min-height: 64px; padding: 12px 18px; border-radius: 12px; border: 2px solid var(--line-strong); background: var(--black); color: var(--white); font-size: 22px; }
.input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-color: var(--white); }
.input[aria-invalid='true'] { border-color: var(--error); }
.phone-wrap { display: flex; }
.phone-wrap .cc { display: inline-flex; align-items: center; padding: 0 16px; font-size: 22px; font-weight: 600; border: 2px solid var(--line-strong); border-inline-end: 0; border-start-start-radius: 12px; border-end-start-radius: 12px; background: var(--panel-2); direction: ltr; }
.phone-wrap .input { border-start-start-radius: 0; border-end-start-radius: 0; direction: ltr; letter-spacing: 0.08em; }
.err { color: var(--error); font-size: 17px; font-weight: 600; margin: 6px 0 0; }
.err::before { content: '! '; }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 18px; font-weight: 600; margin: 14px 0 0; }
.or { text-align: center; color: var(--muted); margin: 22px 0 10px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.16em; }
.btn-locate { min-height: 72px; font-size: 19px; }

/* Map placeholder */
.map { position: relative; height: 240px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line-strong); touch-action: none; background-color: #0C0C0C; background-image: linear-gradient(#222 1px, transparent 1px), linear-gradient(90deg, #222 1px, transparent 1px); background-size: 30px 30px; }
.map-label { position: absolute; inset-inline-start: 8px; inset-block-end: 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: var(--muted); }
.pin { position: absolute; width: 56px; height: 56px; margin-left: -28px; margin-top: -52px; border: 0; background: transparent; padding: 0; color: var(--white); cursor: grab; display: flex; justify-content: center; }
.pin svg { fill: var(--black); }

/* Review */
.sum-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.sum-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.sum-img img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--white); }
.sum-head b { display: block; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; }
.sum-head small { display: block; color: var(--muted); font-size: 15px; }
.sum-card .total { margin-block-start: 14px; }
.disclaimer { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.sum-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.sum-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 18px; }
.s-ic { width: 48px; height: 48px; border-radius: 999px; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; }
.s-val small { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; }
.icon-btn.edit { width: 52px; height: 52px; }
.consent { font-size: 15px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.alert-error { border: 2px solid var(--error); background: #1E0B0A; color: #FFD9D5; border-radius: 12px; padding: 14px 16px; font-size: 17px; margin: 16px 0; }
.alert-error b { display: block; color: var(--error); margin-block-end: 4px; }

/* Pay */
.banner-proto { border: 1px dashed var(--sand); color: var(--sand); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 16px; margin-block-end: 18px; }
.pay-total { font-size: 44px; font-weight: 600; letter-spacing: 0.02em; margin: -6px 0 22px; }
.spinner { width: 20px; height: 20px; border-radius: 999px; border: 3px solid currentColor; border-inline-end-color: transparent; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation screen: dark, centred, consistent with the configurator. */
.done { background: var(--black); color: var(--white); padding: 44px 20px 64px; display: flex; justify-content: center; }
.done-inner { width: 100%; max-width: 460px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.done-tick { width: 96px; height: 96px; border-radius: 999px; background: var(--sq-plum); color: var(--white); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--black), 0 0 0 8px var(--sq-amber); margin-block: 8px 2px; }
.done-title { font-size: 42px; font-weight: 600; line-height: 1.05; letter-spacing: 0.03em; text-transform: uppercase; margin: 0; outline: none; }
.done-title::after { content: ''; display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--sq-amber); margin: 16px auto 0; }
.done-line { font-size: 20px; font-weight: 500; color: #DDDDDD; margin: 0; }
.done-time { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--white); padding: 12px 22px; border-radius: 40px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-strong); margin: 2px 0; }
.done-ref { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; box-sizing: border-box; padding: 14px 20px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); }
.done-ref span { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #BDBDBD; }
.done-ref bdi { font-size: 18px; font-weight: 600; color: var(--white); direction: ltr; letter-spacing: 0.06em; word-break: break-all; }
.done .btn-primary { width: 100%; margin-block-start: 6px; }
.done-restart { color: #BDBDBD; }

/* Sheets: the detail lives here, only when asked for */
.sheet-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.75); display: flex; align-items: flex-end; justify-content: center; }
.sheet { position: relative; width: 100%; max-width: var(--col); max-height: 88vh; overflow: auto; background: #141414; border: 1px solid var(--line); border-radius: 20px 20px 0 0; }
.sheet-stamp { position: sticky; top: 0; background: #262626; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px; }
.sheet-close { position: absolute; inset-block-start: 40px; inset-inline-end: 14px; }
.sheet-body { padding: 18px 20px 32px; }
.sheet h2 { font-size: 24px; text-transform: uppercase; letter-spacing: 0.04em; margin: 8px 64px 14px 0; }
.sheet h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.14em; margin: 22px 0 8px; color: var(--sq-amber); }
.sheet p { font-size: 18px; color: #DDDDDD; }
.sheet-line { display: flex; gap: 10px; align-items: center; }
.sheet-retailer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-block-start: 18px; padding: 14px 16px; background: var(--sq-plum); border-block-end: 2px solid var(--sq-amber); border-radius: 12px; font-family: var(--sq-body); font-size: 13px; font-weight: 600; color: var(--sq-blush); }
.sheet-retailer img { height: 28px; width: auto; }
.sheet-steps { padding-inline-start: 22px; margin: 0; display: grid; gap: 8px; color: #DDDDDD; }
.feat { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.feat li { display: flex; gap: 8px; align-items: center; }
.feat svg { color: var(--sand); }
.acc-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-block-end: 1px solid var(--line); }
.acc-row img, .acc-row .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--white); object-fit: contain; }
.acc-row .ph { background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 40px; }
.stepper button { width: 52px; height: 52px; border: 0; background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 999px; }
.stepper button[disabled] { color: #555; cursor: not-allowed; }
.stepper output { min-width: 24px; text-align: center; font-weight: 600; font-size: 20px; }
.placeholder-text { color: var(--sand); border: 1px dashed var(--sand); border-radius: 6px; padding: 1px 6px; }

/* Desktop: same journey in a wider centred column; the welcome screen splits photo and text */
@media (min-width: 960px) {
  :root { --col: 760px; }
  .shell[data-step='welcome'] { max-width: none; }
  .shell[data-step='welcome'] .welcome { display: grid; grid-template-columns: 1fr 1.1fr; min-height: calc(100vh - var(--stamp-h) - 140px); }
  .shell[data-step='welcome'] .w-photo { order: 1; }
  .shell[data-step='welcome'] .w-photo img { height: 100%; aspect-ratio: auto; }
  .shell[data-step='welcome'] .w-text { align-content: center; padding: 48px max(40px, calc((100vw - 1200px) / 2)); padding-inline-end: 56px; }
  .shell[data-step='welcome'] .w-title { font-size: 60px; }
  .shell[data-step='welcome'] .retailer-strip { padding-inline: max(40px, calc((100vw - 1200px) / 2)); }
  .shell[data-step='welcome'] .btn-xl { max-width: 440px; }
  .q-title { font-size: 40px; }
  .tiles { gap: 18px; }
  /* Picture choices sit in one row on desktop */
  .shell[data-step='use'] { max-width: 1040px; }
  .shell[data-step='use'] .tiles { grid-template-columns: repeat(4, 1fr); }
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 20px; }
}

/* About, trust strip and footer */
.about { padding: 8px 20px 4px; display: grid; gap: 14px; }
.about-starlink .q-sub { margin-block-start: 8px; }
.about-starlink p { margin: 0; font-size: 18px; color: #DDDDDD; }
.about-retailer { display: flex; gap: 14px; align-items: center; background: var(--white); color: var(--sq-text-body); border: 1px solid var(--sq-border); border-inline-start: 4px solid var(--sq-plum); border-radius: 16px; padding: 16px; }
.about-retailer .sqa-logo { height: 28px; width: auto; flex: none; }
.about-retailer p { margin: 0; font-size: 16px; line-height: 1.45; }
.trust { margin: 20px; background: var(--white); border: 1px solid var(--sq-border); border-radius: 16px; padding: 14px 8px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 4px 6px; }
.trust li + li { border-inline-start: 1px solid var(--sq-blush); }
.t-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--sq-blush); color: var(--sq-plum); display: inline-flex; align-items: center; justify-content: center; }
.trust b { display: block; font-family: var(--sq-display); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--sq-text); }
.trust small { display: block; font-size: 13px; line-height: 1.3; color: var(--sq-text-body); margin-block-start: 2px; }
.footer { background: var(--sq-plum); color: var(--white); border-block-start: 2px solid var(--sq-amber); padding: 24px 20px 32px; }
.f-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 12px; }
.f-top .sqa-logo { height: 30px; width: auto; }
.f-top .label { font-size: 13px; font-weight: 600; color: var(--sq-amber); }
.footer .disclaimer { color: var(--sq-blush); font-size: 14px; }
.f-meta { margin: 0; font-size: 14px; color: var(--sq-blush); }
.footer .placeholder-text { color: var(--sq-amber); border-color: var(--sq-amber); }

/* Kit screen: accessories are for viewing only */
.acc-info { margin-block-start: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-block-end: 14px; }
.acc-head .q-sub { margin: 0; }
.view-only { flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 40px; border: 1px solid var(--line-strong); color: var(--muted); }
.acc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.acc-grid li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.a-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; background: var(--white); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.a-img img { width: 100%; height: 100%; object-fit: contain; }
.a-img.a-more { background: var(--panel-2); color: var(--muted); }
.a-lbl { font-size: 15px; line-height: 1.25; color: #DDDDDD; }
.acc-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding-block-start: 14px; border-block-start: 1px solid var(--line); font-size: 17px; color: #EEEEEE; }
.acc-note svg { flex: none; color: var(--sand); margin-block-start: 2px; }

/* Installation tiles, review lines, check box */
.t-side { display: block; margin-block-start: 8px; font-size: 22px; font-weight: 600; }
.fixed-note { display: flex; gap: 10px; align-items: center; margin: 18px 0 0; font-size: 17px; color: #DDDDDD; }
.fixed-note svg { flex: none; color: var(--sand); }
.lines { margin-block-start: 14px; display: grid; gap: 8px; }
.line { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; }
.line.muted { color: var(--muted); font-size: 15px; }
.pay-lines { display: grid; gap: 8px; margin: -8px 0 6px; }
.check-big { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; margin-block-start: 18px; padding: 8px 14px; border-radius: 12px; border: 2px solid var(--line-strong); font-size: 19px; font-weight: 600; cursor: pointer; }
.check-big input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-big .box { width: 36px; height: 36px; flex: none; border-radius: 8px; border: 2px solid var(--white); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.check-big input:checked + .box { background: var(--white); color: var(--black); }
.check-big:has(input:focus-visible) { outline: 3px solid var(--white); outline-offset: 3px; }

@media (min-width: 960px) {
  .shell[data-step='welcome'] .about, .shell[data-step='welcome'] .trust, .shell[data-step='welcome'] .footer { max-width: 1200px; margin-inline: auto; }
  .shell[data-step='welcome'] .about { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding-block: 40px 8px; }
  .shell[data-step='welcome'] .trust { margin-block: 24px; }
  .shell[data-step='welcome'] .trust li { flex-direction: row; text-align: start; padding-inline: 20px; }
  .shell[data-step='welcome'] .footer { max-width: none; padding-inline: max(40px, calc((100vw - 1200px) / 2)); }
  .shell[data-step='welcome'] .banner, .shell[data-step='welcome'] .slides, .shell[data-step='welcome'] .slide, .shell[data-step='welcome'] .slide picture { height: 100%; }
  .shell[data-step='welcome'] .slide picture { display: block; }
  .shell[data-step='welcome'] .slide img { height: 100%; aspect-ratio: auto; }
  .shell[data-step='welcome'] .w-photo { min-width: 0; }
  .shell[data-step='setup'] .acc-grid { grid-template-columns: repeat(6, 1fr); }
  .shell[data-step='done'] { max-width: none; }
}

/* Arabic (right to left): Arabic letters must never be spaced apart or uppercased. */
html[dir='rtl'] body, html[dir='rtl'] .sqa, html[dir='rtl'] .sqa-title, html[dir='rtl'] .btn, html[dir='rtl'] .trust b, html[dir='rtl'] .next-list b, html[dir='rtl'] .done-h { font-family: var(--font-ar); }
html[dir='rtl'] *:not(.protobar *):not(.stamp) { letter-spacing: 0 !important; text-transform: none !important; }
html[dir='rtl'] .flip svg, html[dir='rtl'] .icon-btn.flip svg { transform: scaleX(-1); }
html[dir='rtl'] body { line-height: 1.6; }
html[dir='rtl'] .q-title, html[dir='rtl'] .w-title { line-height: 1.3; }
.phone-wrap { direction: ltr; }

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

/* Small phones: keep the header strip inside the screen and let the retailer note stack */
.retailer-strip .label { flex: 1 1 auto; min-width: 0; }
.i-name.big small { text-transform: none; letter-spacing: 0.01em; font-size: 15px; }
@media (max-width: 480px) {
  .retailer-strip { padding-inline: 12px; gap: 8px; }
  .retailer-strip .sqa-logo { height: 26px; }
  .retailer-strip .label { font-size: 11px; }
  .lang-btn { min-height: 48px; padding: 0 12px; font-size: 15px; gap: 6px; }
  .about-retailer { flex-direction: column; align-items: flex-start; }
}

/* Live map (Leaflet + OpenStreetMap): the pin stays centred while the map moves under it.
   isolation keeps Leaflet's own z-index values below the sticky bars. */
.map { position: relative; height: 300px; isolation: isolate; background: #DDDDDD; background-image: none; }
.map-canvas { position: absolute; inset: 0; }
.map-canvas[aria-invalid='true'] { box-shadow: inset 0 0 0 3px var(--error); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 1000; pointer-events: none; opacity: 0.75; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.map-pin svg { fill: var(--sq-plum); stroke: var(--white); }
.map-pin.set { opacity: 1; }
.map-fallback { margin: 0; padding: 16px; color: #333333; font-size: 16px; }
.map .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; font-size: 22px; }
.ok-line:empty { display: none; }

/* Sticky action buttons: the main button on every step stays at the bottom of the screen */
.actions { position: sticky; inset-block-end: 0; z-index: 20; padding: 16px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000 24px); }
.cta-bar { position: sticky; inset-block-end: 0; z-index: 60; display: grid; gap: 10px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.94); border-block-start: 1px solid var(--line); }
.cta-bar .btn-xl { min-height: 60px; }
@media (min-width: 960px) {
  .cta-bar { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
}
.cta-bar { background: #000000; gap: 8px; padding-block-start: 12px; }
.cta-bar .btn-ghost { background: #000000; min-height: 52px; font-size: 15px; }

/* Starlink product note above the banner (about the product, not the retailer) */
.product-intro { padding: 20px 20px 18px; background: var(--black); border-block-end: 1px solid var(--line); }
.product-intro h2 { margin: 0 0 8px; font-size: 19px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; line-height: 1.25; }
.product-intro p { margin: 0; font-size: 17px; line-height: 1.5; color: #DDDDDD; }
.product-intro ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.product-intro li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.product-intro li svg { color: var(--sand); flex: none; }
@media (min-width: 960px) {
  .product-intro { padding-inline: max(40px, calc((100vw - 1200px) / 2)); }
  .product-intro p { max-width: 820px; }
}

.product-intro .product-logo { display: block; height: 18px; width: auto; margin-block-end: 12px; }
.product-intro .product-logo { height: 20px; }

/* Optional installation */
.inst-check { margin-block: 0 18px; align-items: flex-start; padding-block: 14px; }
.inst-check small { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-block-start: 4px; }
.acc-note.no-inst { border: 0; padding: 0; margin-block-start: 4px; }

/* ======================================================================
   Kit configurator (build prompt, 3 November 2026)
   ====================================================================== */
.q-line { margin: -10px 0 22px; font-size: 18px; color: #DDDDDD; }
.w-desc { margin: 0 0 6px; font-size: 19px; line-height: 1.45; color: #E6E6E6; }
.w-support { margin: 0 0 8px; font-size: 15px; color: var(--muted); }
/* Four named stages */
.segs { display: flex; gap: 6px; }
.segs i { width: 34px; height: 6px; border-radius: 6px; background: var(--line-strong); display: block; }
.segs i.past { background: var(--sand); }
.segs i.now { background: var(--white); }
.prog-text { text-transform: uppercase; }
/* Cards */
.t-badge { display: inline-block; margin-block-end: 6px; padding: 3px 10px; border-radius: 40px; background: var(--sq-amber); color: #1A1A1A; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: none; }
.t-label > .t-badge { display: table; }
.tile.wide.has-img { align-items: stretch; }
.tile.wide.has-img .t-img { flex: none; width: 116px; }
.tile.wide.has-img .t-img img { height: 100%; aspect-ratio: auto; object-fit: cover; }
.kit-tiles .tile.wide.has-img .t-img { background: var(--white); }
.kit-tiles .tile.wide.has-img .t-img img { object-fit: contain; }
.kit-tiles .t-label { padding-inline-end: 52px; }
.pl-tiles { grid-template-columns: 1fr 1fr; align-items: start; }
.pcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard .tile { width: 100%; }
.pl-mount { display: block; margin-block-start: 8px; font-size: 15px; font-weight: 600; color: var(--sand); }
.pl-mount .price { color: var(--white); }
.pcard.off .tile { opacity: 0.55; cursor: not-allowed; }
.pl-off { display: block; margin-block-start: 8px; font-size: 14px; font-weight: 500; color: #FFD9A8; }
.pl-off b { display: block; color: #FFB15A; }
.pinfo-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 40px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 15px; font-weight: 600; cursor: pointer; }
.pinfo { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); font-size: 15px; color: #DDDDDD; }
.pl-tiles > .tile.wide { grid-column: 1 / -1; }
.small-note svg { vertical-align: -3px; color: var(--sand); }
/* Running total */
.sum-box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.sum-title { margin: 0 0 2px; font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.sum-ctx { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.sum-box .lines { margin: 0; }
.sum-box .line { font-size: 16px; align-items: flex-start; }
.survey-tag { display: block; margin-block-start: 2px; font-size: 13px; color: var(--sand); font-weight: 600; }
.sum-box .total { margin-block-start: 12px; }
.sum-box .total .price { font-size: 24px; }
.sum-card .sum-box { border: 0; padding: 0; background: transparent; }
.sum-aside { display: none; }
.sum-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; margin-block-end: 10px; padding: 0 4px; border: 0; background: transparent; color: var(--white); font-size: 18px; font-weight: 600; cursor: pointer; }
.sum-more { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: #DDDDDD; }
.sum-pop { margin-block-end: 12px; max-height: 50vh; overflow: auto; }
/* Call screen: the selection carried over */
.sel-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.sel-lbl { font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.chip-sel { padding: 6px 14px; border-radius: 40px; border: 1px solid var(--line-strong); font-size: 16px; font-weight: 600; }
@media (min-width: 960px) {
  .shell[data-step='kit'], .shell[data-step='placement'], .shell[data-step='install'] { max-width: 1120px; }
  .screen.cfg.has-sum { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
  .sum-aside { display: block; position: sticky; top: calc(var(--stamp-h) + 96px); margin-block-start: 60px; }
  .screen.cfg.has-sum .sum-toggle, .screen.cfg.has-sum .sum-pop { display: none; }
  .pl-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) { .pl-tiles { grid-template-columns: 1fr; } }
.act-note { margin: 0 0 8px; font-size: 15px; color: var(--muted); }

/* Checkout hand-off (standalone prototype only; in the store the host opens checkout) */
.dev-box { margin-block-start: 18px; border: 1px dashed var(--sand); border-radius: 14px; padding: 12px 14px; background: #0B0B0B; }
.dev-box summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--sand); min-height: 44px; display: flex; align-items: center; }
.dev-box pre { margin: 8px 0 0; max-height: 420px; overflow: auto; font: 12px/1.5 ui-monospace, Menlo, monospace; color: #DDDDDD; white-space: pre-wrap; word-break: break-all; }
.dev-box code { font-family: ui-monospace, Menlo, monospace; }
.handoff .link-btn { margin-block-start: 18px; }

/* ---------- Your details: QID and Qatar's blue address plate ---------- */
.field-hint { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.7); }
.q-sub-lg { font-size: 26px; margin-block-start: 40px; padding-block-start: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.blue-plate { --plate: #0a4a9e; max-width: 440px; padding: 14px; border-radius: 14px; background: var(--plate); border: 4px solid #fff; box-shadow: inset 0 0 0 3px var(--plate), inset 0 0 0 5px rgba(255, 255, 255, 0.55); display: grid; gap: 12px; }
.plate-row { display: grid; gap: 12px; }
.plate-row.two { grid-template-columns: 1fr 1fr; }
.plate-cell { display: grid; gap: 4px; }
.plate-cell label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.plate-cell input { width: 100%; min-height: 64px; box-sizing: border-box; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.75); background: rgba(0, 0, 0, 0.18); color: #fff; font: 600 34px/1 var(--font); text-align: center; letter-spacing: 0.08em; }
.plate-row:first-child .plate-cell input { min-height: 84px; font-size: 52px; }
.plate-cell input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.plate-cell input[aria-invalid='true'] { border-color: #ffb4a8; box-shadow: 0 0 0 2px #ffb4a8; }
[dir='rtl'] .plate-cell label { letter-spacing: 0; text-transform: none; }

/* Production (live site): hide the internal confidentiality stamp / prototype bar. */
.stamp[hidden], .protobar[hidden] { display: none !important; }

/* Full-screen processing loader: shown after the QID check while the pre-order is
   saved to Firebase and the cart hand-off to checkout runs. */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding: 24px;
  color: #fff;
  background: rgba(41, 15, 38, 0.88);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlay-in 160ms ease-out;
}
.checkout-overlay .spinner {
  width: 54px;
  height: 54px;
  border-width: 5px;
  color: #fff;
}
.checkout-overlay p {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .checkout-overlay { animation: none; }
  .checkout-overlay .spinner { animation-duration: 1400ms; }
}

/* Sub-line under a big checkbox label (e.g. installation period note). */
.check-big .check-sub {
  display: block;
  margin-block-start: 4px;
  font-size: 15px;
  font-weight: 500;
  color: #BDBDBD;
  letter-spacing: 0;
  text-transform: none;
}

/* Feasibility gate: the obstruction/guide video above the confirmation checkbox. */
.feas-video { margin-block: 8px 18px; }
.feas-video video {
  width: 100%;
  max-height: 460px;
  border-radius: 12px;
  background: #000;
  display: block;
  object-fit: contain;
}
