/* FindBest Option — Services. "Midnight & daylight" design.
   Dark ink stages (hero, page heads, footer) lit by slow aurora light, over a crisp light reading
   surface. Brand cues kept from findbestoption.com: the check-mark logo, teal and the orange accent.
   Logical properties throughout, so Arabic (RTL) needs almost no overrides.
   Motion is progressive: everything is readable without JavaScript, and all animation stops for
   visitors who ask for reduced motion. */

/* ---------- Fonts: served from this site (OFL), variable, split by script ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/bricolage-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url(fonts/readex-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url(fonts/readex-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Readex Pro'; font-style: normal; font-weight: 160 700; font-display: swap;
  src: url(fonts/readex-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
/* Stand-ins while the fonts load: local fonts resized to the same width and line metrics (measured
   in the browser against the real fonts), so text does not jump when they arrive. */
@font-face { font-family: 'Bricolage fallback'; font-weight: 100 599; src: local('Arial'), local('ArialMT'), local('Helvetica');
  size-adjust: 93%; ascent-override: 100%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Bricolage fallback'; font-weight: 600 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold');
  size-adjust: 92%; ascent-override: 101%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: 'Readex fallback'; font-weight: 100 549; src: local('Arial'), local('ArialMT'), local('Helvetica');
  size-adjust: 106.5%; ascent-override: 94%; descent-override: 23.5%; line-gap-override: 0%; }
@font-face { font-family: 'Readex fallback'; font-weight: 550 900; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold');
  size-adjust: 104.4%; ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Readex fallback'; src: local('Tahoma'), local('Geeza Pro'), local('Noto Naskh Arabic');
  size-adjust: 108.7%; ascent-override: 92%; descent-override: 23%; line-gap-override: 0%;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  /* Stage (dark) */
  --night: #070b14;
  --night-2: #0c1322;
  --night-3: #121c30;
  --night-line: rgba(255, 255, 255, .09);
  --on-night: #eef2f7;
  --on-night-muted: #9aa8bd;
  /* Reading surface (light) */
  --bg: #f5f6f3;
  --card: #ffffff;
  --ink: #0d1726;
  --muted: #5b6678;
  --line: #e3e6ea;
  --sand: #eef0ec;
  --card-2: #fbfbf9;
  --ink-2: #2c3a4f;
  --err-soft: #fde8e4;
  --info: #1e3a8a;
  --info-soft: #eef4ff;
  --warn: #8a5a00;
  --warn-soft: #fff1d6;
  --guide: #4b3b8a;
  --guide-soft: #ece9fb;
  --promo: #8a3413;
  --accent-soft-2: #fff4e2;
  --ico-l: 38%;
  --shine: rgba(255, 255, 255, .55);
  color-scheme: light;
  /* Brand */
  --brand: #1f5254;
  --teal: #19c2a8;
  --teal-soft: #dff6f1;
  --accent: #ff7a45;
  --accent-2: #ffb347;
  --accent-soft: #ffe9df;
  --accent-ink: #b5461a;   /* the accent as text on light surfaces (5:1) */
  --maroon: #8a1538;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-cool: linear-gradient(120deg, var(--teal) 0%, #4f8cff 100%);
  --ok: #0f7a57;
  --ok-soft: #e1f5ec;
  --err: #c2341f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 23, 38, .05), 0 10px 30px -10px rgba(13, 23, 38, .14);
  --shadow-lift: 0 2px 6px rgba(13, 23, 38, .06), 0 28px 60px -18px rgba(13, 23, 38, .30);
  --glow: 0 10px 34px -6px rgba(255, 122, 69, .55);
  /* Motion tokens (documented in MOTION.md; app.js reads the same names). Enter on --ease-out,
     leave on --ease-in and faster, choreograph on --ease-inout, react to touch on --spring. */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);
  --ease: var(--ease-out);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.3, 1.25, .6, 1);
  --dur-micro: 160ms;
  --dur-ui: 320ms;
  --dur-slow: 600ms;
  --dur-hero: 900ms;
  --dur-exit: 200ms;
  --stagger: 40ms;
  --font: 'Readex Pro', 'Readex fallback', system-ui, sans-serif;
  --font-head: 'Bricolage Grotesque', 'Bricolage fallback', 'Readex Pro', system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
/* A real spring where the browser can draw one (overshoot, then settle). */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .013 .6%, .05 1.2%, .2 2.6%, .5 5.1%, .8 8.3%, 1.03 12.1%, 1.12 15%, 1.14 17.5%, 1.12 20.5%, 1.04 27%, .99 33%, .98 39%, 1 50%, 1);
    --spring-soft: linear(0, .03 1.2%, .24 4.5%, .62 9.6%, .9 15%, 1.04 21%, 1.07 26%, 1.04 34%, 1.005 47%, 1);
  }
}
/* Dark theme: the reading surface turns to ink too; the stages stay as they are. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0a0f19;
  --card: #111827;
  --card-2: #0e1521;
  --ink: #e9eef5;
  --ink-2: #c5cfdc;
  --muted: #98a6ba;
  --line: #243048;
  --sand: #18223a;
  --brand: #6fd6c6;
  --teal-soft: rgba(25, 194, 168, .15);
  --accent-soft: rgba(255, 122, 69, .16);
  --accent-soft-2: rgba(255, 179, 71, .08);
  --accent-ink: #ff9b70;
  --ok: #45d6a0;
  --ok-soft: rgba(69, 214, 160, .13);
  --err: #ff8a75;
  --err-soft: rgba(255, 138, 117, .14);
  --info: #a9c4ff;
  --info-soft: rgba(79, 140, 255, .15);
  --warn: #ffc66e;
  --warn-soft: rgba(255, 179, 71, .14);
  --guide: #cbbfff;
  --guide-soft: rgba(150, 128, 255, .17);
  --promo: #ffb28f;
  --ico-l: 70%;
  --shine: rgba(255, 255, 255, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 28px 60px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f19;
  --card: #111827;
  --card-2: #0e1521;
  --ink: #e9eef5;
  --ink-2: #c5cfdc;
  --muted: #98a6ba;
  --line: #243048;
  --sand: #18223a;
  --brand: #6fd6c6;
  --teal-soft: rgba(25, 194, 168, .15);
  --accent-soft: rgba(255, 122, 69, .16);
  --accent-soft-2: rgba(255, 179, 71, .08);
  --accent-ink: #ff9b70;
  --ok: #45d6a0;
  --ok-soft: rgba(69, 214, 160, .13);
  --err: #ff8a75;
  --err-soft: rgba(255, 138, 117, .14);
  --info: #a9c4ff;
  --info-soft: rgba(79, 140, 255, .15);
  --warn: #ffc66e;
  --warn-soft: rgba(255, 179, 71, .14);
  --guide: #cbbfff;
  --guide-soft: rgba(150, 128, 255, .17);
  --promo: #ffb28f;
  --ico-l: 70%;
  --shine: rgba(255, 255, 255, .07);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, .45), 0 28px 60px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
html[lang="ar"] { --font-head: 'Readex Pro', 'Readex fallback', system-ui, sans-serif; }

/* Page transitions (browsers that support them). The page cross-fades; a service card and that
   service's page share three elements, so the card grows into the page head (names set in vt.js on
   the list side, fixed here on the service side). */
