/* ==========================================================================
   AMRA Information Technology — shared stylesheet (bilingual: ar default, en)
   Design language: rooted in the existing AMRA wordmark (blue gradient +
   magenta swoosh). Latin pages: Fraunces (headlines) + Work Sans (body) +
   IBM Plex Mono (protocol layer — domains, specs, TLDs). Arabic pages:
   Markazi Text (headlines) + IBM Plex Sans Arabic (body), keeping IBM Plex
   Mono for the same Latin technical tokens (domain names, cPanel, VPS) even
   inside Arabic copy, which is how these are written in practice.
   All directional properties use CSS logical properties so [dir="rtl"]
   mirrors the layout automatically — there is no separate RTL stylesheet.
   ========================================================================== */

@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/IBM-Plex-Mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/IBM-Plex-Mono-600.woff2") format("woff2"); }

@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/IBM-Plex-Sans-Arabic-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/IBM-Plex-Sans-Arabic-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/IBM-Plex-Sans-Arabic-600.woff2") format("woff2"); }

/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */
/* Option-C type: Sora display, Plus Jakarta Sans body, Cairo for Arabic. */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Sora-700.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Sora-800.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Plus-Jakarta-Sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Plus-Jakarta-Sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Plus-Jakarta-Sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Plus-Jakarta-Sans-700.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/Cairo-700.woff2") format("woff2"); }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/Cairo-800.woff2") format("woff2"); }

:root {
  --ink: #171331;
  --ink-soft: #5c5878;
  --brand-deep: #5138d6;
  --brand-bright: #6d5cf5;
  --brand-signal: #e0348f;
  --paper: #f6f5fb;
  --surface: #ffffff;
  --surface-sunken: #edebf6;
  --line: rgba(23, 19, 49, 0.12);
  --line-strong: rgba(23, 19, 49, 0.22);
  --shadow: 0 24px 48px -24px rgba(23, 19, 49, 0.35);
  --hero-a: #140f38;
  --hero-b: #38207a;
  --hero-c: #8a2670;

  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --measure: 40rem;
  --radius: 16px;
}

html[lang="ar"] {
  --font-display: "Cairo", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  /* --font-mono stays Latin: domain names, cPanel, VPS, TLDs are written in Latin script even in Arabic copy */
}
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; }
html[lang="ar"] .lede { font-size: 1.28rem; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eee9ff; --ink-soft: #b0a8cf; --brand-deep: #a99bff; --brand-bright: #8f7dff; --brand-signal: #ff6fb5;
    --paper: #0d0a1f; --surface: #171331; --surface-sunken: #120f28;
    --line: rgba(238, 233, 255, 0.14); --line-strong: rgba(238, 233, 255, 0.3);
    --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --ink: #eee9ff; --ink-soft: #b0a8cf; --brand-deep: #a99bff; --brand-bright: #8f7dff; --brand-signal: #ff6fb5;
  --paper: #0d0a1f; --surface: #171331; --surface-sunken: #120f28;
  --line: rgba(238, 233, 255, 0.14); --line-strong: rgba(238, 233, 255, 0.3);
  --shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.7);
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                            */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-size: 17.5px; line-height: 1.85; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand-signal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-weight: 700; }
p { margin: 0 0 1em; max-width: var(--measure); color: var(--ink-soft); }
.lede { font-size: 1.2rem; color: var(--ink); max-width: 34rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; }
.eyebrow::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--brand-signal); flex: none; }

.mono { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; }

.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.75rem; }

section { padding: 5.5rem 0; }
@media (max-width: 640px) { section { padding: 3.5rem 0; } }

.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Buttons & chips                                                        */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8em 1.4em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--brand-deep); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--brand-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.btn-signal { background: var(--brand-signal); color: #fff; }
.btn-signal:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--brand-signal); }

.chip {
  font-family: var(--font-mono);
  direction: ltr;
  unicode-bidi: isolate;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.3em 0.7em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  white-space: nowrap;
  display: inline-block;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); position: relative; }
.nav a:hover { color: var(--brand-deep); }
.nav .cta { color: var(--ink); }
.nav .lang-switch { font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.35em 0.7em; }
.nav .lang-switch:hover { border-color: var(--brand-deep); color: var(--brand-deep); }

