/* ==========================================================================
   LinkBuildingService.ae — Design system ("The Authority Ledger")
   Layout concept: 12-col, 1240px max, hairline "ledger" rules, generous
   section rhythm. Neutral ink/paper/mist ground; emerald is reserved for
   conversion (buttons, live states, key numbers) so every CTA is the most
   salient object on screen (isolation effect).
   ========================================================================== */

:root {
  /* Color */
  --ink: #0B1215;          /* text, dark surfaces */
  --ink-2: #141D21;        /* raised surface on dark */
  --ink-3: #222E33;        /* hairlines on dark */
  --paper: #FFFFFF;
  --mist: #F4F6F3;         /* alternate section ground (sage-biased neutral) */
  --mist-2: #EBEFEA;
  --line: #E2E6E1;
  --line-strong: #CBD2CC;
  --text: #0B1215;
  --text-2: #46524D;       /* secondary copy, 7.9:1 on paper */
  --text-3: #66716C;       /* captions, 4.9:1 on paper */
  --text-on-dark: #F3F6F4;
  --text-on-dark-2: #A9B6B0;

  --brand: #0A6B4F;        /* emerald: conversion color */
  --brand-hover: #085A42;
  --brand-ink: #053A2B;
  --brand-tint: #E5F1EB;
  --brand-tint-2: #CFE6DA;
  --brand-bright: #2FC28A; /* emerald on dark grounds (ink text on it) */
  --brand-bright-hover: #4FD3A0;

  --sand: #F3ECDD;         /* rare warm highlight */
  --star: #E8A317;
  --whatsapp: #25D366;      /* brand-mandated WhatsApp green, icon only */
  --whatsapp-ink: #128C4A;  /* WhatsApp green on light grounds */
  --danger-on-dark: #FF9B8F;
  --warn: #B45309;
  --warn-tint: #FDF1E3;
  --danger: #B42318;
  --info: #1E5BB8;

  /* Type */
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-arabic: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif;

  --fs-display: clamp(2.6rem, 1.55rem + 4.2vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-lead: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-micro: 0.75rem;

  --lh-tight: 1.04;
  --lh-snug: 1.18;
  --lh-body: 1.6;
  --track-display: -0.035em;
  --track-heading: -0.025em;
  --track-label: 0.08em;

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(72px, 4rem + 4.5vw, 128px);
  --gutter: clamp(20px, 3.2vw, 32px);
  --container: 1240px;
  --container-narrow: 820px;

  /* Shape */
  --r-xs: 4px; --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(11, 18, 21, .05);
  --shadow-card: 0 1px 2px rgba(11, 18, 21, .04), 0 12px 32px -16px rgba(11, 18, 21, .14);
  --shadow-pop: 0 2px 6px rgba(11, 18, 21, .06), 0 24px 64px -24px rgba(11, 18, 21, .28);
  --ring: 0 0 0 3px rgba(10, 107, 79, .28);

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-tint-2); color: var(--ink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--flush-top { padding-top: 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }
.section--ink .muted, .section--ink .lead { color: var(--text-on-dark-2); }
.section--rule { border-top: 1px solid var(--line); }

.stack { display: flex; flex-direction: column; gap: var(--stack, var(--s-4)); }
.stack > * { min-width: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster, var(--s-3)); }
.grid { display: grid; gap: var(--grid-gap, var(--s-5)); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 64ch; }
.measure-narrow { max-width: 46ch; }

/* ---------- Type ---------- */
.display, .h1, .h2, .h3, .h4, h1, h2, h3, h4 { font-family: var(--font-sans); text-wrap: balance; color: inherit; }
.display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); font-weight: 600; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: var(--track-display); font-weight: 600; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--track-heading); font-weight: 600; }
h3, .h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.015em; font-weight: 600; }
h4, .h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }
.num { font-variant-numeric: tabular-nums; }
.hl { color: var(--brand); }
.section--ink .hl { color: var(--brand-bright); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-2);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
.section--ink .eyebrow { color: var(--text-on-dark-2); }
.section--ink .eyebrow::before { background: var(--brand-bright); }
.cta-band .eyebrow, .site-footer .eyebrow, .card--dark .eyebrow { color: var(--text-on-dark-2); }
.cta-band .eyebrow::before, .site-footer .eyebrow::before, .card--dark .eyebrow::before { background: var(--brand-bright); }
.section-head { display: flex; flex-direction: column; gap: var(--s-4); max-width: 760px; }
.section-head.text-center { margin-inline: auto; align-items: center; }
.section-head--row { max-width: none; flex-direction: row; align-items: end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.section-head--row > :first-child { max-width: 720px; display: flex; flex-direction: column; gap: var(--s-4); }

.prose { font-size: 1.125rem; line-height: 1.75; color: var(--text); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); margin-top: 2em; line-height: 1.2; }
.prose h3 { font-size: 1.375rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--brand); font-weight: 500; }
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { border-left: 2px solid var(--brand); padding-left: 1.2em; color: var(--text-2); font-size: 1.25rem; line-height: 1.5; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--mist); border: 1px solid var(--line); padding: .1em .35em; border-radius: var(--r-xs); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--mist); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: var(--r-md);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Emerald is under 3:1 on ink, so focus on dark grounds uses the bright emerald */
.section--ink :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .card--dark :focus-visible, .modal__aside :focus-visible, .utility-bar :focus-visible { outline-color: var(--brand-bright); }
.btn .i { width: 18px; height: 18px; flex: none; }
.btn .i-arrow { transition: transform .2s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(10,107,79,.55); }
.btn--primary:hover { --btn-bg: var(--brand-hover); --btn-bd: var(--brand-hover); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: #000; }
.btn--secondary { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; padding-inline: 12px; }
.btn--ghost:hover { --btn-bg: var(--mist); --btn-bd: transparent; }
.btn--on-dark { --btn-bg: var(--brand-bright); --btn-fg: var(--ink); --btn-bd: var(--brand-bright); }
.btn--on-dark:hover { --btn-bg: var(--brand-bright-hover); --btn-bd: var(--brand-bright-hover); }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: var(--text-on-dark); --btn-bd: var(--ink-3); }
.btn--outline-dark:hover { --btn-bd: var(--text-on-dark-2); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-sm); border-radius: 8px; }
@media (pointer: coarse) { .btn--sm, .chip { min-height: 44px; } }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-note { font-size: var(--fs-xs); color: var(--text-3); }
/* "A · B · C" lists: <p class="btn-note sep-list"><span>A</span><span>B</span></p>. A dot that would start a line is clipped. */
.sep-list { display: flex; flex-wrap: wrap; column-gap: 1.3em; overflow: hidden; min-width: 0; }
.sep-list > * { position: relative; min-width: 0; }
.sep-list > * + *::before { content: "·"; content: "·" / ","; position: absolute; left: -.9em; width: .5em; text-align: center; }
.section--ink .btn-note, .site-footer .btn-note, .cta-band .btn-note, .card--dark .btn-note { color: var(--text-on-dark-2); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); text-decoration: none; }
.link-arrow .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }
.section--ink .link-arrow { color: var(--brand-bright); }