@view-transition { navigation: auto; }
.detail-head { view-transition-name: vt-card; }
.detail-head h1 { view-transition-name: vt-title; }
.detail-head .stat-best dd { view-transition-name: vt-price; }
::view-transition-group(vt-card), ::view-transition-group(vt-title), ::view-transition-group(vt-price) {
  animation-duration: calc(var(--dur-ui) * 1.5); animation-timing-function: var(--ease-inout); }
::view-transition-group(vt-card) { border-radius: var(--radius); overflow: clip; }
/* Card and page head keep their own size; the frame between them grows or shrinks (a clip, not a stretch). */
::view-transition-old(vt-card), ::view-transition-new(vt-card) { width: 100%; height: 100%; object-fit: none; object-position: left top; }
html[dir="rtl"] ::view-transition-old(vt-card), html[dir="rtl"] ::view-transition-new(vt-card) { object-position: right top; }
/* The header is the same on both pages: it stays put instead of cross-fading with the page. */
.site-header { view-transition-name: vt-header; }
::view-transition-group(vt-header) { animation-duration: 0s; }
::view-transition-old(vt-header) { animation: none; opacity: 0; }
::view-transition-new(vt-header) { animation: none; }
/* Text changes size on the way: blend the two snapshots instead of stretching one into the other. */
::view-transition-old(vt-title), ::view-transition-new(vt-title),
::view-transition-old(vt-price), ::view-transition-new(vt-price) { height: 100%; width: auto; object-fit: none; object-position: left top; }
html[dir="rtl"] ::view-transition-old(vt-title), html[dir="rtl"] ::view-transition-new(vt-title),
html[dir="rtl"] ::view-transition-old(vt-price), html[dir="rtl"] ::view-transition-new(vt-price) { object-position: right top; }
::view-transition-old(vt-card) { animation: vt-fade-out var(--dur-ui) var(--ease-in) both; }
::view-transition-new(vt-card) { animation: vt-fade-in calc(var(--dur-ui) * 1.5) var(--ease-out) both; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
::view-transition-old(root) { animation: vt-out var(--dur-exit) var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in var(--dur-ui) var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
html[lang="ar"] :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
main.wrap { padding-block: 28px 80px; min-height: 60vh; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; padding-block: 6px; }
.site-header::before { content: ''; position: absolute; inset: 0; background: rgba(7, 11, 20, .9); backdrop-filter: saturate(1.6) blur(16px);
  border-block-end: 1px solid var(--night-line); }
.site-header::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .55);
  transition: opacity var(--dur-ui) var(--ease-out); }
.site-header.is-stuck::after { opacity: 1; }
.hdr { position: relative; display: flex; align-items: center; gap: 22px; min-height: 52px; color: var(--on-night); }
.logo { display: inline-flex; align-items: center; gap: 2px; font: 400 1.28rem var(--font-head); letter-spacing: -.02em; color: #e9eef6; text-decoration: none; }
.logo b { font-weight: 800; color: #fff; }
.logo-mark { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-inline: 1px; }
.logo-mark svg { width: 100%; height: 100%; overflow: visible; }
.logo-mark circle { stroke: #fff; }
.logo-mark path { stroke: var(--accent); stroke-dasharray: 40; stroke-dashoffset: 0; }
.logo:hover .logo-mark path { animation: tick var(--dur-slow) var(--ease); }
@keyframes tick { from { stroke-dashoffset: 40; } }
.hdr-nav { display: flex; gap: 2px; margin-inline-end: auto; }
.hdr-nav a { position: relative; padding: 8px 12px; color: var(--on-night-muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  border-radius: 999px; transition: color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out); }
.hdr-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.hdr form { margin: 0; }
.hdr-pill { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border: 1px solid var(--night-line);
  background: rgba(255, 255, 255, .04); border-radius: 999px; padding: 7px 14px; font-size: .9rem; transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.hdr-pill:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); }
button.hdr-pill { font: inherit; font-size: .9rem; cursor: pointer; }
.hdr-cta { padding: 8px 16px; }
/* Reading progress along the bottom edge of the header. */
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
html[dir="rtl"] .progress span { transform-origin: 100% 50%; }
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 60; padding: 8px 14px; background: var(--card); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 8px; }

/* ---------- Buttons and inputs ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 600 .94rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; isolation: isolate;
  transition: transform var(--dur-micro) var(--spring), background var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-accent { border: 0; background: var(--grad); color: #1b0f08; box-shadow: var(--glow); overflow: hidden; }
.btn-accent::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform var(--dur-slow) var(--ease); }
.btn-accent:hover { box-shadow: 0 16px 40px -8px rgba(255, 122, 69, .7); color: #1b0f08; }
.btn-accent:hover::after { transform: translateX(120%); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-sm { padding: 6px 14px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn-danger { border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn-wa { background: #15803d; border-color: #15803d; color: #fff; box-shadow: 0 8px 22px -8px rgba(22, 163, 74, .6); }
.btn-wa:hover { background: #116c33; border-color: #116c33; color: #fff; }
.btn .arrow { display: inline-block; transition: transform var(--dur-ui) var(--spring); }
.btn:hover .arrow { transform: translateX(5px); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(5px); }
input, select, textarea { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 13px; min-width: 0; transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 122, 69, .16); }
:is(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Dark stages: home hero, page heads, detail heads ----------
   One look for every "stage": midnight ink, slow aurora light, a fading grid and film grain. */
.hero, .detail-head { position: relative; isolation: isolate; color: var(--on-night); background: var(--night);
  border-radius: 28px; }
/* The detail head clips its light; the hero must not, or the search suggestions get cut off at its edge. */
.detail-head { overflow: hidden; }
/* The hero sits above what follows it (ticker, tiles), so its search suggestions are never covered. */
.hero { z-index: 5; }
.hero::before, .detail-head::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(600px circle at var(--mx, 75%) var(--my, 0%), rgba(255, 122, 69, .16), transparent 60%),
    radial-gradient(70% 90% at 100% 0%, rgba(25, 194, 168, .22), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(138, 21, 56, .30), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night)); }
.hero::after, .detail-head::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .14; border-radius: inherit;
  background-image: var(--grain); mix-blend-mode: overlay; }
.hero { padding: clamp(28px, 5vw, 56px); margin-block-end: 22px; }
.hero h1 { color: #fff; }
.hero .lead, .detail-head .lead { color: var(--on-night-muted); }
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600;
  color: var(--accent-2); margin-block-end: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .85rem; }
