/* ===========================================================
   page-repairs.css  --  Repairs page ("Most units can be fixed.")
   -----------------------------------------------------------
   Wrapper: .page-repairs      Slug: ?page=Repairs
   Loaded by CMS via:
     Out ('\t<link rel="stylesheet" href="'+getVersionedFile('css/page-repairs.css')+'" />\n');

   FRAME WIDTHS
     Desktop: 1640px frame, content at 1200 (Figma 13903:2975)
     Mobile:  NO mobile frame was provided -- clamp mobile
     endpoints use the site-standard 400px basis and the
     established mobile sizes (titles 50->30, hero 54->30);
     flagged as unverified against a mobile design.

   PAGE FONT-SIZE BASE
     font-size: 18px on .page-repairs (dominant Figma paragraph
     size). Every non-clamp size is em against it; clamp
     endpoints are px (see the kit's em-endpoint post-mortem).

   CLAMP FORMULA (1200 desktop / 400 mobile basis)
     slope_vw = (desktop_px - mobile_px) / 8
     value    = clamp(mobile_px, slope_vw vw + intercept_px, desktop_px)

   INHERITED FROM CMS-LOADED CSS (not re-declared):
     - font-family: 'Roboto', sans-serif
     - color-scheme: light only

   ASCII rule: this file MUST stay ASCII-clean.

   SECTION INDEX (search the block prefix)
     hero     1. Hero (gradient, wrench-in-gear render)
     ways     2. There are three ways this usually goes (3 cards)
     costs    3. What it costs (hairline rows)
     repair   4. Start a repair (form card + sent/failed states +
                 details rail; page-repairs.js)
=========================================================== */

/* -- TOKENS ------------------------------------------------ */
.page-repairs {
  font-size: 18px;
  font-family: 'Roboto', sans-serif;

  /* Ink: this design's text colour throughout is #3b3b3b. */
  --color-ink: #3b3b3b;
  color: var(--color-ink);

  /* Brand colours -- product-named convention. */
  --color-silver-pulser:   #92ca6a; /* green */
  --color-magnetic-pulser: #59afb2; /* teal */
  --color-water-ozonator:  #4792bc; /* blue -- site primary */
  --color-bio-tuner:       #a194c7; /* purple */

  /* Page accent: site-primary blue (non-product page). */
  --color-accent:      var(--color-water-ozonator);
  --color-accent-dark: #38769a;

  /* Figma 13950:8230 "Email us" pill. NOT the Bio Tuner purple;
     flagged to the designer -- swap to var(--color-bio-tuner)
     here if it turns out to be a slip. */
  --color-cta-purple:  #8873c3;

  /* Surfaces & hairlines */
  --color-cream:       #f8f4f2; /* card + section background */
  --color-rule:        #e8e2de; /* costs-row hairlines */
  --color-dark:        var(--color-ink);   /* .text-dark role */

  /* Section 4 form (Figma 16621:2177 / 16623:2435) */
  --color-form-bg:     #eff9fd; /* form + sent card tint (site light blue) */
  --color-field-line:  #e2dbd7; /* input border */
  --color-check-line:  #b8aea8; /* checkbox border */
  --color-placeholder: #7b8f9c;
  --color-error:       #b3432f;
  --color-ink-strong:  #222222; /* sent-card heading + values */
  --color-label-muted: #4a6577; /* sent-card summary labels */
  --color-notice:      #c98a2b; /* "hold on to your unit" note */
  --color-focus-ring:  color-mix(in srgb, var(--color-accent) 22%, transparent);

  /* Type scale (clamps: 1200/400 basis, px endpoints) */
  --text-hero:       clamp(30px, 3vw + 18px, 54px);      /* hero H1 54 -> 30 */
  --text-heading:    clamp(30px, 2.5vw + 20px, 50px);    /* section titles 50 -> 30 */
  --text-subheading: 1.222em;                            /* 22px, constant (site convention) */
  --text-card-title: clamp(22px, 0.375vw + 20.5px, 25px);/* card titles 25 -> 22 */
  --text-lead:       clamp(18px, 0.25vw + 17px, 20px);   /* hero lead 20 -> 18 */
  --text-body:       1em;                                /* 18px */
  --text-eyebrow:    1em;                                /* 18px uppercase */
  --text-pill:       0.833em;                            /* 15px pill labels */
  --text-quote:      clamp(18px, 0.75vw + 15px, 24px);   /* testimonial 24 -> 18 */
  --text-sent:       clamp(28px, 1.5vw + 22px, 40px);    /* sent heading 40 -> 28 */

  /* Spacing */
  --space-section-y: clamp(50px, 3.75vw + 35px, 80px);   /* 80 -> 50 */
  --space-container: clamp(10px, 2.5vw, 30px);           /* 30 -> 10 gutter */
  --space-header-gap: 0.556em;                           /* 10px title-to-subhead (site rule) */
  --space-block-gap:  1.667em;                           /* 30px header-to-content */

  /* Radii */
  --radius-panel: 30px;  /* px: the ways cards (Figma rounded-30) */
  --radius-form:  24px;  /* px: form, sent and rail cards */
  --radius-field: 16px;  /* px: inputs, summary box */
  --radius-pill:  999px;

  /* Section colours promoted to tokens (consistency audit, Oct 2026):
     no inline hex in section rules. */
  --color-white:             #ffffff;
  --color-btn-hover:         #555555;  /* site-wide blue-button hover (confirmed by designer) */
  --tint-cream:              #f9fbf6;  /* hero gradient start */
  --tint-warm-light:         #f5faf0;  /* icon-tile gradient start / callout bg */
  --tint-azure-light:        #e6f4f8;  /* icon-tile gradient start */
}