.has-menu { position: relative; }
.has-menu > span { cursor: default; display: inline-flex; align-items: center; gap: .3em; }
.has-menu > span::after { content: "▾"; font-size: .7em; opacity: .7; }
.submenu {
  position: absolute;
  top: 2.1rem;
  inset-inline-start: -0.9rem;
  min-width: 15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
}
.has-menu:hover .submenu, .has-menu:focus-within .submenu { display: flex; }
.submenu a { padding: 0.6rem 0.7rem; border-radius: var(--radius); font-weight: 500; display: flex; align-items: center; gap: .5rem; }
.submenu a:hover { background: var(--surface-sunken); }
.submenu .sub-ext { margin-inline-start: auto; }

.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero { padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 35%, transparent 85%);
  mask-image: linear-gradient(180deg, black 0%, black 35%, transparent 85%);
  opacity: 0.55;
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); margin-bottom: 0.6em; }
.hero h1 em {
  font-style: normal;
  color: var(--brand-deep);
  background: linear-gradient(180deg, transparent 62%, color-mix(in srgb, var(--brand-bright) 30%, transparent) 62%);
}
.hero-actions { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 1.4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-meta div { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); }
html[lang="ar"] .hero-meta div { font-family: var(--font-body); }
.hero-meta strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 700; }

/* Route panel: literal domain -> host -> build -> collaborate trace */
.route-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.route-panel .path-label { font-family: var(--font-mono); direction: ltr; font-size: 0.72rem; color: var(--ink-soft); letter-spacing: .05em; margin-bottom: 1.1rem; display: flex; justify-content: space-between; }
.route { position: relative; display: flex; flex-direction: column; }
.route-step { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; padding: 0.85rem 0; position: relative; }
.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 2.1rem;
  bottom: -0.15rem;
  width: 1px;
  background: var(--line-strong);
}
.route-dot {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft);
  background: var(--surface); z-index: 1;
}
.route-step.is-live .route-dot { border-color: var(--brand-signal); color: var(--brand-signal); }
.route-step h4 { margin: 0 0 0.15rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.route-step p { margin: 0; font-size: 0.87rem; }
.route-step .rtag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--brand-deep); }
html[lang="ar"] .route-step .rtag { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* ---------------------------------------------------------------------- */
/* Pipeline / services section                                            */
/* ---------------------------------------------------------------------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline-card { padding: 2.1rem 1.8rem; border-inline-end: 1px solid var(--line); position: relative; display: flex; flex-direction: column; gap: 0.9rem; }
.pipeline-card:last-child { border-inline-end: none; }
@media (max-width: 900px) { .pipeline-card { border-inline-end: none; border-bottom: 1px solid var(--line); } .pipeline-card:last-child { border-bottom: none; } }
.pipeline-card .step-no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-signal); letter-spacing: 0.06em; }
html[lang="ar"] .pipeline-card .step-no { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.pipeline-card h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.pipeline-card p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.pipeline-card .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.6rem; }
.pipeline-card a.more { font-size: 0.85rem; font-weight: 600; color: var(--brand-deep); margin-top: 0.5rem; }
.pipeline-card a.more:hover { color: var(--brand-signal); }

/* ---------------------------------------------------------------------- */
/* Cards / grids generic                                                  */
/* ---------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
@media (max-width: 780px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.8rem; }

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll (one restrained motion pattern, reused everywhere)    */
/* ---------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Without JS nothing ever adds .is-visible, so show the content as-is. */
html:not(.js) .reveal { opacity: 1; transform: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------------------- */
/* Trust duo: secure mail + local support, the two non-negotiables       */
/* ---------------------------------------------------------------------- */
.trust-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
@media (max-width: 900px) { .trust-duo { grid-template-columns: 1fr; } }
.trust-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  box-shadow: var(--shadow);
}
/* Wraps because the heading can be a full sentence: a nowrap flex row with
   a status chip beside it overflowed the page on narrow screens. */
.trust-card .trust-kicker { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.trust-card .trust-kicker h3 { flex: 1 1 14rem; min-width: 0; }
.trust-card .trust-kicker > .mono { flex: 0 1 auto; min-width: 0; }
.trust-card h3 { font-size: 1.35rem; margin: 0; }
.trust-card > p { font-size: 0.96rem; margin: 0; }
.trust-card .trust-cta { margin-top: auto; font-size: 0.88rem; font-weight: 600; color: var(--brand-deep); }
.trust-card .trust-cta:hover { color: var(--brand-signal); }
.status-dot { width: .55em; height: .55em; border-radius: 50%; background: #21b06b; box-shadow: 0 0 0 3px color-mix(in srgb, #21b06b 22%, transparent); flex: none; }

/* Secure-mail mock: a believable inbox chrome, not a generic padlock icon */
.mail-mock { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); }
.mail-mock-top { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.mail-mock-top .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); }
.mail-mock-url { margin-inline-start: .6rem; font-size: .72rem; color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; }
.mail-mock-row { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.mail-mock-row.muted { opacity: .6; }
.mail-mock-row:last-child { border-bottom: none; }
.mail-mock-avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand-deep); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: .8rem; flex: none; }
.mail-mock-from { font-size: .85rem; font-weight: 600; }
.mail-mock-from .mono { font-weight: 400; color: var(--ink-soft); }
.mail-mock-subject { font-size: .82rem; color: var(--ink-soft); }
.mail-mock-badges { margin-inline-start: auto; display: flex; gap: .35rem; flex: none; }
.badge-ok { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-size: .68rem; color: #1a7a4c; background: color-mix(in srgb, #21b06b 14%, transparent); border: 1px solid color-mix(in srgb, #21b06b 35%, transparent); border-radius: 999px; padding: .18em .55em; white-space: nowrap; }
html[lang="ar"] .badge-ok, .ar-preview .badge-ok { font-family: var(--font-body); }

/* Support mock: real, checkable specifics instead of a superlative claim */
.support-mock { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.support-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); font-size: .88rem; color: var(--ink); }
.support-row:last-child { border-bottom: none; }
.support-label { font-family: var(--font-mono); font-size: .72rem; color: var(--brand-deep); letter-spacing: .04em; padding-top: .1em; }
html[lang="ar"] .support-label, .ar-preview .support-label { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

/* ---------------------------------------------------------------------- */
/* Comparison table (Zoho vs Google/Microsoft)                            */
/* ---------------------------------------------------------------------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); }
table.compare th, table.compare td { padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; font-size: 0.94rem; }
table.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-sunken); }
html[lang="ar"] table.compare thead th { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 600; }
table.compare tbody th { font-weight: 600; width: 15rem; color: var(--ink); }
table.compare .win { color: var(--brand-deep); font-weight: 600; }
table.compare .win::before { content: "✓ "; color: var(--brand-signal); }
table.compare tr:last-child td, table.compare tr:last-child th { border-bottom: none; }

/* ---------------------------------------------------------------------- */
/* Feature rows: service copy paired with a believable UI mockup          */
/* ---------------------------------------------------------------------- */
.feature-rows { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
.feature-row .feature-text { order: 1; }
.feature-row .feature-visual { order: 2; }
.feature-row.alt .feature-text { order: 2; }
.feature-row.alt .feature-visual { order: 1; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.2rem 0; }
  .feature-row .feature-text, .feature-row.alt .feature-text { order: 1; }
  .feature-row .feature-visual, .feature-row.alt .feature-visual { order: 2; }
}
.feature-text .step-no { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-signal); letter-spacing: 0.06em; }
html[lang="ar"] .feature-text .step-no { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.feature-text h3 { font-size: 1.5rem; margin: 0.25em 0 0.4em; }
.feature-text .tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0 0.9rem; }
.feature-text a.more { font-size: 0.9rem; font-weight: 600; color: var(--brand-deep); }
.feature-text a.more:hover { color: var(--brand-signal); }

