/* ==========================================================================
   Components : buttons, header, menus, hero, strips, cards, tables, forms,
   footer, and interactive widgets. All degrade without JavaScript.
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--pitch);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.btn:hover { color: #fff; background: var(--pitch-deep); border-color: var(--pitch-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn--on-dark { --btn-fg: var(--ink); --btn-bg: #fff; border-color: #fff; }
.btn--on-dark:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn--ghost-on-dark { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-on-dark:hover { background: rgba(255,255,255,.1); border-color:#fff; color:#fff; }
.btn--wa { --btn-bg: #1FA855; border-color:#1FA855; }
.btn--wa:hover { --btn-bg:#178a45; background:#178a45; border-color:#178a45; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--step--1); }
.btn--block { width: 100%; }
.btn .ico { width: 20px; height: 20px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--pitch-deep);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform var(--dur-1) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
  background: transparent;
}
.site-header__progress {
  position: absolute;
  top: 0; left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: var(--pitch-bright);
  transition: width 80ms linear;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-inline: var(--gutter);
}
.site-header.is-solid {
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 4px 20px rgba(20,22,26,.05);
}
.site-header.is-hidden { transform: translateY(-100%); }

/* logo colour on transparent (over dark hero) vs solid */
.brand-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo img { height: 42px; width: auto; }
.brand-logo__text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; line-height: 1.05; }
/* White header text only over a full-bleed dark hero (homepage). Inner pages have
   a solid header from the top so nav is visible over the light breadcrumb area. */
.page--has-hero .site-header:not(.is-solid) .brand-logo__text,
.page--has-hero .site-header:not(.is-solid) .primary-nav > ul > li > a,
.page--has-hero .site-header:not(.is-solid) .primary-nav > ul > li > button,
.page--has-hero .site-header:not(.is-solid) .header-tools a:not(.btn) { color: #fff; }
.page--has-hero .site-header:not(.is-solid) .header-tools .ico { color:#fff; }
/* Non-hero pages: header always looks solid */
body:not(.page--has-hero) .site-header { background: var(--paper); border-bottom: 1px solid var(--line-soft); }

.header-spacer { height: var(--header-h); }
.page--has-hero .header-spacer { display: none; }

/* Primary nav */
.primary-nav { margin-inline-start: auto; padding-inline-start: var(--space-4); }
.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 0.9vw, 1.05rem);
  margin: 0; padding: 0;
}
.primary-nav > ul > li > a,
.primary-nav > ul > li > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
  white-space: nowrap;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > button:hover { color: var(--pitch); }
.primary-nav .caret { width: 14px; height: 14px; transition: transform var(--dur-1) var(--ease); }
.primary-nav [aria-expanded="true"] .caret { transform: rotate(180deg); }

.header-tools { display: flex; align-items: center; gap: var(--space-3); }
.header-tools a:not(.btn) { color: var(--ink); text-decoration: none; display: inline-flex; align-items:center; gap:6px; font-weight:500; }
.header-tools .ico { width: 22px; height: 22px; color: var(--ink); }
.lang-switch { font-size: var(--step--1); font-weight:600; letter-spacing:.04em; }
.lang-switch [aria-current="true"] { color: var(--pitch); }

.nav-toggle { display: none; }

/* ---- Mega menu ---- */
.mega {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: var(--shadow-2);
  padding: var(--space-5) 0;
}
.mega[hidden] { display: none; }
.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.3fr;
  gap: var(--space-5);
}
.mega__col h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: var(--space-3); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li + li { margin-top: 2px; }
.mega__col a { display: block; padding: 8px 10px; margin-inline: -10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.mega__col a:hover { background: var(--paper-2); color: var(--pitch-deep); }
.mega__feature { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 200px; background: var(--paper-2); }
.mega__feature img { width: 100%; height: 100%; object-fit: cover; position:absolute; inset:0; }
.mega__feature figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: var(--space-3);
  background: linear-gradient(transparent, rgba(20,22,26,.85));
  color: #fff; font-family: var(--font-display); font-weight:600;
}