/* -- Required boilerplate ---------------------------------- */
.page-repairs button {
  cursor: pointer; border: none; background: none;
  font-family: inherit; font-size: inherit; line-height: inherit; color: inherit;
}
.page-repairs header { font: inherit; } /* CMS bare-header leak */
.page-repairs .sec-title {
  font-size: var(--text-heading);
  font-weight: 900;
  line-height: 1.2; /* 60/50 */
  margin: 0;
}
.page-repairs a:focus-visible,
.page-repairs button:focus-visible,
.page-repairs input:focus-visible,
.page-repairs [tabindex]:focus-visible {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}

/* -- Shared page utilities --------------------------------- */
.page-repairs .container {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1200px + 2 * var(--space-container));
  margin-inline: auto;
  padding-inline: var(--space-container);
}
.page-repairs .section {
  padding-block: var(--space-section-y);
}
.page-repairs .section--cream { background: var(--color-cream); }

/* Fixed role mapping (COMPONENTS.md, Sep 2026): .text-ink is the
   site blue on EVERY page, .text-dark the dark tone. This page had
   .text-ink remapped to dark -- corrected; spans swapped to match. */
.page-repairs .text-ink    { color: var(--color-water-ozonator); }
.page-repairs .text-accent { color: var(--color-accent); }
.page-repairs .text-dark   { color: var(--color-dark); }
.page-repairs .brand-sub   { font-size: 0.7em; line-height: 0; vertical-align: -0.15em; }

/* Pill CTAs (Figma: 15px Roboto Black white on colour, r-pill,
   20px inline / 5px block padding, 27px line box -> 37px tall).
   Hover: the site's flat background swap to #555. */
.page-repairs .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.278em 1.111em; /* 5px 20px at 18 */
  border-radius: var(--radius-pill);
  font-size: var(--text-pill);
  font-weight: 900;
  line-height: 1.8; /* 27/15 */
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.page-repairs .pill:hover { background: var(--color-btn-hover); }
.page-repairs .pill--caps {
  text-transform: uppercase;
  letter-spacing: 0.1em; /* 1.5px at 15 */
}
.page-repairs .pill--primary   { background: var(--color-accent); }
.page-repairs .pill--magnetic-pulser   { background: var(--color-magnetic-pulser); }
.page-repairs .pill--bio-tuner { background: var(--color-cta-purple); }