/* Shared "device chrome" used by every mockup below */
.device-top { display: flex; align-items: center; gap: .5rem; padding: .65rem .95rem; background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.device-top .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--line-strong); flex: none; }
.device-url { margin-inline-start: .6rem; font-size: .72rem; color: var(--ink-soft); direction: ltr; unicode-bidi: isolate; }
.device-frame { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }

/* Domain search mockup */
.domain-search { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.domain-search-field { flex: 1; font-size: .88rem; }
.domain-search-btn { font-family: var(--font-mono); font-size: .72rem; background: var(--brand-deep); color: #fff; padding: .4rem .8rem; border-radius: 4px; white-space: nowrap; }
.domain-results { padding: .3rem; }
.domain-result { display: flex; align-items: center; justify-content: space-between; padding: .65rem .75rem; border-bottom: 1px solid var(--line); gap: .8rem; }
.domain-result:last-child { border-bottom: none; }
.domain-result .domain-name { font-family: var(--font-mono); direction: ltr; unicode-bidi: isolate; font-size: .86rem; }
.domain-result .domain-status { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; white-space: nowrap; }
html[lang="ar"] .domain-result .domain-status { font-family: var(--font-body); }
.domain-result.available .domain-status { color: #1a7a4c; }
.domain-result.taken .domain-status { color: var(--ink-soft); font-weight: 400; }

/* Hosting resource mockup */
.host-body { padding: 1.1rem; }
.host-metric { display: grid; grid-template-columns: 6rem 1fr 3rem; align-items: center; gap: .7rem; margin-bottom: .75rem; }
.host-metric:last-of-type { margin-bottom: 0; }
.host-metric-label { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-soft); }
html[lang="ar"] .host-metric-label { font-family: var(--font-body); font-weight: 600; }
.host-bar { height: .45rem; background: var(--surface-sunken); border-radius: 99px; overflow: hidden; }
.host-bar-fill { height: 100%; background: var(--brand-bright); border-radius: 99px; }
.host-metric-value { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-soft); text-align: end; direction: ltr; unicode-bidi: isolate; }
.host-status-row { display: flex; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }

/* Website design mockup: browser + phone frame */
.site-mock { display: flex; align-items: flex-end; gap: 1.1rem; }
.site-mock .browser-frame { flex: 1; min-width: 0; }
.site-mock .browser-body { padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.site-nav-mock { height: .55rem; width: 38%; background: var(--line-strong); border-radius: 3px; }
.site-hero-mock { display: flex; flex-direction: column; gap: .4rem; padding: .5rem 0; }
.site-hero-line { height: .5rem; border-radius: 3px; background: var(--line-strong); }
.site-hero-line.l1 { width: 72%; }
.site-hero-line.l2 { width: 48%; }
.site-hero-cta { height: 1.1rem; width: 4.6rem; background: var(--brand-bright); border-radius: 4px; margin-top: .3rem; }
.site-grid-mock { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.site-grid-mock div { height: 2.4rem; background: var(--surface-sunken); border-radius: 4px; }
.mobile-frame { width: 5rem; flex: none; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: .5rem .4rem; }
.mobile-notch { width: 1.5rem; height: .22rem; background: var(--line-strong); border-radius: 99px; margin: 0 auto .5rem; }
.mobile-body { display: flex; flex-direction: column; gap: .35rem; }
.mobile-body .site-nav-mock { height: .35rem; width: 55%; }
.mobile-body .site-hero-line { height: .32rem; }

/* Collaboration calendar mockup */
.collab-body { padding: 1rem; }
.collab-week { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .68rem; color: var(--ink-soft); margin-bottom: .7rem; direction: ltr; unicode-bidi: isolate; }
.collab-events { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.collab-event { font-size: .84rem; padding: .5rem .7rem; background: var(--surface-sunken); border-inline-start: 3px solid var(--brand-deep); border-radius: 4px; }
.collab-event.alt { border-inline-start-color: var(--brand-signal); }
.collab-doc { display: flex; align-items: center; gap: .5rem; }
.collab-doc .filename { font-size: .78rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------------- */
/* Training band (secondary register: quieter, warmer neutrality)         */
/* ---------------------------------------------------------------------- */
.training-band { background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.training-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.training-row { display: grid; grid-template-columns: 12rem 1fr; gap: 2rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .training-row { grid-template-columns: 1fr; gap: .3rem; } }
.training-row h4 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.training-row p { margin: 0; font-size: 0.92rem; }

/* ---------------------------------------------------------------------- */
/* Stat / trust band                                                       */
/* ---------------------------------------------------------------------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 780px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { border-inline-start: 1px solid var(--line-strong); padding-inline-start: 1.2rem; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--brand-deep); }
.stat span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); letter-spacing: .03em; }
html[lang="ar"] .stat span { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

/* ---------------------------------------------------------------------- */
/* Page hero (service pages, shorter)                                     */
/* ---------------------------------------------------------------------- */
.page-hero { padding: 3.6rem 0 3rem; border-bottom: 1px solid var(--line); }
.page-hero .kicker-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 1rem; }
html[lang="ar"] .breadcrumb { font-family: var(--font-body); }
.breadcrumb a { color: var(--brand-deep); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ---------------------------------------------------------------------- */
/* CTA band                                                                */
/* ---------------------------------------------------------------------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: 8px; padding: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2, .cta-band p { color: var(--paper); }
.cta-band p { color: color-mix(in srgb, var(--paper) 70%, transparent); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 1rem; }
html[lang="ar"] .footer-grid h5 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; }
.footer-grid a, .footer-grid p { display: block; font-size: 0.92rem; margin-bottom: 0.55rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--brand-deep); }
.footer-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); flex-wrap: wrap; gap: .8rem; }
.socials { display: flex; gap: 0.9rem; }
.socials a { border: 1px solid var(--line-strong); border-radius: 50%; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.socials a:hover { border-color: var(--brand-deep); color: var(--brand-deep); }

/* ---------------------------------------------------------------------- */
/* Hero carousel (ported from the option-C design)                        */
/* Three banners, one argument each: the four-in-one offer, the domain +  */
/* hosting stack, and secure mail + local support. Token names are this   */
/* stylesheet's own (--brand-*), so the block inherits the site palette   */
/* instead of dragging a second colour system in behind it.               */
/* ---------------------------------------------------------------------- */
.hero-carousel { padding: 0; position: relative; overflow: hidden; }
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1;
  padding: 5.5rem 0 3.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), visibility 0s linear .6s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.hero-slide .wrap { max-width: 46rem; }
.hero-slide > .wrap > * { transform: translateY(14px); opacity: 0; transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.hero-slide.is-active > .wrap > * { transform: none; opacity: 1; }
.hero-slide.is-active > .wrap > *:nth-child(1) { transition-delay: .06s; }
.hero-slide.is-active > .wrap > *:nth-child(2) { transition-delay: .13s; }
.hero-slide.is-active > .wrap > *:nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active > .wrap > *:nth-child(4) { transition-delay: .27s; }

/* Surface variants ----------------------------------------------------- */
.hero-slide--tint { background: linear-gradient(160deg, var(--surface-sunken), var(--paper) 60%); }

.hero-slide--dark { background: linear-gradient(135deg, var(--hero-a), var(--hero-b) 55%, var(--hero-c)); }
.hero-slide--dark h1, .hero-slide--dark .hero-meta strong { color: #fff; }
.hero-slide--dark p { color: rgba(255, 255, 255, .74); }
.hero-slide--dark .eyebrow { color: #fff; }
.hero-slide--dark .hero-meta { border-top-color: rgba(255, 255, 255, .18); }
.hero-slide--dark .hero-meta div { color: rgba(255, 255, 255, .68); }
.hero-slide--dark h1 em { background: linear-gradient(135deg, #b7a7ff, var(--brand-signal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-slide--dark .btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.hero-slide--dark .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }

/* Controls ------------------------------------------------------------- */
.hero-controls { display: flex; align-items: center; gap: 1rem; padding-bottom: 2.6rem; }
.hero-carousel .hero-controls.wrap { max-width: 74rem; }
.hero-arrow {
  width: 2.6rem; height: 2.6rem; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--ink); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  /* ‹ and › are bidi-mirrored glyphs; pin the direction so the swap below
     is the only thing that flips them. */
  direction: ltr;
}
.hero-arrow:hover { border-color: var(--brand-bright); color: var(--brand-deep); background: var(--surface); }
.hero-arrow::before { content: "‹"; }
.hero-arrow[data-hero-next]::before { content: "›"; }
[dir="rtl"] .hero-arrow::before { content: "›"; }
[dir="rtl"] .hero-arrow[data-hero-next]::before { content: "‹"; }

.hero-dots { display: flex; align-items: center; gap: .55rem; }
.hero-dot {
  width: 2.1rem; height: .3rem; padding: 0; flex: none;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-strong);
  transition: background .2s ease, width .3s cubic-bezier(.2,.7,.2,1);
}
.hero-dot:hover { background: var(--ink-soft); }
.hero-dot[aria-selected="true"] { width: 3.2rem; background: linear-gradient(135deg, var(--brand-bright), var(--brand-signal)); }
.hero-count { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); margin-inline-start: auto; direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] .hero-count { font-family: var(--font-body); }

@media (max-width: 640px) {
  .hero-slide { padding: 3.6rem 0 2.4rem; }
  .hero-controls { padding-bottom: 2rem; gap: .7rem; }
  .hero-count { display: none; }
}

/* No JS, or motion turned down: show every banner stacked instead of      */
/* hiding all but one behind a script that never runs.                     */
html:not(.js) .hero-slides { display: block; }

/* ---------------------------------------------------------------------- */
/* Contact form                                                            */
/* Posts to the Cloudflare Worker at /api/contact. Works without JS; the   */
/* script in contact-form.js upgrades it to an inline submission.          */
/* ---------------------------------------------------------------------- */
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.form-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } .contact-form { padding: 1.4rem; } }

.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .7rem .85rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-deep) 18%, transparent);
}
.field input[aria-invalid], .field select[aria-invalid], .field textarea[aria-invalid] { border-color: var(--brand-signal); }
.field .error { display: block; min-height: 1.1em; font-size: .8rem; color: var(--brand-signal); margin-top: .3rem; }

/* Honeypot: hidden from people but left in the DOM, because some bots skip
   display:none inputs while still filling anything reachable.
   Clipped in place rather than pushed off-canvas with left:-9999px -- under
   dir="rtl" that leftward overflow is scrollable rather than clipped, which
   gave the Arabic page a ~10,000px horizontal scrollbar. */
.hp {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip-path: inset(50%);
}

.form-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.form-status { font-size: .9rem; }
.form-status[data-state="pending"] { color: var(--ink-soft); }
.form-status[data-state="ok"] { color: var(--brand-deep); font-weight: 600; }
.form-status[data-state="error"] { color: var(--brand-signal); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* Order wizard (homepage hero): domain -> hosting -> mail                 */
/* ---------------------------------------------------------------------- */
.hero-wizard { padding: 3.2rem 0 3.6rem; background: linear-gradient(160deg, var(--surface-sunken), var(--paper) 65%); border-bottom: 1px solid var(--line); }
.hero-wizard .wrap { max-width: 60rem; }
.hero-wizard .wz-intro { text-align: center; margin-bottom: 2rem; }
.hero-wizard h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.hero-wizard .wz-intro p { color: var(--ink-soft); max-width: 34rem; margin: 0 auto; }

.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
@media (max-width: 640px) { .wizard { padding: 1.2rem; } }

.wz-steps { display: flex; gap: .5rem; list-style: none; margin: 0 0 1.6rem; padding: 0; }
.wz-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .84rem; font-weight: 600; color: var(--ink-soft); padding-bottom: .7rem; border-bottom: 2px solid var(--line); }
.wz-steps li.is-on { color: var(--ink); border-bottom-color: var(--brand-bright); }
.wz-steps li.is-done { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.wz-num { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; flex: none; border-radius: 999px; background: var(--surface-sunken); font-family: var(--font-mono); font-size: .78rem; }
.wz-steps li.is-on .wz-num { background: var(--brand-bright); color: #fff; }
.wz-steps li.is-done .wz-num { background: var(--brand-deep); color: #fff; }
@media (max-width: 560px) { .wz-steps li { font-size: 0; gap: 0; } .wz-num { font-size: .78rem; } }

.wz-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; }
.wz-hint { font-size: .82rem; color: var(--ink-soft); margin: .5rem 0 0; }
.wz-field { margin-bottom: 1rem; }
.wz-search-row { display: flex; gap: .6rem; }
.wz-search-row input { flex: 1; min-width: 0; font-size: 1rem; padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.wz-search-row input:focus { outline: none; border-color: var(--brand-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-deep) 18%, transparent); }
.wizard select { font: inherit; padding: .6rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.wizard .wz-contact input { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); color: var(--ink); }

.wz-pick-title { margin: 1.6rem 0 .8rem; font-size: .9rem; }
.wz-exts { display: grid; gap: .6rem; }
.wz-ext { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wz-ext:hover { border-color: var(--line-strong); }
.wz-ext.is-on { border-color: var(--brand-bright); background: color-mix(in srgb, var(--brand-bright) 7%, transparent); }
.wz-ext-name { font-size: .98rem; }
.wz-ext-price { font-size: .9rem; font-weight: 600; white-space: nowrap; }
.wz-ext-price em { display: block; font-style: normal; font-size: .74rem; font-weight: 400; color: var(--ink-soft); }
.wz-ext-note { grid-column: 2 / -1; font-size: .74rem; color: var(--ink-soft); }

.wz-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .wz-plans { grid-template-columns: 1fr; } }
.wz-plan { position: relative; display: block; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.wz-plan:hover { border-color: var(--line-strong); }
.wz-plan.is-on { border-color: var(--brand-bright); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-bright) 24%, transparent); }
.wz-plan input { position: absolute; opacity: 0; pointer-events: none; }
.wz-badge { position: absolute; top: -.7rem; inset-inline-end: 1rem; background: var(--brand-signal); color: #fff; font-size: .7rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.wz-plan-name { display: block; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.wz-plan-price { display: block; font-size: 2rem; font-weight: 800; margin: .2rem 0 .6rem; }
.wz-plan-price em { font-style: normal; font-size: .8rem; font-weight: 400; color: var(--ink-soft); margin-inline-start: .3rem; }
.wz-plan-inc { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-bottom: .4rem; }
html[lang="ar"] .wz-plan-inc { text-transform: none; letter-spacing: 0; }
.wz-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.wz-plan li { font-size: .88rem; padding-inline-start: 1.3rem; position: relative; }
.wz-plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-deep); font-weight: 700; }

.wz-tiers { display: flex; gap: .6rem; flex-wrap: wrap; }
.wz-tier { padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .9rem; font-weight: 600; }
.wz-tier input { position: absolute; opacity: 0; pointer-events: none; }
.wz-tier.is-on { border-color: var(--brand-bright); background: color-mix(in srgb, var(--brand-bright) 8%, transparent); }

.wz-summary { margin-top: 1.6rem; padding: 1.1rem 1.2rem; background: var(--surface-sunken); border-radius: var(--radius); }
.wz-summary h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin: 0 0 .7rem; }
html[lang="ar"] .wz-summary h4 { text-transform: none; letter-spacing: 0; }
.wz-sum-row { display: grid; grid-template-columns: 6rem 1fr auto; gap: .8rem; font-size: .88rem; padding: .25rem 0; }
.wz-sum-row > span:first-child { color: var(--ink-soft); }
.wz-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line-strong); font-size: .95rem; }
.wz-sum-total strong { font-size: 1.4rem; }
.wz-sum-total em { font-style: normal; font-size: .74rem; font-weight: 400; color: var(--ink-soft); }