/* ---------- Icons ---------- */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.icon-tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand); flex: none; }
.icon-tile .i { width: 22px; height: 22px; }
.section--ink .icon-tile { background: rgba(47, 194, 138, .12); color: var(--brand-bright); }

/* ---------- Badges, chips, ratings ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; background: var(--mist); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge--brand { background: var(--brand-tint); color: var(--brand-ink); border-color: var(--brand-tint-2); }
.badge--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge--warn { background: var(--warn-tint); color: var(--warn); border-color: #F6DDBF; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); flex: none; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--brand-bright); opacity: .6; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; color: var(--text); transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"], .chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .i { width: 15px; height: 15px; }
.rating { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.rating strong { color: var(--text); font-weight: 600; }
.section--ink .rating, .section--ink .rating strong { color: var(--text-on-dark); }

/* Trust row under CTAs */
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .i { width: 18px; height: 18px; color: var(--brand); }
.section--ink .trust-list { color: var(--text-on-dark-2); }
.section--ink .trust-list .i { color: var(--brand-bright); }

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: var(--s-4); }
.card--flat { border-color: transparent; background: var(--mist); }
.card--raised { box-shadow: var(--shadow-card); border-color: var(--line); }
.card--link { text-decoration: none; color: inherit; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.card--link:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card--dark { background: var(--ink-2); border-color: var(--ink-3); color: var(--text-on-dark); }
.card__foot { margin-top: auto; padding-top: var(--s-2); }

/* Ledger: stats separated by hairlines */
.ledger { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ledger > * { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-right: 1px solid var(--line); min-width: 0; }
.ledger > * + * { padding-left: var(--s-5); }
.ledger > :last-child { border-right: 0; }
.section--ink .ledger, .section--ink .ledger > * { border-color: var(--ink-3); }
@media (max-width: 760px) {
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger > * { border-bottom: 1px solid var(--line); }
  .ledger > :nth-child(2n) { border-right: 0; }
  .ledger > :nth-child(2n+1) { padding-left: 0; }
  .section--ink .ledger > * { border-color: var(--ink-3); }
}
.stat__value { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 10px; font-size: var(--fs-sm); color: var(--text-2); }
.section--ink .stat__label { color: var(--text-on-dark-2); }

/* ---------- Signature: link placement card ---------- */
.placement { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "fav domain status" "fav meta status" "anchor anchor anchor"; gap: 4px 14px; align-items: center; box-shadow: var(--shadow-card); }
.placement__fav { grid-area: fav; width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; background: var(--ink); }
.placement__domain { grid-area: domain; font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placement__meta { grid-area: meta; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); display: flex; gap: 10px; flex-wrap: wrap; }
.placement__meta b { color: var(--text); font-weight: 500; }
.placement__status { grid-area: status; align-self: center; }
@media (max-width: 520px) { .placement__domain { white-space: normal; overflow-wrap: anywhere; } }
.placement__anchor { grid-area: anchor; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--text-2); display: flex; gap: 8px; align-items: center; min-width: 0; }
.placement__anchor code { font-family: var(--font-mono); font-size: 11.5px; color: var(--brand-ink); background: var(--brand-tint); padding: 2px 6px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .placement__anchor { align-items: flex-start; } .placement__anchor code { white-space: normal; overflow-wrap: anywhere; } }

/* Metric pill (DR / traffic) */
.metric { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.metric b { font-family: var(--font-sans); font-size: 1rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.field .hint { font-size: var(--fs-xs); color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #8A948F; }
.input:hover, .select:hover, .textarea:hover { border-color: #AEB7B1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--mist); color: var(--text-3); cursor: not-allowed; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.field .error { font-size: var(--fs-xs); color: var(--danger); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2346524D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.section--ink .input, .section--ink .select, .section--ink .textarea { background: var(--ink-2); border-color: var(--ink-3); color: var(--text-on-dark); }
.section--ink .field label { color: var(--text-on-dark); }

/* Domain capture: the hero's one-field form */
.domain-form { display: flex; gap: 6px; padding: 6px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: calc(var(--r-md) + 6px); box-shadow: var(--shadow-card); max-width: 560px; }
.domain-form:focus-within { border-color: var(--brand); box-shadow: var(--ring), var(--shadow-card); }
.domain-form__field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.domain-form__field .i { position: absolute; left: 14px; color: var(--text-3); pointer-events: none; }
.domain-form input { width: 100%; height: 52px; border: 0; background: transparent; padding: 0 12px 0 44px; font-size: 1.0625rem; min-width: 0; }
.domain-form input:focus { outline: none; }
.domain-form .btn { min-height: 52px; }
@media (max-width: 520px) {
  .domain-form { flex-direction: column; padding: 8px; }
  .domain-form input { height: 48px; }
  .domain-form .btn { width: 100%; }
}
[data-domain-error], .domain-error { display: block; margin-top: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--danger); }
.section--ink [data-domain-error], .cta-band [data-domain-error], .site-footer [data-domain-error] { color: var(--danger-on-dark); }
.domain-form:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.section--ink .domain-form { background: var(--ink-2); border-color: var(--ink-3); box-shadow: none; }
.section--ink .domain-form input { color: var(--text-on-dark); }

/* Multi-step form progress */
.steps-progress { display: flex; gap: 6px; }
.steps-progress span { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: background-color .25s; }
.steps-progress span.is-done { background: var(--brand); }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 520px) { .option-grid { grid-template-columns: minmax(0, 1fr); } }
.option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; font-weight: 500; background: var(--paper); transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--ink); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.option:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.option:has(input:checked) .tick { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--brand-tint); }
.option:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--ink); color: var(--text-on-dark-2); font-size: var(--fs-xs); }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.utility-bar a { color: var(--text-on-dark); text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.utility-bar__msg { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.utility-bar__msg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.utility-bar__links { display: flex; align-items: center; gap: 20px; flex: none; }
.utility-bar__links a { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar__links .i { width: 14px; height: 14px; }
.lang-ar { font-family: var(--font-arabic); font-size: 13px; }
@media (max-width: 760px) { .utility-bar__links .hide-sm { display: none; } }
@media (max-width: 520px) { .utility-bar__links { display: none; } .utility-bar .container { justify-content: center; } .hide-xs { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(11, 18, 21, .3); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 32px; height: 32px; flex: none; }
.logo__word { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo__word span { color: var(--text-3); font-weight: 500; }
.logo__word em { font-style: normal; color: var(--brand); }
.section--ink .logo, .site-footer .logo { color: var(--text-on-dark); }
.section--ink .logo__word span, .site-footer .logo__word span { color: var(--text-on-dark-2); }
.section--ink .logo__word em, .site-footer .logo__word em { color: var(--brand-bright); }

.nav { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; background: none; border-radius: 8px; font-size: 0.96rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; transition: background-color .15s; }
.nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--mist); }
.nav__link[aria-current="page"] { color: var(--brand); }
.nav__link .i { width: 16px; height: 16px; color: var(--text-3); transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; text-decoration: none; color: var(--text); padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.header-phone:hover { background: var(--mist); }
.header-phone .i { width: 18px; height: 18px; color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); align-items: center; justify-content: center; }
.nav-toggle .i { width: 22px; height: 22px; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-block: 32px 36px; }
.mega__cols { display: grid; grid-template-columns: repeat(var(--mega-cols, 2), minmax(0, 1fr)); gap: 4px 24px; align-content: start; }
.mega__title { grid-column: 1 / -1; font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-3); padding: 0 12px 8px; }
.mega__link { display: flex; gap: 14px; padding: 12px; border-radius: var(--r-md); text-decoration: none; color: var(--text); transition: background-color .15s; }
.mega__link:hover { background: var(--mist); }
.mega__link strong { display: block; font-weight: 600; font-size: 0.97rem; }
.mega__link small { display: block; font-size: var(--fs-xs); color: var(--text-3); line-height: 1.45; margin-top: 2px; }
.mega__link--compact { padding: 9px 12px; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; }
.mega__link--compact .i { width: 18px; height: 18px; color: var(--text-3); }
.mega__feature { background: var(--mist); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text); }
.mega__feature:hover .link-arrow .i { transform: translateX(3px); }
.gap-mini { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); }
.gap-mini > span { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 8px; font-size: 12px; color: var(--text-2); }
.gap-mini b { font-weight: 500; }
.gap-mini em { font-style: normal; font-family: var(--font-mono); color: var(--text); font-variant-numeric: tabular-nums; }
.gap-mini i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line-strong); display: block; }
.gap-mini .is-you b { color: var(--brand-ink); font-weight: 600; }
.gap-mini .is-you i { background: var(--brand); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 12px 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-2); }

