/* Cloud Match | كلاود ماتش — site styles
   Brand: navy #0B1E33, rust #8F3A14, light rust #E09A73, ink #1F1A17 */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /assets/fonts/LICENSE-*.txt) ---------- */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-arabic-500.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-arabic-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/kufi-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1; }
@font-face { font-family: "Noto Kufi Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/kufi-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-sans-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --navy: #0B1E33;
  --navy-2: #12304F;
  --navy-line: #24405F;
  --on-navy: #FFFFFF;
  --on-navy-muted: #D8CFC8;
  --rust: #8F3A14;
  --rust-hover: #73300F;
  --rust-light: #E09A73;

  --bg: #F7F4F1;
  --surface: #FFFFFF;
  --surface-2: #FBF9F7;
  --ink: #1F1A17;
  --muted: #57504A;
  --faint: #736A63;
  --line: #E7E0D9;
  --line-strong: #D5CBC1;
  --field-line: #8C8077;
  --danger: #B42318;
  --danger-soft: #FDECEC;
  --card-ring: transparent;
  --accent-text: #8F3A14;
  --accent-soft: #F5E7DE;
  --ksa: #1E6A48;
  --ksa-soft: #E3F0E8;
  --ref: #6B625B;
  --ref-soft: #EEEAE6;
  --intel: #0B4F8A;
  --intel-soft: #E2EDF8;
  --amd: #9F1239;
  --amd-soft: #FCE7EE;
  --arm: #5B3496;
  --arm-soft: #EFE7FA;
  --ssd: #0F6B66;
  --ssd-soft: #DDF2EF;
  --focus: #C2612F;
  --shadow: 0 1px 2px rgba(31, 26, 23, .06), 0 12px 32px -12px rgba(11, 30, 51, .22);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08172A;
    --surface: #0F2238;
    --surface-2: #0C1D31;
    --ink: #EEE8E2;
    --muted: #B9AFA7;
    --faint: #8F867F;
    --line: #1F3651;
    --line-strong: #2C4867;
    --field-line: #5A7BA0;
    --danger: #F97066;
    --danger-soft: #3A1A1F;
    --card-ring: #2C4867;
    --accent-text: #E09A73;
    --accent-soft: #2A2321;
    --ksa: #7FCFA3;
    --ksa-soft: #143A2C;
    --ref: #B9AFA7;
    --ref-soft: #1C3048;
    --intel: #93C5F4;
    --intel-soft: #13304D;
    --amd: #F7A1B8;
    --amd-soft: #3A1A27;
    --arm: #C9AEF3;
    --arm-soft: #2A2145;
    --ssd: #6FD6CB;
    --ssd-soft: #12363A;
    --focus: #E09A73;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08172A;
  --surface: #0F2238;
  --surface-2: #0C1D31;
  --ink: #EEE8E2;
  --muted: #B9AFA7;
  --faint: #8F867F;
  --line: #1F3651;
  --line-strong: #2C4867;
  --field-line: #5A7BA0;
  --danger: #F97066;
  --danger-soft: #3A1A1F;
  --card-ring: #2C4867;
  --accent-text: #E09A73;
  --accent-soft: #2A2321;
  --ksa: #7FCFA3;
  --ksa-soft: #143A2C;
  --ref: #B9AFA7;
  --ref-soft: #1C3048;
  --intel: #93C5F4;
  --intel-soft: #13304D;
  --amd: #F7A1B8;
  --amd-soft: #3A1A27;
  --arm: #C9AEF3;
  --arm-soft: #2A2145;
  --ssd: #6FD6CB;
  --ssd-soft: #12363A;
  --focus: #E09A73;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

html[lang="ar"] {
  --font: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { line-height: 1.8; }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.5; }
p { margin: 0; }
.num, .money { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .88em; letter-spacing: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); inset-inline-start: 8px; z-index: 100; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; padding: 10px 16px; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.main-nav a, .header-row > .lang-link {
  white-space: nowrap;
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 8px;
}
.main-nav a:hover, .header-row > .lang-link:hover { color: var(--on-navy); background: rgba(255, 255, 255, .06); }
.lang-link { border: 1px solid var(--navy-line); font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1.2 var(--font);
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }
.btn-small { padding: 8px 12px; font-size: 14px; }
.header-cta { flex: none; }

@media (max-width: 1160px) {
  .main-nav { display: none; }
  .lang-link { margin-inline-start: auto; }
}
.nav-menu { display: none; }
.nav-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--navy-line); border-radius: 8px; color: var(--on-navy); cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu .burger, .nav-menu .burger::before, .nav-menu .burger::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .15s ease, background-color .15s ease; }
.nav-menu .burger { position: relative; }
.nav-menu .burger::before, .nav-menu .burger::after { content: ""; position: absolute; inset-inline-start: 0; }
.nav-menu .burger::before { top: -6px; }
.nav-menu .burger::after { top: 6px; }
.nav-menu[open] .burger { background: transparent; }
.nav-menu[open] .burger::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] .burger::after { transform: translateY(-6px) rotate(-45deg); }
.menu-panel { position: absolute; inset-inline: 0; top: 100%; display: grid; gap: 2px; padding: 8px var(--gutter) 16px; background: var(--navy); border-bottom: 1px solid var(--navy-line); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 10px 8px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font-size: 16px; }
.menu-panel a:hover { background: rgba(255, 255, 255, .06); }
.menu-panel .lang-link { border: 0; margin: 4px 0 0; padding: 10px 8px; font-size: 16px; border-top: 1px solid var(--navy-line); border-radius: 0; }
@media (max-width: 1160px) { .nav-menu { display: block; } }
@media (max-width: 560px) {
  .header-row > .lang-link { display: none; }
  .header-cta { margin-inline-start: auto; }
}
@media (max-width: 460px) {
  .brand img { height: 30px; }
  .header-row { gap: 10px; min-height: 60px; }
  .header-cta { padding: 9px 12px; font-size: 14px; }
  .lang-link { padding: 7px 9px; font-size: 13px; }
}
.cta-short { display: none; }
@media (max-width: 400px) {
  .brand img { height: 26px; }
  .header-row { gap: 8px; }
  .lang-link { padding: 6px 8px; }
  .header-cta { padding: 8px 12px; }
}
@media (max-width: 374px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 359px) {
  .brand img { height: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
  padding-block: clamp(36px, 6vw, 72px) clamp(44px, 7vw, 88px);
}
.hero-art {
  position: absolute;
  inset-inline-start: -140px;
  bottom: -150px;
  width: 560px;
  height: auto;
  opacity: .45;
  pointer-events: none;
}
html[dir="rtl"] .hero-art { transform: scaleX(-1); }
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "copy finder" "extra finder";
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.hero-copy { grid-area: copy; padding-top: 8px; min-width: 0; }
.hero-extra { grid-area: extra; min-width: 0; }
.hero-grid > .finder { grid-area: finder; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--rust-light);
  letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--rust); }
