/* ==========================================================================
   Shipshape Repair — stylesheet
   Hand-written, no framework, no build step, no web fonts.

   Design intent: a precision workshop, not a phone-shop kiosk. Cool paper,
   hairline rules, monospace for anything numeric or technical. The customer
   is about to mail a stranger a $900 device — the page has to feel careful.

   Palette is taken from the SSR logo: brand blue #0088ff on near-black navy.
   Note that #0088ff is only 3.5:1 on white, so it is NOT the interactive
   colour — see the token block below.

   Contents
     1. Tokens
     2. Reset + base
     3. Layout primitives
     4. Type
     5. Buttons + links
     6. Header / nav
     7. Hero (incl. the cracked-phone SVG)
     8. Section furniture
     9. Steps / process
    10. Repair + pricing cards
    11. Callouts, badges, notices
    12. FAQ
    13. Footer
    14. Motion + print
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  --paper:       #f7f9fc;
  --surface:     #ffffff;
  --surface-2:   #eef2f8;
  --ink:         #0b1220;
  --ink-2:       #475569;
  --ink-3:       #5f6e83;
  --line:        #dde4ee;
  --line-strong: #c3cddc;

  /* --brand is the logo blue. It is 3.5:1 on white, which FAILS AA for
     text, so it is for graphics only: rings, rules, decorative marks.
     Anything clickable or readable uses --accent. */
  --brand:         #0088ff;
  --brand-cyan:    #03b2f9;
  --accent:        #0069cc;
  --accent-bright: #0078ea;
  --accent-ink:    #ffffff;
  --accent-wash:   #e9f2fe;

  --amber:      #8a5308;
  --amber-wash: #fdf3e3;
  --amber-line: #ecd3a8;

  --danger:      #a02a20;
  --danger-wash: #fdeeec;
  --danger-line: #f0c8c2;

  --radius:    10px;
  --radius-lg: 16px;

  --gutter: 20px;
  --maxw:   1120px;
  --maxw-prose: 68ch;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .05);
  --shadow:    0 2px 4px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --shadow-lg: 0 4px 8px rgba(20, 22, 26, .05), 0 20px 48px rgba(20, 22, 26, .10);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  color-scheme: light;
}

/* Dark mode. Guarded so an explicit data-theme="light" always wins. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:       #05080f;
    --surface:     #0b1220;
    --surface-2:   #131d30;
    --ink:         #e9eef6;
    --ink-2:       #9fadc0;
    --ink-3:       #7c8ba0;
    --line:        #1d2839;
    --line-strong: #33415a;

    --brand:         #0088ff;
    --brand-cyan:    #03b2f9;
    --accent:        #2f9dff;
    --accent-bright: #5cc4ff;
    --accent-ink:    #04121f;
    --accent-wash:   #0d2137;

    --amber:      #e8ad5c;
    --amber-wash: #2a2015;
    --amber-line: #4a3a22;

    --danger:      #f0897c;
    --danger-wash: #2c1614;
    --danger-line: #4d2723;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .35), 0 20px 48px rgba(0, 0, 0, .5);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper:       #05080f;
  --surface:     #0b1220;
  --surface-2:   #131d30;
  --ink:         #e9eef6;
  --ink-2:       #9fadc0;
  --ink-3:       #7c8ba0;
  --line:        #1d2839;
  --line-strong: #33415a;

  --brand:         #0088ff;
  --brand-cyan:    #03b2f9;
  --accent:        #2f9dff;
  --accent-bright: #5cc4ff;
  --accent-ink:    #04121f;
  --accent-wash:   #0d2137;

  --amber:      #e8ad5c;
  --amber-wash: #2a2015;
  --amber-line: #4a3a22;

  --danger:      #f0897c;
  --danger-wash: #2c1614;
  --danger-line: #4d2723;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 2px 4px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, .35), 0 20px 48px rgba(0, 0, 0, .5);

  color-scheme: dark;
}

/* ---------- 2. Reset + base ---------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` ATTRIBUTE only sets display:none through the UA stylesheet,
   which any class with its own display rule beats on specificity. Half the
   toggling on this site is done with .hidden = true on elements that are
   also .field (display:block) or .social-link (display:inline-flex), so
   without this they stay visible. Learned the hard way. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;   /* clears the sticky header on anchor jumps */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------- 3. Layout primitives ----------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--maxw-prose); }