.eyebrow .ico { color: var(--accent-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(25, 194, 168, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(25, 194, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 194, 168, 0); } }
.lead { color: var(--muted); max-width: 62ch; margin-block-start: 14px; font-size: 1.08rem; }

/* Home hero: full bleed, taller, with aurora blobs and a grid. */
.hero-home { margin-block: -28px 0; margin-inline: calc(50% - 50vw); border-radius: 0 0 40px 40px; padding-block: clamp(56px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.hero-home .hero-inner { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.hero-home h1 { font-size: clamp(2.4rem, 6.6vw, 5rem); max-width: 15ch; line-height: 1.02; }
html[lang="ar"] .hero-home h1 { line-height: 1.25; }
.hero-home .lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); }
.hero-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.hero-art span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; mix-blend-mode: screen; }
.hero-art span:nth-child(1) { width: 42vw; height: 42vw; inset-inline-end: -6vw; top: -16vw; background: #ff7a45; animation: drift-a 16s ease-in-out infinite alternate; }
.hero-art span:nth-child(2) { width: 36vw; height: 36vw; inset-inline-start: -8vw; bottom: -18vw; background: #19c2a8; animation: drift-b 20s ease-in-out infinite alternate; }
.hero-art span:nth-child(3) { width: 24vw; height: 24vw; inset-inline-start: 38%; top: 20%; background: #8a1538; opacity: .45; animation: drift-c 24s ease-in-out infinite alternate; }
.hero-art span:nth-child(4) { width: 18vw; height: 18vw; inset-inline-end: 22%; bottom: -6vw; background: #4f8cff; opacity: .35; animation: drift-a 28s ease-in-out infinite alternate-reverse; }
.hero-art i { position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); opacity: .7; }
@keyframes drift-a { to { transform: translate(-8%, 14%) scale(1.15); } }
@keyframes drift-b { to { transform: translate(12%, -12%) scale(1.1); } }
@keyframes drift-c { to { transform: translate(-18%, 20%) scale(.85); } }

/* Headline words rise one after another (JS wraps them; without JS they are simply there). */
.split-word { display: inline-block; white-space: pre; }
.js-motion .split-word { opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px);
  animation: word-in var(--dur-hero) var(--ease) forwards; animation-delay: calc(var(--i) * var(--stagger) * 1.5 + 80ms); }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }

/* Search */
/* Above the stats and anything after it, so the suggestion list is never covered. */
.search { position: relative; z-index: 30; display: flex; gap: 10px; margin-block: 30px 0; max-width: 780px; padding: 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out); }
.search:focus-within { border-color: rgba(255, 122, 69, .7); box-shadow: 0 0 0 6px rgba(255, 122, 69, .14), 0 30px 80px -30px rgba(0, 0, 0, .7); }
.search-box { position: relative; flex: 1; }
.search-box input { width: 100%; height: 100%; padding: 14px 16px; padding-inline-start: 48px; border: 0; border-radius: 999px; font-size: 1.04rem;
  background: transparent; color: #fff; }
.search-box input::placeholder { color: var(--on-night-muted); }
.search-box input:focus { box-shadow: none; }
.search-ico { position: absolute; inset-inline-start: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--on-night-muted); pointer-events: none; }
.suggest { position: absolute; inset-inline: -8px; top: calc(100% + 14px); z-index: 25; list-style: none; margin: 0; padding: 6px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  animation: pop-in var(--dur-micro) var(--ease); transform-origin: top; }
.suggest { max-height: min(70vh, 520px); overflow-y: auto; }
.sg-h { padding: 10px 14px 4px; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
html[lang="ar"] .sg-h { letter-spacing: 0; font-size: .8rem; }
.sg-item { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.sg-item:hover, .sg-item.is-active { background: var(--accent-soft); }
/* As Baymard advises: the suggested part stands out, the part already typed does not. */
.sg-t { font-weight: 700; }
.sg-t mark { background: none; color: inherit; font-weight: 400; }
.sg-s { font-size: .8rem; color: var(--ok); font-weight: 600; }
.sg-categories .sg-s, .sg-providers .sg-s { color: var(--muted); font-weight: 500; }
.sg-categories .sg-t::before { content: '▸ '; color: var(--accent); }
.sg-all { margin-block-start: 4px; border-block-start: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--brand); font-weight: 600; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.hero-stats div { display: flex; flex-direction: column; padding: 14px 20px; min-width: 150px; border-radius: 16px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); backdrop-filter: blur(8px); }
.hero-stats dd { margin: 0; font: 800 2.1rem/1.05 var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats dd.stat-date { font-size: 1.2rem; line-height: 1.75; }
.hero-stats dt { order: 2; font-size: .82rem; color: var(--on-night-muted); }

/* Live price ticker: a strip of real cheapest prices that drifts sideways. */
.ticker { position: relative; margin-inline: calc(50% - 50vw); margin-block: 26px 10px; overflow: hidden; padding-block: 6px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: marquee 60s linear infinite; }
html[dir="rtl"] .ticker-track { animation-name: marquee-rtl; }
.ticker:focus-within .ticker-track, .ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }
.tick { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; box-shadow: var(--shadow); transition: transform var(--dur-ui) var(--spring), border-color var(--dur-micro) var(--ease-out); }
.tick:hover { transform: translateY(-3px); border-color: var(--accent); }
.tick strong { font-family: var(--font-head); }
.tick .tick-p { color: var(--ok); font-weight: 700; }
.tick .tick-at { color: var(--muted); font-size: .82rem; }

/* ---------- Sections ---------- */
.block { margin-block: 56px; }
.block > h2, .block-h { margin-block: 0 20px; font-size: clamp(1.45rem, 2.6vw, 2rem); }
.block-h { margin-block-start: 56px; scroll-margin-top: 90px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-block-end: 22px; }
.section-head h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
.kicker { display: block; font: 600 .74rem var(--font); text-transform: uppercase; letter-spacing: .14em; color: var(--accent-ink); margin-block-end: 6px; }
html[lang="ar"] .kicker { letter-spacing: 0; font-size: .85rem; }

/* Category tiles: tilt toward the pointer, with a light that follows it. */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 14px; perspective: 900px; }
.cat-tile { --h: 20; position: relative; display: grid; gap: 4px; padding: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink); text-decoration: none; overflow: hidden; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.cat-tile::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), hsla(var(--h), 95%, 62%, .16), transparent 65%); }
.cat-tile > * { position: relative; }
.cat-tile:hover { box-shadow: var(--shadow-lift); border-color: hsla(var(--h), 80%, 55%, .5); }
.cat-tile:hover::before { opacity: 1; }
.cat-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-block-end: 10px; border-radius: 14px;
  background: linear-gradient(135deg, hsla(var(--h), 95%, 62%, .18), hsla(calc(var(--h) + 40), 95%, 62%, .10)); color: hsl(var(--h), 70%, var(--ico-l));
  font-size: 1.35rem; transform: translateZ(30px); transition: transform var(--dur-ui) var(--spring); }
.cat-tile:hover .cat-ico { transform: translateZ(40px) rotate(-8deg) scale(1.08); }
.cat-name { font: 700 1.02rem var(--font-head); }
.cat-n { font-size: .82rem; color: var(--muted); }
.cat-grid > :nth-child(9n+1) { --h: 14; }  .cat-grid > :nth-child(9n+2) { --h: 172; } .cat-grid > :nth-child(9n+3) { --h: 340; }
.cat-grid > :nth-child(9n+4) { --h: 210; } .cat-grid > :nth-child(9n+5) { --h: 38; }  .cat-grid > :nth-child(9n+6) { --h: 150; }
.cat-grid > :nth-child(9n+7) { --h: 262; } .cat-grid > :nth-child(9n+8) { --h: 0; }   .cat-grid > :nth-child(9n+9) { --h: 190; }