.hero h1 { font-size: clamp(27px, 2.9vw, 36px); margin-top: 18px; font-weight: 700; }
html[lang="ar"] .hero h1 { font-size: clamp(24px, 2.45vw, 31px); }
.hero-sub { margin-top: 18px; color: var(--on-navy-muted); font-size: 17px; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: center; color: var(--on-navy); font-size: 15px; }
.hero-points li::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.covered { margin-top: 30px; }
.covered-label { display: block; font-size: 12px; font-weight: 600; color: var(--on-navy-muted); letter-spacing: .04em; margin-bottom: 10px; }
html[lang="en"] .covered-label { text-transform: uppercase; letter-spacing: .08em; }
.covered-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.covered-list li {
  font-size: 13px; font-weight: 500; color: var(--on-navy);
  padding: 5px 11px; border-radius: 99px;
  border: 1px solid var(--navy-line); background: rgba(255, 255, 255, .03);
}
.covered-list li.is-ref { color: var(--on-navy-muted); border-style: dashed; }
.covered-list li span { font-weight: 400; font-size: 12px; }
.hero-stamp {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--navy-line);
  font-size: 13px; color: var(--on-navy-muted);
}
@media (max-width: 600px) {
  .hero-sub { font-size: 16px; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "finder" "extra"; grid-template-rows: auto; row-gap: 28px; }
  .hero-points { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 4px; }
}

