/* ============================================================
   layout.css — Remidiy
   Section layouts + responsive. Single column logic per breakpoint.
   ============================================================ */

/* ----- Page top spacing (fixed nav offset) ----- */
.ui { padding-top: 64px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 120px 0 100px;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.hero h1 {
  margin-bottom: 28px;
  max-width: 16ch;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--text-2);
  max-width: 48ch;
  margin-bottom: 36px;
  line-height: 1.55;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  font-size: 16.5px;
  color: var(--text-2);
}
.hero-trust .check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-trust .check svg { color: var(--accent); flex-shrink: 0; }

/* Hero card — the "What we do" window panel */
.hero-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  overflow: hidden;              /* clean window corners for the title bar */
  padding: 0 26px 26px;
  position: relative;
  transition: border-color 0.28s var(--ease), box-shadow 0.32s var(--ease);
  box-shadow: 0 24px 70px -45px rgba(0, 0, 0, 0.75);
}
.hero-card:hover {
  border-color: var(--border-3);
  box-shadow: 0 32px 90px -45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(141, 181, 128, 0.12);
}

/* window title bar */
.dict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -26px 16px;          /* flush to the card edges */
  padding: 13px 18px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dict-tag { color: var(--accent); }

/* macOS-style window controls (top-right); the red dot closes the panel */
.win-dots { display: inline-flex; align-items: center; gap: 8px; }
.win-dot {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.22), inset 0 1px 0.5px rgba(255, 255, 255, 0.30);
}
.win-close { background: #ff5f57; cursor: pointer; }
.win-min   { background: #febc2e; }
.win-zoom  { background: #28c840; }
/* a subtle × appears on the close control on hover, like macOS */
.win-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 9px/1 var(--sans);
  color: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.15s var(--ease);
}
.win-dots:hover .win-close::before { content: "\00D7"; opacity: 1; }
.win-close:hover { filter: brightness(1.08); }
.win-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* close animation + collapse the hero to a single column once removed */
.hero-card.closing {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.hero-inner.solo { grid-template-columns: 1fr; }

/* ----- "What we do": hammer breaks a board into clickable service logos ----- */
.web-svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  overflow: hidden;   /* keep the swinging hammer from painting over the nav/hero */
}
/* Shared stroke style for every drawn primitive */
.web-svg line,
.web-svg path,
.web-svg circle,
.web-svg rect,
.web-svg polygon,
.web-svg polyline {
  fill: none;
  stroke: var(--text-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Scene 1: board, nail, hammer (decorative — never intercepts clicks) --- */
.sc-build { pointer-events: none; }
.board-top  { stroke: var(--text-3); fill: var(--bg-2); stroke-width: 1.8; }
.board-edge { stroke: var(--text-3); fill: var(--bg-1); stroke-width: 1.8; }
.board-solid .grain { stroke: var(--text-4); fill: none; stroke-width: 1.4; }
.shard {
  opacity: 0;                 /* hidden until the board breaks */
  stroke: var(--text-3);
  fill: var(--bg-2);
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
}
.nail .nail-body { stroke: var(--text-1); fill: var(--text-2); stroke-width: 1.4; }
/* The hammer swings in an ARC about the hand (grip pivot). The drawn icon is
   placed by .hammer-art so its grip sits at the hand point and its flat face
   rests on the nail head at strike; .hammer rotates the whole tool about the hand. */
.hammer { transform-origin: 92px 150px; }                  /* the hand (mirrored to the left) */
.hammer-art { transform: translate(92px, 150px) scale(-1, 1) rotate(-90deg) scale(0.5) translate(0px, -150px); }
/* line-art: light outline; bodies filled with the card bg so they occlude the board */
.hammer .hh-bg { stroke: var(--text-1); fill: var(--bg-1); stroke-width: 3.6; stroke-linejoin: round; stroke-linecap: round; }
.hammer .hh-ln { stroke: var(--text-1); fill: none; stroke-width: 3; }
.spark line { stroke: var(--accent); stroke-width: 2; opacity: 0; }

/* --- Scene 2: clickable service logos --- */
.chip {
  transform: translate(var(--x), var(--y));
  transition: transform 0.2s var(--ease);
  cursor: pointer;
  outline: none;
}
.chip .hit { fill: transparent; stroke: none; }   /* invisible touch target */
.chip-core {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.node-core {
  fill: var(--bg-2);
  stroke: rgba(255, 255, 255, 0.7);   /* white outline — matches the centre hub ring */
  stroke-width: 1.4;
  transition: stroke 0.2s var(--ease), fill 0.2s var(--ease);
}
.chip use {
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node-label {
  opacity: 0;
  stroke: none;
  fill: var(--text-3);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  transition: fill 0.2s var(--ease);
}
/* hover / keyboard focus on a logo */
.chip:hover  { transform: translate(var(--x), calc(var(--y) - 4px)); }
.chip:hover  .node-core,
.chip:focus-visible .node-core { stroke: var(--accent); fill: var(--accent-mute); }
.chip:hover  .node-label,
.chip:focus-visible .node-label { fill: var(--text-1); }
.chip:focus-visible .node-core { stroke-width: 2.2; }

/* GBP chip: the full name sits over the short label (transparent until hover),
   so hovering crossfades "GBP" → "Google Business Profile". Toggled via fill
   because opacity is held by the pop-in animation. */
.label-full { fill: transparent; }
.chip-gbp:hover .label-short,
.chip-gbp:focus-visible .label-short { fill: transparent; }
.chip-gbp:hover .label-full,
.chip-gbp:focus-visible .label-full { fill: var(--text-1); }

/* --- Remidiy logo hub (centre) — replays the animation on click --- */
/* outer .hub does the hover lift (like the chips); inner .hub-core does the entrance */
.hub { cursor: pointer; outline: none; transition: transform 0.2s var(--ease); }
.hub-core { opacity: 0; transform-origin: 180px 200px; }
/* two-class selectors so these beat the generic `.web-svg circle` rule */
.hub .hub-hit { fill: transparent; stroke: none; }   /* painted → the whole disc is hoverable */
.hub .hub-ring {
  fill: transparent;              /* matches the transparent SVG viewBox — only the card behind shows through */
  stroke: rgba(255, 255, 255, 0.7);   /* white outline */
  stroke-width: 1.4;
  transition: stroke 0.2s var(--ease), fill 0.2s var(--ease), stroke-width 0.2s var(--ease);
}
.hub-logo { pointer-events: none; }
/* match the service circles: lift + highlight on hover/focus */
.hub:hover,
.hub:focus-visible { transform: translateY(-4px); }
.hub:hover .hub-ring,
.hub:focus-visible .hub-ring { stroke: var(--accent); stroke-width: 2; fill: var(--accent-mute); }

/* ----- Timeline -----
   A 0.58s lead lets the card finish its reveal-fade before the hammer swings.
   The hammer hangs at the top, strikes, recoils, hangs, then strikes again —
   the board breaks on the second blow (~3.39s). Total run ~5.4s.            */
.r-break.play .hammer     { animation: hammer-drop 3.7s linear both 0.58s; will-change: transform; }
.r-break.play .spark      { animation: spark-flash 3.7s linear both 0.58s; }
.r-break.play .nail       { animation: nail-drive 3.7s var(--ease-2) both 0.58s; }
.r-break.play .board-solid{ animation: fade-out 0.12s linear forwards 3.39s; }
/* each shard flies to its icon's spot (staggered by --i), then the circle pops in */
.r-break.play .shard      { animation: shard-fly 0.78s var(--ease-2) forwards calc(3.39s + var(--i) * 0.06s); }
.r-break.play .chip-core  { animation: pop-in 0.46s var(--ease) both calc(3.96s + var(--i) * 0.06s); }
.r-break.play .node-label { animation: fade-in 0.5s var(--ease) both calc(4.25s + var(--i) * 0.06s); }
.r-break.play .hub-core   { animation: hub-in 0.58s var(--ease) both 4.8s; }

@keyframes hammer-drop {            /* pure rotation about the hand → a real swing arc.
   Per-keyframe easing carries momentum through each keyframe (no stop-start stutter):
   accelerate down into each strike, ease out of the rebound, gentle hang at the top. */
  0%   { transform: rotate(-70deg); opacity: 1; }
  12%  { transform: rotate(-70deg); animation-timing-function: cubic-bezier(0.45, 0, 1, 0.55); }  /* hold, then accelerate down */
  28%  { transform: rotate(3deg);   animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1); }  /* strike 1 → rebound (kept fast through the bottom) */
  46%  { transform: rotate(-30deg); animation-timing-function: cubic-bezier(0.35, 0, 0.5, 1); }   /* rebound upward */
  60%  { transform: rotate(-60deg); animation-timing-function: cubic-bezier(0.45, 0, 1, 0.55); }  /* gentle hang, then accelerate down */
  76%  { transform: rotate(3deg);   animation-timing-function: cubic-bezier(0, 0.55, 0.35, 1); }  /* strike 2 — board breaks */
  86%  { transform: rotate(-12deg); opacity: 1; animation-timing-function: ease-in; }             /* rebound; opaque through both hits */
  100% { transform: rotate(-95deg); opacity: 0; }                                                 /* lift away + fade */
}
@keyframes spark-flash {
  0%, 26%   { opacity: 0; }
  28%       { opacity: 1; }
  34%, 74%  { opacity: 0; }
  76%       { opacity: 1; }
  82%, 100% { opacity: 0; }
}
@keyframes nail-drive {           /* nail sinks a little on each strike */
  0%, 27%   { transform: translateY(0); }
  28%, 75%  { transform: translateY(4px); }   /* after strike 1 */
  76%       { transform: translateY(8px); }   /* after strike 2 */
  82%       { transform: translateY(8px); opacity: 1; }
  90%, 100% { transform: translateY(8px); opacity: 0; }  /* vanishes with the board */
}
@keyframes shard-fly {            /* burst, fly to the icon spot, shrink into the circle */
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  16%  { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }   /* hold the crack a beat */
  72%  { opacity: 1; transform: translate(calc(var(--dx) * 0.86), calc(var(--dy) * 0.86)) rotate(var(--rot)) scale(0.7); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.35); }
}
@keyframes pop-in {               /* the circle grows in where the shard landed */
  0%   { opacity: 0; transform: scale(0.2); }
  60%  { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hub-in {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  /* Skip the story; show the finished logos immediately. */
  .web-svg * { animation: none !important; }
  .sc-build { display: none; }
  .chip-core, .node-label, .hub-core { opacity: 1; }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
/* accent underline that draws across the divider when the head reveals */
.section-head::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s var(--ease) 0.12s;
}
.section-head.in::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .section-head::after { transition: none; }
}
/* Section eyebrow / label — a small monospace tag that separates sections.
   A short accent tick precedes the number (accent) and an uppercase label. */
.num {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);   /* raised from --text-3 for AA contrast over the photo bg */
  white-space: nowrap;
}
.num::before {
  content: '';
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px -2px rgba(141, 181, 128, 0.6);
}
.num .n {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.section-head .body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 60ch;
}
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-top: 8px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 36px;
  scroll-margin-top: 96px;
  transition: border-color 0.28s var(--ease), background 0.28s var(--ease), transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.service-card:hover {
  border-color: var(--border-2);
  background: var(--bg-2);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.6);
}
/* Highlight when a hero logo points the visitor at this card */
.service-card.flash { animation: card-flash 1.9s var(--ease) both; }
@keyframes card-flash {
  0%   { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px var(--accent-line); }
  12%  { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px var(--accent-line); }
  70%  { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 30px -4px var(--accent-line); }
  100% { border-color: var(--border); box-shadow: 0 0 0 0 rgba(141, 181, 128, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .service-card.flash { animation-duration: 0.01s; }
}

/* Cursor-tracking spotlight border on the service cards (pointer devices only) */
.service-card { position: relative; --mx: 50%; --my: 50%; }
@media (hover: hover) and (pointer: fine) {
  .service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--r-m);
    padding: 1.5px;
    background: radial-gradient(170px circle at var(--mx) var(--my), var(--accent), transparent 65%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
  }
  .service-card:hover::after { opacity: 1; }
}

/* Green dot accents pulse on hover */
@media (prefers-reduced-motion: no-preference) {
  .service-card li::before { transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
  .service-card li:hover::before,
  .eyebrow:hover::before { animation: dot-pulse 1.3s var(--ease) infinite; }
}
@keyframes dot-pulse {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(141, 181, 128, 0); }
  50%      { transform: scale(1.6); box-shadow: 0 0 8px 1px rgba(141, 181, 128, 0.55); }
}
.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.service-card > p {
  color: var(--text-2);
  font-size: 17.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.service-card ul {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.service-card li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: var(--text-2);
  padding: 7px 0;
}
.service-card li::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg-1);
}
.step {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: none; }
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.step h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}
.step p {
  color: var(--text-2);
  font-size: 17.5px;
  line-height: 1.6;
}

/* Centered CTA below the steps */
.steps-cta {
  text-align: center;
  margin-top: 56px;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
}
.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--bg-1);
  transition: background 0.18s var(--ease);
}
.why-item:hover { background: var(--bg-2); }
.why-icon {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--accent);
  border-radius: var(--r-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-text h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.why-text p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
}