/* ---- Mobile menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--paper);
  padding: var(--space-4) var(--gutter) 120px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-2) var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__head { display:flex; align-items:center; justify-content: space-between; min-height: var(--header-h); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > nav > ul > li { border-bottom: 1px solid var(--line-soft); }
.mobile-menu a, .mobile-menu summary {
  display: block; padding: 14px 4px; font-family: var(--font-display);
  font-weight: 500; font-size: var(--step-1); color: var(--ink); text-decoration: none;
}
.mobile-menu details summary { cursor: pointer; list-style: none; display:flex; justify-content: space-between; align-items:center; }
.mobile-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu summary svg { width: 22px; height: 22px; flex: none; transition: transform var(--dur-1) var(--ease); }
.mobile-menu details[open] summary svg { transform: rotate(180deg); }
.mobile-menu details ul { padding-left: var(--space-3); padding-bottom: var(--space-2); }
.mobile-menu details ul a { font-family: var(--font-body); font-size: var(--step-0); padding: 10px 4px; color: var(--ink-soft); }
.menu-close { background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-close svg { width: 28px; height: 28px; }

/* ---- Mobile bottom action bar ---- */
.action-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: var(--z-header);
  display: none;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-top: 1px solid var(--line-soft);
  box-shadow: 0 -4px 20px rgba(20,22,26,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.action-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 56px; padding: 6px; text-decoration: none;
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.action-bar a:hover { color: var(--pitch-deep); }
.action-bar .ico, .action-bar a svg { width: 22px; height: 22px; flex: none; }
.action-bar a.is-primary { color: #fff; background: var(--pitch); }

/* ---- WhatsApp float (desktop) ---- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: var(--z-header);
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #1FA855; color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-1) var(--ease);
}
.wa-float:hover { transform: scale(1.06); color:#fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,13,16,.88) 0%, rgba(11,13,16,.62) 42%, rgba(11,13,16,.22) 78%, rgba(11,13,16,.15) 100%),
    linear-gradient(180deg, rgba(11,13,16,.45) 0%, rgba(11,13,16,.12) 34%, rgba(11,13,16,.55) 82%, rgba(11,13,16,.82) 100%);
}
/* subtle brand accent line down the left edge of the hero */
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; z-index: 2;
  background: linear-gradient(180deg, var(--pitch-bright), var(--pitch-deep));
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--space-7) var(--space-6); }
.hero .eyebrow { color: var(--pitch-tint); }
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: var(--space-4); }
.hero__sub { font-size: var(--step-1); color: rgba(255,255,255,.9); max-width: 56ch; margin-bottom: var(--space-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__loc {
  position: absolute; z-index: 2; left: var(--gutter); bottom: var(--space-4);
  font-size: var(--step--1); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__loc::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: var(--pitch-bright); }
.hero__scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: var(--space-4);
  color: rgba(255,255,255,.7); display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.hero__scroll svg { width: 20px; height: 20px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }
/* court-line easter egg layer */
.hero__courtlines { position:absolute; inset:0; z-index:1; opacity:.14; pointer-events:none;
  transform: translate(var(--court-x,0), var(--court-y,0)); transition: transform 300ms var(--ease); }
@media (hover: none) { .hero__courtlines { display:none; } }

/* Inner-page hero (compact) */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  padding-block: var(--space-6);
}
.page-hero__media { position:absolute; inset:0; z-index:0; }
.page-hero__media img { width:100%; height:100%; object-fit: cover; }
.page-hero::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(20,22,26,.55), rgba(20,22,26,.75)); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color:#fff; max-width: 24ch; }
.page-hero .eyebrow { color:var(--pitch-tint); }
.page-hero .lede { color: rgba(255,255,255,.85); }

/* ---- Trust strip ---- */
.trust-strip { border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.trust-strip ul {
  list-style: none; margin: 0; padding: var(--space-4) 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-3) clamp(1.5rem, 3.5vw, 3rem);
}
.trust-strip li {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-0);
  color: var(--ink); white-space: nowrap;
}
.trust-strip li::before {
  content:""; flex: none; width: 16px; height: 2px; background: var(--pitch);
}