/* ---------- Finder card ---------- */
.finder {
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--card-ring), var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.finder-head { padding: 20px 22px 4px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.finder-head h2 { font-size: 20px; }
.finder-head .hint { font-size: 13px; color: var(--muted); }
.finder-form { padding: 14px 22px 18px; display: grid; gap: 16px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px; border: 1px solid var(--field-line); border-radius: 8px;
  cursor: pointer; text-align: center; line-height: 1.3;
  background: var(--surface);
}
.seg label b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg label span { font-size: 12px; color: var(--muted); }
.seg input:checked + label { border-color: var(--accent-text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-text); }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.row-3 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
@media (max-width: 560px) { .row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .row-3 > :first-child { grid-column: 1 / -1; } }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--field-line); border-radius: 8px; overflow: hidden; height: 42px; }
.stepper:has(:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.stepper button { width: 40px; border: 0; background: var(--surface-2); color: var(--ink); font-size: 18px; cursor: pointer; }
.stepper button:hover { color: var(--accent-text); }
.stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font: 600 16px var(--font); background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: 15px/1.4 var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 42px;
}
select { appearance: none; -webkit-appearance: none; padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238A8079' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: right 12px center; }
html[dir="rtl"] select { background-position: left 12px center; }
textarea { min-height: 110px; resize: vertical; }

.toggles { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 34px; height: 20px; border-radius: 10px; background: var(--field-line); position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + .track { background: var(--rust); }
.switch input:checked + .track::after { inset-inline-start: 17px; }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

.results { border-top: 1px solid var(--line); background: var(--surface-2); padding: 16px 22px 20px; }
.results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results.is-loading { min-height: 800px; }
@media (max-width: 720px) { .results.is-loading { min-height: 1000px; } }
.results-head h3 { font-size: 15px; font-family: var(--font); font-weight: 600; }
.results-head .basis { font-size: 12px; color: var(--muted); }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.offer {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.offer.best { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }
.offer .rank {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 13px var(--font); background: var(--ref-soft); color: var(--muted);
  grid-row: span 2;
  align-self: start;
}
.offer.best .rank { background: var(--rust); color: #fff; }
.offer .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.offer .who strong { font-size: 15px; }
.offer .total { text-align: end; font-weight: 700; font-size: 19px; white-space: nowrap; }
.offer .total small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.offer .detail { grid-column: 2 / 3; font-size: 13px; color: var(--muted); min-width: 0; margin-top: 6px; }
.offer .part { white-space: nowrap; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec {
  display: inline-flex; flex-direction: column; gap: 1px; min-width: 0;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2);
  line-height: 1.3;
}
.spec small { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.spec b { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.spec-sku b { font-family: var(--font-mono); font-weight: 500; font-size: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.split div { padding: 6px 9px; border-radius: 7px; background: var(--surface-2); border: 1px dashed var(--line-strong); min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; }
.split span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 500; }
.split b { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.sku-box { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); overflow-wrap: break-word; }
.mini-specs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.mini-specs span { font-size: 12px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-variant-numeric: tabular-nums; }
.offer .act { grid-column: 3 / 4; justify-self: end; }
.best-flag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; line-height: 1; color: #fff; background: var(--rust); padding: 4px 8px; border-radius: 99px; white-space: nowrap; }
.results-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.results-actions .share-url { flex: 1 1 260px; min-height: 36px; font-size: 13px; }
.results-foot { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: 600 14px var(--font); color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) {
  .finder-head, .finder-form, .results { padding-inline: 16px; }
  .offer { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 12px; gap: 6px 10px; align-items: start; }
  .offer .rank { grid-row: auto; width: 26px; height: 26px; }
  .offer .total { font-size: 17px; }
  .offer .detail { grid-column: 1 / -1; }
  .offer .act { grid-column: 1 / -1; justify-self: stretch; }
  .offer .act .btn { width: 100%; }
}

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 99px; white-space: nowrap; }
.tag-ksa { color: var(--ksa); background: var(--ksa-soft); }
.tag-ref { color: var(--ref); background: var(--ref-soft); }
.tag-cst { color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag-intel { color: var(--intel); background: var(--intel-soft); }
.tag-amd { color: var(--amd); background: var(--amd-soft); }
.tag-arm { color: var(--arm); background: var(--arm-soft); }
.tag-mixed, .tag-unknown { color: var(--ref); background: var(--ref-soft); }
.tag-ssd { color: var(--ssd); background: var(--ssd-soft); }
.opts { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 18px; align-items: end; }
.opts .toggles { padding-bottom: 10px; }
.cpu-filter { display: flex; align-items: center; gap: 10px; }
.cpu-filter .field-label { margin: 0; white-space: nowrap; }
.cpu-filter select { width: auto; min-width: 190px; min-height: 38px; padding-block: 7px; font-size: 14px; }
@media (max-width: 560px) {
  .opts { grid-template-columns: minmax(0, 1fr); }
  .opts .toggles { padding-bottom: 0; }
  .cpu-filter { width: 100%; }
  .cpu-filter select { flex: 1; min-width: 0; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 22px 18px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.stat b { display: block; font: 700 26px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 16px 12px; }
  .stat:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat b { font-size: 21px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 7vw, 88px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
html[lang="ar"] .section-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.section-head h1 { font-size: clamp(26px, 3.2vw, 36px); }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.kicker { display: block; font-size: 13px; font-weight: 600; color: var(--accent-text); letter-spacing: .06em; margin-bottom: 10px; }
html[lang="en"] .kicker { text-transform: uppercase; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: s; }
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li:first-child { border-color: var(--rust); }
.steps .n { font: 500 13px var(--font-mono); color: var(--muted); }
.steps h3 { font-size: 24px; margin-top: 6px; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Compare table ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; max-width: 100%; }
.tabs button {
  border: 0; background: none; color: var(--muted);
  font: 500 14px var(--font); padding: 8px 14px; border-radius: 7px; cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
html[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--rust); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs button[aria-selected="true"] { background: var(--rust); } }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.filters select { width: auto; min-width: 150px; min-height: 38px; padding-block: 7px; font-size: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--field-line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: 500 13px var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.chips button[aria-pressed="true"] { border-color: var(--rust); background: var(--accent-soft); color: var(--accent-text); }
.unit-note { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
table.prices { width: 100%; border-collapse: collapse; font-size: 14px; }
.prices th { text-align: start; font-weight: 600; font-size: 12px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.prices td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices tr:last-child td { border-bottom: 0; }
.prices tbody tr:hover td { background: var(--surface-2); }
.prices .c-price { text-align: end; white-space: nowrap; font-weight: 700; font-size: 15px; }
.prices th.c-price { text-align: end; font-size: 12px; font-weight: 600; }
.prices .c-prov strong { display: block; white-space: nowrap; }
.prices .c-region { min-width: 140px; }
.prices .c-region .city { display: block; }
.prices .c-region .tags { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 6px; }
.prices .sku { font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; }
.prices .cpu { color: var(--muted); font-size: 13px; }
.prices .cheapest td.c-price { color: var(--accent-text); }
.prices[data-cat="object_storage"] .c-cpu, .prices[data-cat="egress"] .c-cpu { display: none; }
.prices .perf-note { display: block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
.prices .per-gb { display: block; margin-top: 2px; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.table-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.md-link { font-weight: 600; font-size: 14px; color: var(--accent-text); text-underline-offset: 3px; }

@media (max-width: 720px) {
  .table-wrap { background: transparent; border: 0; overflow: visible; }
  table.prices, .prices tbody, .prices tr, .prices td { display: block; }
  .prices thead { display: none; }
  .prices tr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .prices td { padding: 0; border: 0; }
  .prices tbody tr:hover td { background: none; }
  .prices .c-prov { grid-column: 1; }
  .prices .c-price { grid-column: 2; grid-row: 1; font-size: 17px; }
  .prices .c-region, .prices .c-sku, .prices .c-cpu { grid-column: 1 / -1; min-width: 0; }
  .prices .c-region { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
  .prices .c-region .tags { margin-top: 0; }
}
@media (max-width: 520px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tabs button { padding-inline: 8px; }
  .filters { width: 100%; }
  .filters select { flex: 1 1 100%; }
}

/* ---------- Coming soon ---------- */
.soon { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 36px; }
.soon-intro h3 { font-size: 20px; }
.soon-intro p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.soon-card { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px 20px; background: var(--surface); }
.soon-card strong { display: block; font-size: 17px; }
.soon-card .when { margin-top: 6px; font-size: 14px; color: var(--accent-text); font-weight: 600; }
.soon-card .now { margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .soon { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 5vw, 64px); }
.why div { padding-inline-start: 18px; border-inline-start: 3px solid var(--rust); }
.why h3 { font-size: 19px; }
.why p { margin-top: 6px; color: var(--muted); }
@media (max-width: 680px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Managed services partners ---------- */
.join-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; max-width: 34em; }
.join-points li { position: relative; padding-inline-start: 22px; color: var(--muted); }
.join-points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.services li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.services .svc-n { font: 500 13px var(--font-mono); color: var(--accent-text); }
.services h3 { font-size: 19px; margin-top: 6px; }
.services p { margin-top: 6px; color: var(--muted); }
.ms-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.join-card { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 22px; border-radius: 12px; border: 1px dashed var(--line-strong); }
.join-card > div { min-width: 0; flex: 1 1 320px; }
.join-card h3 { font-size: 17px; }
.join-card p { margin-top: 4px; color: var(--muted); max-width: 52em; }
@media (max-width: 760px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--font); color: var(--accent-text); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 62em; }

/* ---------- Quote ---------- */
.quote { background: var(--navy); color: var(--on-navy); }
.quote .section-head p { color: var(--on-navy-muted); }
.quote .kicker { color: var(--rust-light); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-aside ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.quote-aside li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; color: var(--on-navy-muted); font-size: 15px; }
.quote-aside li b { color: var(--on-navy); font-weight: 600; display: block; }
.quote-aside li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--rust-light); }
.quote-form { background: var(--surface); color: var(--ink); border-radius: 14px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; box-shadow: 0 0 0 1px var(--card-ring), var(--shadow); }
.quote-form .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.quote-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.quote-form .req { color: var(--accent-text); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-note { font-size: 12px; color: var(--muted); }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); }
.form-msg textarea { margin-top: 8px; min-height: 150px; font-size: 13px; white-space: pre-wrap; }
.quote-form fieldset.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.quote-form .checks legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.check-row { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-form label.check { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.quote-form label.check input { width: 16px; height: 16px; margin: 0; accent-color: var(--rust); flex: none; }
.quote-form label.check:has(input:checked) { border-color: var(--accent-text); background: var(--accent-soft); }
.quote-form label.check:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
/* validation */
.quote-form [aria-invalid="true"] { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.quote-form fieldset.has-error label.check { border-color: var(--danger); }
.quote-form fieldset.has-error legend { color: var(--danger); }
.form-msg.is-error { background: var(--danger-soft); border-inline-start: 4px solid var(--danger); }
/* phone numbers, emails and CR numbers stay left-to-right, aligned like the other fields */
html[dir="rtl"] input[dir="ltr"] { text-align: right; }
.join .quote-grid { align-items: start; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: minmax(0, 1fr); } }
.form-msg.is-ok { background: var(--accent-soft); border-inline-start: 4px solid var(--accent-text); font-weight: 600; }
.form-msg .form-actions { margin-top: 8px; }
/* spam trap: hidden from people, filled only by bots */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quote-form { position: relative; }

@media (max-width: 520px) { .quote-form .two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); border-top: 1px solid var(--navy-line); padding-block: 36px 40px; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 34px; width: auto; display: block; }
.footer-brand p { margin-top: 10px; color: var(--rust-light); font-weight: 500; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--navy-line); font-size: 12px; line-height: 1.8; }

/* ---------- Plain pages (privacy, 404) ---------- */
.page { padding-block: clamp(40px, 6vw, 72px); }
.page .prose { max-width: 720px; }
.prose h1 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 18px; }
.prose h2 { font-size: 19px; margin-top: 28px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-inline-start: 22px; }
.prose .updated { font-size: 13px; color: var(--faint); margin-bottom: 20px; }

.noscript { background: var(--accent-soft); padding: 12px 16px; border-radius: 8px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.seg-wrap { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg-wrap legend { padding: 0; }

/* ---------- Calculator mode tabs and resource-pool sliders ---------- */
.mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.mode-tabs button { border: 0; background: none; color: var(--muted); font: 600 14px var(--font); padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.mode-tabs button[aria-selected="true"] { background: var(--surface); color: var(--accent-text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 0 0 1px var(--line-strong); }
.mode-panel { display: grid; gap: 16px; }
.pool-note { font-size: 13px; color: var(--muted); }
.slider { display: grid; gap: 6px; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slider-head .field-label { margin: 0; }
.slider-val { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--font); color: var(--muted); }
.slider-num { width: 5.5em; min-height: 36px; padding: 4px 8px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 700 16px var(--font); font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; }
.slider-num::-webkit-outer-spin-button, .slider-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slider input[type="range"] { width: 100%; accent-color: var(--rust); height: 24px; margin: 0; cursor: pointer; }
.slider-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .slider-scale { flex-direction: row-reverse; }
.billed-note { margin-top: 6px; font-size: 12px; color: var(--muted); }
.pool-basis { flex-basis: 100%; }

/* ---------- Touch screens: 44px targets ---------- */
@media (pointer: coarse) {
  .linkish { padding-block: 12px; }
  .switch { min-height: 44px; }
  .chips button, .tabs button, .mode-tabs button, .btn-small { min-height: 44px; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .md-link { display: inline-flex; align-items: center; min-height: 44px; }
  .stepper { height: 48px; }
  .stepper button { width: 48px; }
}

/* ---------- Printable comparison (filled by app.js) ---------- */
.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  html.has-print-sheet { color-scheme: light !important; }
  html.has-print-sheet, html.has-print-sheet body { background: #fff !important; }
  html.has-print-sheet body > *:not(.print-sheet) { display: none !important; }
  html.has-print-sheet .print-sheet { display: block; color: #111; font-size: 10.5pt; line-height: 1.5; }
  .print-sheet .ps-head { display: flex; align-items: center; gap: 18px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 2px solid #8F3A14; }
  .print-sheet .ps-head img { height: 34px; width: auto; }
  .print-sheet h1 { font-size: 17pt; color: #111; margin: 0 0 2px; }
  .print-sheet p { margin: 0 0 8px; color: #333; }
  .print-sheet .ps-specs { margin-bottom: 12px; }
  .print-sheet table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
  .print-sheet th, .print-sheet td { border: 1px solid #bbb; padding: 6px 8px; text-align: start; vertical-align: top; }
  .print-sheet th { background: #f2ece7; font-weight: 600; }
  .print-sheet td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
  .print-sheet tr { break-inside: avoid; }
  .print-sheet .ps-notes { font-size: 9pt; color: #555; }
  .print-sheet .ps-link, .print-sheet .ps-contact { font-size: 9pt; color: #555; overflow-wrap: anywhere; }
}
/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.contact-card { display: grid; gap: 6px; padding: 22px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 0 0 1px var(--card-ring), var(--shadow); transition: box-shadow .15s; }
.contact-card:hover { box-shadow: 0 0 0 2px var(--accent-text), var(--shadow); }
.contact-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cc-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.cc-value { font-size: clamp(20px, 4vw, 24px); font-weight: 700; unicode-bidi: isolate; }
html[dir="rtl"] .cc-value { text-align: right; }
.cc-note { font-size: 14px; color: var(--muted); }
.contact-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.contact-next > div { padding: 22px; border-radius: 14px; background: var(--accent-soft); }
.contact-next h2 { font-size: 18px; margin: 0 0 6px; }
.contact-next p { margin: 0 0 16px; color: var(--muted); }