.grid { display: grid; gap: 20px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }

/* ---------- 4. Type ------------------------------------------------------ */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 640;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 3.7rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -0.026em; }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.06rem, 2.1vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}

small, .small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.dim   { color: var(--ink-3); }

.mono, .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 5. Buttons + links ------------------------------------------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-bright); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .15s ease,
              border-color .15s ease, box-shadow .15s ease;
  min-height: 48px;          /* comfortable tap target */
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-bright); color: var(--accent-ink); box-shadow: var(--shadow); }

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); background: var(--surface); }

.btn-lg { padding: 18px 34px; font-size: 1.08rem; min-height: 56px; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 6. Header / nav ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* OPAQUE, deliberately. This used to be 88% with a backdrop-filter, which
     looks like frosted glass only while the filter composites — and when it
     does not, body text reads straight through the bar as you scroll. A
     sticky header over moving content is the last place to trade legibility
     for a translucency effect. */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
}

.nav {
  display: none;
  gap: 26px;
  align-items: center;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }

@media (min-width: 860px) {
  .nav { display: flex; }
}

.header-cta { display: none; }
@media (min-width: 560px) { .header-cta { display: inline-flex; } }

/* ---------- 7. Hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

/* Faint precision grid — the workshop cutting-mat motif. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 16%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}

.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
}

.hero h1 { margin-bottom: .45em; }
.hero .lede { max-width: 46ch; }
.hero .btn-row { margin-top: 30px; }

/* Trust strip under the fold-line */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  list-style: none;
  padding-left: 0;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .89rem;
  color: var(--ink-2);
}
.trust-strip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* --- The cracked phone -------------------------------------------------
   Fractures render WHITE with a soft glow, because glass that has shattered
   scatters light rather than absorbing it. Drawing them as dark lines is
   what made the first version look like clip art.
   ------------------------------------------------------------------------ */

.device-art {
  justify-self: center;
  width: min(100%, 300px);
  filter: drop-shadow(0 30px 44px rgba(8, 18, 34, .30));
}