/* ---- Proof strip / counters ---- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); text-align: center; }
.proof__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-4); color: var(--pitch-deep); line-height: 1; }
.section--ink .proof__num { color: var(--pitch-tint); }
.proof__label { font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: var(--space-2); }
.section--ink .proof__label { color: rgba(255,255,255,.7); }

/* ---- Chips ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: #fff;
  font-size: var(--step--1); font-weight: 600; color: var(--ink-soft);
  text-decoration: none; cursor: pointer;
}
.chip:hover, .chip[aria-pressed="true"], .chip.is-active { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---- Card grid ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); }

/* ---- Two-column responsive block ---- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---- Guide layout (TOC sidebar + article) ---- */
.guide-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-6); align-items: start; }
.guide-layout aside { position: sticky; top: calc(var(--header-h) + var(--space-3)); }
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: var(--space-4); }
  .guide-layout aside { position: static; }
}

/* ---- Generic card ---- */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__media { aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.card__body h3 { margin: 0; font-size: var(--step-1); }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.card__meta .chip { cursor: default; pointer-events: none; }

/* ---- Solutions showcase (editorial asymmetric) ---- */
.showcase { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); }
.showcase__item { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; text-decoration: none; color: #fff; display: flex; }
.showcase__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform var(--dur-3) var(--ease); }
.showcase__item::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(20,22,26,.05), rgba(20,22,26,.8)); }
.showcase__item:hover img { transform: scale(1.05); }
.showcase__cap { position: relative; z-index: 2; margin-top: auto; padding: var(--space-4); }
.showcase__cap h3 { color: #fff; margin: 0 0 4px; }
.showcase__cap p { color: rgba(255,255,255,.85); margin: 0; font-size: var(--step--1); max-width: none; }
.showcase__feature { grid-column: span 3; grid-row: span 2; min-height: 460px; }
.showcase__wide { grid-column: span 3; }
.showcase__item--link { align-items: center; justify-content: center; background: var(--ink); color:#fff; }
.showcase__item--link::after { display:none; }
.showcase__item--link .link-arrow { color: #fff; }

/* ---- Surface explorer ---- */
.explorer { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.explorer__panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5);
  border: 1px solid var(--line-soft); border-radius: var(--radius); background:#fff; padding: var(--space-5);
}
.explorer__spec { list-style: none; margin: 0; padding: 0; }
.explorer__spec li { display: grid; grid-template-columns: 40% 1fr; gap: var(--space-3); padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.explorer__spec dt, .explorer__spec .k { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.explorer noscript ul { columns: 2; }

/* ---- Comparison / spec tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 520px; background: #fff; }
table.data caption { text-align: left; padding: var(--space-3); font-weight: 600; font-family: var(--font-display); }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font-size: var(--step-0); vertical-align: top; }
table.data thead th { background: var(--paper-2); font-family: var(--font-display); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .05em; }
table.data tbody tr:last-child td { border-bottom: 0; }

/* ---- Layer cutaway diagram ---- */
.layer-diagram { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-5); align-items: center; }
.layer-svg { width: 100%; height: auto; }
.layer-svg .layer { cursor: pointer; }
.layer-svg .layer rect { transition: opacity var(--dur-1) var(--ease); }
.layer-svg .layer:hover rect, .layer-svg .layer.is-active rect { opacity: .85; }
.layer-list { list-style: none; margin: 0; padding: 0; counter-reset: layer; }
.layer-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); display:flex; gap: var(--space-3); align-items: baseline; cursor: pointer; }
.layer-list li::before { counter-increment: layer; content: counter(layer); font-family: var(--font-display); font-weight:700; color: var(--pitch); min-width: 1.5em; }
.layer-list li.is-active { color: var(--pitch-deep); }
.layer-list b { font-family: var(--font-display); }

/* ---- Process timeline ---- */
.timeline { position: relative; }
.timeline__track { display: flex; gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-3); scroll-snap-type: x mandatory; }
.timeline__step { scroll-snap-align: start; flex: 0 0 min(280px, 78vw); border-top: 2px solid var(--line-soft); padding-top: var(--space-3); position: relative; }
.timeline__step::before { content:""; position:absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--pitch); }
.timeline__step.is-in::before { box-shadow: 0 0 0 4px rgba(224,31,38,.20); }
.timeline__n { font-family: var(--font-display); font-size: var(--step--1); color: var(--pitch-deep); font-weight:700; letter-spacing:.08em; }
.timeline__step h3 { font-size: var(--step-1); margin: 4px 0; }
.timeline__step p { font-size: var(--step-0); color: var(--ink-soft); margin: 0; }

