/* ============================================
   وَصلة — WASLA EV
   Design system: clean, calm, trustworthy.
   ============================================ */

:root {
  --teal: #0F766E;
  --teal-dark: #0B5C56;
  --teal-soft: #E6F4F1;
  --green: #22C55E;
  --ink: #0F172A;
  --ink-soft: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px -18px rgba(15, 23, 42, .28);
  --shadow-lg: 0 34px 70px -40px rgba(15, 23, 42, .45);
  --max: 1180px;
  --font-ar: "Tajawal", "Noto Kufi Arabic", "Segoe UI", system-ui, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.2em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.num, .en { font-family: var(--font-en); font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-ar);
  font-size: .98rem;
  font-weight: 700;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #14867C);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(15, 118, 110, .75);
}
.btn-primary:hover { box-shadow: 0 16px 30px -14px rgba(15, 118, 110, .8); transform: translateY(-1px); }
.btn-ghost {
  background: #fff;
  color: var(--teal-dark);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: #BFE3DC; background: var(--teal-soft); }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-light {
  background: #fff;
  color: var(--teal-dark);
}
.btn-outline-light {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand-sub {
  font-family: var(--font-en);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--teal);
  font-weight: 700;
  margin-top: 3px;
}
.nav { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.nav a {
  padding: .5rem .8rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(880px 460px at 88% -12%, rgba(34, 197, 94, .18), transparent 62%),
    radial-gradient(700px 420px at 4% -6%, rgba(15, 118, 110, .16), transparent 64%),
    linear-gradient(180deg, #FFFFFF 0%, #F2F8F6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to left, rgba(15,118,110,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,118,110,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(600px 380px at 60% 20%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 3rem;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.6rem);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.9);
  border: 1px solid #CFE7E2;
  color: var(--teal-dark);
  border-radius: 999px;
  padding: .38rem .85rem;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.hero h1 { margin-top: 1rem; }
.hl {
  background: linear-gradient(180deg, transparent 62%, rgba(34,197,94,.28) 62%);
  padding-inline: .08em;
}
.lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-top: .4rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.5rem 0 1.6rem; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .9rem;
  color: var(--ink-soft);
}
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal-soft);
  border: 1.5px solid #A9D8CE;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 3px #fff;
}

/* Hero art */
.hero-art { position: relative; }
.art-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.art-card-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #E2E8F0; }
.dot:nth-child(1) { background: #FCA5A5; }
.dot:nth-child(2) { background: #FCD34D; }
.dot:nth-child(3) { background: #86EFAC; }
.art-title { margin-inline-start: auto; font-size: .82rem; font-weight: 700; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.check-list li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px dashed #EEF2F6;
}
.check-list li:last-child { border-bottom: 0; }
.tick {
  width: 24px; height: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
}
.art-meter {
  height: 8px;
  background: #EDF2F7;
  border-radius: 999px;
  overflow: hidden;
}
.art-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}
.art-foot { margin: .7rem 0 0; font-size: .8rem; color: var(--muted); }
.art-chip {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem .9rem;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: .82rem;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}
.chip-1 { top: -14px; inset-inline-start: -10px; }
.chip-2 { bottom: -16px; inset-inline-end: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.8rem, 5vw, 4.4rem); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head .eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--teal);
  text-transform: uppercase;
  font-family: var(--font-en);
}
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head-row .section-head { margin-bottom: 0; }
.link-arrow {
  font-weight: 700;
  color: var(--teal-dark);
  font-size: .93rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.link-arrow:hover { color: var(--teal); }

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.cat-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.cat-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,.14), transparent 70%);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #CDE7E1;
}
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.cat-card h3 { margin-bottom: .25rem; }
.cat-card p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.cat-card .cat-link { font-weight: 700; font-size: .9rem; color: var(--teal-dark); }

