/* ============================================================================
   WeFixed — section layouts. Phase 2 appends sections below the hero.
============================================================================ */

/* ============================================================================
   HERO — full-bleed cinematic video with scroll parallax.
   A single progress var --p (0 at top → 1 after one viewport of scroll), set by
   Framer (Next) or GSAP ScrollTrigger (WP), drives every layer via pure CSS, so
   both builds look identical. Video-ready: drop hero.webm/.mp4 + poster in and
   it plays over the animated placeholder; until then the placeholder animates.
============================================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-dk);
  --p: 0;
}

/* Oversized so the parallax translate never reveals an edge. */
.hero__media {
  position: absolute;
  inset: -7% -2%;
  z-index: 0;
  transform: translate3d(0, calc(var(--p) * 9%), 0) scale(calc(1.06 + var(--p) * 0.12));
  transform-origin: center;
  will-change: transform;
}
.hero__video,
.hero__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
/* When no playable source loads, JS adds this and the placeholder shows through. */
.hero__video.is-missing { opacity: 0; }

/* Animated placeholder — reads as a live instrument surface, not a stock blob. */
.hero__placeholder {
  background-color: var(--ink-2);
  background-image:
    radial-gradient(55% 45% at 28% 30%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    radial-gradient(50% 45% at 78% 72%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
}
.hero__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 30px 30px;
}
/* Ambient aurora — soft accent glows that slowly drift and breathe, like the
   gradient backdrops top studios ship (Linear / Vercel). Replaces the old single
   beam that slid across and hard-reset each loop (read as dated). The layer is
   pre-blurred once and only its transform animates, so it's GPU-composited and
   stays smooth on mobile. */
.hero__placeholder::after {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 50% at 26% 30%, color-mix(in srgb, var(--accent) 48%, transparent), transparent 62%),
    radial-gradient(34% 44% at 74% 56%, color-mix(in srgb, var(--accent-h) 38%, transparent), transparent 64%),
    radial-gradient(30% 40% at 50% 86%, color-mix(in srgb, var(--accent-dk) 30%, transparent), transparent 66%);
  filter: blur(44px);
  opacity: 0.8;
  will-change: transform;
  animation: wf-hero-aurora 24s ease-in-out infinite alternate;
}
@keyframes wf-hero-aurora {
  0%   { transform: translate3d(-5%, -4%, 0) scale(1.05) rotate(0deg); }
  50%  { transform: translate3d(4%, 3%, 0)  scale(1.18) rotate(7deg); }
  100% { transform: translate3d(-2%, 6%, 0) scale(1.1)  rotate(-5deg); }
}


/* Darkening scrim for legibility — deepens as you scroll. */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--ink) 30%, transparent) 0%,
      color-mix(in srgb, var(--ink) 52%, transparent) 45%,
      var(--ink) 100%),
    linear-gradient(90deg,
      color-mix(in srgb, var(--ink) 60%, transparent) 0%,
      transparent 55%);
  opacity: calc(0.5 + var(--p) * 0.42);
}

/* Live chip — a touch of motion even before real footage. */
/* Content column — rises and fades on scroll. */
.hero__inner {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__content {
  max-width: 680px;
  padding-block: 128px 112px;
  transform: translate3d(0, calc(var(--p) * -64px), 0);
  opacity: calc(1 - var(--p) * 1.5);
  will-change: transform, opacity;
}
.hero__title { margin-top: 24px; }
.hero__sub { margin-top: 24px; max-width: 34rem; color: var(--text-dk-2); }
.hero__ctas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero__ctas { flex-direction: row; } }

/* Secondary CTA on the dark hero uses dark-surface lines. */
.hero__track { border-color: var(--line-dark); color: var(--text-dk); }
.hero__track:hover { border-color: var(--accent-dk); color: var(--accent-dk); }

/* Accent the final two words of the headline ("write off."). */
.hero__title .word:nth-last-child(-n + 2) > span { color: var(--accent-dk); }

/* Scroll cue. */
.hero__cue {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dk-2);
  opacity: calc(1 - var(--p) * 3);
}
.hero__cue .bar {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--accent-dk), transparent);
  animation: wf-cue 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes wf-cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 640px) { .hero__cue { display: none; } }

/* ============================================================================
   Shared section bits
============================================================================ */
.section__head { max-width: 42rem; }
/* Centred variant — the head block itself centres (not just its text) and the
   stats/content under it follow suit. */
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .label { display: block; }
.section__head h2 { margin-top: 12px; }
.section__head p { margin-top: 12px; color: var(--text-2); }
.section--dark .section__head p { color: var(--text-dk-2); }
.link-accent { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--accent); }
.link-accent .icon { width: 16px; height: 16px; transition: transform var(--dur-micro) var(--ease); }
.link-accent:hover .icon { transform: translate(2px, -2px); }
.scroll-mt { scroll-margin-top: 80px; }

/* ============================================================================
   Instant quote
============================================================================ */
.quote-card {
  margin-top: 40px; border: 1px solid var(--line); background: var(--card);
  border-radius: 18px; padding: 20px;
}
@media (min-width: 640px) { .quote-card { padding: 32px; } }

/* Progress bar — hidden on step 1, then climbs (set inline by quote.js). */
.quote__progress { height: 4px; border-radius: 999px; background: var(--muted-bg); overflow: hidden; }
.quote__progress[hidden] { display: none; }
.quote__progress-fill { display: block; height: 100%; width: 40%; border-radius: inherit;
  background: var(--accent); transition: width 420ms var(--ease-out); }

/* Top bar — back / step label / counter. */
.quote__bar { display: flex; align-items: center; gap: 12px; min-height: 30px; margin-top: 16px; }
.quote__back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500;
  color: var(--text-2); background: none; border: 0; padding: 4px 8px 4px 0; cursor: pointer;
  transition: color var(--dur-micro) var(--ease); }
.quote__back:hover { color: var(--accent); }
.quote__back[hidden] { display: none; }
.quote__steplabel { flex: 1; font-size: 15px; font-weight: 600; }
.quote__counter { font-family: var(--font-mono); font-size: 12px; color: var(--foreground); }
.quote__counter span { color: var(--muted); }

/* Horizontal slider — track translateX is compositor-only; the viewport height
   animates to the active slide so short steps don't leave dead space. */
.quote__viewport { overflow: hidden; margin-top: 18px; transition: height 360ms var(--ease-out); }
.quote__track { display: flex; align-items: flex-start; will-change: transform;
  transition: transform 440ms var(--ease-out); }
.quote__slide { flex: 0 0 100%; min-width: 0; }

.quote__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
/* A lone trailing tile (odd count) stretches full width so mobile has no gap. */
.quote__grid > .quote__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .quote__grid { grid-template-columns: repeat(3, 1fr); }
  .quote__grid > .quote__opt:last-child:nth-child(odd) { grid-column: auto; }
}
.quote__grid--wide { grid-template-columns: 1fr; }
@media (min-width: 640px) { .quote__grid--wide { grid-template-columns: repeat(3, 1fr); } }