/* === SECTION 1: HERO ====================================== */
/* Figma 13903:3006. Soft top-to-bottom green->blue gradient. */
.page-repairs .hero {
  background: linear-gradient(178deg, var(--tint-cream) 0%, var(--tint-warm-light) 40%, var(--tint-azure-light) 100%);
  padding-block: 1.111em 0; /* 20px top; image sits on the bottom edge */
  overflow: hidden;
}
.page-repairs .hero__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3.75vw + 5px, 50px); /* 50 -> 20 */
}
.page-repairs .hero__text {
  flex: 1 1 0;
  /* Shrink floor: below this the IMAGE takes all the squeeze
     (user direction: the hero must not wrap until 767 -- the
     image shrinks instead). */
  min-width: 18em; /* ~324px */
  display: flex;
  flex-direction: column;
  gap: 1.222em; /* 22px (Figma container gap) */
  padding-block: 2.222em; /* keeps the text vertically comfortable if the image shrinks */
}
.page-repairs .hero__title {
  margin: 0;
  font-size: var(--text-hero);
  font-weight: 400; /* deliberate: the Figma H1 is Regular */
  line-height: 1.08; /* 58.32/54 */
  color: var(--color-ink);
}
.page-repairs .hero__lead {
  margin: 0;
  font-size: var(--text-lead);
  line-height: 1.53; /* 30.6/20 */
}
.page-repairs .hero__dashes {
  display: flex;
  gap: 5px;
}
.page-repairs .hero__dash {
  width: 25px;
  height: 3px;
  border-radius: var(--radius-pill);
}
.page-repairs .hero__dash--green  { background: var(--color-silver-pulser); }
.page-repairs .hero__dash--purple { background: var(--color-bio-tuner); }
.page-repairs .hero__dash--teal   { background: var(--color-magnetic-pulser); }
.page-repairs .hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.556em; /* 10px */
}
/* Hero pair only: Bold, not Black (user direction, Aug 2026 --
   the section-2 card pills keep the Figma's 900). */
.page-repairs .hero__ctas .pill { font-weight: 700; }
.page-repairs .hero__media {
  flex: 0 1 558px;
  min-width: 0;
  align-self: flex-end;
}
.page-repairs .hero__img {
  display: block;
  width: 100%;
  max-width: 558px;
  height: auto;
  margin-inline: auto;
}

/* === SECTION 2: THREE WAYS ================================ */
/* Figma 13906:187. White bg, centred header, 3 cream cards.  */
.page-repairs .ways {
  background: var(--color-white);
}
.page-repairs .ways__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-header-gap);
  text-align: center;
  margin-bottom: var(--space-block-gap);
}
.page-repairs .ways__sub {
  margin: 0;
  font-size: var(--text-subheading);
  font-weight: 700;
  line-height: 1.364; /* 30/22 */
}
.page-repairs .ways__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.111em; /* 20px */
  align-items: stretch;
}
.page-repairs .ways__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.667em; /* 30px */
  padding: 2.222em; /* 40px */
  background: var(--color-cream);
  border-radius: var(--radius-panel);
}
.page-repairs .ways__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.556em; /* 10px */
}
.page-repairs .ways__eyebrow {
  margin: 0;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  line-height: 1.389; /* 25/18 */
  letter-spacing: 0.1em; /* 1.8px at 18 */
  text-transform: uppercase;
  color: var(--color-accent);
}
.page-repairs .ways__card-title {
  margin: 0;
  font-size: var(--text-card-title);
  font-weight: 700;
  line-height: 1.2; /* 30/25 */
}
.page-repairs .ways__card-body {
  margin: 0;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.667; /* 30/18 */
}
.page-repairs .ways__card .pill { align-self: flex-start; }

/* Testimonial row (Figma 16749:17338): 80px below the cards, bubble
   art 100px, quote 24px Light Italic, name/country Bold. */