/* How it works and trust band (home). */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.how li { position: relative; list-style: none; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); counter-increment: how; overflow: hidden; }
.how li::before { content: counter(how, decimal-leading-zero); display: block; font: 800 3rem/1 var(--font-head); margin-block-end: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how li h3 { font-size: 1.15rem; margin-block-end: 6px; }
.how li p { color: var(--muted); font-size: .95rem; }
.how { padding: 0; margin: 0; }
.trust { margin-inline: calc(50% - 50vw); margin-block: 64px; padding: clamp(40px, 6vw, 72px) 26px; color: var(--on-night); background: var(--night); position: relative; isolation: isolate; overflow: hidden; }
.trust::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 0% 0%, rgba(25, 194, 168, .25), transparent 60%), radial-gradient(50% 80% at 100% 100%, rgba(255, 122, 69, .22), transparent 60%); }
.trust-inner { max-width: 1200px; margin-inline: auto; }
.trust h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 22ch; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 30px; }
.trust-grid div { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.trust-grid strong { display: block; font: 700 1.1rem var(--font-head); color: #fff; margin-block-end: 6px; }
.trust-grid p { color: var(--on-night-muted); font-size: .95rem; }
.trust-grid .ico { width: 28px; height: 28px; color: var(--teal); margin-block-end: 12px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; transition: transform var(--dur-micro) var(--spring), border-color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), scale var(--dur-micro) var(--spring); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-n { font-size: .76rem; opacity: .6; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 12px 18px; margin-block: 18px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow); }
.toolbar-count { font-weight: 700; margin-inline-end: auto; }
.field-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.field-inline input[type="number"] { width: 92px; padding-block: 7px; }
.toolbar select { padding-block: 7px; border-radius: 999px; }
.check { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Service cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  transition: transform var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out), scale var(--dur-micro) var(--spring); }
/* A light that follows the pointer, and a gradient rim on hover. */
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 122, 69, .10), transparent 60%); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
  background: linear-gradient(135deg, var(--accent), var(--teal)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card:hover::before, .card:hover::after, .card:focus-within::after { opacity: 1; }
.card-cat { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .card-cat { letter-spacing: 0; font-size: .82rem; }
.card-cat .ico { color: var(--accent); }
.card-title { font-size: 1.14rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ''; position: absolute; inset: 0; }   /* the whole card is clickable */
.card-sum { color: var(--muted); font-size: .9rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; margin-block-start: 6px; border-radius: 14px; background: var(--sand); }
.card-price .lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.card-price strong { font: 800 1.4rem/1.2 var(--font-head); font-variant-numeric: tabular-nums; color: var(--ink); }
.card-price .at { font-size: .84rem; color: var(--muted); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pill { padding: 3px 11px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .76rem; font-weight: 700; }
.pill-soft { background: var(--sand); color: var(--muted); }
.card .btn { position: relative; z-index: 1; margin-block-start: 6px; }
.card:hover .btn { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.on-request { color: var(--muted); font-weight: 600; }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-block-start: 36px; }
.empty { text-align: center; padding: 60px 16px; display: grid; gap: 12px; justify-items: center; color: var(--muted); }
.empty h1, .empty h2 { color: var(--ink); }

/* ---------- Detail: the head is a dark stage ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin-block-end: 16px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color var(--dur-micro) var(--ease-out), gap var(--dur-micro) var(--spring); }
.back:hover { color: var(--ink); gap: 10px; }
.detail-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: end;
  padding: clamp(26px, 4vw, 48px); margin-block-end: 34px; }
.detail-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.detail-head .eyebrow { margin-block-end: 12px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat { padding: 14px 18px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); border-radius: 16px; backdrop-filter: blur(8px); }
.stat dt { font-size: .76rem; color: var(--on-night-muted); }
.stat dd { margin: 0; font: 700 1.3rem var(--font-head); color: #fff; font-variant-numeric: tabular-nums; }
.stat-best { grid-column: 1 / -1; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(255, 122, 69, .26), rgba(255, 179, 71, .10)); border-color: rgba(255, 122, 69, .5); }
.stat-best dd { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.stat-best dt { color: var(--accent-2); }
.stat-best::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .18) 50%, transparent 65%);
  transform: translateX(-100%); animation: sheen 4.5s var(--ease) 1s infinite; }
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.detail-head .share { margin-block-start: 18px; }
.detail-head .share .btn:not(.btn-wa) { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--night-line); }
.detail-head .share .btn:not(.btn-wa):hover { background: rgba(255, 255, 255, .14); }
.hint { color: var(--muted); font-size: .88rem; margin-block: 6px 14px; }

.offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.offer { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 6px 18px;
  padding: 20px 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease-out); }
.offer:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
/* The cheapest offer gets a slowly turning gradient rim. */
.offer.is-best { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-2), var(--teal), var(--accent)) border-box;
  border: 2px solid transparent; box-shadow: 0 24px 60px -24px rgba(255, 122, 69, .55); animation: rim 6s linear infinite; }
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes rim { to { --angle: 360deg; } }
.offer.is-quote { background: var(--card-2); }
.offer-rank { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--sand);
  font: 800 1rem var(--font-head); color: var(--muted); }
.is-best .offer-rank { background: var(--grad); color: #1b0f08; box-shadow: var(--glow); }
.offer h3 { font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.offer-meta { font-size: .85rem; color: var(--muted); margin-block-start: 3px; }
.offer-notes { font-size: .9rem; margin-block-start: 8px; color: var(--ink-2); }
.offer-promo { font-size: .86rem; margin-block-start: 8px; padding: 7px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--promo); display: inline-block; }
.offer-warn { font-size: .84rem; margin-block-start: 6px; color: var(--warn); }
.rating { color: var(--warn); font-weight: 700; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.specs div { display: flex; gap: 6px; padding: 5px 11px; border-radius: 9px; background: var(--sand); font-size: .8rem; }
.specs dt { color: var(--muted); }
.specs dt::after { content: ':'; }
.specs dd { margin: 0; font-weight: 600; }
.offer-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.offer-price-box { display: flex; flex-direction: column; align-items: flex-end; text-align: end; }
.offer-price { font: 800 1.45rem var(--font-head); font-variant-numeric: tabular-nums; }
.is-best .offer-price { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-regular { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.price-terms { font-size: .8rem; color: var(--muted); max-width: 24ch; }
.price-year1 { font-size: .84rem; font-weight: 700; color: var(--brand); margin-block-start: 2px; }
.offer-derived { color: var(--muted); font-style: italic; }
/* Shown instead of the side price box on small screens, right under the provider's name. */
.offer-price-m { display: none; font: 800 1.25rem var(--font-head); font-variant-numeric: tabular-nums; margin-block-start: 2px; }
.price-change { font-size: .8rem; font-weight: 600; }
.price-change.is-down { color: var(--ok); }
.price-change.is-up { color: var(--err); }
.offer-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
/* Price bar along the bottom edge: its length is this price relative to the most expensive offer. */
.offer-bar { position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--sand); }
.offer-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--k, 0));
  background: var(--grad-cool); transition: transform var(--dur-hero) var(--ease-out) .15s; }