.quote__opt {
  min-height: 56px; border: 1px solid var(--line); background: var(--card);
  border-radius: var(--r-btn); padding: 10px 12px; font-size: 14px; font-weight: 500;
  color: var(--foreground); text-align: center; cursor: pointer;
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease);
}
.quote__opt:hover { border-color: var(--accent); }
.quote__opt:active { transform: scale(0.98); }
.quote__opt.is-active {
  border-color: var(--accent); background: var(--accent-bg); color: var(--accent-p);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Staggered tile entrance when a slide becomes current (compositor-only). */
.quote__grid.is-in .quote__opt { animation: wf-quote-pop 440ms var(--ease-out) backwards; }
.quote__grid.is-in .quote__opt:nth-child(1) { animation-delay: 30ms; }
.quote__grid.is-in .quote__opt:nth-child(2) { animation-delay: 65ms; }
.quote__grid.is-in .quote__opt:nth-child(3) { animation-delay: 100ms; }
.quote__grid.is-in .quote__opt:nth-child(4) { animation-delay: 135ms; }
.quote__grid.is-in .quote__opt:nth-child(5) { animation-delay: 170ms; }
.quote__grid.is-in .quote__opt:nth-child(6) { animation-delay: 205ms; }
.quote__grid.is-in .quote__opt:nth-child(7) { animation-delay: 240ms; }
.quote__grid.is-in .quote__opt:nth-child(8) { animation-delay: 275ms; }
.quote__grid.is-in .quote__opt:nth-child(9) { animation-delay: 310ms; }
@keyframes wf-quote-pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Contact slide. */
.quote__summary { font-family: var(--font-mono); font-size: 14px; color: var(--text-2);
  background: var(--muted-bg); border-radius: var(--r-btn); padding: 12px 14px; }
.quote__summary:empty { display: none; }
.quote__form { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .quote__form { flex-direction: row; } }
.quote__form .field { flex: 1; }
.quote__submit { height: 48px; white-space: nowrap; }
.quote__call { margin-top: 16px; }
.quote__done { display: flex; align-items: flex-start; gap: 12px; }
.quote__done[hidden] { display: none; }
.quote__done .check {
  margin-top: 2px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 999px; background: var(--success); color: #fff; flex-shrink: 0;
}
.quote__done .check .icon { width: 16px; height: 16px; }

/* ============================================================================
   Proof strip
============================================================================ */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 16px; padding-block: 56px; }
@media (min-width: 1024px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.proof__num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: -0.02em; }
.proof__label { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dk-2); }

/* ============================================================================
   Repairs grid (sticky headline)
============================================================================ */
.repairs__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .repairs__grid { grid-template-columns: 0.9fr 1.4fr; gap: 64px; } }
@media (min-width: 1024px) { .repairs__head { position: sticky; top: 112px; align-self: start; } }
.repairs__cards { display: grid; gap: 20px; }
@media (min-width: 640px) { .repairs__cards { grid-template-columns: repeat(2, 1fr); } }
/* Mobile: horizontal swipe carousel (mirrors the DEVICES carousel). */
@media (max-width: 639px) {
  .repairs__cards {
    display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden;
    touch-action: pan-x pan-y; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    scroll-padding-inline: 16px; padding-bottom: 8px;
  }
  .repairs__cards::-webkit-scrollbar { display: none; }
  .repairs__cards .repair-card {
    position: static; box-shadow: none;
    flex: 0 0 80%; max-width: 320px; scroll-snap-align: center;
  }
}
.repair-card { display: block; height: 100%; }
.repair-card .media-panel { aspect-ratio: 16 / 10; width: 100%; }
.repair-card h3 { margin-top: 16px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.repair-card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.repair-card .link-accent { margin-top: 12px; }

/* ============================================================================
   Repair tracker
============================================================================ */
.tracker-card { margin-top: 48px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 20px; }
.tracker__cta { margin-top: 36px; }
@media (min-width: 640px) { .tracker__cta { margin-top: 56px; } }
@media (min-width: 640px) { .tracker-card { padding: 32px; } }
.tracker__rail { position: relative; }
.tracker__line { position: absolute; left: 0; right: 0; top: 11px; height: 3px; border-radius: 999px; background: var(--line); }
.tracker__fill { position: absolute; left: 0; top: 11px; height: 3px; width: 0; border-radius: 999px; background: var(--accent); }
.tracker__dots { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tracker__col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tracker__dot {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--background); color: var(--muted);
}
.tracker__dot .icon { width: 12px; height: 12px; display: none; }
.tracker__dot-inner { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.tracker__dot[data-state="done"] { border-color: var(--success); background: var(--success); color: #fff; }
.tracker__dot[data-state="done"] .icon { display: block; }
.tracker__dot[data-state="done"] .tracker__dot-inner { display: none; }
.tracker__dot[data-state="active"] { border-color: var(--accent); background: var(--accent); color: #fff; animation: wf-pulse 1.6s var(--ease-out) infinite; }

.tracker__name { margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
@media (min-width: 640px) { .tracker__name { font-size: 11px; } }
.tracker__time { margin-top: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--text-2); }
@media (min-width: 640px) { .tracker__time { font-size: 11px; } }
.tracker__cards { margin-top: 40px; display: grid; gap: 12px; }
@media (min-width: 640px) { .tracker__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tracker__cards { grid-template-columns: repeat(5, 1fr); } }
.tracker__detail { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-btn); padding: 16px; }
.tracker__detail.is-current { border-color: var(--accent); background: var(--accent-bg); }
.tracker__detail p:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.tracker__detail p:last-child { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-2); }

/* ============================================================================
   Trust — reviews + policies
============================================================================ */
.reviews { margin-top: 40px; display: grid; gap: 20px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-card); padding: 24px; }
.review__stars { display: flex; gap: 2px; color: var(--warning); }
.review__stars .icon { width: 16px; height: 16px; }
.review blockquote { margin-top: 16px; flex: 1; line-height: 1.6; }
.review__who { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 12px; }
.review__avatar {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 999px;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; background: linear-gradient(135deg, var(--accent), var(--accent-p));
}
.review__id { display: flex; flex-direction: column; min-width: 0; }
.review figcaption .name { font-weight: 600; }
.review figcaption .meta { margin-top: 2px; display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
/* Single, compact "why the $65 diagnostic" block — relieves the objection and
   sends the full story to /diagnostic. Replaces the old three-up policy strip
   that just restated points made elsewhere on the page. */
.diag-cta { margin-top: 56px; display: grid; gap: 28px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--card)), var(--card));
  padding: 28px; }
@media (min-width: 768px) { .diag-cta { grid-template-columns: 1.1fr 1fr; gap: 44px; padding: 36px 40px; } }
.diag-cta__title { margin-top: 12px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; }
.diag-cta__lead { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.diag-cta .btn { margin-top: 24px; }
.diag-cta__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.diag-cta__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; }
.diag-cta__points .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; color: var(--accent); }

/* ============================================================================
   Devices grid
============================================================================ */
/* Mobile = swipe carousel (native CSS scroll-snap: 60fps on the compositor, no
   scroll-hijack). Neighbours peek; the centred card pops via a scroll-driven
   animation where supported. ≥640px reverts to the grid. */
.devices {
  margin-top: 40px; display: flex; gap: 16px;
  overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; scroll-padding-inline: 24px; padding-bottom: 8px;
}
.devices::-webkit-scrollbar { display: none; }
.devices > .device-card { scroll-snap-align: center; flex: 0 0 78%; max-width: 320px; }

  @supports (animation-timeline: view(inline)) {
    .devices > .device-card {
      animation: wf-snap-pop linear both;
      animation-timeline: view(inline);
      animation-range: entry 12% exit 88%;
    }
  }

@keyframes wf-snap-pop {
  0%   { opacity: 0.45; transform: scale(0.9); }
  50%  { opacity: 1;    transform: scale(1); }
  100% { opacity: 0.45; transform: scale(0.9); }
}
@media (min-width: 640px) {
  .devices {
    display: grid; grid-template-columns: repeat(3, 1fr);
    overflow: visible; scroll-snap-type: none; padding-bottom: 0;
  }
  .devices > .device-card { flex: initial; max-width: none; opacity: 1; transform: none; animation: none; scroll-snap-align: none; }
}
@media (min-width: 1024px) { .devices { grid-template-columns: repeat(4, 1fr); } }
/* Repairs hub — devices grouped into platform CATEGORY cards (Apple / Android /
   Windows PCs / Game consoles). Each card lists its device pages as chips, so
   adding a brand (e.g. Motorola) just adds a chip and the 4-card layout never
   breaks. Mobile = horizontal scroll-snap carousel (kept from the old design);
   from 680px a 2×2 grid; never an orphan card. */