.device-btn { fill: #7c8794; }

.crack {
  fill: none;
  stroke: #eaf4ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* The glow is what sells it as light caught in a fracture. */
  filter: drop-shadow(0 0 1.6px rgba(150, 205, 255, .85));
}

.crack-bloom {
  fill: url(#bloomGrad);
}

/* The whole fracture set heals together, then the glass sits clean for a
   beat before it breaks again. */
.crack-group {
  animation: heal 9s ease-in-out infinite;
}

@keyframes heal {
  0%, 40%  { opacity: 1; }
  54%      { opacity: 0; }
  82%      { opacity: 0; }
  92%, 100% { opacity: 1; }
}

.sweep {
  opacity: 0;
  animation: sweep 9s ease-in-out infinite;
}

@keyframes sweep {
  0%, 38%   { opacity: 0; transform: translateY(0); }
  43%       { opacity: 1; }
  53%       { opacity: 1; transform: translateY(460px); }
  58%, 100% { opacity: 0; transform: translateY(460px); }
}

/* ---------- 8. Section furniture ----------------------------------------- */

section { scroll-margin-top: 76px; }

.section {
  padding: clamp(52px, 7.5vw, 92px) 0;
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }
.section--tint { background: var(--surface-2); }

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head.center { margin-inline: auto; }

/* ---------- 9. Steps / process ------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}

.step {
  background: var(--surface);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-n {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.step h3 { margin: 0; font-size: 1.02rem; }
.step p { font-size: .91rem; color: var(--ink-2); margin: 0; }

/* ---------- 10. Repair + pricing cards ----------------------------------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card h3 { margin-bottom: .3em; }
.card p:last-child { margin-bottom: 0; }

.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card--link:hover {
  color: inherit;
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 34px; height: 34px;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Price table — monospace numerals, hairline rows */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.price-table caption {
  text-align: left;
  font-size: .82rem;
  color: var(--ink-3);
  padding-bottom: 10px;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.price-table thead th {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td.n,
.price-table th.n {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-table .repair-name { font-weight: 560; }
.price-table .tier-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 8px;
}

.price-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.price-scroll > table { min-width: 460px; }

/* Selector controls */
.selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.chip {
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-size: .93rem;
  font-weight: 550;
  cursor: pointer;
  min-height: 44px;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.field {
  display: block;
  margin-bottom: 18px;
}
.field > span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}
select, input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 48px;
}
select:focus, input:focus, textarea:focus { border-color: var(--accent); }

/* ---------- 11. Callouts, badges, notices -------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge-placeholder {
  background: var(--amber-wash);
  color: var(--amber);
  border: 1px solid var(--amber-line);
}
.badge-promo {
  background: var(--accent);
  color: var(--accent-ink);
}

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink-3);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 18px 20px;
  font-size: .94rem;
}
.notice h2, .notice h3, .notice h4 { margin-bottom: .35em; font-size: 1rem; line-height: 1.3; }
.notice-flag { margin: 0 0 .5em; }
.notice p:last-child { margin-bottom: 0; }

.notice--warn   { border-left-color: var(--amber);  background: var(--amber-wash);  border-color: var(--amber-line); }
.notice--danger { border-left-color: var(--danger); background: var(--danger-wash); border-color: var(--danger-line); }
.notice--accent { border-left-color: var(--accent); background: var(--accent-wash); border-color: var(--accent-wash); }

/* The dev banner. Loud on purpose — it is the safety net against
   launching with placeholder data still in place. */
.dev-banner {
  background: repeating-linear-gradient(
    45deg, var(--amber-wash), var(--amber-wash) 12px,
    color-mix(in srgb, var(--amber-wash) 80%, var(--amber)) 12px,
    color-mix(in srgb, var(--amber-wash) 80%, var(--amber)) 24px);
  border-bottom: 1px solid var(--amber-line);
  color: var(--amber);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  padding: 9px var(--gutter);
  line-height: 1.4;
}

.promo-bar {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 11px var(--gutter);
  font-size: .92rem;
  font-weight: 550;
}
.promo-bar strong { color: var(--accent-bright); }
.promo-bar .count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Honest "no reviews yet" panel */
.no-reviews {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  background: var(--surface);
}

/* Definition-style list for warranty / policy facts */
.facts {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 640px) {
  .facts { grid-template-columns: max-content 1fr; }
}
.facts dt {
  background: var(--surface-2);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.facts dd {
  background: var(--surface);
  margin: 0;
  padding: 14px 18px;
  font-size: .95rem;
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .96rem; }
.checklist svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--accent); }
.checklist.x svg { color: var(--danger); }

/* ---------- 12. FAQ ------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  font-weight: 580;
  font-size: 1.04rem;
  position: relative;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent); }
.faq .answer {
  padding: 0 0 22px;
  max-width: var(--maxw-prose);
  color: var(--ink-2);
  font-size: .97rem;
}
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- 13. Footer --------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding: clamp(44px, 6vw, 68px) 0 32px;
  font-size: .93rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer h3 {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: .86rem;
}

/* ---------- 14. Motion + print ------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* Leave the glass shattered rather than frozen mid-heal */
  .crack-group { opacity: 1; }
  .sweep { opacity: 0; }
}

@media print {
  .site-header, .promo-bar, .dev-banner, .btn, .device-art { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { border-top: 1px solid #ccc; padding: 18px 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ==========================================================================
   15. Booking flow (quote.html), status and success pages
   ========================================================================== */

/* ---------- stepper ------------------------------------------------------ */

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 4px;
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  counter-reset: step;
}
.stepper li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-3);
  padding-right: 10px;
}
.stepper li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: .7rem;
  flex: none;
}
.stepper li.is-current { color: var(--ink); }
.stepper li.is-current::before {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.stepper li.is-done { color: var(--ink-2); }
.stepper li.is-done::before {
  content: "\2713";
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- panels ------------------------------------------------------- */

.panel h2 { font-size: clamp(1.7rem, 4.2vw, 2.3rem); }
.panel .lede { margin-bottom: 26px; }
.panel .btn-row { margin-top: 30px; }

/* ---------- selectable rows (repairs, tiers) ----------------------------- */

.repair-options { display: grid; gap: 10px; }

.repair-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .14s ease, background-color .14s ease;
}
.repair-option:hover { border-color: var(--line-strong); }
.repair-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.repair-option input {
  margin: 3px 0 0;
  width: 19px;
  height: 19px;
  flex: none;
  accent-color: var(--accent);
}
.ro-body { flex: 1; display: block; min-width: 0; }
.ro-name { display: block; font-weight: 580; }
.ro-note { display: block; font-size: .85rem; color: var(--ink-2); margin-top: 3px; }
.ro-price { flex: none; text-align: right; padding-left: 8px; white-space: nowrap; }

/* ---------- checkbox list (screening, consent) --------------------------- */

.check-list { display: grid; gap: 10px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.check-item:hover { border-color: var(--line-strong); }
.check-item:has(input:checked) { border-color: var(--accent); background: var(--accent-wash); }
.check-item input {
  margin: 2px 0 0;
  width: 19px;
  height: 19px;
  flex: none;
  accent-color: var(--accent);
}
.check-item > span { display: block; font-size: .92rem; color: var(--ink-2); }
.check-item strong { display: block; color: var(--ink); font-weight: 580; margin-bottom: 2px; }

/* ---------- price display ------------------------------------------------ */

.price-hero {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 22px 0 6px;
}
.price-big {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-hero s { font-size: 1.3rem; }

/* ---------- terms box ---------------------------------------------------- */

.terms-box {
  max-height: 320px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 12px 0 0;
}

.signature-input {
  font-size: 1.25rem !important;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  letter-spacing: .01em;
}

/* ---------- status timeline ---------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 26px 32px;
  color: var(--ink-3);
  font-size: .95rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 17px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink-2); }
.timeline li.done::before { border-color: var(--accent); background: var(--accent); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.current::before {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

.facts-wrap { margin-top: 18px; }

/* Social links in the footer. Hidden in markup until a handle exists in
   content.json, so an unset account never renders as a dead link. */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  color: var(--ink-2);
  text-decoration: none;
}
.social-link:hover { color: var(--accent); }
.social-link svg { flex: none; }
.social-link span::before { content: "@"; }

/* ---------- theme toggle -------------------------------------------------
   Three states live in the data-theme attribute: absent = follow the OS,
   "light" and "dark" = the visitor has chosen. The button shows the theme
   you would GET by clicking, which is the convention people expect.
   -------------------------------------------------------------------------- */

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface);
}
.theme-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; }