/* Mobile drawer */
.drawer { display: none; }
@media (max-width: 1100px) {
  .nav, .header-actions .header-phone, .header-actions .btn--secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { justify-content: space-between; }
  .drawer { display: block; position: fixed; inset: var(--drawer-top, calc(var(--header-h) + env(safe-area-inset-top, 0px))) 0 0 0; background: var(--paper); z-index: 49; overflow-y: auto; overscroll-behavior: contain; padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(120px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s linear .2s; }
  .drawer.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .drawer details { border-bottom: 1px solid var(--line); }
  .drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 60px; font-size: 1.125rem; font-weight: 600; cursor: pointer; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary .i { transition: transform .2s; color: var(--text-3); }
  .drawer details[open] summary .i { transform: rotate(180deg); }
  .drawer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; padding-bottom: 16px; }
  .drawer__links a { padding: 10px 0; text-decoration: none; color: var(--text-2); font-size: var(--fs-sm); }
  .drawer__plain { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 1.125rem; font-weight: 600; text-decoration: none; color: var(--text); }
  .drawer__cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px)); background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .drawer__cta .btn--primary { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .logo__word { font-size: 15px; } .site-header__inner .header-actions .btn--primary { display: none; } }
body.nav-open { overflow: hidden; }
body.nav-open .site-header { background: var(--paper); }
body.nav-open .cookie-note, body.nav-open .proto-bar { display: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-xs); color: var(--text-3); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
@media (hover: none), (max-width: 760px) { .breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; } }
.breadcrumbs [aria-current] { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); flex: none; transition: background-color .2s, border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary .pm { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .pm { border-color: var(--ink); }
.faq__a { padding: 0 52px 24px 0; color: var(--text-2); max-width: 72ch; }
@media (max-width: 640px) { .faq__a { padding-right: 0; } .faq summary { font-size: 1.0625rem; } }
.faq__a > * + * { margin-top: .8em; }
.section--ink .faq, .section--ink .faq details { border-color: var(--ink-3); }
.section--ink .faq__a { color: var(--text-on-dark-2); }

/* ---------- Testimonial ---------- */
.quote { display: flex; flex-direction: column; gap: 20px; }
.quote__text { font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; letter-spacing: -0.01em; font-weight: 500; text-wrap: pretty; }
.quote__who { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 600; color: var(--text-2); flex: none; }
.quote__who strong { display: block; font-weight: 600; }
.quote__who span:not(.quote__avatar) { color: var(--text-3); }
.quote__who strong, .quote__who strong * { color: var(--text); }
.section--ink .quote__who strong, .section--ink .quote__who strong * { color: var(--text-on-dark); }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.logo-strip__item { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.logo-strip__item .i { width: 18px; height: 18px; }

/* ---------- CTA band (pre-footer / end of page) ---------- */
.cta-band { container-type: inline-size; position: relative; background: var(--ink); color: var(--text-on-dark); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px); overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--ink-3) 1px, transparent 1px), linear-gradient(90deg, var(--ink-3) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 85% 20%, #000 0%, transparent 70%); opacity: .55; }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@container (max-width: 820px) { .cta-band__grid { grid-template-columns: minmax(0, 1fr); } }
.cta-band .lead { color: var(--text-on-dark-2); }
.cta-band .trust-list { color: var(--text-on-dark-2); }
.cta-band .trust-list .i { color: var(--brand-bright); }
.cta-band .domain-form { background: var(--ink-2); border-color: var(--ink-3); box-shadow: none; }
.cta-band .domain-form input { color: var(--text-on-dark); }
.cta-band .domain-form input::placeholder { color: #7E8B86; }
.cta-band .domain-form__field .i { color: #7E8B86; }

/* Inline CTA (inside content / blog) */
.cta-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: 28px 32px; border-radius: var(--r-lg); background: var(--brand-tint); border: 1px solid var(--brand-tint-2); }
.cta-inline h3, .cta-inline .h4 { color: var(--brand-ink); }
.cta-inline p { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 640px) { .cta-inline { grid-template-columns: minmax(0, 1fr); padding: 24px; } .cta-inline .btn { width: 100%; } }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.price-card--featured { border: 1.5px solid var(--ink); box-shadow: var(--shadow-pop); }
.price-card__flag { position: absolute; top: -13px; left: 32px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-card__amount { font-size: clamp(2.25rem, 1.8rem + 1.4vw, 2.875rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-card__cur { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); letter-spacing: .04em; }
.price-card__per { font-size: var(--fs-sm); color: var(--text-3); }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: var(--fs-sm); color: var(--text-2); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .i { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.check-list li.is-off { color: var(--text-3); }
.check-list li.is-off .i { color: var(--line-strong); }
.section--ink .check-list { color: var(--text-on-dark-2); }
.section--ink .check-list .i { color: var(--brand-bright); }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--mist-2); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 0 18px; min-height: 44px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--text); box-shadow: var(--shadow-xs); }

/* Comparison table */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); min-width: 640px; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare th:first-child, .compare td:first-child { padding-left: 0; }
.compare thead th { font-size: var(--fs-xs); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.compare tbody th { font-weight: 500; color: var(--text); }
.compare .is-us { background: var(--brand-tint); color: var(--brand-ink); font-weight: 600; }
.compare thead .is-us { color: var(--brand-ink); border-radius: var(--r-md) var(--r-md) 0 0; }
.compare .i { width: 18px; height: 18px; }
.compare .yes { color: var(--brand); }
.compare .no { color: var(--text-3); }

/* ---------- Process steps (real sequences only) ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand); letter-spacing: .06em; }
.step__time { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .step, .step + .step { padding: 0 0 28px 28px; border-left: 1px solid var(--line); }
  .step::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
}

/* ---------- Article / post cards ---------- */
.post-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; min-width: 0; }
.post-card__media { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); border: 1px solid var(--line); position: relative; max-width: 100%; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--fs-xs); color: var(--text-3); align-items: center; }
.post-card__cat { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--brand); font-size: 11.5px; }
.post-card__title { font-size: 1.25rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.post-card__excerpt { color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-on-dark-2); padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.site-footer a { color: var(--text-on-dark-2); text-decoration: none; }
.site-footer a:hover { color: var(--text-on-dark); text-decoration: underline; }
.site-footer a.btn, .site-footer a.btn:hover { color: var(--btn-fg); text-decoration: none; }
.site-footer a.logo:hover { text-decoration: none; }
.site-footer .lead { color: var(--text-on-dark-2); }
.footer-cta { padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--ink-3); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px 48px; align-items: end; }
.footer-cta h2 { color: var(--text-on-dark); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem); line-height: 1.04; letter-spacing: var(--track-display); }
.footer-cta__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-cta__actions .cluster { --cluster: 10px; }
@media (max-width: 860px) { .footer-cta { grid-template-columns: minmax(0, 1fr); align-items: start; } }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; padding-block: 64px 48px; }
.footer-col h3 { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--text-on-dark); margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: var(--fs-sm); }
.footer-brand { display: flex; flex-direction: column; gap: 20px; font-size: var(--fs-sm); }
.footer-nap { display: flex; flex-direction: column; gap: 10px; font-style: normal; }
.footer-nap div { display: flex; gap: 10px; align-items: flex-start; }
.footer-nap .i { width: 16px; height: 16px; margin-top: 3px; color: var(--brand-bright); }
.footer-nap strong { color: var(--text-on-dark); font-weight: 500; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-3); display: grid; place-items: center; }
.footer-social a:hover { border-color: var(--text-on-dark-2); text-decoration: none; }
.footer-social .i { width: 17px; height: 17px; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 12px; padding-block: 24px; border-top: 1px solid var(--ink-3); align-items: center; justify-content: space-between; font-size: var(--fs-xs); }
.footer-trust__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--ink-3); border-radius: var(--r-pill); color: var(--text-on-dark); font-size: var(--fs-xs); font-weight: 500; }
.footer-badge .stars .i { width: 12px; height: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--ink-3); font-size: var(--fs-xs); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 1000px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 20px; } }