.wz-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
@media (max-width: 640px) { .wz-contact { grid-template-columns: 1fr; } }
.wz-contact .wz-field:first-child { grid-column: 1 / -1; }

.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.wz-status { margin: .8rem 0 0; font-size: .9rem; min-height: 1.2em; }
.wz-status[data-state="pending"] { color: var(--ink-soft); }
.wz-status[data-state="ok"] { color: var(--brand-deep); font-weight: 600; }
.wz-status[data-state="error"] { color: var(--brand-signal); font-weight: 600; }

/* Without JS the wizard cannot run; point people at the services instead. */
html:not(.js) .wizard { display: none; }
html:not(.js) .wz-nojs { display: block; }
.wz-nojs { display: none; text-align: center; }

/* ---------------------------------------------------------------------- */
/* Package banner: the price sheet at a glance, above the wizard           */
/* ---------------------------------------------------------------------- */
.pricebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.6rem; }
@media (max-width: 760px) { .pricebar { grid-template-columns: repeat(2, 1fr); } }
.pricebar-item { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.pricebar-item.is-popular { border-color: var(--brand-bright); }
.pricebar-tag { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .3rem; }
html[lang="ar"] .pricebar-tag { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-weight: 600; }
.pricebar-price { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.pricebar-price em { font-style: normal; font-size: .72rem; font-weight: 400; color: var(--ink-soft); margin-inline-start: .25rem; }
.pricebar-note { display: block; font-size: .78rem; color: var(--ink-soft); margin-top: .25rem; }
.pricebar-star { position: absolute; top: -.6rem; inset-inline-end: .8rem; background: var(--brand-signal); color: #fff; font-size: .66rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }

/* Fine print inside each price tile.
   Size carries the "fine print" reading; the colour stays at full --ink-soft
   rather than being faded with opacity. Fading it as well would drop the
   contrast under the WCAG AA floor for small text, and print this small that
   also fails contrast is not fine print -- it is unreadable, which is exactly
   what a customer disputing the price would point at. */
.pricebar-terms { display: block; margin-top: .4rem; font-size: .62rem; line-height: 1.35; letter-spacing: .01em; color: var(--ink-soft); }

/* Short service summary under a section heading. */
.svc-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; max-width: var(--measure); }
.svc-list li { position: relative; padding-inline-start: 1.5rem; font-size: 1rem; }
.svc-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-deep); font-weight: 700; }

