/* HydraSolar — design system and layout (English LTR and Arabic RTL) */

/* Fonts are served with the site (SIL Open Font License, see assets/fonts), so pages and printed
   reports look the same everywhere and no third-party font service is contacted. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-latin-400-normal.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: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(../assets/fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-latin-500-normal.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: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(../assets/fonts/inter-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/inter-latin-600-normal.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: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(../assets/fonts/inter-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/inter-latin-700-normal.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: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/inter-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(../assets/fonts/inter-latin-800-normal.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: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url(../assets/fonts/inter-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@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-arabic-400-normal.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; }
@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-arabic-500-normal.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; }
@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-arabic-600-normal.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; }
@font-face { font-family: 'IBM Plex Sans Arabic'; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/ibm-plex-sans-arabic-arabic-700-normal.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; }

:root {
  --ink: #0e1b2c;
  --ink-2: #47546a;
  --muted: #6f7b8d;
  --line: #e3e8ee;
  --line-2: #d3dbe5;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --navy: #0b2236;
  --navy-2: #12304a;
  --brand: #0a7c7a;
  --brand-600: #086a68;
  --brand-50: #e6f4f3;
  --amber: #f5b335;
  --power: #e8892b;
  --water: #2a78d6;
  --good: #0ca30c;
  --good-text: #006300;
  --warn: #fab219;
  --crit: #d03b3b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 8px 24px rgba(14, 27, 44, .06);
  --font: Inter, "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 68px;
  color-scheme: light;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", Inter, system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
.h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.wrap { width: min(1200px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(860px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid rgba(10, 124, 122, .45); outline-offset: 2px; }
main:focus, .page-title:focus, .panel-title:focus { outline: none; }
[dir="rtl"] .arrow-fwd, [dir="rtl"] .arrow-back { display: inline-block; transform: scaleX(-1); }
bdi { unicode-bidi: isolate; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(10, 124, 122, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-primary:disabled { background: #8db8b7; box-shadow: none; cursor: progress; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; }
#nearest-hint:empty { display: none; }
.link-btn { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: none; }
.link-btn:hover { text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand strong { display: block; font-size: 18px; letter-spacing: -0.02em; line-height: 1.1; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand-600); border-bottom-color: var(--brand); }
.nav a.disabled { opacity: .45; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif; }
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* pages */
.section { padding: 64px 0; }
.section-head { max-width: 780px; margin-bottom: 28px; }
.section-head h2, .section-head .h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.section-head p:not(.eyebrow) { color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-head { margin-bottom: 16px; }
.card-head h3 { font-size: 18px; font-weight: 700; }
.card-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* home */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(42, 120, 214, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0d2c45 60%, #0f3a52 100%); color: #fff; }
[dir="rtl"] .hero { background: radial-gradient(1200px 500px at 15% -10%, rgba(42, 120, 214, .35), transparent 60%), linear-gradient(200deg, var(--navy) 0%, #0d2c45 60%, #0f3a52 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 0 80px; }
.hero .eyebrow { color: #7fd6cf; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.035em; }
html[lang="ar"] .hero h1 { letter-spacing: 0; font-size: clamp(30px, 4vw, 48px); }
.hero h1 span { color: #8fd3ff; }
.lead { margin-top: 18px; font-size: 17px; color: #c8d6e3; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-ghost:hover { border-color: #fff; color: #fff; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 30px 0 0; color: #a9bccd; font-size: 14px; }
.trust b { color: #fff; }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 28px; }
.hc-eyebrow { font-size: 12px; color: #9fb3c6; font-weight: 600; letter-spacing: .04em; }
.hc-stats { display: grid; gap: 18px; margin: 18px 0; }
.hc-stats b { display: block; font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; direction: ltr; text-align: start; unicode-bidi: isolate; }
[dir="rtl"] .hc-stats b { text-align: end; }
.hc-stats div:nth-child(1) b { color: #7fe3c1; }
.hc-stats div:nth-child(2) b { color: #8fd3ff; }
.hc-stats div:nth-child(3) b { color: #ffd27a; }
.hc-stats span { color: #c8d6e3; font-size: 14px; }
.hc-note { font-size: 13px; color: #9fb3c6; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; }
.home-steps { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-steps .card { box-shadow: none; }
.hs-no { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-weight: 800; margin-bottom: 10px; }
.home-steps h3 { font-size: 17px; margin-bottom: 6px; }
.home-steps p { color: var(--ink-2); font-size: 14px; }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.research { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; background: linear-gradient(150deg, #f4fbfa, #eef5fd); box-shadow: none; }
.research h3 { font-size: 20px; margin-bottom: 8px; }
.research p { color: var(--ink-2); font-size: 14.5px; }
.research-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.research-list li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; }
.research-list b { font-size: 22px; font-weight: 800; color: var(--brand-600); direction: ltr; unicode-bidi: isolate; }
.research-list span { font-size: 13.5px; color: var(--ink-2); }

/* calculator wizard */
.calc { padding-top: 48px; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0 0 20px; }
.stepper a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.stepper a:hover { border-color: var(--brand); }
.st-no { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: #eef2f6; color: var(--ink-2); font-weight: 800; font-size: 13px; flex: none; }
.stepper li.done .st-no { background: var(--brand); color: #fff; }
.stepper li.current a { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 124, 122, .12); color: var(--ink); }
.stepper li.current .st-no { background: var(--brand-50); color: var(--brand); }
.step-panel { min-width: 0; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.01em; }
.step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand); font-size: 14px; font-weight: 800; flex: none; }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; align-items: start; }
.panel-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sub-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sub-title { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.step-errors { margin-top: 16px; }
.step-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.step-nav #next-btn { margin-inline-start: auto; }
.step-count { color: var(--muted); font-size: 13px; }
.review-panel > * + * { margin-top: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.review-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.review-head h3 { font-size: 15px; }
.review-sec dl, .mini-dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.review-sec dt, .mini-dl dt { color: var(--muted); }
.review-sec dd, .mini-dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.opt { font-weight: 500; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { padding: 10px 12px; resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 124, 122, .15); outline: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--crit); box-shadow: 0 0 0 3px rgba(208, 59, 59, .12); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.input-unit { position: relative; display: flex; }
.input-unit input { padding-inline-end: 64px; }
.input-unit span { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; white-space: nowrap; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12.5px; color: var(--muted); }
.hint b { color: var(--ink-2); }
.tip { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1; padding: 0; cursor: help; position: relative; flex: none; }
.tip:hover, .tip:focus { color: var(--brand); border-color: var(--brand); }
.tip[data-open="true"]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 260px; background: var(--ink); color: #fff; font-weight: 500; font-size: 12.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px; z-index: 20; text-align: start; box-shadow: var(--shadow); }
.info-box { background: #f6f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.info-box b { color: var(--ink); }
.info-box dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.info-box dt { color: var(--muted); }
.info-box dd { margin: 0; font-weight: 600; color: var(--ink); }
.meter { height: 8px; border-radius: 99px; background: #e8edf2; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--good); transition: width .25s, background .25s; }
.season { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.season-name { font-weight: 700; }
.season-months { font-size: 12.5px; color: var(--muted); }
.timeline { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 16px; direction: ltr; }
.timeline .hint { direction: initial; unicode-bidi: plaintext; }
.tl-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; }
.tl-track { position: relative; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #e5e9f0 0, #e5e9f0 25%, #fff2d6 25%, #fff2d6 75%, #e5e9f0 75%); overflow: hidden; }
.tl-track i { position: absolute; top: 2px; bottom: 2px; background: var(--water); border-radius: 3px; }
.tl-scale { position: relative; height: 16px; }
.tl-scale span { position: absolute; top: 0; transform: translateX(-50%); font-size: 11px; }
.tl-scale span:first-child { transform: none; }
.tl-scale span:last-child { transform: translateX(-100%); }

.assumptions { padding: 0; }
.assumptions > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; padding: 18px 24px; list-style: none; }
.assumptions > summary::-webkit-details-marker { display: none; }
.assumptions[open] > summary { border-bottom: 1px solid var(--line); }
.preset-pill { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.preset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 24px 0; }
.preset-note { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.chip { border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.assump-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 24px; padding: 18px 24px 24px; }
.assump-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
html[lang="ar"] .assump-group h4 { letter-spacing: 0; font-size: 14px; }
.assump-group .field { margin-bottom: 10px; }
.assump-group .field label { font-weight: 500; font-size: 13px; }
.assump-group .field input, .assump-group .field select { height: 38px; }

.run-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #ffffff 0%, #f1f8f7 100%); }
[dir="rtl"] .run-bar { background: linear-gradient(240deg, #ffffff 0%, #f1f8f7 100%); }
.run-text { display: flex; flex-direction: column; gap: 2px; }
.run-text span { font-size: 13px; color: var(--muted); }
.run-actions { display: flex; gap: 10px; }

.alert { border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.alert-error { background: #fdf0f0; border: 1px solid #f2c4c4; color: #8a1f1f; }
.alert-info { background: #eef5fd; border: 1px solid #c9ddf6; color: #1b467a; }
.alert-warn { background: #fff8e6; border: 1px solid #f6dd9b; color: #6d4a00; }
.alert .error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alert ul { margin: 6px 0 0; padding-inline-start: 18px; }
.alert .err-link { font-weight: 600; white-space: nowrap; }

.progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.bar { height: 8px; border-radius: 99px; background: #e8edf2; margin: 12px 0 16px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--water)); border-radius: 99px; transition: width .3s; }
.progress-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.progress-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.progress-steps li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.progress-steps li.active { color: var(--ink); font-weight: 600; }
.progress-steps li.active::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.progress-steps li.done { color: var(--ink-2); }
.progress-steps li.done::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--brand); }
.progress-detail { margin-top: 10px; font-size: 13px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

/* results */
.results-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 0 64px; }
body.has-chat .results-layout { padding-bottom: 120px; }
.res-nav { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.res-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.res-nav a:hover { background: var(--bg); color: var(--ink); }
.res-nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-600); }
.res-main { min-width: 0; }
.res-main > * + * { margin-top: 20px; }
.res-panel > * + * { margin-top: 20px; }
.report-mode .res-panel + .res-panel { margin-top: 40px; padding-top: 28px; border-top: 2px solid var(--line); }
.panel-h { font-size: 21px; font-weight: 800; }
.print-head { display: none; }
.stale { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 10; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.res-head .h2 { font-size: clamp(22px, 2.6vw, 30px); }
.res-sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.res-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.res-pager #res-next { margin-inline-start: auto; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; border: 1px solid; }
.badge-good { background: #ecf8ec; border-color: #b9e2b9; color: var(--good-text); }
.badge-good::before { content: ''; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.badge-warn { background: #fff8e6; border-color: #f6dd9b; color: #6d4a00; }
.badge-warn::before { content: '!'; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; flex: none; background: var(--warn); color: #3a2a00; font-size: 11px; font-weight: 800; }
.badge-crit { background: #fdf0f0; border-color: #f2c4c4; color: #8a1f1f; }
.badge-neutral { background: #f2f5f8; border-color: var(--line-2); color: var(--ink-2); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.kpi:hover { box-shadow: 0 10px 28px rgba(14, 27, 44, .12); transform: translateY(-1px); }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
html[lang="ar"] .kpi-value { letter-spacing: 0; font-size: 27px; }
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi.hero-kpi { background: linear-gradient(150deg, var(--navy) 0%, #12405a 100%); border-color: transparent; color: #fff; }
.kpi.hero-kpi .kpi-label, .kpi.hero-kpi .kpi-sub { color: #a9c3d6; }
.kpi.hero-kpi .kpi-value small { color: #cfe0ec; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > *, .card, .kpi { min-width: 0; }
.equip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.equip.equip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.equip.equip-2 .eq { background: #fff; box-shadow: var(--shadow); padding: 20px; }
.eq { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 3px; position: relative; min-width: 0; }
.eq-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
html[lang="ar"] .eq-top { letter-spacing: 0; font-size: 13.5px; }
.eq-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.eq-main { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
html[lang="ar"] .eq-main { letter-spacing: 0; }
.eq-main small { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.eq-line { font-size: 12.5px; color: var(--muted); }
.eq-line b { color: var(--ink-2); font-weight: 600; }
.eq-link { margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.eq-link:hover { text-decoration: underline; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stats-grid .stat b { font-size: 20px; }

.schematic-host svg { width: 100%; height: auto; display: block; }
.schematic { direction: ltr; }
.schematic .lane { stroke: none; }
.schematic .lane-power { fill: #fff9ef; }
.schematic .lane-water { fill: #f0f6fd; }
.schematic .lane-label { font-size: 13px; font-weight: 800; letter-spacing: .14em; fill: #b9a57f; }
html[lang="ar"] .schematic .lane-label { letter-spacing: 0; font-size: 15px; }
.schematic text { font-family: var(--font); }
html[lang="ar"] .schematic text[text-anchor="middle"] { direction: rtl; }
.schematic .cabinet { fill: #eef2f6; stroke: #6f7f92; stroke-width: 2; }
.schematic .cmp-title { font-size: 16px; font-weight: 700; fill: var(--ink); }
.schematic .cmp-val { font-size: 15px; font-weight: 700; fill: var(--brand-600); }
.schematic .dim-label { font-size: 14px; font-weight: 700; fill: #ffffff; }
.schematic .lane-label-water { fill: #8aa9cf; }
.schematic .cmp-sub { font-size: 12.5px; fill: var(--muted); }
.schematic .flow-power path, .schematic .flow-water path { stroke-dasharray: 14 8; animation: flow 1.6s linear infinite; }
.schematic .flow-water path { animation-duration: 2.2s; }
@keyframes flow { to { stroke-dashoffset: -44; } }
@media (prefers-reduced-motion: reduce) { .schematic .flow path { animation: none; stroke-dasharray: none; } }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.legend-row i { display: inline-block; width: 22px; height: 0; border-top: 4px solid; vertical-align: middle; margin-inline-end: 6px; border-radius: 2px; }
.lg-power { border-color: var(--power) !important; }
.lg-water { border-color: var(--water) !important; }
.lg-ctrl { border-top: 2px dashed #7d8796 !important; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; border-bottom-color: var(--line-2); }
html[lang="ar"] .data-table thead th { letter-spacing: 0; font-size: 12.5px; }
.data-table td.num, .data-table th.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table tr.sub td { color: var(--ink-2); }
.data-table tr.total td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; font-size: 15px; }
.data-table tr.subtotal td { font-weight: 700; border-top: 1px solid var(--line-2); }
.data-table tr.chosen td { background: #f1f8f7; font-weight: 600; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); border-radius: 99px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: 1px; }
.cost-bars { margin-top: 16px; }
.notes { margin: 14px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 13px; display: grid; gap: 6px; }
.sub-h { font-size: 14px; margin: 18px 0 6px; color: var(--ink-2); }

.hbars { display: grid; gap: 8px; }
.hb-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr 100px; gap: 10px; align-items: center; font-size: 13px; }
.hb-label { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 14px; background: #f0f3f7; border-radius: 4px; overflow: hidden; }
.hb-bar { display: block; height: 100%; border-start-end-radius: 4px; border-end-end-radius: 4px; }
.hb-value { font-variant-numeric: tabular-nums; min-width: 52px; text-align: end; }

.lcc-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #f7f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stat span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
html[lang="ar"] .stat b { letter-spacing: 0; }
.stat small { font-size: 12px; color: var(--muted); }
.stack-bar { display: flex; height: 16px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; margin: 6px 0 8px; }
.stack-bar i { display: block; height: 100%; }
.stack-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.stack-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-inline-end: 6px; vertical-align: -1px; }
.repl { margin-top: 14px; }
.repl h4 { font-size: 13px; margin: 0 0 6px; color: var(--ink-2); }

.diesel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.big-stat { border-radius: 14px; padding: 18px; background: #f7f9fb; border: 1px solid var(--line); min-width: 0; }
.big-stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.big-stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0; }
html[lang="ar"] .big-stat b { letter-spacing: 0; font-size: 27px; }
.big-stat small { color: var(--ink-2); font-size: 13px; }
.diesel-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.vs { display: grid; gap: 10px; }
.vs-row { display: grid; grid-template-columns: 150px 1fr 120px; align-items: center; gap: 10px; font-size: 13.5px; }
.vs-row .track { height: 18px; background: #f0f3f7; border-radius: 4px; overflow: hidden; }
.vs-row .track i { display: block; height: 100%; border-start-end-radius: 4px; border-end-end-radius: 4px; }
.vs-row b { text-align: end; font-variant-numeric: tabular-nums; }

.compare-head { font-size: 16px; margin-bottom: 14px; }
.compare-head b { color: var(--brand-600); }
.compare-table td.save { font-weight: 700; color: var(--good-text); }
.compare-table td.loss { font-weight: 700; color: #8a1f1f; }
.compare-table th.hs, .compare-table td.hs { background: #f1f8f7; }

.view-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.view-controls select { height: 36px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: #fff; }
.chart-caption { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 14px; }
.chart-host { position: relative; margin-top: 6px; }
.chart-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.lg-item { display: inline-flex; align-items: center; gap: 6px; }
.lg-box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-line { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.chart-table-btn { border: 1px solid var(--line-2); background: #fff; border-radius: 8px; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; color: var(--ink-2); flex: none; }
.chart svg text { font-family: var(--font); }
.chart svg text.tick { font-size: 11px; fill: #7d8796; font-variant-numeric: tabular-nums; }
.chart svg .hit { cursor: crosshair; outline: none; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; min-width: 150px; }
.tip-title { font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.tip-row { display: grid; grid-template-columns: 14px auto 1fr; align-items: center; gap: 6px; }
.tip-row strong { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.tip-row span { color: var(--muted); }
.tip-key { width: 12px; height: 3px; border-radius: 2px; display: block; }
.chart-table { max-height: 340px; overflow: auto; }

.advisor-out { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.advisor-out .apply { margin-top: 12px; }
.disclaimer { font-size: 12.5px; color: var(--muted); }
.no-print-break { break-inside: avoid; }
.report-intro p { color: var(--ink-2); margin-top: 6px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.credits-card { box-shadow: none; background: #f7f9fb; }
.credits-card p { font-size: 13px; color: var(--ink-2); }
.credits-card p + p { margin-top: 4px; }

/* method & faq */
.how { background: #fff; }
.schematic-figure { margin: 0; padding: 20px; }
.schematic-figure figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.schematic-figure figcaption .legend-row { margin: 0 0 10px; }
.method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.method { box-shadow: none; }
.method-no { font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }
.method h3 { font-size: 17px; margin: 6px 0 8px; }
.method p { font-size: 14px; color: var(--ink-2); }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--brand); font-weight: 800; }
.qa[open] summary::after { content: '−'; }
.qa p { padding: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.check input[aria-invalid="true"] { outline: 2px solid var(--crit); }
.req { color: var(--crit); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-side h3 { font-size: 16px; margin-bottom: 10px; }
.next-steps { margin: 0; padding-inline-start: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.channels { display: flex; flex-direction: column; gap: 8px; }
.channel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.channel:hover { border-color: var(--brand); }
.channel bdi { margin-inline-start: auto; color: var(--ink-2); font-weight: 500; }
.ch-ico { color: var(--brand); }
.mini-dl { margin-bottom: 12px; }

/* chat */
.chat { position: fixed; z-index: 40; bottom: 16px; inset-inline-end: 16px; width: min(440px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; }
.chat-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding-block: 6px; padding-inline: 16px 6px; box-shadow: 0 10px 30px rgba(14, 27, 44, .18); }
.chat-bar:focus-within { border-color: var(--brand); }
.chat-bar input { flex: 1; border: 0; outline: none; height: 36px; background: transparent; min-width: 0; font-size: 14.5px; }
.chat-bar-ico { color: var(--brand); font-size: 16px; }
.chat-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgba(14, 27, 44, .2); display: flex; flex-direction: column; max-height: min(70vh, 580px); overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #f4fbfa, #eef5fd); }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { color: var(--muted); font-size: 12px; }
.chat-head-actions { display: flex; gap: 2px; }
.chat-icon-btn { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-size: 15px; }
.chat-icon-btn:hover { background: rgba(14, 27, 44, .06); }
.chat-thread { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-height: 110px; }
.chat-empty p { color: var(--ink-2); font-size: 13.5px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg.bot { justify-content: flex-start; }
.bubble { max-width: 90%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.chat-msg.user .bubble { background: var(--brand); color: #fff; border-end-end-radius: 4px; }
.chat-msg.bot .bubble { background: #f2f5f8; color: var(--ink); border-end-start-radius: 4px; }
.bubble p + p, .bubble p + ul, .bubble ul + p { margin-top: 6px; }
.bubble ul { margin: 4px 0 0; padding-inline-start: 18px; }
.chat-msg.note .bubble { background: #fff8e6; color: #6d4a00; border: 1px solid #f6dd9b; font-size: 13px; max-width: 100%; }
.chat-msg.user.failed .bubble { opacity: .55; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat-suggest .chip { font-size: 12.5px; padding: 6px 10px; text-align: start; }
.chat-note { font-size: 11.5px; color: var(--muted); padding: 8px 14px 12px; border-top: 1px solid var(--line); }

/* quotation form */
.contact-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field-err { color: #a12a2a; font-size: 12.5px; font-weight: 600; margin: 0; }
.check + .field-err { margin-top: -6px; }
.counter { text-align: end; margin-top: -2px; }
.attach-box { display: flex; flex-direction: column; gap: 4px; background: #f6f9fb; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.attach-box .hint:empty { display: none; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.contact-form { position: relative; }
.turnstile { display: flex; flex-direction: column; gap: 6px; }
.turnstile .hint:empty { display: none; }
.btn .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-busy .spinner { display: inline-block; }
.btn-quote { background: #fff4dc; border-color: #f2cf7d; color: #6d4a00; }
.btn-quote:hover { background: #ffeac0; border-color: #e0b04a; color: #4d3300; }
.contact-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 28px; }
.contact-done:focus { outline: none; }
.done-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #ecf8ec; color: var(--good-text); font-size: 28px; font-weight: 800; border: 2px solid #b9e2b9; }
.done-title { font-size: 24px; font-weight: 800; }
.contact-done p { color: var(--ink-2); max-width: 560px; }
.done-ref { font-size: 16px; }
.done-ref b { color: var(--ink); letter-spacing: .04em; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* report assistant: not set up on this website */
.chat.chat-off .chat-bar { background: #f2f5f8; box-shadow: 0 6px 16px rgba(14, 27, 44, .10); }
.chat.chat-off .chat-bar input { color: var(--muted); cursor: not-allowed; }
.chat.chat-off .chat-bar input::placeholder { color: var(--muted); }
.chat.chat-off .chat-bar-ico { color: var(--muted); }
.chat.chat-off #chat-send { display: none; }
.chat-cut { font-size: 12px; color: var(--muted); margin-top: 6px; }
.chat-retry { margin-inline-start: 6px; }
.chat-thread[aria-busy="true"] { cursor: progress; }

/* footer */
.site-footer { background: var(--navy); color: #a9bccd; padding: 36px 0 24px; font-size: 13.5px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.site-footer b { color: #fff; font-size: 16px; }
.site-footer a { color: #8fd3ff; }
.site-footer p + p { margin-top: 8px; }
.foot-dev { color: #d3e0ea; }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 16px; font-size: 13px; color: #8aa0b4; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
body.has-chat .toast { bottom: 84px; }

/* responsive */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid, .home-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .equip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
}
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: var(--header-h); inset-inline: -16px; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 27, 44, .08); }
  .nav a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  body.menu-open .nav { display: flex; }
  .menu-btn { display: inline-flex; }
  .results-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
  .res-nav { position: sticky; top: var(--header-h); z-index: 20; flex-direction: row; overflow-x: auto; border-radius: 0; margin: 0 -16px; padding: 8px 16px; border-width: 0 0 1px; scrollbar-width: none; }
  .res-nav::-webkit-scrollbar { display: none; }
  .res-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; }
  .stale { top: calc(var(--header-h) + 52px); }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 28px; }
  .panel-grid, .review-grid, .contact-grid { grid-template-columns: 1fr; }
  .diesel-grid, .lcc-top { grid-template-columns: 1fr; }
  .diesel-row, .advisor-out, .research, .footer-inner { grid-template-columns: 1fr; }
  .stepper a { justify-content: center; }
  .st-label { display: none; }
  .stepper li.current .st-label { display: inline; }
  .stepper { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .stepper li.current { flex: 1; }
}
@media (max-width: 760px) {
  .schematic-host { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schematic-host svg { min-width: 760px; }
}
@media (max-width: 560px) {
  .section { padding: 40px 0; }
  .card { padding: 18px; }
  .kpis, .equip, .equip.equip-2, .method-grid, .home-steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .vs-row { grid-template-columns: 100px 1fr 100px; }
  .header-cta { display: none; }
  .brand small { display: none; }
  .run-actions { width: 100%; }
  .run-actions .btn { flex: 1; }
  .res-actions .btn { flex: 1 1 45%; }
  .cost-table th:nth-child(3), .cost-table td:nth-child(3), .cost-table th:nth-child(5), .cost-table td:nth-child(5) { display: none; }
  .assumptions > summary { flex-wrap: wrap; }
  .compare-table { font-size: 12.5px; }
  .hb-row { grid-template-columns: minmax(90px, 32%) 1fr 84px; }
  .chat { inset-inline: 8px; bottom: 8px; width: auto; }
  .chat-panel { max-height: 64vh; }
  .stepper { gap: 4px; }
  .stepper a { padding: 8px; }
}

/* print: the results become the report */
@media print {
  @page { size: A4; margin: 12mm 11mm; }
  html { scroll-padding-top: 0; }
  body { background: #fff; font-size: 10.5px; line-height: 1.45; }
  html[lang="ar"] body { line-height: 1.6; }
  .site-header, .site-footer, .toast, .chat, .no-print, .skip, .res-nav, .res-pager, .stale, .chart-table-btn, .view-controls, .eq-link, .report-intro, #advisor-body > button, #advisor-body > .hint { display: none !important; }
  body.on-results [data-page]:not([data-page="results"]) { display: none !important; }
  body.on-results .res-panel[hidden] { display: block !important; }
  .results-layout { display: block; padding: 0; }
  .res-main > * + *, .res-panel > * + * { margin-top: 10px; }
  .report-mode .res-panel + .res-panel { margin-top: 10px; padding-top: 0; border-top: 0; }
  .res-panel[data-tab="report"] { break-before: page; }
  .panel-h { font-size: 14px; border-bottom: 1.5px solid var(--ink); padding-bottom: 3px; break-after: avoid; }
  .wrap { width: 100%; }
  .print-head { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 4px; }
  .print-head b { display: block; font-size: 14px; }
  .print-head span { color: var(--muted); }
  .res-head .h2 { font-size: 20px; }
  .res-sub { font-size: 10px; }
  .badge { font-size: 9.5px; padding: 3px 8px; }
  .card { box-shadow: none; padding: 12px; break-inside: avoid; border-color: #d9dfe6; }
  .card-head { margin-bottom: 8px; break-after: avoid; }
  .card-head h3 { font-size: 13px; }
  .card-head p { font-size: 9.5px; }
  .kpis { grid-template-columns: repeat(4, 1fr) !important; gap: 8px; }
  .kpi { padding: 10px; box-shadow: none; break-inside: avoid; }
  .kpi.hero-kpi { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kpi-value { font-size: 18px !important; }
  .kpi-value small { font-size: 10px; }
  .kpi-label, .kpi-sub { font-size: 9px; }
  .equip, .equip.equip-2 { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .equip.equip-2 .eq { box-shadow: none; padding: 8px; }
  .eq { padding: 8px; break-inside: avoid; }
  .eq-top { font-size: 9px; }
  .eq-main { font-size: 15px; }
  .eq-line { font-size: 9.5px; }
  .stats-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 6px; }
  .stats-grid .stat b { font-size: 13px; }
  .grid-2 { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .diesel-grid, .lcc-top { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .diesel-row { grid-template-columns: 1fr 1fr !important; gap: 12px; }
  .vs-row { grid-template-columns: 110px 1fr 80px; font-size: 10px; }
  .schematic-host { overflow: visible; }
  .schematic-host svg { min-width: 0; max-height: 82mm; width: auto; max-width: 100%; display: block; margin: 0 auto; }
  #advisor-card:not(:has(.advisor-out)) { display: none; }
  .advisor-out { grid-template-columns: 1.3fr 1fr !important; }
  .big-stat, .stat { padding: 8px 10px; break-inside: avoid; }
  .big-stat b { font-size: 18px !important; }
  .stat b { font-size: 15px !important; }
  .data-table { font-size: 9.5px; }
  .data-table th, .data-table td { padding: 4px 6px; }
  .data-table tr { break-inside: avoid; }
  .hb-row { font-size: 9.5px; }
  .schematic-host, .chart-host, .stack-bar { break-inside: avoid; }
  .schematic .flow path { animation: none; }
  .lane, .stack-bar i, .hb-bar, .vs-row .track i, .meter i, .eq-dot, .lg-box, .lg-line, .tag, tr.chosen td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .chart-table { display: none !important; }
  .chart-fig { display: block !important; }
  .disclaimer { font-size: 9px; }
  .credits-card { break-inside: avoid; }
}