.page-repairs .ways__quote {
  display: flex;
  align-items: flex-start;
  gap: 1.667em; /* 30px */
  margin: 4.444em 0 0; /* 80px */
}
/* Sprite icon: size via font-size on the icon itself (.icon is 1em
   of its OWN font-size -- COMPONENTS.md px-pinning pattern). */
.page-repairs .ways__quote-icon {
  flex: 0 0 auto;
  font-size: 5.556em; /* 100px */
}
.page-repairs .ways__quote-body {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
}
.page-repairs .ways__quote-body p {
  margin: 0;
  font-size: var(--text-quote);
  font-weight: 300;
  line-height: 1.4;
}
.page-repairs .ways__quote-text { font-style: italic; }
.page-repairs .ways__quote-cite { font-style: normal; }
.page-repairs .ways__quote-cite strong { font-weight: 700; }

/* === SECTION 3: WHAT IT COSTS ============================= */
/* Figma 13907:187. Cream bg, hairline rows.                  */
/* px, not em: the title's own 50px font-size would be the em anchor
   here (the compounding trap) -- the original em token was silently
   rendering ~83px. The intended block gap is 30px (user, Aug 2026). */
.page-repairs .costs__title { margin-bottom: 30px; }
.page-repairs .costs__rows {
  border-bottom: 1px solid var(--color-rule);
}
.page-repairs .costs__row {
  display: flex;
  gap: 1.556em; /* 28px */
  padding-block: 1.222em; /* 22px */
  border-top: 1px solid var(--color-rule);
}
.page-repairs .costs__label {
  margin: 0;
  flex: 0 0 15.556em; /* 280px */
  font-size: var(--text-subheading);
  font-weight: 700;
  line-height: 1.364; /* 30/22 */
}
.page-repairs .costs__body {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--text-body);
  line-height: 1.667; /* 30/18 */
}

/* === SECTION 4: START A REPAIR ============================ */
/* Figma 16621:2177 (form + rail), 16623:2435 (sent state).
   Designer prototype breakpoints (1199/599) remapped to the site's
   1024/767. Field rows wrap INTRINSICALLY (flex-wrap + min widths),
   exactly as the Figma auto-layout does -- no extra breakpoints.
   Hanken Grotesk rail titles -> Roboto Bold (site font).          */
.page-repairs .repair {
  background: var(--color-white);
}
.page-repairs .repair__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-header-gap);
  margin-bottom: var(--space-block-gap);
}
.page-repairs .repair__sub {
  margin: 0;
  font-size: var(--text-subheading);
  font-weight: 700;
  line-height: 1.364; /* 30/22 */
}

/* Grid: 750 / 420 at 1200, kept proportional on narrower desktops. */
.page-repairs .repair__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.786fr) minmax(0, 1fr);
  gap: 1.667em; /* 30px */
  align-items: start;
}
.page-repairs .repair__main { min-width: 0; }

/* Cards (form + sent share the tinted panel) */
.page-repairs .repair__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.111em; /* 20px */
  padding: 2.222em; /* 40px */
  background: var(--color-form-bg);
  border-radius: var(--radius-form);
}
.page-repairs .repair__card[hidden] { display: none; }

/* Field rows: Figma flex-wrap, 16px row / 20px column gaps */
.page-repairs .repair__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.889em 1.111em;
}
.page-repairs .repair__row > .repair__field { flex: 1 1 13.333em; } /* min ~240px */
.page-repairs .repair__row--3 { gap: 0.889em; }
.page-repairs .repair__row--3 > .repair__field { flex-basis: 10em; } /* min ~180px */
.page-repairs .repair__group {
  display: flex;
  flex-direction: column;
  gap: 0.556em; /* 10px */
}
.page-repairs .repair__field {
  display: flex;
  flex-direction: column;
  gap: 0.444em; /* 8px label-to-input */
  min-width: 0;
}
.page-repairs .repair__label {
  font-size: 1em;
  font-weight: 700;
  line-height: 1.389; /* 25/18 */
}
.page-repairs .repair__opt { font-weight: 400; }