/* "Powered by" partner mark inside a trust card. Typographic for now — swap
   the <strong> for an <img> once the official Zoho brand asset is supplied. */
.powered-by {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem; padding: .4rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: .8rem; color: #5c5878;
  /* Fixed light chip, not var(--surface): the Zoho lockup's wordmark is
     black with no dark-mode variant, so on a dark surface it would
     disappear. Keeping the chip light renders the mark as its owner
     intends in both themes. */
  background: #ffffff;
}
.powered-by strong { color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.powered-by img { height: 1.35rem; width: auto; display: block; }

/* ---------------------------------------------------------------------- */
/* Narrow-screen fixes for the trust cards                                 */
/* Grid items default to min-width:auto, so a card cannot shrink below the */
/* widest unbreakable thing inside it. The mail mock holds addresses like  */
/* billing@yourbusiness.ps in a nowrap flex row with flex:none badges,     */
/* which held the card at ~505px inside a 344px viewport and put the whole */
/* page into horizontal scroll. Long-standing; only visible under ~380px.  */
/* ---------------------------------------------------------------------- */
.trust-duo > * { min-width: 0; }
.mail-mock-row { flex-wrap: wrap; }
.mail-mock-row > div { min-width: 0; }
.mail-mock-from, .mail-mock-subject, .mail-mock-url { overflow-wrap: anywhere; }
.mail-mock-badges { flex: 0 1 auto; flex-wrap: wrap; }
.support-row { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); }
@media (max-width: 420px) {
  .support-row { grid-template-columns: 1fr; gap: .2rem; }
}

