/* Nixas Cash storefront. Tokens and rules from docs/design/STOREFRONT_DESIGN.md (Fable, 7 Nov 2026).
   2026-11-07 (owner brief): the public storefront follows nixas.link's navy/cyan direction (navy #080B10,
   cyan #3FC7D9). The Control Center stays black/red; merchant POS themes are separate (Theme Studio).
   Dark only. Logical properties throughout so Arabic (RTL) is a first layout, not a flipped one.
   No remote fonts, no inline styles, no images required for layout. */
:root {
  --bg: #080B10;
  --surface: #0D131C;
  --raised: #131B26;
  --border: #1F2A38;
  --control-border: #5F7083;
  --fg: #E8EDF3;
  --fg-2: #B9C2CF;
  --muted: #8D97A6;
  --brand: #3FC7D9;
  --action: #3FC7D9;
  --action-fg: #04161B;
  --action-hover: #67D5E3;
  --action-active: #2DB4C6;
  --link: #74D7E5;
  --danger: #D65B54;
  --danger-text: #E57F79;
  --success: #4CAF7D;
  --success-text: #7BD3A3;
  --warning: #E0A83F;
  --focus: #E8EDF3;
  --brand-wash: rgba(63, 199, 217, 0.07);
  --frame-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.9);
  --font-ui: system-ui, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-control: 6px;
  --r-card: 10px;
  --motion-fast: 120ms cubic-bezier(.2, .8, .2, 1);
  --motion-base: 200ms cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/26px var(--font-ui); min-height: 100vh;
  display: flex; flex-direction: column; text-align: start; }