/* Inputs: 15px text, 25px line, 15/18 padding -> 55px tall */
.page-repairs .repair__input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.9em 1.2em; /* 15px 18px at 15px */
  font-family: inherit;
  font-size: var(--text-pill); /* 15px */
  line-height: 1.667; /* 25/15 */
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-field-line);
  border-radius: var(--radius-field);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.page-repairs .repair__input::placeholder { color: var(--color-placeholder); opacity: 1; }
.page-repairs .repair__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}
.page-repairs .repair__textarea {
  min-height: 6.667em; /* 100px at 15 */
  resize: vertical;
}

/* Select: native control, chevron from the sprite */
.page-repairs .repair__select { position: relative; }
.page-repairs .repair__select .repair__input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3em;
  cursor: pointer;
}
.page-repairs .repair__select .repair__input.is-empty { color: var(--color-placeholder); }
.page-repairs .repair__select option { color: var(--color-ink); }
.page-repairs .repair__select .icon {
  position: absolute;
  top: 50%;
  right: 1em;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.667em; /* 12px glyph (Figma chevron is 12x6) */
  color: var(--color-ink);
}

.page-repairs .repair__hint,
.page-repairs .repair__note {
  margin: 0;
  font-size: 1em;
  line-height: 1.389; /* 25/18 */
}

/* Errors (Figma "Error" frames): sprite "!" + message */
.page-repairs .repair__err {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  margin: 0;
  font-size: 0.889em; /* 16px */
  line-height: 1.375; /* 22/16 */
  color: var(--color-error);
}
.page-repairs .repair__err[hidden] { display: none; }
.page-repairs .repair__err .icon {
  flex: 0 0 auto;
  font-size: 1.125em; /* 18px */
  margin-top: 0.111em;
}
.page-repairs .repair__field.is-invalid .repair__input { border-color: var(--color-error); }

/* Checkbox: real input visually hidden, custom box with sprite tick */
.page-repairs .repair__check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.667em; /* 12px */
  font-size: 1em;
  line-height: 1.389;
  cursor: pointer;
}
.page-repairs .repair__check input {
  position: absolute;
  opacity: 0;
  width: 1.333em;
  height: 1.333em;
  margin: 0;
}
.page-repairs .repair__box {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.333em; /* 24px */
  height: 1.333em;
  margin-top: 0.028em;
  background: var(--color-white);
  border: 1.5px solid var(--color-check-line);
  border-radius: 6px;
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.page-repairs .repair__box .icon { font-size: 0.889em; }
.page-repairs .repair__check input:checked + .repair__box {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}
.page-repairs .repair__check input:focus-visible + .repair__box {
  outline: 2px solid var(--color-accent-dark);
  outline-offset: 2px;
}
/* Small variant: the "Can't find it" waiver under the serial field
   (designer, Oct 2026) -- 15px text, 20px box, right-aligned. */
.page-repairs .repair__check--small {
  font-size: var(--text-pill); /* 15px */
  gap: 0.533em; /* 8px */
  line-height: 1.467; /* 22/15 */
}
.page-repairs .repair__check--small input,
.page-repairs .repair__check--small .repair__box {
  width: 1.333em; /* 20px at 15 */
  height: 1.333em;
}
.page-repairs .repair__check--small .repair__box { margin-top: 0.067em; border-radius: 5px; }
.page-repairs .repair__cantfind {
  align-self: flex-end;
  margin-top: -0.133em; /* tuck up toward the field */
}

/* Honeypot: off-screen, never display:none (some bots skip those) */
.page-repairs .repair__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer + send button */
.page-repairs .repair__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.778em; /* 14px */
  padding-top: 0.444em; /* 8px */
}
.page-repairs .repair__send { gap: 0; }
.page-repairs .repair__send:disabled { cursor: progress; opacity: 0.75; }
.page-repairs .repair__send:disabled:hover { background: var(--color-accent); }
.page-repairs .repair__spin {
  display: none;
  width: 1em;
  height: 1em;
  margin-right: 0.5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: repair-spin 0.8s linear infinite;
}
.page-repairs .repair__send.is-busy .repair__spin { display: inline-block; }

