/* FixFast — shared styles.
   Store pages use the neutral brand tokens below.
   Each product page overrides the --p-* tokens (and may load its own display font)
   so it gets its own look while keeping the same structure. */
:root {
  --ink: #16151a;
  --ink-soft: #55525c;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --line: #e6e2da;
  --pop: #ff5a1f;
  --ok: #1f8a5b;
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));

  /* product tokens (defaults = store look) */
  --p-bg: var(--paper);
  --p-bg-2: var(--paper-2);
  --p-ink: var(--ink);
  --p-ink-soft: var(--ink-soft);
  --p-accent: var(--pop);
  --p-accent-ink: #ffffff;
  --p-line: var(--line);
  --p-display: var(--display);
  --p-logo-bg: #16151a;
  --p-logo-dash: var(--pop);
  --p-footer: #16151a;
  --p-hero-bg: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-ink);
  font: 400 17px/1.6 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--p-display); line-height: 1.08; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--p-accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header / footer ---------- */
.site-header { border-bottom: 1px solid var(--p-line); background: var(--p-bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 22px/1 var(--display); letter-spacing: -0.02em; color: var(--p-ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.header-links { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.header-links a { text-decoration: none; color: var(--p-ink-soft); }
.header-links a:hover { color: var(--p-ink); }
.lang { font-weight: 700; border: 1.5px solid var(--p-line); border-radius: 999px; padding: 4px 12px; }

.site-footer { background: var(--p-footer); color: #d8d5de; margin-top: 72px; font-size: 14px; }
.site-footer .wrap { padding-block: 36px; display: grid; gap: 18px; }
.site-footer a { color: #ffffff; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 16px; }
.disclaimer { color: #a8a4b0; max-width: 80ch; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 17px/1 var(--text); text-decoration: none; cursor: pointer;
  background: var(--p-accent); color: var(--p-accent-ink);
  border: 0; border-radius: 14px; padding: 18px 26px; min-height: 56px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  box-shadow: 0 4px 0 rgba(0,0,0,.18);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.18); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--p-ink); box-shadow: inset 0 0 0 2px var(--p-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--p-ink); }

/* ---------- STORE HOME ---------- */
.home-hero { padding-block: 56px 28px; }
.home-hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.home-hero h1 .mark { position: relative; white-space: nowrap; }
.home-hero h1 .mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--pop); border-radius: 99px; z-index: -1; opacity: .9; }
.home-hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 52ch; margin: 18px 0 30px; }
.challenges { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 600 16px/1 var(--text); cursor: pointer; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 12px 18px;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s, transform .15s;
}
.chip:hover { transform: translateY(-2px); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--pop)); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.shelf { padding-block: 34px 10px; }
.shelf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.shelf-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.shelf-head p { margin: 0; color: var(--ink-soft); }
.kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.kit { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.kit:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(22,21,26,.1); }
.kit img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.kit-body { padding: 16px 18px 20px; display: grid; gap: 6px; }
.kit-cat { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--pop)); }
.kit-title { font: 700 21px/1.2 var(--display); }
.kit-price { font-weight: 700; }
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px 24px; background: var(--paper-2);
  display: grid; gap: 6px; max-width: 640px;
}
.empty strong { font: 700 21px/1.2 var(--display); }
.empty span { color: var(--ink-soft); }

.steps { padding-block: 48px 8px; }
.steps h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 22px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper-2); border-radius: var(--radius); padding: 22px; min-width: 0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; font: 800 19px/1 var(--display); margin-bottom: 12px; }
.steps li b { display: block; font-size: 19px; margin-bottom: 4px; }
.steps li span { color: var(--ink-soft); }

.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-block: 34px 0; }
.promise { border-top: 3px solid var(--ink); padding-top: 12px; font-size: 15px; color: var(--ink-soft); min-width: 0; }
.promise b { display: block; color: var(--ink); font-size: 16px; }

@media (max-width: 820px) {
  .steps ol { grid-template-columns: 1fr; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-links .hide-sm { display: none; }
}

/* ---------- PRODUCT PAGE (structure fixed, look from --p-* tokens) ---------- */
.product .site-header { background: var(--p-bg); }
.p-hero { padding-block: 40px 56px; background: var(--p-hero-bg); }
.p-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.p-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-accent); margin: 0 0 12px; }
.p-hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 400; letter-spacing: -0.01em; }
.p-sub { font-size: clamp(18px, 2vw, 21px); color: var(--p-ink-soft); margin: 18px 0 26px; max-width: 46ch; }
.p-photo { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.28); }
.p-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.price-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.price { display: grid; gap: 2px; }
.price-now { font: 800 34px/1 var(--text); }
.price-was { text-decoration: line-through; color: var(--p-ink-soft); font-size: 17px; margin-left: 6px; font-weight: 600; }
.price-local { font-size: 14px; color: var(--p-ink-soft); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--p-ink-soft); }
.trust li::before { content: "✓ "; color: var(--p-accent); font-weight: 800; }