html[dir="rtl"] .offer-bar span { transform-origin: 100% 50%; }
.is-best .offer-bar span { background: var(--grad); }
.tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font: 700 .7rem var(--font); letter-spacing: .02em; }
.tag-best { background: var(--grad); color: #1b0f08; }
.tag-promo { background: var(--accent-soft); color: var(--promo); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-guide { background: var(--guide-soft); color: var(--guide); }
.tag-fresh { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.empty-cats { margin-block-start: 22px; }
.notice { padding: 12px 16px; border-radius: 14px; margin-block-end: 14px; font-weight: 600; background: var(--info-soft); color: var(--info); animation: notice-in var(--dur-slow) var(--ease); }
.notice-ok { background: var(--ok-soft); color: var(--ok); }
.notice-err { background: var(--err-soft); color: var(--err); }
ul.notice { padding-inline-start: 30px; font-weight: 500; }
@keyframes notice-in { from { opacity: 0; transform: translateY(-8px); } }

.prov-link { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-ui) var(--ease); }
.prov-link:hover { background-size: 100% 1px; }
.report { margin-block-start: 10px; font-size: .82rem; }
.report summary { cursor: pointer; color: var(--muted); display: inline; }
.report summary:hover { color: var(--ink); }
.report form { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 8px; }
.report select, .report input { font-size: .85rem; padding: 6px 9px; }
.report input[name="note"] { flex: 1 1 180px; }
.report-open { margin-block-start: 22px; font-size: .9rem; }
.report-open summary { color: var(--accent-ink, var(--ink)); font-weight: 600; }
.report-open input { flex: 1 1 160px; }

/* Family table, provider table, basket */
.family { margin-block: 34px 14px; }
.family h2 { font-size: 1.3rem; }
.family-tbl tr.is-here td { background: var(--accent-soft); }
.prov-tbl td a { font-weight: 600; }
.claim { margin-block-start: 34px; }
.need-box { margin-block-start: 24px; }
.space-top { margin-block-start: 26px; }
.price-form-tbl td { vertical-align: middle; }
.price-form-tbl .price-in { width: 110px; margin-inline-start: 6px; }
.price-form-tbl .url-in { width: 100%; min-width: 220px; }
.price-form-tbl select { max-width: 320px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.basket-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 18px; margin-block: 20px 30px; }
.basket-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .9rem; }
.basket-form input { width: 76px; text-align: center; }
.basket-actions { grid-column: 1 / -1; display: flex; gap: 10px; margin: 0; }
.basket-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600;
  background: linear-gradient(120deg, var(--accent-soft), var(--accent-soft-2)); color: var(--promo); }

/* ---------- Price alert ---------- */
.alert-box { position: relative; margin-block-start: 40px; padding: 26px 28px; border-radius: var(--radius); display: grid; gap: 14px; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.alert-box::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 100% 0%, rgba(25, 194, 168, .14), transparent 60%), radial-gradient(50% 120% at 0% 100%, rgba(255, 122, 69, .12), transparent 60%); }
.alert-box h2 { font-size: 1.3rem; }
.alert-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
.alert-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.alert-fine { font-size: .8rem; margin: 0; }
.alert-status { max-width: 560px; margin: 60px auto; text-align: center; }