/* Show the icon for the theme a click would switch TO: a moon while light,
   a sun while dark. Both branches of the dark rule are needed because the
   OS preference and the explicit attribute are separate cases. */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* The header is a flex row ending in the CTA; keep the toggle beside it
   rather than letting margin-right:auto on the logo push it around. */
.site-header .theme-toggle { margin-left: 4px; }

/* ==========================================================================
   16. Journey strip, claim cards, packing steps, before/after slider
   ========================================================================== */

/* ---------- the journey ------------------------------------------------
   Three media slots. Each shows a photograph when one exists and the
   isometric illustration when it does not, so the section is complete
   today and gets better the day real photos land.
   ------------------------------------------------------------------------ */

.journey {
  list-style: none;
  margin: 0 0 clamp(30px, 4vw, 46px);
  padding: 0;
  display: grid;
  gap: 18px;
}
@media (min-width: 760px) {
  .journey { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}

.jstep { text-align: center; position: relative; }

.jstep h3 {
  margin: 16px 0 2px;
  font-size: 1.08rem;
}
.jstep p {
  margin: 0;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--ink-3);
}

/* The slot. Fixed aspect so a photo and the illustration occupy exactly
   the same space and the row never reflows when one is swapped in. */
.jstep-media {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 72% 58% at 50% 46%, var(--accent-wash), transparent 72%),
    var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.jstep-art {
  width: 100%;
  height: 100%;
  padding: 14px;
  grid-area: 1 / 1;
}
.jstep-photo {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* When a photo is showing, the illustration underneath is redundant. */
.jstep-media.has-photo .jstep-art { display: none; }

.j-shadow { fill: var(--ink); opacity: .10; }

/* Arrow between the steps. Horizontal on a wide screen, vertical stacked. */
@media (min-width: 760px) {
  .jstep:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 37%;
    right: -20px;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    transform: rotate(45deg);
    opacity: .65;
    animation: jnudge 1.8s ease-in-out infinite;
  }
}
@media (max-width: 759px) {
  .jstep:not(:last-child)::after {
    content: "";
    display: block;
    width: 12px; height: 12px;
    margin: 14px auto 0;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    opacity: .65;
  }
}
@keyframes jnudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(3px, -3px); }
}