/* ---------- Floating + sticky conversion UI ---------- */
.wa-float { position: fixed; right: max(20px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 40; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-pop); transition: transform .2s var(--ease); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float .i { width: 22px; height: 22px; color: var(--whatsapp); }
.i--wa { color: var(--whatsapp-ink); }
.section--ink .i--wa, .site-footer .i--wa, .cta-band .i--wa { color: var(--whatsapp); }
.wa-float__status { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .sticky-cta { display: grid; grid-template-columns: 52px 52px minmax(0, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s var(--ease); }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { min-height: 52px; padding: 0 12px; }
  .sticky-cta .btn--icon { padding: 0; }
  .sticky-cta .btn--icon .i { width: 22px; height: 22px; }
  .sticky-cta .wa .i { color: var(--whatsapp-ink); }
  body.has-sticky-cta { padding-bottom: 80px; }
}

/* ---------- Modal (exit intent / lead magnet) ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.modal__scrim { position: absolute; inset: 0; background: rgba(11, 18, 21, .55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); animation: modalIn .28s var(--ease); }
@keyframes modalIn { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); display: grid; place-items: center; z-index: 2; }
.modal__close:hover { background: var(--mist); }
.modal__body { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.modal__aside { background: var(--ink); color: var(--text-on-dark); padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
@media (max-width: 720px) { .modal__panel { grid-template-columns: minmax(0, 1fr); } .modal__aside { display: none; } .modal__body { padding: 32px 24px 24px; } }

/* ---------- Cookie notice (first visit, non-blocking) ---------- */
.footer-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--text-on-dark-2); cursor: pointer; }
.footer-linkbtn:hover { color: var(--text-on-dark); text-decoration: underline; }
/* Compact single row on tablets and desktops (about 64px tall) so it stays clear of hero forms; the width leaves room for the WhatsApp pill */
.cookie-note { position: fixed; z-index: 75; left: max(16px, calc(env(safe-area-inset-left, 0px) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)); width: min(600px, calc(100vw - 264px)); background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); padding: 12px 12px 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-2); }
.cookie-note p { flex: 1 1 200px; min-width: 0; }
.cookie-note strong { color: var(--text); }
.cookie-note a { color: var(--text); white-space: nowrap; }
.cookie-note__actions { display: flex; gap: 8px; flex: none; }
body.cookie-open .proto-bar { display: none; }
/* Phones: a compact sheet resting on the sticky CTA bar, so "Get my free audit" stays on the first screen.
   site.js sets body.sticky-on while the bar is up; a page that hides the bar resets --cookie-lift to 0px. */