/* ---- Tabs (industries) ---- */
.tabs__list { display: flex; flex-wrap: wrap; gap: var(--space-2); border-bottom: 1px solid var(--line-soft); margin-bottom: var(--space-5); }
.tabs__tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 12px 6px; margin-bottom: -1px; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: var(--step-0); color: var(--ink-soft);
}
.tabs__tab[aria-selected="true"] { color: var(--pitch-deep); border-bottom-color: var(--pitch); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.tabs__panel[hidden] { display: none; }
.concern-list { list-style: none; margin: 0; padding: 0; }
.concern-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px dashed var(--line-soft); }
.concern-list li::before { content:""; position:absolute; left: 2px; top: 16px; width: 14px; height: 2px; background: var(--pitch); }

/* ---- Solution finder ---- */
.finder { border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); overflow: hidden; }
.finder__bar { height: 4px; background: var(--paper-2); }
.finder__bar span { display:block; height: 100%; background: var(--pitch); width: 33%; transition: width var(--dur-2) var(--ease); }
.finder__body { padding: clamp(1.2rem, 4vw, 2.5rem); }
.finder__step[hidden] { display: none; }
.finder__q { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: var(--space-4); }
.finder__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-2); }
.finder__opt {
  appearance: none; text-align: left; background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; font: inherit; font-weight: 500;
  transition: border-color var(--dur-1), background var(--dur-1), transform var(--dur-1);
}
.finder__opt:hover { border-color: var(--pitch); transform: translateY(-1px); }
.finder__opt.is-selected { border-color: var(--pitch); background: rgba(224,31,38,.06); }
.finder__nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-4); }
.finder__result { padding: clamp(1.2rem, 4vw, 2.5rem); border-top: 1px solid var(--line-soft); background: var(--paper-2); }
.finder__result[hidden] { display: none; }

/* ---- Before / after ---- */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; aspect-ratio: 16/9; background: var(--paper-2); }
.ba img { display: block; pointer-events: none; }
.ba__base { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba__handle::after { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:40px; height:40px; border-radius:50%; background:#fff; box-shadow: var(--shadow-1); }
.ba__lab { position: absolute; top: var(--space-3); padding: 4px 10px; border-radius: 4px; background: rgba(20,22,26,.7); color:#fff; font-size: 11px; letter-spacing:.08em; text-transform: uppercase; }
.ba__lab--b { left: var(--space-3); }
.ba__lab--a { right: var(--space-3); }

/* ---- Day/night crossfade ---- */
.daynight { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--paper-2); }
.daynight__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-3) var(--ease); }
.daynight__night { opacity: 0; }
.daynight.is-night .daynight__night { opacity: 1; }
.daynight.is-night .daynight__day { opacity: 0; }
.daynight__toggle { position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 2; }
.daynight__badge { position: absolute; right: var(--space-3); top: var(--space-3); z-index: 2; padding: 4px 10px; border-radius: 4px; background: rgba(20,22,26,.7); color:#fff; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }

/* ---- FAQ accordion (native details) ---- */
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--space-4) 40px var(--space-4) 0;
  position: relative; font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5141A' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: translateY(-50%); transition: transform var(--dur-1) var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { padding: 0 40px var(--space-4) 0; color: var(--ink-soft); }