/* The phone dropping into the open box. */
.j-drop { animation: jdrop 5s ease-in-out infinite; }
@keyframes jdrop {
  0%       { transform: translateY(-20px); opacity: 0; }
  18%      { transform: translateY(-20px); opacity: 1; }
  38%,100% { transform: translateY(0); opacity: 1; }
}

/* The replacement panel on the bench, pulsing so the eye finds it. */
.j-new { animation: jnew 3s ease-in-out infinite; }
@keyframes jnew { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* The repaired screen coming on. */
.j-rise { animation: jrise 5s ease-in-out infinite; }
@keyframes jrise {
  0%, 26%  { transform: translateY(6px); opacity: 0; }
  44%,100% { transform: translateY(0); opacity: 1; }
}
.j-lit { animation: jlit 5s ease-in-out infinite; }
@keyframes jlit {
  0%, 30%  { fill: #0b1320; }
  46%, 90% { fill: #1e5fa8; }
  100%     { fill: #0b1320; }
}

/* ---------- claim cards -------------------------------------------------- */

.claims { gap: 2px; background: var(--line); border: 1px solid var(--line);
          border-radius: var(--radius-lg); overflow: hidden; }
.claim { background: var(--surface); padding: 28px 26px; }
.claim-n {
  display: block;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  /* --accent, NOT --brand. The brand blue is 3.52:1 on white and fails AA
     for text — which is precisely what the token block says, and precisely
     what this rule did anyway. */
  color: var(--accent);
  margin-bottom: 12px;
}
.claim h3 { margin-bottom: .4em; }
.claim p { color: var(--ink-2); font-size: .95rem; margin: 0; }

/* ---------- packing steps ------------------------------------------------ */

.pack-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pack-steps > li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.pack-n {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .95rem;
}
.pack-steps h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.pack-steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- before / after slider ---------------------------------------- */

/* A portrait phone is a tall subject; cap the width or the slider becomes
   an 800px column nobody can see both ends of at once. */
.ba { max-width: 300px; margin-inline: auto; }

.ba-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, var(--accent-wash), transparent 70%),
    var(--surface-2);
  border: 1px solid var(--line);
  /* --split is driven by the range input */
  --split: 52%;
}
.ba-layer { position: relative; }
.ba-layer svg { width: 100%; height: auto; display: block; padding: 20px 20px 30px; }

.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}

.ba-tag {
  position: absolute;
  bottom: 14px;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
}
.ba-tag-before { left: 14px; }
.ba-tag-after  { right: 14px; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 2px;
  background: var(--brand);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle span {
  position: absolute;
  top: 50%; left: 50%;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0; height: 0;
  margin-top: -4px;
  border: 4px solid transparent;
}
.ba-handle span::before { left: 6px;  border-right-color: #fff; }
.ba-handle span::after  { right: 6px; border-left-color: #fff; }

#ba-range {
  display: block;
  width: 100%;
  margin-top: 16px;
  accent-color: var(--accent);
  cursor: ew-resize;
  min-height: 24px;
}

@media (prefers-reduced-motion: reduce) {
  .j-drop, .j-rise, .j-new, .j-lit { animation: none !important; }
  .jstep:not(:last-child)::after { animation: none !important; }
  /* leave the repaired phone lit rather than frozen dark */
  .j-lit { fill: #1e5fa8; }
}