.cat-cards {
  margin-top: 40px; display: flex; gap: 16px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; scroll-padding-inline: 24px; padding-bottom: 8px;
}
.cat-cards::-webkit-scrollbar { display: none; }
.cat-cards > .cat-card { scroll-snap-align: center; flex: 0 0 84%; max-width: 360px; }
@media (min-width: 680px) {
  .cat-cards { display: grid; grid-template-columns: repeat(2, 1fr);
    overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .cat-cards > .cat-card { flex: initial; max-width: none; }
}
.cat-card { display: flex; flex-direction: column;
  transition: border-color var(--dur-ui) var(--ease), box-shadow var(--dur-ui) var(--ease), transform var(--dur-micro) var(--ease); }
/* Contained hover "zoom" — slight scale (1.02 ≈ +5px each side, well inside the
   16px grid gap, so it never spills past the layout) + accent border/glow. */
@media (hover: hover) and (pointer: fine) {
  .cat-card:hover { transform: scale(1.02); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
}
.cat-card:active { transform: scale(0.99); }
.cat-card__icon .icon { width: 30px; height: 30px; color: var(--accent); }
.cat-card__title { margin-top: 16px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cat-card__note { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.cat-card__chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
/* Chips match the button corner radius (--r-btn) — a slight rounding, not a full
   pill — to stay consistent with the site's buttons. */
.cat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px;
  border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease); }
.cat-chip .icon { width: 13px; height: 13px; opacity: 0.55; }
.cat-chip:hover { border-color: var(--accent); color: var(--accent); }
.cat-chip:hover .icon { opacity: 1; }

.device-card { display: flex; flex-direction: column; height: 100%; }
.device-card > .icon { width: 28px; height: 28px; color: var(--accent); }
.device-card h3 { margin-top: 16px; font-weight: 600; letter-spacing: -0.01em; }
.device-card ul { margin-top: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.device-card .link-accent { margin-top: 16px; }

/* ============================================================================
   Эф20 — before/after slider (proof)
============================================================================ */
.before-after-section { background: var(--cloud); }

/* Two-column proof: conversion copy left, compact portrait slider right */
.ba-layout { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 880px) { .ba-layout { grid-template-columns: 1fr 0.82fr; gap: 56px; align-items: center; } }
.ba-copy { max-width: 34rem; }
.ba-copy .h2 { margin-top: 12px; }
.ba-copy > p { margin-top: 16px; }
.ba-copy__cta { margin-top: 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ba-copy__hint { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* Mobile keeps the original full-width slider; only desktop becomes the compact
   portrait card on the right. */
.ba { position: relative; width: 100%; aspect-ratio: 16 / 10;
  overflow: hidden; border: 1px solid var(--line); border-radius: 18px; user-select: none; }
@media (min-width: 880px) { .ba { aspect-ratio: 4 / 5; max-width: 440px; margin: 0 0 0 auto; } }
.ba__compare { position: absolute; inset: 0; touch-action: pan-y; }
.ba__panel { position: absolute; inset: 0; }
.ba__panel::before { content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 28px 28px; }
.ba__panel--after { background: var(--ink-2); }
.ba__panel--before { background: #0E141F; }
/* The before panel rides above the after panel (and its label), so the two
   labels never bleed through each other when the slider sits mid-frame. */
.ba__clip { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); z-index: 2; }
.ba__crack { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__label { position: absolute; bottom: 14px; z-index: 1; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
/* Before label pinned bottom-left, After label bottom-right — opposite corners,
   each on its own side of the reveal. */
.ba__label--before { left: 14px; color: #8493AE; }
.ba__label--after { right: 14px; text-align: right; color: var(--accent-dk); }
.ba__divider { position: absolute; top: 0; bottom: 0; width: 2px; z-index: 10;
  transform: translateX(-50%); background: rgba(255,255,255,0.8); }
.ba__handle { position: absolute; top: 50%; z-index: 20; width: 42px; height: 42px;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: ew-resize; box-shadow: 0 4px 14px rgba(11,19,32,0.3); }
.ba__handle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 5% offer badge — surfaces as you drag toward the restored side */
.ba__offer { position: absolute; top: 14px; right: 14px; z-index: 3; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 999px; background: var(--accent); color: #fff;
  box-shadow: 0 8px 20px -8px var(--accent);
  opacity: 0; transform: translateY(-6px) scale(0.94);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out); }
.ba__offer strong { font-size: 17px; font-weight: 700; line-height: 1; }
.ba__offer span { font-size: 10.5px; font-weight: 500; line-height: 1.3; max-width: 18ch; }
/* The hidden promo code — an easter egg you only see by dragging to the restored
   side. Styled as a copy-ready chip so it reads as a reward, not body text. */
.ba__code { display: inline-block; font-family: var(--font-mono); font-weight: 700;
  font-size: 11px; letter-spacing: 0.06em; padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.22); color: #fff; }
.ba.is-after .ba__offer { opacity: 1; transform: none; }

/* ============================================================================
   B2B (dark)
============================================================================ */
.b2b__head { margin-bottom: 40px; }
.b2b__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .b2b__grid { grid-template-columns: repeat(2, 1fr); align-items: stretch; } }
.b2b__points { display: grid; gap: 12px; margin: 24px 0 28px; }
.b2b__point { border: 1px solid var(--line-dark); background: var(--ink-2); border-radius: var(--r-card); padding: 20px; }
.b2b__point p:first-child { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dk); }
.b2b__point p:last-child { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--text-dk-2); }
.b2b .btn--primary { margin-top: 32px; }

/* ============================================================================
   Location + mail-in
============================================================================ */
.location__grid { margin-top: 40px; display: grid; gap: 20px; }
@media (min-width: 1024px) { .location__grid { grid-template-columns: repeat(2, 1fr); } }
.location__card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 24px; }
@media (min-width: 640px) { .location__card { padding: 32px; } }
.location__row { display: flex; align-items: flex-start; gap: 12px; }
.location__row + .location__row { margin-top: 20px; }
.location__row .icon { margin-top: 2px; width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.location__row .accent { color: var(--accent); font-weight: 500; margin-top: 4px; }
.location__actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .location__actions { flex-direction: row; } }
.mail-steps { margin-top: 24px; display: grid; gap: 12px; }
.mail-step { display: flex; align-items: flex-start; gap: 12px; }
.mail-step__n { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; background: var(--accent-bg); font-family: var(--font-mono); font-size: 14px; color: var(--accent-p); }
.mail-step p:first-child { font-weight: 500; }
.mail-step p:last-child { font-size: 14px; color: var(--text-2); }

/* Location template (тираж) — mirrors Next /locations/[slug] */
.loc-lead { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .loc-lead { grid-template-columns: 1.6fr 1fr; } }
.loc-lead__more { margin-top: 16px; max-width: 42rem; color: var(--text-2); line-height: 1.7; }
.loc-nap { padding: 24px; }
.loc-nap--area { background: var(--accent-bg); }
.loc-nap a:not(.btn) { color: inherit; }
.loc-nap a:not(.btn):hover { color: var(--accent); }
.loc-ways { margin-top: 12px; display: grid; gap: 8px; }
.loc-ways li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.6; }
.loc-ways .icon { margin-top: 2px; width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.loc-band { margin-top: 40px; }
.loc-local { margin-top: 48px; }
.loc-chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.loc-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.loc-devices { margin-top: 40px; }
.loc-devices__grid { margin-top: 16px; display: grid; gap: 8px; list-style: none; padding: 0; }
@media (min-width: 640px) { .loc-devices__grid { grid-template-columns: repeat(2, 1fr); } }
.loc-devices__grid a { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; transition: border-color var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease); }
.loc-devices__grid a:hover { border-color: var(--accent); color: var(--accent); }
.loc-devices__grid .icon { width: 16px; height: 16px; flex-shrink: 0; }
.loc-devices__more { border-style: dashed !important; color: var(--text-2); }

/* ============================================================================
   FAQ (native accordion) + final CTA
============================================================================ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding-block: 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .sign { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__item summary .sign::before,
.faq__item summary .sign::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform var(--dur-ui) var(--ease); }
.faq__item summary .sign::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__item summary .sign::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] summary .sign::after { transform: scaleY(0); }
.faq__answer { padding-bottom: 20px; color: var(--text-2); line-height: 1.6; }
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(40px, 7vw, 72px); line-height: 0.97; letter-spacing: -0.035em; font-weight: 700; }
.final-cta__btn { margin-top: 32px; display: flex; justify-content: center; }
.final-cta__note { margin-top: 20px; font-size: 14px; color: var(--text-dk-2); }
.final-cta__note a { color: var(--accent-dk); text-underline-offset: 4px; }
.final-cta__note a:hover { text-decoration: underline; }

/* ============================================================================
   Эф4 — services index (image-swap on hover/click)
============================================================================ */
.svc__grid { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 1024px) { .svc__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.svc__list { list-style: none; margin: -8px 0 0; padding: 0; }
.svc__row { border-bottom: 1px solid var(--line); }
.svc__link { display: flex; align-items: center; gap: 16px; padding: 20px 0; text-decoration: none; }
.svc__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: color var(--dur-ui) var(--ease); }
.svc__label { flex: 1; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--text); transition: color var(--dur-ui) var(--ease); }
.svc__arrow { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); opacity: 0;
  transform: translateX(-4px); transition: opacity var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease); }