/* ---------- Forms: quote, partner ---------- */
.quote { margin-block-start: 44px; padding: clamp(22px, 3vw, 34px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); scroll-margin-top: 90px; }
.quote > h2 + .quote-form, .quote > h2 + .notice { margin-block-start: 14px; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.quote-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.quote-form label.check input { margin-block-start: 3px; flex: none; }
.quote-form .span-2 { grid-column: 1 / -1; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.quote-actions .hint { margin: 0; }
.quote-actions .hint a { color: inherit; }
.hp { position: absolute; inset-inline-start: -9999px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-block-end: 10px;
  border-radius: 10px; background: var(--grad); color: #1b0f08; font: 800 .95rem var(--font-head); }
.steps strong { display: block; color: var(--ink); }

/* ---------- Content pages ---------- */
.prose { max-width: 72ch; }
.prose h1 { margin-block-end: 6px; }
.prose h2 { margin-block: 32px 10px; }
.prose p, .prose ul, .prose ol { margin-block: 0 12px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-block-end: 6px; }
.prose .lead { margin-block: 10px 8px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; margin-block-start: 40px; padding-block: 56px 34px; color: var(--on-night-muted); background: var(--night); font-size: .9rem; }
.site-footer::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 70% at 10% 0%, rgba(25, 194, 168, .16), transparent 60%), radial-gradient(40% 70% at 90% 100%, rgba(255, 122, 69, .14), transparent 60%); }
.site-footer::after { content: ''; position: absolute; inset-inline: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--teal), transparent); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.footer-brand .logo { font-size: 1.6rem; }
.footer-brand p { margin-block-start: 12px; max-width: 46ch; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.footer-nav a { color: #e6ebf3; font-weight: 500; text-decoration: none; transition: color var(--dur-micro) var(--ease-out); }
.footer-nav a:hover { color: var(--accent-2); }
.footer-small { grid-column: 1 / -1; padding-block-start: 22px; border-block-start: 1px solid var(--night-line); font-size: .82rem; }

/* ---------- Admin console ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 16px; }
main h1 + .notice, main h1 + .chips, main h1 + .hint, main h1 + .tiles, main h1 + .form { margin-block-start: 16px; }
.panel { padding: 22px; margin-block: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-narrow { max-width: 420px; margin-inline: auto; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form label.check { display: inline-flex; font-weight: 500; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .span-2 { grid-column: 1 / -1; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 2px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); text-decoration: none;
  transition: transform var(--dur-micro) var(--spring), box-shadow var(--dur-micro) var(--ease-out); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile strong { font: 800 1.8rem var(--font-head); color: var(--ink); }
.tile-hot { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tbl-wrap { overflow-x: auto; margin-block-start: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 11px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.tbl th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; font-weight: 600; }
.tbl tr:last-child td { border-block-end: 0; }
.tbl tbody tr { transition: background var(--dur-micro) var(--ease-out); }
.tbl tbody tr:hover { background: var(--card-2); }
.nowrap { white-space: nowrap; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form select { padding: 5px 8px; }
.inline-form .reply-price { width: 8em; }
.inline-form input { padding: 5px 8px; }
.admin-offers { margin-block-start: 32px; }
.offer-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.offer-panel-new { border-style: dashed; }
.offer-panel h3 { width: 100%; font-size: 1rem; }
.offer-form { flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.offer-form-who { grid-column: 1 / -1; font-family: var(--font-head); }
.offer-form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.offer-form-actions .hint { margin: 0; }
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 32px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.danger-zone .hint { margin: 0; }
.code { padding: 12px 14px; background: var(--sand); border-radius: 10px; overflow-x: auto; font: .82rem/1.6 ui-monospace, Consolas, monospace; }
code { font: .85em ui-monospace, Consolas, monospace; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions form { margin: 0; }

/* ---------- Scroll reveal ----------
   Elements start visible. JavaScript adds .js-motion to <html>, which hides .reveal items
   until they scroll into view, so nothing is ever hidden without JavaScript. */
.js-motion .reveal { opacity: 0; transform: translateY(26px) scale(.985); }
.js-motion .reveal.is-in { opacity: 1; transform: none;
  transition: opacity var(--dur-hero) var(--ease) var(--d, 0ms), transform var(--dur-hero) var(--ease) var(--d, 0ms), box-shadow var(--dur-ui) var(--ease-out), border-color var(--dur-ui) var(--ease-out); }
.js-motion .hero-inner > :not(h1), .js-motion .detail-head > * { animation: rise var(--dur-hero) var(--ease) both; }
.vt-arrived .detail-head > *, .vt-arrived .detail-head-text > * { animation: none; }   /* it arrived by morphing (vt.js) */
.js-motion.vt-arrived .reveal { opacity: 1; transform: none; }   /* no scroll reveal on a page that arrived by morphing */
.js-motion .hero-inner > :nth-child(3) { animation-delay: calc(var(--stagger) * 4); }
.js-motion .hero-inner > :nth-child(4) { animation-delay: calc(var(--stagger) * 6); }
.js-motion .hero-inner > :nth-child(5) { animation-delay: calc(var(--stagger) * 8); }
.js-motion .detail-head > :nth-child(2) { animation-delay: calc(var(--stagger) * 3); }
@keyframes rise { from { transform: translateY(18px); filter: blur(5px); } }

/* ---------- Scroll-driven depth ----------
   Tied to the scroll position and run by the browser off the main thread. They use the separate
   `translate` / `scale` properties, so they add to (never replace) each element's own transform.
   Browsers without scroll timelines, and visitors who ask for less motion, get a still page. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Home hero: the light drifts down slower than the page (depth), the words lift and fade as it leaves. */
    .hero-home { view-timeline: --hero block; }
    .hero-home .hero-art span { animation-name: drift-a, depth-down; animation-duration: 16s, auto; animation-timing-function: ease-in-out, linear;
      animation-iteration-count: infinite, 1; animation-direction: alternate, normal; animation-fill-mode: none, both;
      animation-timeline: auto, --hero; animation-range: normal, exit 0% exit 100%; }
    .hero-home .hero-art span:nth-child(2) { animation-name: drift-b, depth-down; animation-duration: 20s, auto; }
    .hero-home .hero-art span:nth-child(3) { animation-name: drift-c, depth-down-far; animation-duration: 24s, auto; }
    .hero-home .hero-art span:nth-child(4) { animation-name: drift-a, depth-down-far; animation-duration: 28s, auto; animation-direction: alternate-reverse, normal; }
    .hero-home .hero-inner { animation: lift-out linear both; animation-timeline: --hero; animation-range: exit 0% exit 90%; }
    /* Service page head: the price cards rise a little faster than the text as the head scrolls away. */
    .detail-head { view-timeline: --head block; }
    .detail-head .stat { animation: depth-up linear both; animation-timeline: --head; animation-range: exit 0% exit 100%; }
    .detail-head .stat-best { animation-name: depth-up-near; }
    /* Section titles wipe up into view as they enter. */
    .block-h, .section-head h2, .trust h2, .family h2, .similar h2 {
      animation: wipe-up linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    /* The dark trust band: its light slides across as it passes. */
    .trust { view-timeline: --band block; }
    .trust::before { animation: band-light linear both; animation-timeline: --band; }
  }
}
@keyframes depth-down { to { translate: 0 14vh; } }
@keyframes depth-down-far { to { translate: 0 24vh; scale: 1.1; } }
@keyframes lift-out { to { translate: 0 -8vh; opacity: .15; } }
@keyframes depth-up { to { translate: 0 -24px; } }
@keyframes depth-up-near { to { translate: 0 -48px; } }
@keyframes wipe-up { from { clip-path: inset(0 0 100% 0); translate: 0 .35em; } to { clip-path: inset(0 0 -.3em 0); translate: 0 0; } }
@keyframes band-light { from { translate: -6% 0; scale: 1.2; } to { translate: 6% 0; scale: 1.2; } }
/* Endless decorations stop while they are off screen (app.js sets .is-off). */
.is-off, .is-off * { animation-play-state: paused !important; }

/* ---------- Navigation and feedback ---------- */
/* Header steps aside while reading down, returns on the first move up (app.js sets .is-away). */
.site-header { transition: translate var(--dur-ui) var(--ease-out); }
.site-header.is-away { translate: 0 -100%; transition-duration: var(--dur-exit); transition-timing-function: var(--ease-in); }
/* The current section: a gradient underline that glides to the next section on navigation. */
.hdr-nav a[aria-current="page"] { color: #fff; }
.nav-on { position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--grad); view-transition-name: vt-nav-on; }
.chip.is-on { view-transition-name: vt-chip-on; }
::view-transition-group(vt-nav-on), ::view-transition-group(vt-chip-on) { animation-duration: var(--dur-ui); animation-timing-function: var(--spring-soft); }
/* Pressing gives way a little; letting go springs back (the element's own transitions carry it). */
.card:active { scale: .985; }
.chip:active, .tick:active, .dir-chip:active, .variant-chips a:active { scale: .96; }
/* Saved / compared: the button pops once when switched on (app.js adds .pop). */
.pop { animation: pop var(--dur-slow) var(--spring) both; }
@keyframes pop { 0% { scale: 1; } 35% { scale: 1.28; } 100% { scale: 1; } }
/* Keyboard focus ring settles into place. */
:is(a, button, summary, input, select, textarea):focus-visible { transition: outline-offset var(--dur-micro) var(--ease-out); }
@starting-style { :is(a, button, summary):focus-visible { outline-offset: 7px; } }
/* Forms: a field the visitor got wrong says so after they leave it, with a short nudge; a good one turns green. */
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--err); box-shadow: 0 0 0 4px rgba(194, 52, 31, .12); animation: nudge var(--dur-ui) var(--ease-out); }
input:user-valid:not([type="checkbox"], [type="radio"], [type="search"], [name="q"]), textarea:user-valid { border-color: var(--ok); }
@keyframes nudge { 25% { translate: -4px 0; } 50% { translate: 3px 0; } 75% { translate: -2px 0; } }
/* Disclosures ("Price wrong?", "Suggest a business"): the contents slide in when opened. */
details[open] > :not(summary) { animation: unfold var(--dur-ui) var(--ease-out) both; }
@keyframes unfold { from { opacity: 0; translate: 0 -6px; } }
summary { transition: color var(--dur-micro) var(--ease-out); }
/* Suggestions and the compare bar enter from where they belong. */
.compare-bar:not([hidden]) { animation: bar-in var(--dur-slow) var(--spring-soft) both; }
@keyframes bar-in { from { translate: 0 140%; } }
.copied { animation: pop var(--dur-slow) var(--spring) both; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .detail-head { grid-template-columns: 1fr; }
  .how, .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .hdr { flex-wrap: wrap; gap: 6px 12px; padding-block: 6px; }
  .hdr-nav { order: 3; width: 100%; overflow-x: auto; margin-inline: -8px; scrollbar-width: none; flex-wrap: nowrap; }
  .hdr-nav a { white-space: nowrap; padding: 6px 10px; font-size: .88rem; }
  .hdr-cta { display: none; }
  /* Service and provider pages on a phone: title, then the price, then the rest; no entrance delay. */
  .detail-head { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 22px 18px; }
  .detail-head-text { display: contents; }
  .detail-head .eyebrow { order: 1; margin: 0; }
  .detail-head h1 { order: 2; margin: 0; font-size: 1.7rem; }
  .detail-head .variants-nav { order: 3; }
  .detail-head .stats { order: 4; }
  .detail-head .lead { order: 5; margin: 0; font-size: .95rem; }
  .detail-head .share { order: 6; margin: 0; }
  .js-motion .detail-head > *, .js-motion .detail-head-text > * { animation: none; }
  .hero { border-radius: 22px; }
  .hero-home { border-radius: 0 0 28px 28px; }
  .search { flex-direction: column; border-radius: 22px; }
  .search .btn { width: 100%; }
  .hero-stats div { min-width: 0; flex: 1 1 40%; }
  .hero-stats dd { font-size: 1.6rem; }
  .quote-form, .form-grid, .offer-form, .alert-form { grid-template-columns: 1fr; }
  .toolbar { border-radius: var(--radius); }
  .toolbar-count { width: 100%; }
  .offer { grid-template-columns: auto 1fr; padding: 18px 16px 22px; }
  .offer-buy { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .offer-price-box { align-items: flex-start; text-align: start; }
  .offer-price-box .offer-price { display: none; }
  .offer-price-m { display: block; }
  .basket-results .offer-price-box .offer-price { display: block; }   /* the basket prints no phone copy of the total */
  .is-best .offer-price-m { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .price-terms { max-width: none; }
  /* Category chips: one row that scrolls sideways instead of a wall of chips above the results. */
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 6px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .chip.is-on { order: -1; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

/* ---------- Reduced motion: no movement, no hiding ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-motion .reveal, .js-motion .split-word { opacity: 1; transform: none; filter: none; }
  .cat-tile { transform: none; }
  @view-transition { navigation: none; }
}
.kicker:has(+ .block-h) { margin-block-start: 64px; }
.kicker + .block-h { margin-block-start: 0; }
/* Each word of a gradient phrase carries the gradient itself (the word animation makes them separate boxes). */
.grad-text .split-word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Quote form: tick up to five providers */
.quote-pick { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 14px; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.quote-pick legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.quote-pick label.check { font-weight: 500; }
.quote-pick input:disabled + span { opacity: .45; }
.quote-pick > .hint { grid-column: 1 / -1; margin: 2px 0 0; }
/* Quotes received through the site: kept apart from published prices */
.quoted .quoted-range { margin: 0; display: grid; gap: 4px; }
.quoted .quoted-range strong { font: 700 1.4rem var(--font-head); }
.guide-link { margin: 0 0 18px; font-weight: 600; }

/* Provider's shareable price list (/p/{slug}/menu) */
.menu-sheet { max-width: 820px; margin: 0 auto; }
.menu-head h1 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.menu-tbl td, .menu-tbl th { vertical-align: top; }
.menu-foot { margin-top: 14px; font-size: .85rem; color: var(--muted); }
@media print {
  .site-header, .site-footer, .no-print, .skip, .progress, .compare-bar, .share, .ticker { display: none !important; }
  body { background: #fff !important; color: #000; }
  .menu-sheet { max-width: none; }
  /* everything the entrance animations hide until it scrolls into view, and text painted with a gradient */
  .js-motion .reveal, .js-motion .split-word { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .is-best .offer-price, .is-best .offer-price-m, .grad-text, .grad-text .split-word, .how li::before { background: none !important; color: #000 !important; -webkit-text-fill-color: #000 !important; }
  .btn { color: #000 !important; background: none !important; border: 1px solid #000 !important; box-shadow: none !important; }
  .offer.is-best { box-shadow: none; animation: none; }
}
.rating-pick { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rating-pick legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.rating-pick span, .review-stars { color: #d98b1f; letter-spacing: 1px; }
.review-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.review-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--card); }
.review-list p { margin: 6px 0 0; }
.best-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.best-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--card); }
.best-card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.best-card ol { padding-inline-start: 20px; margin: 10px 0 0; display: grid; gap: 10px; }
.embed-code { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; overflow-x: auto; font-size: .8rem; white-space: pre-wrap; word-break: break-all; }
.menu-foot-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; }
.menu-foot-row .menu-foot { margin: 0; flex: 1 1 260px; }
.menu-qr { width: 132px; flex: none; }
.menu-qr svg { display: block; width: 100%; height: auto; }
@media print { .menu-qr { width: 3.2cm; } }
/* Variants of one service in one card / on its page */
.variant-chips { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 6px; }
.variant-chips a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.variant-chips a:hover { border-color: var(--teal); background: var(--teal-soft); }
.variant-chips strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.variants-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.variants-nav a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--night-line); color: var(--on-night-muted);
  text-decoration: none; font-size: .85rem; background: rgba(255, 255, 255, .04); }
.variants-nav a[aria-current="page"] { background: #fff; color: var(--night); border-color: #fff; font-weight: 700; }
.variants-nav a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.detail-head .variants-nav { margin-block: 14px 4px; }
/* Saved and compare (kept on this device) */
.hdr-icon { position: relative; font-size: 1.05rem; padding-inline: 12px; }
.hdr-count { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #1b0f08; font: 700 .7rem/18px var(--font); text-align: center; }
[data-save][aria-pressed="true"], [data-compare][aria-pressed="true"] { background: var(--teal-soft); border-color: var(--teal); color: var(--ink); }
.detail-head .share [data-save][aria-pressed="true"], .detail-head .share [data-compare][aria-pressed="true"] { background: #fff; color: var(--night); border-color: #fff; }
.compare-bar { position: fixed; inset-inline: 0; bottom: 14px; z-index: 50; width: max-content; max-width: calc(100% - 24px); margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--night); color: #fff;
  box-shadow: var(--shadow-lift); }
.compare-bar[hidden] { display: none; }
.compare-bar .btn:not(.btn-accent) { background: transparent; color: #fff; border-color: var(--night-line); }
.compare-tbl th[scope="row"] { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare-tbl thead th { vertical-align: top; min-width: 170px; }
.compare-sum { font-size: .85rem; color: var(--muted); }
.page-head-plain { margin-block: 8px 18px; }
@media print { .compare-bar { display: none !important; } }
.card-icon { position: relative; z-index: 1; margin-inline-start: auto; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); font-size: .95rem; cursor: pointer; line-height: 1; }
.card-icon + .card-icon { margin-inline-start: 0; }
.card-icon:hover { border-color: var(--teal); }
/* Price history (lowest listed price per day) */
.history { margin-block: 28px; }
.history-chart { display: block; width: 100%; height: 150px; color: var(--teal); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.history-axis { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: .78rem; }
/* Recently viewed (kept in this browser) */
.recent { margin-block: 22px; }
.recent[hidden] { display: none; }
.recent-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.recent-list a { display: grid; gap: 4px; min-width: 200px; max-width: 240px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; }
.recent-list a:hover { border-color: var(--teal); }
.recent-list strong { font-variant-numeric: tabular-nums; }
.drops-tbl .pct { color: var(--ok); font-weight: 700; white-space: nowrap; }
.checked.is-stale { color: var(--err); }
.similar { margin-block: 32px 8px; }
/* All services A–Z */
.dir-index { margin-bottom: 18px; }
.dir-sector { margin-block: 26px; }
.dir-group h3 { font-size: .95rem; color: var(--muted); margin: 14px 0 6px; }
.dir-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dir-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted);
  text-decoration: none; font-size: .88rem; background: transparent; }
.dir-chip.is-covered { border-style: solid; border-color: var(--teal); color: var(--ink); background: var(--teal-soft); font-weight: 600; }
.dir-chip:hover { border-color: var(--teal); color: var(--ink); }

/* ---------- Theme switch ---------- */
.theme-btn svg { width: 18px; height: 18px; display: block; }
.theme-btn .ico-sun { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .ico-moon { display: none; }
}
.theme-btn:hover svg { rotate: -20deg; transition: rotate var(--dur-ui) var(--spring); }
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: theme-in var(--dur-slow) var(--ease-inout); }
@keyframes theme-in { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 30px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 30px)); } }

/* ---------- Empty states: a magnifier that keeps looking ---------- */
div.empty::before { content: ''; width: 76px; height: 76px; border-radius: 24px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3Cpath d='M8 10.5h5' opacity='.6'/%3E%3C/svg%3E") center / 60% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3Cpath d='M8 10.5h5' opacity='.6'/%3E%3C/svg%3E") center / 60% no-repeat;
  animation: seek 3.2s var(--ease-inout) infinite; }
@keyframes seek { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: -10px -4px; rotate: -8deg; } 65% { translate: 9px 3px; rotate: 6deg; } }