.faq__a > *:last-child { margin-bottom: 0; }

/* ---- CTA band ---- */
.cta-band { background: var(--pitch-deep); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; opacity:.6;
}
.cta-band__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-6); }
.cta-band h2 { color: #fff; margin: 0 0 var(--space-2); }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- Forms ---- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-3); }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .req { color: var(--pitch); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--pitch); }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }
.field .err { font-size: var(--step--1); color: #B42318; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-4); }
.form-grid .field--full { grid-column: 1 / -1; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.upload-field { border: 1.5px dashed var(--line-soft); border-radius: var(--radius-sm); padding: var(--space-4); text-align: center; color: var(--ink-soft); }
.upload-field[aria-disabled="true"] { opacity: .7; }

/* Quote wizard */
.wizard__progress { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); }
.wizard__progress li { flex: 1; list-style: none; font-size: var(--step--1); color: var(--ink-soft); border-top: 3px solid var(--line-soft); padding-top: 8px; }
.wizard__progress li.is-done { border-color: var(--pitch); color: var(--pitch-deep); }
.wizard__progress li.is-current { border-color: var(--clay); color: var(--ink); font-weight: 600; }
.wizard__step[hidden] { display: none; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-2); max-width: 340px; }
.toast--ok { background: var(--pitch-deep); }
.toast--err { background: #B42318; }

/* ---- Breadcrumb ---- */
.breadcrumb { padding-block: var(--space-3); font-size: var(--step--1); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; color: var(--line-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--pitch-deep); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---- UAE map ---- */
.uae-map { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-5); align-items: center; }
.uae-map svg { width: 100%; height: auto; }
.uae-map .pin { cursor: pointer; }
.uae-map .pin circle { transition: transform var(--dur-1) var(--ease); transform-origin: center; }
.uae-map .pin:hover circle, .uae-map .pin.is-active circle { transform: scale(1.25); }
.map-panel { border: 1px solid var(--line-soft); border-radius: var(--radius); padding: var(--space-4); background: #fff; }

/* ---- Lightbox (native dialog) ---- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(20,22,26,.86); }
dialog.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--radius); }
dialog.lightbox .lb-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-block: var(--space-6) var(--space-4); }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-5); }
.site-footer h2 { color: #fff; font-size: var(--step--1); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand__logo { height: 52px; width: auto; margin-bottom: var(--space-3); }
.footer-nap { font-style: normal; line-height: 1.7; }
.footer-nap a { display: inline-block; }
.footer-social { display: flex; gap: var(--space-3); margin-top: var(--space-3); }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--space-5); padding-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; font-size: var(--step--1); color: rgba(255,255,255,.6); }
.footer-bottom a { color: rgba(255,255,255,.6); }

/* ---- Verify flag (dev only visual marker) ---- */
.verify-flag { display:inline-block; background: #FEF0C7; color:#7A5B00; border:1px dashed #E4B400; font-size: 11px; padding: 1px 6px; border-radius: 4px; font-family: var(--font-body); }
.sample-banner { background: #FEF0C7; color:#7A5B00; border:1px solid #E4B400; padding: 10px 16px; border-radius: var(--radius-sm); font-size: var(--step--1); margin-bottom: var(--space-4); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .primary-nav, .header-tools .btn, .header-tools .lang-switch, .header-tools .phone-link { display: none; }
  .nav-toggle { display: inline-flex; margin-inline-start: auto; }
  .mega { display: none !important; }
  .action-bar { display: grid; }
  .wa-float { display: none; }
  .explorer__panel, .layer-diagram, .tabs__panel, .uae-map, .cta-band__inner { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase__feature, .showcase__wide { grid-column: span 2; grid-row: auto; min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  body { padding-bottom: 56px; } /* room for action bar */
}
.nav-toggle {
  align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--ink);
}
.page--has-hero .site-header:not(.is-solid) .nav-toggle { color: #fff; }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 680px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__feature, .showcase__wide { grid-column: span 1; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .explorer__spec li { grid-template-columns: 1fr; gap: 2px; }
}