.svc__row.is-active .svc__num,
.svc__row.is-active .svc__label,
.svc__row.is-active .svc__arrow { color: var(--accent); }
.svc__row.is-active .svc__arrow { opacity: 1; transform: translateX(0); }
@media (min-width: 1024px) { .svc__media-wrap { position: sticky; top: 112px; align-self: start; } }
.svc__media { position: relative; aspect-ratio: 4 / 3; width: 100%; }
.svc__panel { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms var(--ease); }
.svc__panel.is-active { opacity: 1; }
.svc__desc { margin-top: 16px; max-width: 28rem; }
.svc__more { margin-top: 48px; display: flex; justify-content: center; }
@media (min-width: 1024px) { .svc__more { margin-top: 64px; } }
.svc__more .btn { border-radius: 999px; padding-inline: 32px; }
.svc__more .btn .icon { transition: transform var(--dur-ui) var(--ease); }
.svc__more .btn:hover .icon { transform: translateX(4px); }

.location__map { margin-top: 40px; }
.location__map + .location__grid { margin-top: 20px; }

/* ============================================================================
   Page hero (mirrors the Next PageShell header) + Enterprise page
============================================================================ */
.page-hero { background: var(--ink); color: var(--text-dk); padding: 128px 0 64px; }
.container--narrow { max-width: 64rem; margin-inline: auto; }
.breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 24px;
  font-size: 12px; color: var(--text-dk-2); }
.breadcrumb a { color: var(--text-dk-2); }
.breadcrumb a:hover { color: var(--accent-dk); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }
.page-hero .label { color: var(--accent-dk); }
.page-hero__title { margin-top: 12px; font-family: var(--font-heading);
  font-size: clamp(34px, 6vw, 64px); font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; max-width: 22ch; }
.page-hero__intro { margin-top: 20px; max-width: 42rem; color: var(--text-dk-2); line-height: 1.6; }

/* Эф18/19 grid as the page hero background + scrim (mirrors Next GridBoxes). */
.page-hero--grid { position: relative; overflow: hidden; }
/* Scroll-parallax depth: the grid lags behind page scroll (CSS scroll timeline —
   compositor, 60fps, no gyro permission). Clipped by the hero's overflow. */
.page-hero--grid .hero-depth { position: absolute; inset: 0; }

  @supports (animation-timeline: scroll()) {
    .page-hero--grid .hero-depth {
      animation: wf-hero-depth linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }
  }

@keyframes wf-hero-depth { to { transform: translateY(60px); } }
.page-hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 30%, rgba(11,19,32,0.55) 60%, transparent); }
.page-hero__inner { position: relative; }
/* 3D-look grid (multi-axis skew, like the original) that STILL fills the hero.
   The grid is a FIXED-size plane (cols×rows×cell, independent of the hero box);
   the dual skew gives the multi-plane 3D tilt, and the centre + over-scale make
   the skewed plane blanket the whole hero at any aspect. Coverage verified
   programmatically at 360/414/1024/1280. Radial mask fades the far edge. */
.boxes { position: absolute; left: 50%; top: 50%; display: flex;
  transform: translate(-50%, -50%) skewX(-26deg) skewY(8deg) scale(1.55) translateZ(0);
  transform-origin: center;
  -webkit-mask: radial-gradient(120% 95% at 62% 32%, #000 42%, transparent 92%);
  mask: radial-gradient(120% 95% at 62% 32%, #000 42%, transparent 92%); }
.boxes__col { display: flex; flex-direction: column; }
.boxes__cell { width: 64px; height: 34px;
  border-right: 1px solid rgba(125,160,230,0.20); border-bottom: 1px solid rgba(125,160,230,0.20);
  transition: background-color 0.2s var(--ease); }
.boxes__cell:hover { background: var(--accent); transition-duration: 0s; }
.boxes__cell.is-lit { background: var(--accent); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--accent) 70%, transparent); }

/* Media parallax-zoom placeholder (driven by --p from media-zoom.js). */
.media-zoom { position: relative; overflow: hidden; border-radius: 14px; }
.media-zoom__inner { display: flex; width: 100%; height: 100%; will-change: transform;
  transform-origin: center;
  /* Gentle symmetric zoom only — the old translateY(+24px)+scale(1.12) pushed the
     content down and cropped the top of the placeholder. */
  transform: scale(calc(1.0 + 0.06 * var(--p, 0))); }


.ent-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ent-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ent-grid { grid-template-columns: 1fr 1fr 1fr; } }

.ent-band { position: relative; overflow: hidden; margin-top: 48px;
  display: grid; gap: 32px; align-items: center; border: 1px solid var(--line-dark);
  border-radius: 18px; background: var(--ink); padding: 32px; }
@media (min-width: 1024px) { .ent-band { grid-template-columns: 1fr auto; padding: 48px; } }
.ent-band .label { color: var(--accent-dk); }
.on-dark { color: var(--text-dk); margin-top: 12px; }
.on-dark-2 { color: var(--text-dk-2); margin-top: 12px; max-width: 32rem; }
.ent-band__entropy { margin-inline: auto; flex-shrink: 0; }

.ent-form { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 640px) { .ent-form { grid-template-columns: 1fr 1fr; } }
.ent-form input { height: 48px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--bg); padding-inline: 16px; font: inherit; }
.ent-form input:focus-visible { outline: none; border-color: var(--accent); }
.ent-form__wide { grid-column: 1 / -1; }

/* ============================================================================
   Shared secondary-page bits (buy / sell / diagnostic / track)
============================================================================ */
.page-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .page-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .page-grid { grid-template-columns: 1fr 1fr 1fr; } }

.buy-card { display: flex; flex-direction: column; }
.buy-card .media-panel { aspect-ratio: 4 / 3; width: 100%; }
.buy-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 20px; }
.buy-card__name { font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 1.2; }
.buy-card__grade { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--text-2); }
.buy-card__foot { display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-card__price { font-family: var(--font-heading); font-size: 24px; font-weight: 700; }

.notice-accent { display: flex; align-items: center; gap: 12px; margin-top: 40px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--accent-bg);
  padding: 20px; font-size: 14px; line-height: 1.6; }
.notice-accent .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }

.diag-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .diag-list { grid-template-columns: 1fr 1fr; } }
.diag-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.6; }
.diag-list .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }

/* Track page — portal CTA hint, stage descriptions, "how it works" points. */
.track-hint { margin-top: 18px; font-size: 13px; color: var(--text-dk-2); }
.track-stages { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.track-stage { display: flex; gap: 16px; align-items: baseline; padding: 16px 0;
  border-top: 1px solid var(--line); }
.track-stage:first-child { border-top: 0; }
.track-stage__n { font-size: 12px; color: var(--accent); flex-shrink: 0; padding-top: 2px; }
.track-stage__name { font-weight: 600; }
.track-stage__desc { margin-top: 4px; line-height: 1.6; }
.track-points { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 760px) { .track-points { grid-template-columns: repeat(3, 1fr); } }
.track-point__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent-p); }
.track-point__icon .icon { width: 22px; height: 22px; }
.track-point__label { margin-top: 16px; font-size: 17px; font-weight: 600; }
.track-point__desc { margin-top: 8px; line-height: 1.6; }

/* ============================================================================
   Service template (тираж) — mirrors the Next gold-standard service page
============================================================================ */
.svc-lead { margin-top: 32px; max-width: 42rem; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.svc-cards { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 1024px) { .svc-cards { grid-template-columns: 1.5fr 1fr; } }
.svc-symptoms { background: var(--muted-bg); }
.svc-symptoms ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 640px) { .svc-symptoms ul { grid-template-columns: 1fr 1fr; } }
.svc-symptoms li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.svc-symptoms .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.svc-diag { background: var(--accent-bg); }
.svc-qa { margin-top: 48px; display: grid; gap: 32px; }
.svc-qa h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.svc-qa p { margin-top: 8px; max-width: 42rem; color: var(--text-2); line-height: 1.6; }
.svc-why { margin-top: 48px; }
.svc-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.svc-trust span { display: inline-flex; align-items: center; gap: 8px; }
.svc-trust .icon { width: 16px; height: 16px; color: var(--accent); }

/* ============================================================================
   Repairs hub (/repair)
============================================================================ */
.repair-hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .repair-hero { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.repair-hero__copy .page-hero__title { margin-top: 12px; }
.repair-hero__art { border: 1px solid var(--line-dark); border-radius: 16px; background: var(--ink-2); padding: 22px; }
.repair-hero__art .cpu-svg { width: 100%; height: auto; }

.svc-hub { margin-top: 40px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-hub { grid-template-columns: repeat(3, 1fr); } }
.svc-hub__card { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
  font-weight: 600; color: var(--text); transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.svc-hub__card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent-glow); }
.svc-hub__arrow { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; transition: transform 0.15s var(--ease); }
.svc-hub__card:hover .svc-hub__arrow { transform: translate(2px, -2px); }
.svc-hub__card--cta { background: color-mix(in srgb, var(--accent) 8%, var(--card)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--accent-p); }
.svc-hub__card--cta:hover .svc-hub__arrow { transform: translateX(3px); }

.repair-stats { margin-top: 40px; display: grid; gap: 28px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .repair-stats { grid-template-columns: repeat(4, 1fr); } }
.repair-stat { text-align: center; }
.repair-stat__n { font-family: var(--font-mono); font-size: clamp(28px, 5vw, 44px); font-weight: 700; color: var(--text-dk); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.repair-stat__label { margin-top: 6px; font-size: 13px; color: var(--text-dk-2); }

/* ── Locations hub (/locations) ───────────────────────────────────────────── */
/* Hero reuses .loc-hero (dotmap→globe). Hub variant is taller and holds an H1. */
.loc-hero--hub { margin-top: 28px; }
@media (min-width: 640px) { .loc-hero--hub, .loc-hero--hub .loc-hero__text { min-height: 520px; } }
.loc-hero--hub .loc-hero__text { max-width: 40rem; }
.loc-hero--hub .h2.on-dark { font-size: clamp(28px, 4.4vw, 46px); }
.loc-hero--hub .hero__ctas { margin-top: 28px; }

/* Light outline button for use over dark surfaces (loc-hero, section--dark). */
/* Secondary button for dark surfaces — a subtle glassy fill so it reads as a
   real button next to the primary (not a thin hairline outline). */
.btn--ghost-light { background: color-mix(in srgb, #fff 7%, transparent); color: var(--text-dk);
  border: 1.5px solid color-mix(in srgb, var(--text-dk) 30%, transparent); padding: 14px 28px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { border-color: color-mix(in srgb, var(--accent) 70%, var(--text-dk));
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; }

/* Flagship card: details + a tappable map placeholder (links to Google Maps). */
.loc-flagship { margin-top: 40px; display: grid; gap: 20px; }
@media (min-width: 900px) { .loc-flagship { grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: stretch; } }
.loc-flagship__info { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 24px; }
@media (min-width: 640px) { .loc-flagship__info { padding: 32px; } }
.loc-flagship__hoods { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.loc-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.loc-chip { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-p); }
.loc-flagship__map { position: relative; display: grid; place-content: center; gap: 12px; min-height: 240px;
  border: 1px solid var(--line-dark); border-radius: 18px; overflow: hidden; text-align: center; color: var(--text-dk);
  background:
    radial-gradient(120% 120% at 70% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--text-dk) 8%, transparent) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--text-dk) 8%, transparent) 0 1px, transparent 1px 26px),
    var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.loc-flagship__map:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -18px color-mix(in srgb, var(--accent) 60%, transparent); }
/* Live embedded Google Map variant — the iframe fills the card, no hover lift. */
.loc-flagship__map--live { display: block; padding: 0; background: none; min-height: 320px; }
.loc-flagship__map--live:hover { transform: none; box-shadow: none; }
.loc-flagship__map--live iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.loc-flagship__pin { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 999px;
  background: var(--accent); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 22%, transparent); }
.loc-flagship__pin .icon { width: 24px; height: 24px; }
.loc-flagship__maplabel { font-size: 13px; color: var(--text-dk-2); }

/* Service-area directory: one balanced responsive grid of all cities (region on
   each card), so uneven region sizes never leave tall empty columns. Live cities
   link; the rest are honest "served from Arlington" (no broken links). */