/* ---------- Suggestions loading: grey rows with a light sweeping across ---------- */
.sg-skel { position: relative; overflow: hidden; height: 44px; margin: 4px 6px; border-radius: 10px; background: var(--sand); }
.sg-skel:nth-child(2) { width: 82%; }
.sg-skel:nth-child(3) { width: 64%; }
.sg-skel::after { content: ''; position: absolute; inset: 0; translate: -100% 0;
  background: linear-gradient(90deg, transparent, var(--shine), transparent); animation: sweep 1.1s var(--ease-inout) infinite; }
@keyframes sweep { to { translate: 100% 0; } }

/* ---------- Home hero light on the GPU (hero-gl.js) ----------
   The canvas fades in over the CSS aurora; the CSS light then rests (hidden and paused). */
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-hero) var(--ease-out); }
.has-gl .hero-gl { opacity: 1; }
.has-gl span { opacity: 0 !important; animation-play-state: paused !important; transition: opacity var(--dur-hero) var(--ease-out); }

/* ---------- Price-match card: ask other providers to match the cheapest confirmed price ---------- */
.match-card { margin-block: 30px 10px; padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--teal); box-shadow: var(--shadow); }
.match-card h2 { font-size: 1.2rem; margin-block-end: 6px; }
.match-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.match-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 0; border-block-start: 1px solid var(--line); }
.match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0; }