html[dir="rtl"] body { line-height: 29px; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--fg); }
bdi { unicode-bidi: isolate; }
.mono { font-family: var(--font-mono); font-size: 0.95em; letter-spacing: 0; }
.muted { color: var(--muted); }
.fg2 { color: var(--fg-2); }
.strong { font-weight: 600; color: var(--fg); }
.small { font-size: 14px; line-height: 20px; }
html[dir="rtl"] .small { line-height: 24px; }
.micro { font-size: 13px; line-height: 18px; }
html[dir="rtl"] .micro { line-height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.offscreen, .hp { position: absolute; inset-inline-start: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wrap { width: 100%; max-width: 1232px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--raised); color: var(--fg); padding: 12px 16px; border-radius: var(--r-control); z-index: 100; border: 1px solid var(--control-border); }
.skip-link:focus { top: 8px; }

/* ---------- type */
.eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 8px; margin-block-end: 12px; }
html[dir="rtl"] .eyebrow { font-size: 14px; line-height: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; }
h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
html[dir="rtl"] h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.3; font-weight: 600; letter-spacing: 0; }
h1.display { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
html[dir="rtl"] h1.display { font-size: clamp(34px, 5vw, 52px); line-height: 1.3; }
h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
html[dir="rtl"] h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.35; letter-spacing: 0; }
h3, .h3, .t-h3 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; }
html[dir="rtl"] h3, html[dir="rtl"] .h3, html[dir="rtl"] .t-h3 { line-height: 32px; }
h4 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.lead { font-size: 18px; line-height: 28px; color: var(--fg-2); max-width: 68ch; }
html[dir="rtl"] .lead { line-height: 32px; }
.h-eyebrow { font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
html[dir="rtl"] .h-eyebrow { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.t-price { font-size: clamp(32px, 3.6vw, 40px); line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt .cur { font-size: 0.5em; color: var(--fg-2); font-weight: 500; }
.t-h3 .amt .cur, .sm .t-price .amt .cur, .price-block.sm .cur { font-size: 0.7em; }
p { max-width: 68ch; }
.page-head { padding-block: clamp(40px, 7vw, 72px) clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 12px; }
.page-head h1, .page-head p { max-width: 68ch; }
.page-head-wrap { border-block-end: 1px solid var(--border); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; font: 600 16px/24px var(--font-ui);
  color: var(--fg); background: transparent; border: 1px solid var(--control-border); border-radius: var(--r-control); text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); }
.btn:hover { border-color: var(--fg-2); background: var(--surface); color: var(--fg); }
.btn:active { background: var(--raised); }
.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-fg); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--action-fg); }
.btn.primary:active { background: var(--action-active); border-color: var(--action-active); color: var(--action-fg); }
.btn.big { min-height: 48px; padding-inline: 24px; }
.btn.small { min-height: 44px; padding: 6px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: progress; }
.btn.primary[aria-disabled="true"] { opacity: 1; }
.btn[aria-disabled="true"]:not(.primary) { color: var(--muted); border-color: var(--border); }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.linkbtn { background: none; border: 0; padding: 8px 4px; min-height: 44px; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.linkbtn:hover { color: var(--fg); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] [data-flip], [dir="rtl"] .btn .icon[data-flip] { transform: scaleX(-1); }

/* ---------- header and footer */
.preview-note { margin: 0; padding: 4px var(--gutter); background: var(--surface); border-block-end: 1px solid var(--border); color: var(--fg-2); font-size: 13px; line-height: 20px; text-align: center; }
.preview-note[hidden] { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-block-end: 1px solid var(--border); }
.hdr { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; color: var(--fg); text-decoration: none; margin-inline-end: auto; min-height: 44px; align-items: center; }
.wm { font-weight: 600; font-size: 18px; letter-spacing: 0.04em; color: var(--fg); }
html[dir="rtl"] .wm { letter-spacing: 0; }
.by { font-size: 13px; color: var(--muted); display: none; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--fg-2); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border-block-end: 2px solid transparent; }
.nav a:not(.btn):hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-block-end-color: var(--brand); }
.nav .nav-cta { margin-inline-start: 8px; }
.lang { display: flex; gap: 2px; }
.lang-btn { background: none; border: 1px solid transparent; color: var(--fg-2); min-width: 44px; min-height: 44px; font: 500 14px/20px var(--font-ui); border-radius: var(--r-control); cursor: pointer; }
.lang-btn[aria-pressed="true"] { color: var(--fg); border-color: var(--control-border); background: var(--surface); font-weight: 600; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: none; border: 1px solid var(--control-border); border-radius: var(--r-control); color: var(--fg); cursor: pointer; }
.menu-btn .icon { width: 20px; height: 20px; }
.site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-block-end: 1px solid var(--border); padding: 8px var(--gutter) 16px; }
.site-header.open .nav .nav-cta { margin-inline-start: 0; margin-block-start: 8px; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .by { display: inline; }
  .hdr { gap: 24px; }
  .wordmark { margin-inline-end: 0; }
  .nav { margin-inline-start: auto; }
}
.site-footer { background: var(--surface); border-block-start: 1px solid var(--border); padding-block: 64px 32px; margin-block-start: 64px; }
.fgrid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.fnav { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.fh { font-size: 14px; line-height: 20px; font-weight: 600; margin-block-end: 8px; color: var(--fg); letter-spacing: 0; }
.flist { list-style: none; padding: 0; margin: 0; }
.flist a { display: inline-flex; min-height: 44px; align-items: center; }
.fbase { display: flex; flex-direction: column; gap: 4px; margin-block-start: 32px; padding-block-start: 24px; border-block-start: 1px solid var(--border); font-size: 13px; line-height: 18px; }
@media (min-width: 760px) { .fgrid { grid-template-columns: 1fr 2fr; } .fbase { flex-direction: row; justify-content: space-between; } }

/* ---------- home */
.hero { background: radial-gradient(120% 90% at 0% 0%, var(--brand-wash), transparent 55%); border-block-end: 1px solid var(--border); }
html[dir="rtl"] .hero { background: radial-gradient(120% 90% at 100% 0%, var(--brand-wash), transparent 55%); }
.hero-grid { display: grid; gap: 40px; padding-block: clamp(40px, 8vw, 96px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-text .lead { max-width: 56ch; }
.pilot { max-width: 56ch; }
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot-frame { border-radius: var(--r-card); background: var(--surface); overflow: hidden; box-shadow: var(--frame-shadow); line-height: 0; }
.shot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1366 / 768; }
.sec { padding-block: clamp(56px, 8vw, 96px); border-block-end: 1px solid var(--border); }
.sec > .wrap > .eyebrow { margin-block-end: 12px; }
.sec p { max-width: 68ch; }
.ed-compare { margin-block-start: 32px; }
.install-choice { margin-block-start: 40px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 12px; max-width: 68ch; }
.install-choice .ticks { gap: 12px; }
.steps.stack { max-width: 68ch; gap: 20px; }
.registers-cell { font-variant-numeric: tabular-nums; }
.sec-tight { padding-block: clamp(24px, 4vw, 40px); }
.sec h2 { margin-block-end: 32px; max-width: 28ch; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--control-border); display: grid; place-items: center; font-size: 14px; line-height: 20px; font-weight: 600; }
.steps .step-text { padding-block-start: 3px; }
.steps h3 { margin-block-end: 8px; }
@media (min-width: 900px) {
  .steps.cols3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps:not(.cols3):not(.stack) { grid-template-columns: repeat(4, 1fr); }
}
.steps.cols3 p { max-width: 32ch; }
.editions { display: grid; gap: 24px; }
@media (min-width: 800px) { .editions { grid-template-columns: 1fr 1fr; } }
.card, .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel.info { border-color: var(--control-border); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--success); margin-block-start: 5px; }
.rule { border: 0; border-block-start: 1px solid var(--border); margin: 4px 0; width: 100%; }
.adds { color: var(--fg-2); }
.plans-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.plans-head h2 { margin-block-end: 8px; }
.plan-rows { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding-block: 16px; border-block-start: 1px solid var(--border); }
.plan-rows li:last-child { border-block-end: 1px solid var(--border); }
.pr-name { font-weight: 600; font-size: 18px; }
.pr-ed { grid-column: 1; }
.pr-price { grid-column: 1; font-variant-numeric: tabular-nums; }
.plan-rows .btn { grid-column: 2; grid-row: 1 / span 3; }
@media (min-width: 760px) {
  .plan-rows li { grid-template-columns: 200px 120px 1fr auto; }
  .pr-ed, .pr-price, .plan-rows .btn { grid-column: auto; grid-row: auto; }
  .pr-price { text-align: end; }
}
.cta-band { background: var(--surface); padding-block: 56px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

/* ---------- pricing */
.termbar { position: sticky; top: 64px; z-index: 40; background: var(--bg); border-block-end: 1px solid var(--border); padding-block: 8px; }
.termbar-row { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 760px) { .termbar-row { flex-direction: row; align-items: center; gap: 24px; } .termbar { position: static; border-block-end: 0; padding-block: 24px 0; } }
@media (max-height: 500px) { .termbar { position: static; } }
.term-label { font-size: 14px; line-height: 20px; color: var(--fg-2); }
.segmented { display: flex; width: 100%; border: 1px solid var(--control-border); border-radius: var(--r-control); background: var(--surface); padding: 2px; gap: 2px; }
@media (min-width: 760px) { .segmented { width: auto; } .segmented .seg { min-width: 150px; } }
.seg { flex: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px 8px; background: transparent; border: 1px solid transparent; border-radius: 4px;
  color: var(--fg-2); font: 500 14px/18px var(--font-ui); cursor: pointer; position: relative; transition: background-color var(--motion-base), border-color var(--motion-base); }
.seg .seg-b { font-size: 13px; color: var(--muted); }
.seg[aria-checked="true"], .seg:has(input:checked) { background: var(--raised); border-color: var(--fg-2); color: var(--fg); font-weight: 600; }
.seg[aria-checked="true"] .seg-b, .seg:has(input:checked) .seg-b { color: var(--fg-2); }
.seg:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg-in { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.matrix-box { min-height: 200px; }
.table-wrap { width: 100%; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th, .matrix td { text-align: start; padding: 16px 12px; border-block-end: 1px solid var(--border); vertical-align: top; }
.matrix thead th { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--fg-2); letter-spacing: 0.02em; border-block-end-color: var(--control-border); }
.matrix .plan-name { font-weight: 600; }
.matrix .sel-flag { display: none; }
.matrix tr.selected { background: var(--brand-wash); }
.matrix tr.selected > :first-child { border-inline-start: 3px solid var(--brand); }
.matrix tr.selected .sel-flag { display: block; font-size: 13px; line-height: 18px; color: var(--fg-2); font-weight: 500; }
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-block.sm .t-price { font-size: 24px; }
.swap { animation: fadein var(--motion-base); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.cell { display: inline-flex; align-items: center; gap: 6px; }
.cell.ok .icon { color: var(--success); }
.cell.off { color: var(--muted); }
.act { text-align: end; }
@media (max-width: 899px) {
  .matrix, .matrix tbody, .matrix tr, .matrix td, .matrix th { display: block; width: 100%; }
  .matrix thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .matrix tr { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 16px; margin-block-end: 16px; }
  .matrix tr.selected { background: var(--surface); border-color: var(--brand); border-inline-start-width: 3px; }
  .matrix th, .matrix td { border: 0; padding: 4px 0; }
  .matrix tr.selected > :first-child { border-inline-start: 0; }
  .matrix td[data-label]:not(.price-cell) { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; border-block-start: 1px solid var(--border); }
  .matrix td[data-label]::before { content: attr(data-label); color: var(--fg-2); }
  .matrix .price-cell { padding-block: 12px; }
  .matrix .price-cell::before { display: none; }
  .matrix tr.selected .sel-flag { display: inline; margin-inline-start: 8px; }
  .matrix .plan-name { display: flex; align-items: baseline; justify-content: space-between; padding-block-end: 8px; }
  .matrix .act { text-align: start; padding-block-start: 12px; }
  .matrix .act .btn { width: 100%; }
}
.code-sec { display: flex; flex-direction: column; gap: 12px; }
.code-sec .h-eyebrow { margin-block-end: 0; }
.coupon { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.code-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.code-row .field { flex: 1 1 220px; }
.code-input { text-transform: uppercase; }
.code-line { min-height: 24px; font-size: 14px; line-height: 20px; }
html[dir="rtl"] .code-line { line-height: 24px; }
.code-line .icon { margin-inline-end: 6px; vertical-align: -3px; }
.ok-text { color: var(--success-text); }
.bad-text { color: var(--danger-text); }
.warn-text { color: var(--warning); }
.info-text { color: var(--fg-2); }
.muted-text { color: var(--muted); }
.continue-bar { padding-block: 16px; }
.continue-bar[hidden] { display: none; }
@media (max-width: 759px) { .continue-bar { position: sticky; bottom: 0; background: var(--bg); border-block-start: 1px solid var(--border); z-index: 30; } .continue-bar .btn { width: 100%; min-height: 56px; } }
.qa { display: grid; gap: 20px; margin-block: 16px; }
.qa dt { font-weight: 600; margin-block-end: 4px; }

/* ---------- forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field[hidden] { display: none; }
.field label { font-size: 14px; line-height: 20px; color: var(--fg); }
html[dir="rtl"] .field label { line-height: 24px; }
.req { color: var(--fg-2); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--raised); color: var(--fg); border: 1px solid var(--control-border); border-radius: var(--r-control);
  font: 400 16px/24px var(--font-ui); transition: border-color var(--motion-fast); }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); }
input:hover, select:hover, textarea:hover { border-color: var(--fg-2); }
input:focus, select:focus, textarea:focus { border-color: var(--fg); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[dir="ltr"] { text-align: start; }
select { appearance: none; background-image: url("assets/chevron.svg"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
html[dir="rtl"] select { background-position: left 14px center; }
select option { background: var(--raised); color: var(--fg); }
.hint { font-size: 14px; line-height: 20px; color: var(--muted); }
html[dir="rtl"] .hint { line-height: 24px; }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--danger-text); }
.field-error[hidden] { display: none; }
.field-error .icon { margin-block-start: 2px; color: var(--danger); }
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper .num-in { width: 96px; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 48px; padding: 0; }
.order-grid { display: grid; gap: 32px; padding-block-end: 32px; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 7fr 4fr; align-items: start; } }
.order-form { display: flex; flex-direction: column; gap: 32px; }
.fsec { display: flex; flex-direction: column; gap: 20px; border: 0; padding: 0; margin: 0; }
.fsec > h2 { font-size: 20px; line-height: 28px; letter-spacing: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
fieldset legend { padding: 0; font-size: 14px; line-height: 20px; margin-block-end: 8px; }
.plan-list, .plan-fs { display: flex; flex-direction: column; gap: 8px; }
.plan-opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 16px; background: var(--raised); border: 1px solid var(--control-border); border-inline-start-width: 1px; border-radius: var(--r-control); cursor: pointer; position: relative; }
.plan-opt.selected { border-color: var(--fg-2); border-inline-start: 4px solid var(--brand); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.plan-in { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.po-main { display: flex; flex-direction: column; }
.po-name { font-weight: 600; }
.po-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-price .amt .cur { font-size: 0.8em; }
.check-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; }
.check { width: 24px; height: 24px; flex: none; margin: 10px 0 0; accent-color: var(--action); }
.check-row label { padding-block: 8px; }
.submit-row { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (max-width: 759px) { .submit-row .btn { width: 100%; } }
.alert { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--r-card); padding: 16px; }
.alert.error { border-color: var(--danger); }
.alert.ok { border-color: var(--success); }
.alert.warn { border-color: var(--warning); }
.alert[hidden] { display: none; }
.alert .icon { margin-block-start: 5px; }
.alert.error .icon { color: var(--danger); }
.alert-body { display: flex; flex-direction: column; gap: 8px; }
.alert-body ul { margin: 0; padding-inline-start: 20px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.sum-desktop { position: sticky; top: 88px; }
.sum-mobile { margin-block-end: 24px; padding: 0; }
.sum-mobile > summary { padding: 16px; cursor: pointer; min-height: 44px; font-weight: 600; }
.sum-mobile > :not(summary) { padding-inline: 16px; }
.sum-mobile > :last-child { padding-block-end: 16px; }
@media (min-width: 960px) { .sum-mobile { display: none; } }
@media (max-width: 959px) { .sum-desktop { display: none; } }
.sum-list { display: flex; flex-direction: column; gap: 8px; }
.sum-list > div { display: flex; justify-content: space-between; gap: 16px; color: var(--fg-2); }
.sum-list dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-block-start: 1px solid var(--border); padding-block-start: 12px; font-weight: 600; }

/* ---------- status */
.status-page { padding-block-end: 48px; }
.narrow { max-width: 640px; }
.narrow-720 { max-width: 720px; margin-inline: auto; }
.two { display: grid; gap: 16px; margin-block: 24px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.status-mark { display: inline-flex; align-items: center; gap: 8px; }
.status-mark.warn { color: var(--warning); }
.status-mark.ok { color: var(--success-text); }
.status-mark.off { color: var(--muted); }
.status-h { margin: 0; }
.pay { margin-block: 32px; display: flex; flex-direction: column; gap: 16px; }
.panels { display: grid; gap: 16px; }
@media (min-width: 900px) { .panels.n2 { grid-template-columns: repeat(2, 1fr); } .panels.n3 { grid-template-columns: repeat(3, 1fr); } }
.kv { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-block: 6px; border-block-end: 1px solid var(--border); }
.kv dt { color: var(--fg-2); font-size: 14px; }
.kv dd { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.copy { gap: 6px; }
.next { margin-block: 32px; display: flex; flex-direction: column; gap: 16px; }
.next .steps { gap: 12px; }

/* ---------- FAQ and legal */
.faq-group { margin-block-end: 32px; }
.faq-group > h2 { margin-block-end: 8px; max-width: none; }
.qa-item { border-block-end: 1px solid var(--border); }
.qa-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding-block: 12px; cursor: pointer; font-weight: 600; list-style: none; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary .icon { transition: transform var(--motion-fast); }
.qa-item[open] summary .icon { transform: rotate(180deg); }
.qa-item p { padding-block-end: 16px; }
.legal-sec { margin-block: 24px; }
.panel.info p { display: flex; gap: 10px; max-width: none; }
.panel.info .icon { margin-block-start: 5px; }
.noscript { padding-block: 24px; }

/* ---------- loading */
.skeleton { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; }
.skeleton i { display: block; height: 20px; border-radius: 4px; background: var(--raised); animation: pulse 1.2s ease-in-out infinite; }
.skeleton i:nth-child(2) { width: 80%; }
.skeleton i:nth-child(3) { width: 60%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---- Depth and motion (2026-11-07). Transform/opacity only; all of it is off under reduced motion. ---- */
.device-stage { perspective: 1400px; padding: 8px 8px 0; }
.device { --rx: 0deg; --ry: 0deg; position: relative; transform-style: preserve-3d;
  transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(-10deg + var(--ry)));
  transition: transform 600ms cubic-bezier(.22, .9, .25, 1); }
html[dir="rtl"] .device { transform: rotateX(calc(4deg + var(--rx))) rotateY(calc(10deg + var(--ry))); }
.device::before { content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 45%, rgba(63, 199, 217, 0.26), transparent 70%); filter: blur(28px); transform: translateZ(-60px); }
.device-screen { padding: 12px; border-radius: 20px; background: linear-gradient(160deg, #1A212C, #0B0F15 60%);
  border: 1px solid #2A3342; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 40px 80px -40px rgb(0 0 0 / 0.95), 0 2px 0 #06080C; }
.device-screen .shot-frame { border-radius: 10px; box-shadow: none; }
.device-stand { width: 34%; height: 18px; margin: 0 auto; background: linear-gradient(#141A23, #0C1016);
  border: 1px solid #222A36; border-block-start: 0; border-radius: 0 0 12px 12px; transform: translateZ(-20px); }
@media (max-width: 1023px) { .device, html[dir="rtl"] .device { transform: rotateX(3deg); } }
.card { transition: transform var(--motion-base), border-color var(--motion-base), box-shadow var(--motion-base); }
@media (hover: hover) { .card:hover { transform: translateY(-2px); border-color: var(--control-border);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 18px 40px -28px rgb(0 0 0 / 0.9); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 700ms cubic-bezier(.22, .9, .25, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: 60ms; } .hero-text > :nth-child(3) { animation-delay: 120ms; }
  .hero-text > :nth-child(4) { animation-delay: 180ms; } .hero-text > :nth-child(5) { animation-delay: 240ms; }
  .device-stage { animation: rise 900ms 120ms cubic-bezier(.22, .9, .25, 1) both; }
  .rv { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(.22, .9, .25, 1), transform 700ms cubic-bezier(.22, .9, .25, 1); }
  .rv.in { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media print { .rv { opacity: 1 !important; transform: none !important; } .device, .device-stage { transform: none !important; } }

@media (prefers-reduced-motion: reduce) {
  .device, html[dir="rtl"] .device { transform: none; }
  .card:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
  .skeleton i { animation: none; }
}
@media (forced-colors: active) {
  .matrix tr.selected > :first-child, .plan-opt.selected { border-inline-start: 4px solid Highlight; }
}

/* ---------- print: the confirmation page, payment details and reference first */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .noprint, .skip-link, .termbar { display: none !important; }
  .panel, .card { background: #fff; border-color: #000; color: #000; }
  .fg2, .muted, .lead, .kv dt, .eyebrow { color: #000; }
  a { color: #000; }
  .copy { display: none; }
}

/* One-time setup fee: its own line, visually separate from the recurring plan price.
   References studied 2026-11-07: Stripe checkout (due now vs. renews), Toast pricing (upfront costs apart from the
   plan), Linear pricing (near-black surfaces with an inset top hairline). Brand tokens unchanged. */
.card, .panel, .setup-card { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04); }
.setup-card { margin-block: 24px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 32px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--action); border-radius: var(--r-card); }
.setup-card .eyebrow { margin: 0; }
.setup-price { margin: 4px 0 0; font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--fg); }
.setup-body p { margin: 0 0 12px; max-inline-size: 60ch; }
.setup-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--fg-2); font-size: 14px; }
.setup-facts li { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 900px) { .setup-card { grid-template-columns: 260px minmax(0, 1fr); align-items: start; } }
.cont-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cost-split { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; }
.cost-split > div { display: flex; flex-direction: column; gap: 2px; min-inline-size: 0; }
.cost-split dt { font-size: 13px; line-height: 18px; color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.cost-split dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.cost-amt { font-size: 22px; line-height: 30px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.cost-amt.sm { font-size: 16px; line-height: 24px; font-weight: 600; }
.cost-renew { padding-inline-start: 24px; border-inline-start: 1px solid var(--border); }
@media (max-width: 599px) { .cost-renew { padding-inline-start: 0; border-inline-start: 0; } .cont-row .btn { inline-size: 100%; } }
.plans-setup { margin: -4px 0 16px; }
.sum-list .sum-sub { border-block-start: 1px dashed var(--border); padding-block-start: 8px; }
.sum-list .sum-setup dt { display: flex; flex-direction: column; gap: 2px; }
.sum-list.amounts { margin-block: 8px; }
.sum-list.amounts .sum-total-row { border-block-start: 1px solid var(--border); padding-block-start: 8px; color: var(--fg); font-weight: 600; }
.setup-note { margin-block-start: 12px; max-inline-size: 70ch; }
/* Phones: the sticky bar stays compact (due now + button); the renewal line is in the order summary and FAQ. */
@media (max-width: 759px) {
  .continue-bar .cost-renew { display: none; }
  .continue-bar .cost-split { gap: 4px; }
  .continue-bar .cost-now dd { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .continue-bar .cont-row { gap: 10px; }
}

/* Installation choice on the order form (self-install 0 JOD / assisted remote install, one time) */
.install-fs { border: 0; padding: 0; margin: 24px 0 0; min-inline-size: 0; }
.install-fs legend { font-weight: 600; padding: 0 0 8px; }
.install-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .install-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.install-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 48px; border: 1px solid var(--control-border);
  border-radius: var(--r-card); background: var(--surface); cursor: pointer; transition: border-color var(--motion-base), background-color var(--motion-base); }
html[dir="rtl"] .install-opt { padding: 16px 48px 16px 16px; }
.install-opt:hover { border-color: var(--fg-2); }
.install-opt:has(.install-in:checked) { border-color: var(--brand); background: var(--brand-wash); box-shadow: inset 0 0 0 1px var(--brand); }
.install-in { position: absolute; inset-inline-start: 16px; top: 19px; width: 20px; height: 20px; margin: 0; accent-color: var(--action); }
.io-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-weight: 600; }
.io-price { font-variant-numeric: tabular-nums; color: var(--fg); }