@media (max-width: 760px) {
  .cookie-note { left: 0; right: 0; bottom: var(--cookie-lift, 0px); width: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; border-width: 1px 0 0; box-shadow: 0 -10px 30px -18px rgba(11, 18, 21, .3); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + max(0px, env(safe-area-inset-bottom, 0px) - var(--cookie-lift, 0px))) max(16px, env(safe-area-inset-left, 0px)); gap: 6px; transition: bottom .25s var(--ease); }
  .cookie-note p { flex-basis: 100%; }
  .cookie-note__actions { flex: 1 1 100%; }
  .cookie-note__actions .btn { flex: 1; min-height: 44px; }
  body.sticky-on { --cookie-lift: calc(73px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Prototype helpers (not part of the production design) ---------- */
.proto-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)); z-index: 70; display: flex; align-items: center; gap: 4px; padding: 4px; white-space: nowrap; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); font-size: 12px; font-family: var(--font-mono); }
.proto-bar a, .proto-bar button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--text-2); text-decoration: none; font-size: 12px; font-family: var(--font-mono); }
.proto-bar a:hover, .proto-bar button:hover { background: var(--mist); color: var(--text); }
.proto-bar button[aria-pressed="true"] { background: var(--warn-tint); color: var(--warn); }
@media (max-width: 760px) { .proto-bar { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } }
html.show-ph .ph { outline: 1.5px dashed var(--warn); outline-offset: 2px; background-color: rgba(253, 241, 227, .7); border-radius: 3px; }
html.show-ph .section--ink .ph, html.show-ph .site-footer .ph { background-color: rgba(180, 83, 9, .25); }

/* ---------- Generic visual: dot grid backdrop ---------- */
.gridlines { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 10%, transparent 75%); opacity: .7; }

/* Header phone number collapses to icon-only on narrower desktops */
.header-phone__num { display: inline; }
@media (max-width: 1280px) { .header-phone__num { display: none; } }