/* Failure alert (from the designer's prototype; not in the Figma) */
.page-repairs .repair__alert {
  display: flex;
  flex-direction: column;
  gap: 0.667em;
  padding: 1.111em 1.222em;
  background: var(--color-white);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-field);
}
.page-repairs .repair__alert[hidden] { display: none; }
.page-repairs .repair__alert-title {
  margin: 0;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.389;
  color: var(--color-error);
}
.page-repairs .repair__alert p { margin: 0; line-height: 1.389; }
.page-repairs .repair__alert a { color: var(--color-accent); }
.page-repairs .repair__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.667em 1.111em;
}
.page-repairs .repair__quiet {
  padding: 0;
  font-size: var(--text-pill);
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.page-repairs .repair__copybox {
  display: flex;
  flex-direction: column;
  gap: 0.444em;
}
.page-repairs .repair__copybox[hidden] { display: none; }

/* Sent state (Figma 16623:2437) */
.page-repairs .repair__sent { padding: 2.667em; } /* 48px */
.page-repairs .repair__sent:focus { outline: none; }
.page-repairs .repair__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.333em; /* 60px */
  height: 3.333em;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
}
.page-repairs .repair__tick .icon { font-size: 1.444em; } /* 26px glyph */
.page-repairs .repair__sent-title {
  margin: 0;
  font-size: var(--text-sent);
  font-weight: 700;
  line-height: 1.15; /* 46/40 */
  color: var(--color-ink-strong);
}
.page-repairs .repair__lead {
  margin: 0;
  font-size: 1em;
  line-height: 1.556; /* 28/18 */
}
.page-repairs .repair__summary {
  box-sizing: border-box;
  padding: 1.111em 1.222em; /* 20px 22px */
  background: var(--color-white);
  border-radius: var(--radius-field);
}
.page-repairs .repair__summary-title {
  margin: 0 0 0.556em;
  font-size: 0.889em; /* 16px */
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-ink-strong);
}
.page-repairs .repair__summary dl {
  display: flex;
  flex-direction: column;
  gap: 0.556em; /* 10px */
  margin: 0;
}
.page-repairs .repair__sum-row {
  display: flex;
  gap: 0.889em; /* 16px */
  font-size: var(--text-pill); /* 15px */
  line-height: 1.467; /* 22/15 */
}
.page-repairs .repair__sum-row[hidden] { display: none; }
.page-repairs .repair__sum-row dt {
  flex: 0 0 11.333em; /* 170px at 15 */
  color: var(--color-label-muted);
}
.page-repairs .repair__sum-row dd {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  font-weight: 500;
  color: var(--color-ink-strong);
  overflow-wrap: anywhere;
}
.page-repairs .repair__hold {
  margin: 0;
  padding: 0.778em 1em; /* 14px 18px */
  background: var(--color-white);
  border-radius: 14px;
  font-size: 0.889em; /* 16px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-notice);
}
/* Straight border-bottom, no radius (anti-pattern: radius on an
   underline border curves at the ends). */
.page-repairs .repair__again {
  align-self: flex-start;
  padding: 0; /* the button reset keeps UA padding */
  font-size: 1.111em; /* 20px */
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid currentColor;
  transition: color 0.2s ease;
}
.page-repairs .repair__again:hover { color: var(--color-accent); }

/* Details rail (Figma 16621:2184): cream cards, 32px padding */
.page-repairs .repair__rail {
  display: flex;
  flex-direction: column;
  gap: 1.111em; /* 20px */
}
.page-repairs .repair__info {
  display: flex;
  flex-direction: column;
  gap: 0.889em; /* 16px */
  padding: 1.778em; /* 32px */
  background: var(--color-cream);
  border-radius: var(--radius-form);
}
.page-repairs .repair__info-title {
  margin: 0;
  font-size: var(--text-card-title);
  font-weight: 700;
  line-height: 1.12;
}
.page-repairs .repair__info-strong {
  margin: 0;
  font-size: 1.111em; /* 20px */
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-accent);
}
.page-repairs .repair__info-strong a {
  color: var(--color-accent);
  text-decoration: none;
}
.page-repairs .repair__info-strong a:hover { text-decoration: underline; }
.page-repairs .repair__info-body {
  margin: 0;
  font-size: 1em;
  line-height: 1.389; /* 25/18 */
}
.page-repairs .repair__retailer-link {
  align-self: flex-start;
  font-size: 1.111em; /* 20px */
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.page-repairs .repair__retailer-link:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* -- Page-bottom wave (site standard, same as page-home) ----
   The wave is the section's last child; kill the section's own
   bottom padding so the wave sits flush on the chrome below. */
.page-repairs .section--wave { padding-bottom: 0 !important; }
.page-repairs .page-wave {
  margin-top: var(--space-section-y); /* preserve the section's bottom rhythm above the wave */
}

/* === RESPONSIVE: 1024 (layout / column count) ============= */
@media (max-width: 1024px) {
  .page-repairs .ways__grid  { grid-template-columns: 1fr; }
  /* Form + rail stack; the rail goes straight to ONE column (standard:
     column count jumps to the phone count at 1024 -- the Figma's
     tablet side-by-side rail is a flagged deviation). */
  .page-repairs .repair__grid { grid-template-columns: 1fr; }
}

/* === RESPONSIVE: 767 (phone spacing / stacking) =========== */
@media (max-width: 767px) {
  /* DOCUMENTED EXCEPTION to the "layout at 1024" rule: the hero
     stays side-by-side down to 767 (user direction, Aug 2026) --
     the image shrinks in the 768-1024 zone instead of wrapping.
     The stack itself therefore lives here. */
  .page-repairs .hero__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .page-repairs .hero__media {
    /* Image wraps BELOW the buttons (designer feedback, Aug 2026 --
       supersedes the earlier image-first pass). */
    flex-basis: auto;
    align-self: center;
    /* Fill the column so the hero image's width/height attributes can
       reserve its space before it loads (shrink-wrapped, the wrapper is
       0px wide until then). Final size unchanged: .hero__img's
       max-width + margin-inline still cap and centre it (Oct 2026). */
    width: 100%;
  }
  .page-repairs .hero__text {
    min-width: 0;
    padding-block: 1.111em 0; /* 20px top; image sits on the section's bottom edge below */
  }
  .page-repairs .costs__row {
    flex-direction: column;
    gap: 0.278em; /* 5px label-to-body when stacked */
  }
  .page-repairs .costs__label { flex-basis: auto; }
  .page-repairs .ways__card { padding: 1.667em; /* 30px */ }
  .page-repairs .hero__ctas .pill { white-space: normal; }
  .page-repairs .ways__quote { gap: 1.111em; }
  .page-repairs .ways__quote-icon { font-size: 3.333em; } /* 60px */
  .page-repairs .repair__card { padding: 1.333em; } /* 24px */
  .page-repairs .repair__sent { padding: 1.667em; } /* 30px */
  .page-repairs .repair__info { padding: 1.333em; }
  /* 16px inputs on phones: iOS Safari zooms any field under 16px on
     focus (Figma is 15px; deliberate deviation). */
  .page-repairs .repair__input { font-size: 0.889em; }
  .page-repairs .repair__sum-row { flex-direction: column; gap: 0; }
  .page-repairs .repair__sum-row dt { flex-basis: auto; }
  .page-repairs .repair__send { white-space: normal; }
}

/* Page-unique keyframes (allowed outside the wrapper per STANDARDS 3) */
@keyframes repair-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .page-repairs .repair__spin { animation-duration: 2.4s; }
  .page-repairs .repair__input,
  .page-repairs .repair__box,
  .page-repairs .repair__again,
  .page-repairs .repair__retailer-link { transition: none; }
}