.loc-dir { margin-top: 40px; list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .loc-dir { gap: 14px; grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .loc-dir { grid-template-columns: repeat(4, 1fr); } }
/* Compact cards on small two-up screens so the list doesn't stretch the page. */
@media (max-width: 759px) {
  .loc-dir__card { padding: 13px 13px 12px; gap: 6px; border-radius: 12px; }
  .loc-dir__city { font-size: 15px; }
  .loc-dir__region { font-size: 10px; }
  .loc-dir__tag { font-size: 11px; padding: 2px 8px; }
}
.loc-dir__item { display: flex; }
.loc-dir__card { display: flex; flex-direction: column; gap: 9px; width: 100%; padding: 18px 18px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
a.loc-dir__card { color: var(--text); transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
a.loc-dir__card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 3px var(--accent-glow); }
.loc-dir__card--flag { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.loc-dir__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.loc-dir__city { font-weight: 600; font-size: 16px; }
.loc-dir__star { color: var(--accent); }
.loc-dir__arrow { width: 16px; height: 16px; color: var(--accent); flex: 0 0 auto; transition: transform 0.15s var(--ease); }
a.loc-dir__card:hover .loc-dir__arrow { transform: translate(2px, -2px); }
.loc-dir__region { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.loc-dir__tag { align-self: flex-start; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text-2); }
.loc-dir__tag--live { background: var(--accent-bg); color: var(--accent-p); }
.loc-dir__tag--flag { background: var(--accent); color: #fff; }

/* Mail-in band: copy beside the 3 steps. */
.loc-mailin { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .loc-mailin { grid-template-columns: 1fr 1fr; gap: 56px; } }
.loc-mailin__copy .h2 { margin-top: 14px; }
.loc-mailin__copy > p { margin-top: 16px; }
.loc-mailin__copy .btn { margin-top: 28px; }
.loc-mailin__steps { margin-top: 0; }

/* ── Contact (/contact) ───────────────────────────────────────────────────── */
.contact-methods { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .contact-methods { grid-template-columns: repeat(3, 1fr); } }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  color: var(--text); transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.contact-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 0 0 3px var(--accent-glow); }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent-p); }
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card__label { font-size: 19px; }
.contact-card__desc { color: var(--text-2); font-size: 15px; line-height: 1.55; flex: 1 1 auto; }
.contact-card .link-accent { margin-top: 4px; }
/* Two-card variant (buy & sell band): a 3-col grid left a dead third column on
   desktop. Cap the width and split into two balanced columns, centred — the pair
   reads as an intentional feature row instead of two cards stranded on the left. */
.contact-methods--duo { max-width: 920px; margin-inline: auto; }
@media (min-width: 768px) { .contact-methods--duo { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.contact-methods--duo .contact-card { padding: 34px 30px; }

/* Centre a lone CTA under a narrow content column (e.g. /buy "Ask about
   availability") instead of letting it hug the left edge. */
.actions-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* Sell / trade-in offer form (page-sell #offer). */
.offer-card { margin-top: 40px; border: 1px solid var(--line); background: var(--card);
  border-radius: 18px; padding: 20px; }
@media (min-width: 640px) { .offer-card { padding: 32px; } }
.offer-form { display: flex; flex-direction: column; gap: 16px; }
.offer-form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .offer-form__row { grid-template-columns: 1fr 1fr; } }
.offer-field { display: flex; flex-direction: column; gap: 7px; }
.offer-field > span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.offer-field select.field { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' 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: 36px; }
.offer-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.offer-done { display: flex; align-items: flex-start; gap: 12px; }
/* The done panel only appears after submit. Its display:flex was overriding the
   [hidden] attribute, so it showed glued under the button on load — re-assert it. */
.offer-done[hidden] { display: none; }
.offer-done .check { display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border-radius: 999px; background: var(--success); color: #fff; }
.offer-done .check .icon { width: 17px; height: 17px; }
.offer-done p { font-size: 16px; line-height: 1.5; }

/* ── Partners / brands marquee (home) ─────────────────────────────────────────
   Two opposing infinite rows, muted by default and lifting to ink on hover, with
   gradient edge-fades and pause-on-hover. Pure CSS (compositor) — no LCP cost. */
.partners__rows { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.partners__row { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.partners__track { display: flex; width: max-content; will-change: transform;
  animation: wf-marquee 38s linear infinite; }
.partners__row--reverse .partners__track { animation-duration: 46s; animation-direction: reverse; }
.partners__group { display: flex; align-items: center; }
/* Pause both rows while the strip is hovered so a logo can be read. */
.partners__rows:hover .partners__track { animation-play-state: paused; }
.partner { flex: none; display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 38px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap; color: var(--muted);
  opacity: 0.75; transition: color var(--dur-ui) var(--ease), opacity var(--dur-ui) var(--ease); }
.partner:hover { color: var(--text); opacity: 1; }
.section--dark .partner:hover, .partners.section--dark .partner:hover { color: var(--text-dk); }
.partners__note { margin: 26px auto 0; max-width: 44rem; text-align: center;
  font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ── Device pages (template-device) ───────────────────────────────────────── */
/* Эф22 tablet rise. --rise (0→1, set by tablet-rise.js) drives a perspective
   rotateX + translateY + scale, so ONLY transform/opacity animate (compositor).
   Defaults to 1 (upright) if JS never runs — the tablet just sits there, never
   stuck tilted. */
.tablet-stage { overflow: hidden; }
.tablet-stage .container { display: flex; flex-direction: column; align-items: center; }
.tablet-rise { perspective: 1300px; width: 100%; max-width: 600px; margin-inline: auto; }
.tablet {
  position: relative; width: 100%; aspect-ratio: 4 / 3; margin-inline: auto;
  border-radius: 24px; padding: 10px;
  background: linear-gradient(150deg, #2b3650 0%, #141d30 46%, #0a111f 100%);
  box-shadow: 0 30px 70px -28px rgba(11, 19, 32, 0.55),
    inset 0 0 0 1px rgba(160, 190, 240, 0.26), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  transform-origin: center 78%;
  transform:
    rotateX(calc((1 - var(--rise, 1)) * 64deg))
    translateY(calc((1 - var(--rise, 1)) * 38px))
    scale(calc(0.9 + var(--rise, 1) * 0.1));
  opacity: calc(0.45 + var(--rise, 1) * 0.55);
  will-change: transform, opacity;
}
.tablet__screen {
  position: relative; width: 100%; height: 100%; border-radius: 15px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 18%, #16223c 0%, #0a1020 70%);
  box-shadow: inset 0 0 0 1px rgba(125, 160, 230, 0.12);
}
.tablet__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 36% at 50% 30%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    radial-gradient(34% 30% at 72% 78%, color-mix(in srgb, var(--accent-h) 40%, transparent), transparent 72%);
  opacity: 0.85;
}
.tablet__mark { position: relative; width: 84px; height: 84px; opacity: 0.92; }
.tablet__cam {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 999px;
  background: rgba(159, 176, 200, 0.65);
}
.tablet__shadow {
  width: 64%; height: 26px; margin: 18px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 19, 32, 0.28), transparent 75%);
  transform: scale(calc(0.6 + var(--rise, 1) * 0.4));
  opacity: calc(0.3 + var(--rise, 1) * 0.5);
}
.tablet-stage__copy { max-width: 40rem; margin: 44px auto 0; text-align: center; }
.tablet-stage__copy .h2 { margin-top: 10px; }
.tablet-stage__copy p { margin-top: 12px; }

/* Phone variant of the rise mockup (Эф22) for phone device pages — same --rise
   drive (tablet-rise.js), real phone proportions + a notch. Compositor-only. */
.phone-rise { perspective: 1300px; width: 100%; max-width: 165px; margin-inline: auto; }
@media (min-width: 680px) { .phone-rise { max-width: 220px; } }
.phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19.3; margin-inline: auto;
  border-radius: 38px; padding: 5px;
  background: linear-gradient(150deg, #2b3650 0%, #141d30 46%, #0a111f 100%);
  box-shadow: 0 30px 70px -28px rgba(11, 19, 32, 0.55),
    inset 0 0 0 1px rgba(160, 190, 240, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.10);
  transform-origin: center 78%;
  transform:
    rotateX(calc((1 - var(--rise, 1)) * 64deg))
    translateY(calc((1 - var(--rise, 1)) * 38px))
    scale(calc(0.9 + var(--rise, 1) * 0.1));
  opacity: calc(0.45 + var(--rise, 1) * 0.55);
  will-change: transform, opacity;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 16%, #16223c 0%, #0a1020 70%);
  box-shadow: inset 0 0 0 1px rgba(125, 160, 230, 0.12);
}
.phone__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 26% at 50% 24%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    radial-gradient(32% 22% at 66% 82%, color-mix(in srgb, var(--accent-h) 40%, transparent), transparent 72%);
  opacity: 0.85;
}
.phone__mark { position: relative; width: 58px; height: 58px; opacity: 0.92; }

/* On-screen brand: the two-tone WeFixed wordmark (white "We" + accent "Fixed",
   like the real logo), glowing. The light sheen is masked to the LETTERS, so it
   shimmers across the text with no hard rectangle box. The <img> always renders;
   if the mask fails the logo simply shows without the sheen (never a box). */
.dev-mark { position: relative; z-index: 1; width: 60%; }
.tablet__screen .dev-mark { width: 46%; }
.phone__screen .dev-mark { width: 72%; }
.dev-mark img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--accent) 50%, transparent));
}
.dev-mark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%);
  background-size: 240% 100%; background-repeat: no-repeat;
  -webkit-mask: url('../images/wefixed-logo-full-dark.svg') center / contain no-repeat;
  mask: url('../images/wefixed-logo-full-dark.svg') center / contain no-repeat;
  animation: dev-shimmer 3.4s ease-in-out infinite;
}
@keyframes dev-shimmer { 0% { background-position: 150% 0; } 55%, 100% { background-position: -80% 0; } }
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 30%; height: 18px; border-radius: 999px; z-index: 1;
  background: #05080f; box-shadow: inset 0 0 0 1px rgba(125, 160, 230, 0.16);
}
/* Android phones: a small centred hole-punch camera instead of the iPhone island. */
.phone--punch .phone__notch { width: 8px; height: 8px; border-radius: 50%; top: 11px;
  background: #05080f; box-shadow: inset 0 0 0 1px rgba(125,160,230,0.30), 0 0 4px rgba(0,0,0,0.5); }
.phone__shadow {
  width: 52%; height: 24px; margin: 18px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 19, 32, 0.28), transparent 75%);
  transform: scale(calc(0.6 + var(--rise, 1) * 0.4));
  opacity: calc(0.3 + var(--rise, 1) * 0.5);
}