/* ---------- Product cards ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .9rem;
}
.badge {
  font-size: .72rem;
  font-weight: 800;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.badge-hot { background: #FFF1E6; color: #B45309; }
.badge-value { background: #E8F7EE; color: #15803D; }
.product-brand {
  font-family: var(--font-en);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.product-icon {
  width: 100%;
  height: 108px;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(120px 70px at 50% 120%, rgba(34,197,94,.16), transparent 70%),
    #F6FAF9;
  border: 1px solid #EAF3F1;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--teal);
}
.product h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.product-for { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.specs { list-style: none; padding: 0; margin: 0 0 .9rem; }
.specs li {
  position: relative;
  padding-inline-start: 1.15rem;
  font-size: .87rem;
  color: var(--ink-soft);
  margin-bottom: .35rem;
}
.specs li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.note {
  font-size: .78rem;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 10px;
  padding: .5rem .65rem;
  margin: auto 0 .9rem;
  line-height: 1.6;
}
.product-cta { display: grid; gap: .5rem; }
.product-cta .btn { font-size: .88rem; padding: .68rem 1rem; }
.disclosure-mini {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  margin: .7rem 0 0;
}
.buy-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FBFEFD;
  padding: 1rem 1.1rem;
  margin: 1.6rem 0;
}
.buy-box .buy-title {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.buy-box p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: .85rem;
}
.buy-box .product-cta { grid-template-columns: 1fr 1fr; }
.buy-box .disclosure-mini { margin-top: .6rem; }
@media (max-width: 560px) {
  .buy-box .product-cta { grid-template-columns: 1fr; }
}

/* ---------- Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.guide-cover {
  height: 118px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(180px 90px at 30% 10%, rgba(255,255,255,.5), transparent 70%),
    linear-gradient(135deg, #0F766E, #1C9C86);
  color: #fff;
}
.guide-cover.alt { background: linear-gradient(135deg, #0B5C56, #22C55E); }
.guide-cover.alt2 { background: linear-gradient(135deg, #115E59, #0EA5A0); }
.guide-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.guide-tag {
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.guide-card h3 { font-size: 1.03rem; margin-bottom: .4rem; }
.guide-card p { font-size: .87rem; color: var(--muted); margin-bottom: .9rem; }
.guide-meta {
  margin-top: auto;
  font-size: .78rem;
  color: var(--muted);
  display: flex;
  gap: .8rem;
  align-items: center;
}
.guide-meta .read { color: var(--teal-dark); font-weight: 700; }

/* ---------- Trust ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
}
.trust-item .t-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
}
.trust-item h4 { font-size: .98rem; margin-bottom: .25rem; }
.trust-item p { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding-block: clamp(2rem, 4vw, 3rem); }
.cta-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  background:
    radial-gradient(500px 260px at 90% -20%, rgba(34,197,94,.35), transparent 65%),
    linear-gradient(135deg, #0B3F3B, #0F766E 60%, #14867C);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.6rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.cta-inner h2 { color: #fff; margin-bottom: .4rem; }
.cta-inner p { color: rgba(255,255,255,.82); margin: 0; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0B1220;
  color: #CBD5E1;
  padding-block: 3rem 1.5rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 12px; }
.footer-brand strong { color: #fff; font-size: 1.15rem; }
.site-footer p { color: #94A3B8; font-size: .88rem; }
.site-footer h4 { color: #fff; font-size: .92rem; margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-links a { color: #94A3B8; font-size: .87rem; transition: color .16s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  font-size: .8rem;
  color: #64748B;
}

/* ---------- Inner page header ---------- */
.page-header {
  background:
    radial-gradient(700px 320px at 90% -30%, rgba(34,197,94,.16), transparent 62%),
    linear-gradient(180deg, #fff, #F2F8F6);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.8rem, 4vw, 3rem);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: .8rem;
}
.breadcrumbs a { color: var(--teal-dark); font-weight: 600; }
.breadcrumbs span::before { content: "/"; margin-inline-end: .4rem; color: #CBD5E1; }
.page-header h1 { margin-bottom: .5rem; }
.page-header p { color: var(--ink-soft); max-width: 46rem; margin-bottom: 0; }

/* ---------- Search ---------- */
.search-wrap {
  position: relative;
  max-width: 420px;
  margin-top: 1.3rem;
}
.search-wrap svg {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.search-input {
  width: 100%;
  padding: .85rem 3.2rem .85rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-ar);
  font-size: .95rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-input:focus {
  outline: none;
  border-color: #9BD3C8;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- Article ---------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--aside-w, 300px);
  gap: 2.6rem;
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.2rem);
}
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm); min-width: 0; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  font-size: .8rem;
  color: var(--muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.article h2 { margin-top: 1.9rem; font-size: 1.45rem; }
.article h3 { margin-top: 1.4rem; font-size: 1.1rem; }
.article > ul > li, .article > ol > li { margin-bottom: .45rem; }
.article .lead { font-size: 1.06rem; }
.callout {
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
  font-size: .93rem;
  border: 1px solid;
}
.callout strong { display: block; margin-bottom: .2rem; }
.callout-warn { background: #FFFBEB; border-color: #FDE68A; color: #78350F; }
.callout-info { background: var(--teal-soft); border-color: #BFE3DC; color: #0B4F49; }
.callout-disclosure { background: #F8FAFC; border-color: var(--line); color: var(--ink-soft); }
.callout p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; max-width: 100%; margin: 1.2rem 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 520px; background: #fff; }
th, td { padding: .75rem .9rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #F6FAF9; font-weight: 800; font-size: .84rem; color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td strong { font-weight: 700; }

.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-inline-start: 1.9rem;
  margin-bottom: .6rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: .1em;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
}

.aside { position: sticky; top: 96px; display: grid; gap: 1rem; }
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}
.aside-card h4 { font-size: .92rem; margin-bottom: .7rem; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.toc a { font-size: .87rem; color: var(--ink-soft); display: block; padding-inline-start: .8rem; border-inline-start: 2px solid var(--line); }
.toc a:hover { color: var(--teal-dark); border-color: var(--teal); }

/* ---------- Installer listing slots ---------- */
.slot {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  border: 1.5px dashed #BFD8D2;
  background: #FBFEFD;
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.slot:hover { border-color: #7FC4B7; background: #F5FCFA; transform: translateY(-2px); }
.slot .slot-flag {
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .04em;
  background: var(--teal-soft);
  border-radius: 999px;
  padding: .22rem .6rem;
  align-self: flex-start;
}
.slot h3 { font-size: 1.02rem; margin: .2rem 0 .1rem; }
.slot p { font-size: .87rem; color: var(--muted); margin-bottom: .4rem; }
.slot-fields { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .84rem; color: var(--ink-soft); display: grid; gap: .25rem; }
.slot-fields li::before { content: "·"; color: var(--teal); margin-inline-end: .4rem; font-weight: 800; }
.slot .btn { margin-top: auto; }
.slot-note { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; }
.products-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .products-2 { grid-template-columns: 1fr; } }
.slot-note a { color: var(--teal-dark); font-weight: 700; }

/* ---------- FAQ accordion ---------- */
.faq-h2 {
  font-size: 1.15rem;
  margin: 2.2rem 0 .9rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.faq-h2:first-of-type { margin-top: 0; }
.faq-group { display: grid; gap: .7rem; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq-item:hover { border-color: #CDE7E1; }
.faq-item[open] { border-color: #BFE3DC; box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: .98rem;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--teal);
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}
.faq-item[open] summary { color: var(--teal-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 1.2rem 1.15rem;
  color: var(--ink-soft);
  font-size: .93rem;
  border-top: 1px solid #F1F5F9;
  padding-top: .9rem;
  margin: 0 .1rem;
}
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Misc ---------- */
.stack-lg > * + * { margin-top: 2.6rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  font-size: .78rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .75rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* reveal on scroll (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .btn, .cat-card, .product, .guide-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art { max-width: 460px; }
  .cat-grid, .products, .guides { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-wrap { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; grid-row: 2; min-width: 0; }
  .cta-inner { grid-template-columns: 1fr; }
}

/* Nav needs the hamburger earlier than the layout does: seven items wrap badly
   between ~820px and ~1100px, so the overlay menu takes over from 1200px down. */
@media (max-width: 1200px) {
  .header-inner { justify-content: space-between; }
  .nav {
    position: fixed;
    inset-inline: 12px;
    top: 82px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .6rem;
    box-shadow: var(--shadow-lg);
    display: none;
    gap: .15rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem .9rem; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-actions .btn { display: none; }
  .brand img { width: 40px; height: 40px; }
  .products, .guides, .cat-grid, .grid-2, .trust { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .chip-1 { inset-inline-start: 0; }
  .article { padding: 1.2rem 1.1rem; }
  .footer-bottom { justify-content: flex-start; }
}

/* anchor targets clear the sticky header */
[id] { scroll-margin-top: 88px; }

/* ---------- Latest updates ---------- */
.updates {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: .6rem;
}
.update-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.update-item a:hover {
  border-color: #7FC4B7;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15,118,110,.08);
}
.update-main { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.update-tag {
  font-size: .72rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: .02em;
}
.update-title {
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.5;
  color: var(--ink);
}
.update-date {
  flex: 0 0 auto;
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 560px) {
  .update-item a { flex-direction: column; align-items: flex-start; gap: .3rem; }
}

/* ---------- Cost estimator ---------- */
.calc {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  margin: 1.5rem 0;
}
.calc-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-bottom: 1.3rem;
}
.calc-controls label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.calc-controls select,
.calc-controls input[type="range"] {
  width: 100%;
  font-family: inherit;
  font-size: .92rem;
}
.calc-controls select {
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.calc-controls select:focus-visible,
.calc-controls input[type="range"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.calc-controls input[type="range"] { accent-color: var(--teal); height: 26px; }
.calc-controls output { font-weight: 800; color: var(--teal-dark); }
.calc-result { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.calc-row {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) 7.5rem;
  align-items: center;
  gap: .8rem;
  padding: .4rem 0;
  font-size: .86rem;
}
.calc-name { font-weight: 700; color: var(--ink); }
.calc-bar {
  height: 9px;
  background: #F1F5F9;
  border-radius: 999px;
  overflow: hidden;
}
.calc-bar i { display: block; height: 100%; border-radius: 999px; transition: width .25s ease; }
.calc-bar i.high { background: #DC2626; }
.calc-bar i.mid { background: #F59E0B; }
.calc-bar i.low { background: #0F766E; }
.calc-pct { color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-note {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  background: var(--teal-soft);
  border-radius: 12px;
  color: #0B4F49;
  font-size: .88rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .calc-controls { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr auto; row-gap: .25rem; }
  .calc-bar { grid-column: 1 / -1; }
}

/* ---------- Portable vs wallbox stats ---------- */
.pv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-bottom: 1rem;
}
.pv-stat {
  background: #F8FBFA;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pv-stat-label { font-size: .78rem; font-weight: 700; color: var(--muted); }
.pv-stat strong { font-size: 1.15rem; color: var(--ink); line-height: 1.3; }
.pv-stat-sub { font-size: .76rem; color: var(--muted); }
@media (max-width: 640px) {
  .pv-stats { grid-template-columns: 1fr; }
}

/* number inputs inside the estimators */
.calc-controls input[type="number"] {
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-family: inherit;
}
.calc-controls input[type="number"]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