.p-section { padding-block: 56px; }
.p-section.alt { background: var(--p-bg-2); }
.p-section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 400; margin-bottom: 26px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 18px; }
.checks li::before { content: ""; width: 26px; height: 26px; border-radius: 9px; margin-top: 2px; background: var(--p-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.inside article { background: var(--p-bg); border: 1px solid var(--p-line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.inside h3 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.inside p { margin: 0; color: var(--p-ink-soft); }

.p-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.p-steps li { counter-increment: s; min-width: 0; }
.p-steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--p-accent); color: var(--p-accent); font: 700 20px/1 var(--text); margin-bottom: 12px; }
.p-steps b { display: block; font-size: 19px; }
.p-steps span { color: var(--p-ink-soft); }

.preview { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.preview img { width: 100%; border-radius: 10px; box-shadow: 0 24px 50px rgba(60, 45, 10, .18); transform: rotate(-1.5deg); }
.preview p { color: var(--p-ink-soft); font-size: 18px; margin: 0; }
@media (max-width: 860px) { .preview { grid-template-columns: 1fr; gap: 24px; } .preview img { max-width: 420px; margin: 0 auto; } }
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; border: 2px solid var(--p-accent); border-radius: 24px; padding: 26px; }
.seal { width: 96px; height: 96px; border-radius: 50%; background: var(--p-accent); color: var(--p-accent-ink); display: grid; place-items: center; text-align: center; font: 800 15px/1.1 var(--text); }
.seal b { display: block; font-size: 30px; }
.guarantee h2 { margin-bottom: 6px; font-size: clamp(24px, 3vw, 30px); }
.guarantee p { margin: 0; color: var(--p-ink-soft); }

.faq details { border-bottom: 1px solid var(--p-line); padding-block: 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--p-accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; color: var(--p-ink-soft); }

.final { text-align: center; }
.final h2 { margin-inline: auto; max-width: 20ch; }
.final .price-box { justify-content: center; }

.error-box { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fde8e4; color: #8a1c0a; font-size: 15px; }
.error-box.show { display: block; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--p-bg); border-top: 1px solid var(--p-line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.show { transform: none; }
.buybar .btn { min-height: 48px; padding: 14px 20px; }
.buybar strong { font-size: 20px; }

@media (max-width: 860px) {
  .p-hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .p-photo { order: -1; }
  .p-steps { grid-template-columns: 1fr; }
  .guarantee { grid-template-columns: 1fr; text-align: left; }
}
@media (min-width: 861px) { .buybar { display: none; } }

/* ---------- simple docs (legal / success) ---------- */
.doc { padding-block: 48px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }
.doc h2 { font-size: 24px; margin: 30px 0 8px; }
.doc .card { background: var(--paper-2); border-radius: var(--radius); padding: 28px; }
.dl-list { list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- order bumps ---------- */
.bumps { text-align: left; display: grid; gap: 10px; margin: 6px 0 22px; }
.bumps-title { margin: 0 0 2px; font-weight: 700; color: var(--p-ink); }
.bump { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; border: 1.5px dashed var(--p-accent); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--p-bg); transition: background .15s, border-color .15s; }
.bump.on { border-style: solid; background: var(--p-bg-2); }
.bump input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--p-accent); }
.bump-body { display: grid; gap: 2px; min-width: 0; }
.bump-body span { color: var(--p-ink-soft); font-size: 15px; }
.bump-price { font-weight: 800; white-space: nowrap; color: var(--p-accent); }
.order-total { margin: 4px 0 0; font-size: 18px; }
.dl-list li { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- secure-checkout seal ---------- */
.secure { display: flex; align-items: center; gap: 14px; max-width: 460px; margin-top: 18px; padding: 13px 16px;
  border-radius: 16px; background: var(--p-bg-2); border: 1px solid var(--p-line); }
.secure svg { flex: none; width: 44px; height: 44px; }
.secure b { display: block; font-size: 15px; color: var(--p-ink); }
.secure span { display: block; font-size: 13px; line-height: 1.45; color: var(--p-ink-soft); }
.price-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink-soft); }
.final .secure { margin-left: auto; margin-right: auto; text-align: left; }
.langs-note { background: var(--p-accent); color: var(--p-accent-ink); text-align: center; font-size: 14px; font-weight: 700; padding: 9px 16px; letter-spacing: .01em; }