/* "What we fix" issue cards */
.dev-issues { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dev-issues { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dev-issues { grid-template-columns: repeat(3, 1fr); } }
.dev-issue { padding: 26px 24px; border-radius: 18px; }
/* Process steps (intersection pages): a thin accent bar draws across the top of
   each step as it scrolls in — like a test stage completing — staggered behind
   the card's reveal. Compositor-only (scaleX). */
.dev-issues--steps .dev-issue { position: relative; overflow: hidden; }
.dev-issues--steps .dev-issue::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--reveal-delay, 0ms) + 90ms);
}
html.reveal-js .dev-issues--steps .dev-issue.is-visible::before { transform: scaleX(1); }
.dev-issue__icon { display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--accent-bg); color: var(--accent-p); }
.dev-issue__icon .icon { width: 23px; height: 23px; }
.dev-issue__title { margin-top: 14px; font-size: 18px; font-weight: 600; }
.dev-issue__desc { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ── About (/about) ───────────────────────────────────────────────────────── */
.about-story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .about-story { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.about-story__copy .text-2 { margin-top: 16px; }
.about-story__media { aspect-ratio: 4 / 3; width: 100%; min-height: 240px; }

.team-grid { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
.team-card { display: flex; flex-direction: column; }
.team-card__photo { aspect-ratio: 1 / 1; width: 100%; }
.team-card__name { margin-top: 16px; font-size: 18px; }
.team-card__role { margin-top: 4px; font-size: 12px; letter-spacing: 0.04em; color: var(--accent); }
.team-card__focus { margin-top: 12px; }
.team-card__bio { margin-top: 12px; font-size: 14px; line-height: 1.6; }

.about-values { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .about-values { grid-template-columns: repeat(2, 1fr); } }
.about-value { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.about-value__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg); color: var(--accent-p); }
.about-value__icon .icon { width: 22px; height: 22px; }
.about-value__title { margin-top: 16px; font-size: 17px; }
.about-value .text-2 { margin-top: 8px; font-size: 14px; line-height: 1.6; }

/* ── Repair Journal (/blog, single, archive) ──────────────────────────────── */
.journal-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .journal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card { display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease), box-shadow 0.28s var(--ease); }
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 0 3px var(--accent-glow); }
/* Touch: a tapped card gives the same lift (phones have no hover). */
.article-card:active { transform: translateY(-2px); }
.article-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.article-card__media .media-panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
.article-card__img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 22px 22px 24px; }
.article-card__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); }
.article-card__cat { color: var(--accent); }
.article-card__title { margin-top: 12px; font-size: 19px; line-height: 1.3; }
.article-card__title a { color: var(--text); position: relative; }
.article-card__title a:hover { color: var(--accent); }
/* A colored underline grows beneath the title as the card is hovered/focused —
   wipes in from the left. Compositor-only (scaleX). */
.article-card__title a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.article-card:hover .article-card__title a::after,
.article-card:focus-within .article-card__title a::after { transform: scaleX(1); }
/* Mobile analog (no hover): the underline draws in as the card scrolls into
   view, so touch users get the same accent flourish. 90% of traffic is mobile. */
@media (hover: none) {
  html.reveal-js .article-card.is-visible .article-card__title a::after { transform: scaleX(1); }
}
.article-card__excerpt { margin-top: 12px; flex: 1 1 auto; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.article-card__link { margin-top: 18px; }
.article-card:hover .article-card__link .icon { transform: translate(2px, -2px); }
/* Featured lead card spans the row and goes horizontal on wider screens. */
@media (min-width: 640px) {
  .article-card--featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .article-card--featured .article-card__media { flex: 1 1 52%; aspect-ratio: auto; }
  .article-card--featured .article-card__body { flex: 1 1 48%; justify-content: center; padding: 32px; }
  .article-card--featured .article-card__title { font-size: clamp(22px, 2.4vw, 30px); }
  .article-card--featured .article-card__excerpt { font-size: 15px; }
}

.journal-empty { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .journal-empty { grid-template-columns: 1fr 1fr; gap: 48px; } }
.journal-empty__panel { aspect-ratio: 16 / 10; width: 100%; }
.journal-empty__copy .text-2 { margin-top: 12px; }

.journal-pagination { margin-top: 48px; }
.journal-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px; margin: 0 4px; border-radius: 10px;
  border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.journal-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.journal-pagination .page-numbers:hover:not(.current) { border-color: var(--accent); }
.journal-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; }

/* Single article. */
.single-article__byline { margin-top: 16px; color: var(--text-2); font-size: 13px; }
.single-article__hero-media { margin: 32px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.single-article__img { display: block; width: 100%; height: auto; }

/* Prose body — readable measure, branded headings/links/quotes. */
.article-body { margin-top: 36px; font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { margin-top: 1.8em; font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; }
.article-body h3 { margin-top: 1.6em; font-family: var(--font-heading); font-size: clamp(19px, 2vw, 22px); line-height: 1.3; }
.article-body p, .article-body li { color: var(--text-2); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 0.5em; }
.article-body img { border-radius: 14px; border: 1px solid var(--line); }
.article-body blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-size: 1.1em; line-height: 1.5; color: var(--text); }
.article-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--accent-bg);
  color: var(--accent-p); padding: 2px 6px; border-radius: 6px; }
.article-body figure { margin: 1.6em 0; }
.article-body figcaption { margin-top: 8px; font-size: 13px; color: var(--text-2); text-align: center; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 36px 0 0; padding: 0; }
.article-tags li { font-size: 12px; }
.article-tags a { display: inline-block; padding: 5px 11px; border-radius: 999px;
  background: var(--accent-bg); color: var(--accent-p); }

/* Author box (E-E-A-T). */
.author-box { display: grid; gap: 18px; margin-top: 44px; padding: 24px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
@media (min-width: 560px) { .author-box { grid-template-columns: 96px 1fr; align-items: start; gap: 22px; } }
.author-box__photo { width: 96px; height: 96px; border-radius: 14px; }
.author-box__photo .media-panel__label { font-size: 9px; }
.author-box__eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.author-box__name { margin-top: 4px; font-weight: 600; font-size: 17px; }
.author-box__role { font-weight: 400; color: var(--accent); }
.author-box__bio { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--text-2); }

/* ── G11: Tracker section — navy with a "data stream" backdrop ──────────────
   Faint horizontal rails with accent pulses travelling along them (echoes the
   repair-tracker timeline). New effect, not reused elsewhere. The tracker card
   stays a light floating panel for contrast/readability. */
.tracker-section { position: relative; overflow: hidden; background: var(--ink-2); }
.tracker-section > .container { position: relative; z-index: 1; }
/* Card stays a light floating panel — reset text so the section--dark light
   colour doesn.t bleed in and hide the stage labels. */