/* Availability state on each extension row in the wizard. */
.wz-ext-status { grid-column: 2 / -1; font-size: .76rem; font-weight: 600; }
.wz-ext-status.is-available { color: #17a768; }
.wz-ext-status.is-taken { color: var(--brand-signal); }
.wz-ext-status.is-checking,
.wz-ext-status.is-on-request,
.wz-ext-status.is-unknown { color: var(--ink-soft); font-weight: 400; }
.wz-ext-status.is-available::before { content: "✓ "; }
.wz-ext-status.is-taken::before { content: "✕ "; }
.wz-ext-status.is-restricted { color: var(--ink-soft); font-weight: 600; }
.wz-ext-status.is-restricted::before { content: "⚠ "; }

/* Zoho mark inside a price tile and in the wizard's mail step. Small, on a
   fixed light chip for the same reason as .powered-by: the lockup's wordmark
   is black with no dark variant, so it must not sit on a themed surface. */
.tile-mark { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; padding: .2rem .45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: .66rem; color: #5c5878; }
.tile-mark img { height: .95rem; width: auto; display: block; }
.wz-mark { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .3rem .65rem; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .76rem; color: #5c5878; }
.wz-mark img { height: 1.15rem; width: auto; display: block; }

/* Three-step lead-in above the wizard. Horizontal on wide screens, stacked on
   narrow ones so the numbers stay readable. */
.wz-steps-intro { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.6rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.wz-steps-intro li { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; color: var(--ink); }
.wz-steps-intro .n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; flex: none; border-radius: 999px; background: var(--brand-bright); color: #fff; font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
html[lang="ar"] .wz-steps-intro .n { font-family: var(--font-body); }
@media (max-width: 640px) { .wz-steps-intro { flex-direction: column; align-items: flex-start; text-align: start; } }

/* Extension rows differ by what the visitor can actually do with the name. */
.wz-ext.is-transfer.is-on { border-color: var(--brand-deep); background: color-mix(in srgb, var(--brand-deep) 7%, transparent); }
.wz-ext.is-blocked { opacity: .62; background: var(--surface-sunken); cursor: not-allowed; }
.wz-ext.is-blocked .wz-ext-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.wz-ext-lock { display: inline-block; width: 1rem; text-align: center; color: var(--ink-soft); }

/* "I don't need hosting" opt-out beneath the two plans, and the domain-only
   shortcut on step 1. Deliberately understated: a real choice, but not a third
   card competing with the two plans that earn money. */
.wz-optout { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); cursor: pointer; font-size: .92rem; color: var(--ink-soft); }
.wz-optout:hover { border-color: var(--ink-soft); }
.wz-optout.is-on { border-style: solid; border-color: var(--brand-bright); background: color-mix(in srgb, var(--brand-bright) 6%, transparent); color: var(--ink); font-weight: 600; }
.wz-nav-right { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* Credibility strip above the wizard                                      */
/* First thing on the page, so it is deliberately short: one claim and     */
/* three proof points. Anything longer and it becomes something to scroll  */
/* past on the way to the search box.                                      */
/* ---------------------------------------------------------------------- */
.hero-trust { text-align: center; margin-bottom: 1.8rem; }
/* A full sentence, not a short phrase — so it is sized to be read rather
   than shouted, and held to a comfortable measure instead of running the
   full width of the hero. */
.hero-trust .years { max-width: 44rem; margin: 0 auto; font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; line-height: 1.45; color: var(--ink); }
.hero-trust .years strong { color: var(--brand-bright); }
.hero-trust .sub { margin: .35rem 0 0; color: var(--ink-soft); font-size: .96rem; }
.hero-trust ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem .5rem; list-style: none; margin: 1rem 0 0; padding: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.hero-trust li::before { content: "✓"; color: var(--brand-deep); font-weight: 700; }
@media (max-width: 560px) { .hero-trust ul { gap: .4rem; } .hero-trust li { font-size: .82rem; padding: .35rem .7rem; } }