/* ============================================================
   PRICING
   ============================================================ */
.promise .section-head { justify-content: flex-start; }
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--bg-1);
}
.promise-card {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.28s var(--ease);
}
.promise-card:last-child { border-right: none; }
.promise-card:hover { background: var(--bg-2); }
.promise-card .label {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.promise-card .price {
  font-size: 2.4rem;
  color: var(--text-0);
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-feature-settings: 'tnum' 1;
}
.promise-card .price .small {
  font-size: 0.95rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 4px;
}
.promise-card p {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-inner { max-width: 820px; margin: 0 auto; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: 140px; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
.contact-inner h2 { margin-bottom: 18px; }
.contact-info {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.contact-row:hover {
  border-color: var(--border-2);
  background: var(--bg-2);
}
.contact-row .ic {
  width: 36px; height: 36px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--accent);
  border-radius: var(--r-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .info .label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-row .info .value {
  font-size: 17.5px;
  color: var(--text-0);
  font-weight: 500;
  margin-top: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 60px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.footer-brand .logo-img { height: 44px; }
.footer-tag {
  color: var(--text-2);
  font-size: 16.5px;
  max-width: 40ch;
  line-height: 1.6;
}
.footer-col h4 {
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-2);
  font-size: 16.5px;
  transition: color 0.18s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-col li.plain { color: var(--text-2); font-size: 16.5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 15px;
}

/* ============================================================
   MANIFESTO BAND
   ============================================================ */
.manifesto {
  padding: clamp(96px, 14vw, 160px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 900px 380px at 50% 50%, rgba(141, 181, 128, 0.07), transparent 70%),
    var(--bg-1);
  position: relative;
  overflow: hidden;
}
.manifesto::before,
.manifesto::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0.45;
}
.manifesto::before { top: 0; }
.manifesto::after { bottom: 0; }
.manifesto-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.manifesto-text {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-0);
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 36ch;
  /* --emph (0→1) is driven by js/ui.js as the line crosses screen center */
  transform: scale(calc(0.965 + var(--emph, 1) * 0.035));
  transform-origin: left center;
  transition: transform 0.12s linear;
  will-change: transform;
}
.manifesto-text .accent {
  text-shadow: 0 0 calc(var(--emph, 0) * 28px) rgba(141, 181, 128, calc(var(--emph, 0) * 0.55));
  transition: text-shadow 0.12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .manifesto-text { transform: none; }
  .manifesto-text .accent { text-shadow: none; }
}
.manifesto-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-2);
  max-width: 54ch;
  line-height: 1.6;
}

/* ============================================================
   LIST RESETS — semantic <ul>/<ol> used as layout containers
   ============================================================ */
.hero-trust,
.why-list,
.steps {
  list-style: none;
  padding: 0;
}

/* ============================================================
   A11Y UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus for FAQ headers (now role="button") */
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-xs);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .promise-grid { grid-template-columns: 1fr; }
  .promise-card { border-right: none; border-bottom: 1px solid var(--border); }
  .promise-card:last-child { border-bottom: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 96px 0; }
}

@media (max-width: 600px) {
  section { padding: 80px 0; }
  .hero { padding: 80px 0 70px; }
  .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-head { flex-direction: column; gap: 8px; margin-bottom: 48px; }
  .manifesto { padding: 80px 0; }
  .manifesto-text { margin-bottom: 24px; }
}