.tracker-section .tracker-card { color: var(--text); background: var(--cloud); }
.tracker-section__fx { position: absolute; inset: 0; pointer-events: none; }
.tracker-section__fx::before {
  content: ""; position: absolute; inset: 0; opacity: 0.55;
  background-image: repeating-linear-gradient(0deg, transparent 0 46px,
    color-mix(in srgb, var(--accent) 16%, transparent) 46px 47px);
  -webkit-mask: radial-gradient(130% 90% at 50% 42%, #000 50%, transparent 82%);
  mask: radial-gradient(130% 90% at 50% 42%, #000 50%, transparent 82%);
}
.tracker-section__fx::after {
  content: ""; position: absolute; inset: 0; background-repeat: no-repeat;
  background-image:
    radial-gradient(circle 2.5px at 0 47px,  color-mix(in srgb, var(--accent) 80%, #fff), transparent 62%),
    radial-gradient(circle 2px   at 0 141px, var(--accent), transparent 62%),
    radial-gradient(circle 2.5px at 0 235px, color-mix(in srgb, var(--accent) 70%, #fff), transparent 62%),
    radial-gradient(circle 2px   at 0 329px, var(--accent), transparent 62%);
  animation: tracker-stream 7.5s linear infinite;
  -webkit-mask: radial-gradient(130% 90% at 50% 42%, #000 55%, transparent 85%);
  mask: radial-gradient(130% 90% at 50% 42%, #000 55%, transparent 85%);
}
@keyframes tracker-stream {
  0%   { background-position: -12% 0, -42% 0, -72% 0, -27% 0; }
  100% { background-position: 112% 0, 142% 0, 172% 0, 127% 0; }
}

/* ── G9: Instant-quote card — a light "impulse" traces the perimeter so the
   high-conversion section reads as alive (no navy fill). ──────────────────── */
@property --qangle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.quote-card { position: relative;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 10%, transparent),
              0 24px 60px -34px color-mix(in srgb, var(--accent) 55%, transparent); }
.quote-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.7px; pointer-events: none;
  background: conic-gradient(from var(--qangle),
    transparent 0deg, transparent 232deg,
    color-mix(in srgb, var(--accent) 55%, transparent) 286deg,
    #ffffff 322deg,
    color-mix(in srgb, var(--accent) 75%, transparent) 350deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: quote-trace 8s linear infinite;
}
@keyframes quote-trace { to { --qangle: 360deg; } }

/* G8: the carousel card snapped to screen centre (set by initCarouselCenter). */
@media (max-width: 639px) {
  .devices > .is-centered,
  .repairs__cards > .is-centered,
  .cat-cards > .is-centered {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
  }
}

/* ============================================================================
   Legal / policy pages — warranty, privacy, terms (wefixed_render_legal)
============================================================================ */
.legal { max-width: 52rem; margin: 0 auto; padding-block: 4px 76px; }
.legal__updated { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--text-2); }

.legal__toc { margin: 18px 0 8px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--muted-bg); padding: 20px 22px; }
.legal__toc-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.legal__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
@media (min-width: 680px) { .legal__toc ol { grid-template-columns: 1fr 1fr; gap: 9px 30px; } }
.legal__toc a { display: flex; gap: 10px; align-items: baseline; text-decoration: none;
  color: var(--text); font-size: 14.5px; line-height: 1.4; transition: color var(--dur-micro) var(--ease); }
.legal__toc a:hover { color: var(--accent); }
.legal__toc a > span { font-family: var(--font-mono); font-size: 12px; color: var(--muted); flex-shrink: 0; }

.legal__section { margin-top: 38px; }
.legal__h { display: flex; gap: 12px; align-items: baseline; font-size: clamp(19px, 2.1vw, 23px);
  font-weight: 650; letter-spacing: -0.01em; line-height: 1.28; scroll-margin-top: 100px; }
.legal__num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex-shrink: 0; }
.legal__h3 { margin-top: 22px; font-size: 16px; font-weight: 600; }
.legal__lead { margin-top: 14px; font-weight: 600; }
.legal__section p { margin-top: 14px; line-height: 1.72; color: var(--text); }

.legal__list { margin-top: 14px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.legal__list li { position: relative; padding-left: 24px; line-height: 1.68; color: var(--text); }
ul.legal__list li::before { content: ""; position: absolute; left: 5px; top: 10px; width: 6px; height: 6px;
  border-radius: 2px; background: var(--accent); }
ol.legal__list { counter-reset: legalitem; }
ol.legal__list li::before { content: counter(legalitem) "."; counter-increment: legalitem;
  position: absolute; left: 0; top: 0; color: var(--accent); font-family: var(--font-mono); font-size: 13px; }

/* Conspicuous block for liability / data / risk / arbitration sections. */
.legal__section--box { border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--card)); border-radius: var(--r-card);
  padding: 22px 26px; }
.legal__section--box .legal__h { font-size: 17px; }

.legal__refs { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 28px; }
.legal__refs p { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.legal__refs-list { margin-top: 16px; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.legal__refs-list a { font-size: 13.5px; color: var(--text-2); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color var(--dur-micro) var(--ease); }
.legal__refs-list a:hover { color: var(--accent); border-bottom-color: currentColor; }

/* Services hub (/services) — grouped cards with one-line descriptions. */
.svc-group { margin-top: 44px; }
.svc-group:first-of-type { margin-top: 8px; }
.svc-group__label { font-size: clamp(15px, 1.8vw, 18px); font-weight: 600; letter-spacing: -0.01em;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.svc-group__grid { margin-top: 18px; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-group__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-group__grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card);
  transition: border-color var(--dur-micro) var(--ease), box-shadow var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent-glow); }
.svc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.svc-card__name { font-size: 16px; font-weight: 600; color: var(--foreground); }
.svc-card__arrow { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; transition: transform 0.15s var(--ease); }
.svc-card:hover .svc-card__arrow { transform: translate(2px, -2px); }
.svc-card__desc { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* Repair hub — full device index (links every device page, no orphans). */
.dev-index { margin-top: 36px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dev-index { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .dev-index { grid-template-columns: repeat(4, 1fr); } }
.dev-index__label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.dev-index__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.dev-index__link { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; font-size: 15px;
  color: var(--foreground); text-decoration: none; transition: color var(--dur-micro) var(--ease); }
.dev-index__link:hover { color: var(--accent); }
.dev-index__link .icon { width: 13px; height: 13px; color: var(--muted); transition: transform 0.15s var(--ease), color var(--dur-micro) var(--ease); }
.dev-index__link:hover .icon { color: var(--accent); transform: translate(2px, -2px); }

/* Repair Journal — answer-first callout, FAQ, and in-article photo placeholder. */
.article-answer { margin-top: 28px; padding: 22px 26px; border-radius: var(--r-card);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.article-answer__label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-p); margin-bottom: 8px; }
.article-answer p { font-size: 17px; line-height: 1.55; font-weight: 500; color: var(--foreground); }
.article-faq { margin-top: 48px; }
.article-faq > .h2 { margin-bottom: 18px; }
/* In-article photo placeholder = a reference brief for the owner's photographer. */
.article-figure { margin: 30px 0; border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: var(--r-card); background: var(--muted-bg); padding: 22px 24px; }
.article-figure__ref { display: block; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
  color: var(--text-2); }
.article-figure__ref b { color: var(--accent-p); font-weight: 600; }
.article-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); font-style: italic; }

/* Answer-first box (device/service pages) + extractable comparison table. */
.answer-box { padding: 20px 24px; border-radius: var(--r-card);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--card)); }
.answer-box__label { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-p); margin-bottom: 8px; }
.answer-box p { font-size: 16.5px; line-height: 1.55; font-weight: 500; color: var(--foreground); }
/* Service layout: the answer box sits directly above the media panel — give it air. */
.answer-box + .media-panel { margin-top: 32px; }

.compare { margin-top: 40px; }
.compare__title { font-size: clamp(18px, 2vw, 22px); font-weight: 600; margin-bottom: 16px; letter-spacing: -0.01em; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); }
.compare__table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 32rem; }
.compare__table th, .compare__table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.45; }
.compare__table thead th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); background: var(--muted-bg); white-space: nowrap; }
.compare__table tbody th { font-weight: 600; color: var(--foreground); }
.compare__table td { color: var(--text-2); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__note { margin-top: 10px; font-size: 13px; }