/* ---------- "Price my job" calculator ---------- */
.job-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 18px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.job-calc label { font-weight: 700; }
.job-calc input { width: 110px; }
.job-calc .hint { flex-basis: 100%; margin: 0; }
.job-total { display: flex; flex-direction: column; align-items: flex-end; margin-block-start: 6px; padding: 6px 10px; border-radius: 10px;
  background: var(--teal-soft); font-size: .82rem; color: var(--ink); text-align: end; }
.job-total strong { font: 800 1.05rem var(--font-head); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .job-total { align-items: flex-start; text-align: start; } }

/* ---------- Upkeep planner ---------- */
.planner-form .form-grid { align-items: end; }
.planner-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.planner-list li { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.planner-list time { display: grid; place-items: center; padding: 8px 4px; border-radius: 12px; background: var(--sand);
  font: 800 1.05rem/1.1 var(--font-head); text-align: center; }
.planner-list time span { font: 500 .72rem var(--font); color: var(--muted); }
.planner-list li > div:nth-child(2) { display: grid; gap: 2px; }
.planner-price { display: grid; justify-items: end; text-align: end; }
.planner-price a { text-decoration: none; color: var(--ink); }
.planner-price strong { font: 800 1.1rem var(--font-head); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .planner-list li { grid-template-columns: 64px 1fr; }
  .planner-price { grid-column: 2; justify-items: start; text-align: start; }
}

/* ---------- Round 9: platform label, warranty, ratings, per-visit, filters ---------- */
.offer-filters { margin-block: 4px 12px; }
.offer-warranty { font-size: .86rem; margin-block-start: 6px; color: var(--ok); font-weight: 600; }
.offer-warranty a { color: inherit; }
.g-rating { font-weight: 600; color: var(--ink-2); }
.per-visit { font-size: .82rem; font-weight: 700; color: var(--brand); margin-block-start: 2px; }
.was-check { font-weight: 600; }

/* ---------- Provider logos (own site icon) or a lettered badge ---------- */
.plogo { display: inline-block; flex: none; width: 28px; height: 28px; border-radius: 8px; object-fit: contain; vertical-align: middle;
  margin-inline-end: 8px; background: #fff; border: 1px solid var(--line); }
.plogo-letter { display: inline-grid; place-items: center; font: 800 .8rem/1 var(--font-head); color: #fff; border: 0; }
.plogo-20 { width: 20px; height: 20px; font-size: .66rem; border-radius: 6px; }
.plogo-56 { width: 56px; height: 56px; font-size: 1.4rem; border-radius: 14px; }
img.plogo[width="20"] { width: 20px; height: 20px; border-radius: 6px; margin-inline-end: 6px; }
img.plogo[width="56"] { width: 56px; height: 56px; border-radius: 14px; }
.plogo-c0 { background: #1f5254; } .plogo-c1 { background: #b5461a; } .plogo-c2 { background: #4b3b8a; } .plogo-c3 { background: #0f7a57; }
.plogo-c4 { background: #8a1538; } .plogo-c5 { background: #1e3a8a; } .plogo-c6 { background: #8a5a00; } .plogo-c7 { background: #3d4a5c; }
.offer h3 { align-items: center; }
.card-price .at { display: inline-flex; align-items: center; }
.prov-title { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ---------- Category photos (Unsplash licence) ---------- */
/* Tiles: a photo strip on top, the icon sitting on its lower edge. */
.cat-tile.has-photo { padding-block-start: 0; }
.cat-photo { display: block; margin: 0 -20px 0; height: 104px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.cat-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale var(--dur-slow) var(--ease-out); }
.cat-tile:hover .cat-photo img { scale: 1.06; }
.cat-photo + .cat-ico { margin-block-start: -24px; background: var(--card); box-shadow: var(--shadow); position: relative; }
/* Page heads: the photo fills the far side of the dark stage and fades into it. */
.head-photo { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(46%, 560px); z-index: -1; overflow: hidden; border-radius: inherit;
  pointer-events: none; mask-image: linear-gradient(to left, rgba(0, 0, 0, .55), transparent 92%); -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, .55), transparent 92%); }
html[dir="rtl"] .head-photo { mask-image: linear-gradient(to right, rgba(0, 0, 0, .55), transparent 92%); -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .55), transparent 92%); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
@media (max-width: 760px) {
  .head-photo { width: 100%; mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 70%); -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent 70%); }
  .cat-photo { height: 84px; }
}
/* A photo inside a 3D-tilted tile makes the browser paint many layers: tiles with a photo tilt flat. */
.cat-tile.has-photo { transform-style: flat; }
.cat-photo + .cat-ico { transform: none; }
.cat-tile:hover .cat-photo + .cat-ico { transform: rotate(-8deg) scale(1.08); }
/* The category grid (and its photos) is drawn only when it comes near the screen. */
.cat-grid { content-visibility: auto; contain-intrinsic-size: auto 760px; }
/* Phones: tiles without photos (a hidden lazy image is never downloaded or decoded); the photo on
   category and service page heads stays. */
@media (max-width: 760px) {
  .cat-photo { display: none; }
  .cat-tile.has-photo { padding-block-start: 20px; }
  .cat-photo + .cat-ico { margin-block-start: 0; box-shadow: none; }
}
