/* Chameleon: warm paper, deep ink, coral. Same type as OrderTrack: Fraunces and Instrument Sans. */
:root {
  --bg: #FAF6EF;
  --bg-2: #F3EDE3;
  --surface: #FFFFFF;
  --surface-warm: #FFFCF7;
  --sunken: #F5F0E7;
  --line: #ECE4D7;
  --line-strong: #DDD2C1;
  --ink: #1A1D29;
  --ink-2: #464A58;
  --ink-3: #6E7180;
  --coral: #FF6B5A;
  --coral-600: #E8513F;
  --coral-ink: #B9402F;
  --coral-50: #FFF1EE;
  --coral-100: #FFE0DA;
  --amber: #F5A524;
  --amber-50: #FEF6E7;
  --amber-ink: #8C5600;
  --green: #2B7A57;
  --green-50: #E8F5EE;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --sh-1: 0 1px 0 rgba(26, 29, 41, .03), 0 1px 2px rgba(26, 29, 41, .05);
  --sh-2: 0 1px 2px rgba(26, 29, 41, .04), 0 10px 30px -8px rgba(26, 29, 41, .12);
  --sh-3: 0 2px 6px rgba(26, 29, 41, .06), 0 30px 70px -16px rgba(26, 29, 41, .25);
  --head: 'Fraunces', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1160px;
  --glow: #FF6B5A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral-100); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-ink);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
em.ital { font-style: italic; font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 26px -10px rgba(232, 81, 63, .8); }
.btn-coral:hover { background: var(--coral-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 246, 239, .78);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-head.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(26, 29, 41, .35); }
.head-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand-mark path { transition: stroke .8s var(--ease); }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: background .2s, color .2s; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { background: var(--bg-2); color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 18px; margin-left: 8px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 .shift { color: var(--glow); transition: color .8s var(--ease); font-style: italic; font-weight: 500; }
.hero .lede { margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--ink-2); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--green); }
.hero-stage { position: relative; aspect-ratio: 1 / .86; display: grid; place-items: center; }
.hero-stage::before {
  content: ''; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 38%, transparent), transparent 72%);
  filter: blur(18px); transition: background .8s var(--ease);
}
.hero-stage .rings { position: absolute; inset: -4%; }
.hero-stage .rings circle { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 7; }
.hero-stage .pad { position: relative; width: 92%; transition: transform .25s var(--ease); will-change: transform; }
.hero-photos { position: relative; width: 94%; aspect-ratio: 1 / 1; border-radius: 34px; background: #fff; box-shadow: var(--sh-3); overflow: hidden; transition: transform .25s var(--ease); will-change: transform; cursor: pointer; }
.hero-photos::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.hero-photos img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; opacity: 0; transform: scale(.96) rotate(-1.5deg); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.hero-photos img.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .hero-photos { width: 100%; border-radius: 26px; } }
.pad svg { width: 100%; height: auto; overflow: visible; }
.pad .body, .pad .btn, .pad .ring, .pad .pad-touch { transition: fill .8s var(--ease), fill-opacity .8s var(--ease), stroke .8s var(--ease); }
.pad .layer { transition: opacity .8s var(--ease); }
.hero-name {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-2);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.dot { width: 18px; height: 18px; border-radius: 50%; background: var(--glow); box-shadow: inset 0 0 0 1px rgba(26, 29, 41, .15); transition: background .8s var(--ease); flex: none; }
.float-tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2);
  font-size: 13.5px; font-weight: 600; animation: bob 6s ease-in-out infinite; z-index: 2;
}
.float-tag small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.float-tag.t1 { top: 8%; left: 0; }
.float-tag.t2 { top: 18%; right: -2%; animation-delay: -3s; }
.float-tag i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-ink); font-style: normal; }
.float-tag i svg { width: 17px; height: 17px; }
@keyframes bob { 50% { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; width: 100%; margin: 0 auto; }
  .float-tag.t1 { left: 0; top: 0; }
  .float-tag.t2 { right: 0; top: 0; animation-delay: -3s; }
  .float-tag { font-size: 12.5px; padding: 6px 10px; }
  .float-tag i { width: 26px; height: 26px; }
}

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface-warm); overflow: hidden; }
.marquee-track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: scroll 40s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 22px; font-weight: 500; white-space: nowrap; color: var(--ink-2); font-variation-settings: 'opsz' 36; }
.marquee-track .dot { width: 14px; height: 14px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section.alt { background: var(--bg-2); }
.section.dark { background: var(--ink); color: #F4F1EA; }
.section.dark .lede { color: #C9C6D0; }
.section.dark .eyebrow { color: var(--coral); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1); }
.stat b { display: block; font-family: var(--head); font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Colour studio ---------- */
.studio { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.studio-view {
  position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(18px, 3vw, 32px); box-shadow: var(--sh-2); overflow: hidden;
}
.studio-view::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: -10%; height: 75%; border-radius: 50%; filter: blur(30px);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 34%, transparent), transparent);
  transition: background .8s var(--ease); pointer-events: none;
}
.studio-view .pad { position: relative; margin: 10px auto 18px; width: 100%; }
.studio-view .photo { position: relative; margin: 0 0 18px; aspect-ratio: 1 / 1; border-radius: 20px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.studio-view .photo img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.97); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.studio-view .photo.loaded img { opacity: 1; transform: none; }
.studio-view .photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.studio-view .photo figcaption { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; }
.studio-view .photo figcaption a { color: var(--ink-3); text-decoration: none; background: rgba(255,255,255,.85); padding: 3px 8px; border-radius: 99px; }
.studio-view .photo figcaption a:hover { color: var(--ink); }
.studio-info { position: relative; display: grid; gap: 10px; }
.studio-info h3 { font-size: 30px; display: flex; align-items: center; gap: 12px; }
.studio-info p { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--line); }
.chip.ok { background: var(--green-50); color: var(--green); border-color: transparent; }
.chip.fast { background: var(--amber-50); color: var(--amber-ink); border-color: transparent; }
.chip.off { opacity: .55; text-decoration: line-through; }

.tabs { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.swatch {
  display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--coral-100); }
.swatch .sw { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: inset 0 0 0 1px rgba(26, 29, 41, .14); position: relative; overflow: hidden; }
.swatch .sw.has-photo { width: 52px; height: 52px; background: #fff !important; }
.swatch .sw img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); }
.swatch .sw.has-photo.clear::after { display: none; }
.swatch .sw.clear::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.55) 0 4px, transparent 4px 8px); }
.swatch b { display: block; font-size: 14px; line-height: 1.25; }
.swatch small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.swatch[hidden] { display: none; }
@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .studio-view { position: relative; top: 0; }
}

/* ---------- Model finder ---------- */
.finder { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.finder-card { background: #232736; border: 1px solid #343A4D; border-radius: 26px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.label-plate {
  position: relative; border-radius: 18px; padding: 22px; margin-bottom: 18px;
  background: linear-gradient(180deg, #2C3142, #262A39); border: 1px solid #3A4155;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; color: #9EA3B5; font-size: 12px; letter-spacing: .06em; line-height: 1.9;
}
.label-plate .hl { color: #fff; background: rgba(255, 107, 90, .22); border-radius: 4px; padding: 0 3px; }
.label-plate .hl b { color: var(--coral); }
.finder-card label { display: block; font-weight: 600; margin-bottom: 8px; color: #E9E6EF; }
.finder-in { display: flex; gap: 10px; }
.finder-in input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid #434A60;
  background: #1A1D29; color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
}
.finder-in input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 90, .2); }
.finder-out { margin-top: 16px; min-height: 76px; border-radius: 16px; padding: 16px 18px; background: #1A1D29; border: 1px dashed #434A60; color: #B9B6C4; transition: border-color .3s, background .3s; }
.finder-out.found { border-style: solid; border-color: var(--coral); background: rgba(255, 107, 90, .08); color: #fff; }
.finder-out strong { font-family: var(--head); font-size: 26px; display: block; color: #fff; }
.finder-out .digits { display: inline-flex; gap: 4px; margin-top: 8px; }
.finder-out .digits span { width: 22px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #2C3142; font: 600 13px ui-monospace, Menlo, monospace; color: #9EA3B5; }
.finder-out .digits span.on { background: var(--coral); color: #fff; }
@media (max-width: 860px) { .finder { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-1); }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral-ink); font-family: var(--head); font-weight: 600; font-size: 19px; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.speeds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.speed { border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; }
.speed.express { background: linear-gradient(135deg, #1A1D29, #2B2F40); color: #fff; border-color: transparent; }
.speed.express p { color: #C9C6D0; }
.speed .t { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.speed h3 { font-size: 24px; }
.speed p { color: var(--ink-2); }
.bar { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin-top: 6px; }
.speed.express .bar { background: rgba(255, 255, 255, .12); }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--coral); width: 0; transition: width 1.4s var(--ease); }
.in .bar i { width: var(--w); }
@media (max-width: 700px) { .speeds { grid-template-columns: 1fr; } }

/* ---------- Extras + repair teaser ---------- */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.extra { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.extra i { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--amber-50); color: var(--amber-ink); }
.extra i svg { width: 22px; height: 22px; }
.extra b { display: block; }
.extra span { color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }

.teaser { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--sh-2); overflow: hidden; position: relative; }
.teaser h2 { margin: 12px 0 14px; }
.teaser .lede { margin-bottom: 24px; }
.teaser-list { display: grid; gap: 10px; }
.teaser-list div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.teaser-list svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--head); font-size: 26px; line-height: 1; color: var(--coral-ink); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #C9C6D0; padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-foot .brand { color: #fff; }
.site-foot h4 { margin: 0 0 12px; color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.site-foot a { color: #E9E6EF; text-decoration: none; }
.site-foot a:hover { color: var(--coral); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid #343A4D; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Repair page ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); margin: 14px 0 16px; }
.repair-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 44px); align-items: start; padding-bottom: clamp(60px, 8vw, 110px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--sh-2); }
.form-card { padding: clamp(20px, 3.4vw, 36px); }
.progress { display: flex; gap: 6px; margin-bottom: 26px; }
.progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--sunken); position: relative; overflow: hidden; }
.progress i::after { content: ''; position: absolute; inset: 0; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress i.done::after { transform: scaleX(1); }
.field { display: grid; gap: 8px; margin-bottom: 22px; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.field > label small, .field > .label small { color: var(--ink-3); font-weight: 500; font-size: 13px; }
.hint { color: var(--ink-3); font-size: 13.5px; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface-warm); transition: border-color .2s, box-shadow .2s, background .2s; font-size: 16px;
}
.textarea { padding: 14px 16px; min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--coral); background: #fff; box-shadow: 0 0 0 4px var(--coral-100); }
.field.bad .input, .field.bad .textarea, .field.bad .reasons { border-color: #D64545; box-shadow: 0 0 0 4px #FBE3E3; }
.field.good .input { border-color: var(--green); }
.err { color: #B42318; font-size: 13.5px; font-weight: 500; display: none; }
.field.bad .err { display: block; }
.serial-box { position: relative; }
.serial-box .input { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; font-size: 18px; padding-right: 76px; }
.serial-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 99px; background: var(--sunken); color: var(--ink-3); transition: background .2s, color .2s; }
.serial-count.ok { background: var(--green-50); color: var(--green); }
.order-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-warm); animation: rise .35s var(--ease); }
.order-card[hidden] { display: none; }
.order-card .oc-img { width: 64px; height: 64px; border-radius: 12px; background: #fff; flex: none; overflow: hidden; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.order-card .oc-img img { width: 100%; height: 100%; object-fit: contain; }
.order-card .oc-img .dot { width: 28px; height: 28px; }
.order-card b { display: block; font-size: 15.5px; }
.order-card span { color: var(--ink-2); font-size: 13.5px; }
.order-card .oc-tag { margin-left: auto; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--green-50); color: var(--green); white-space: nowrap; }
.order-card.checking { color: var(--ink-3); font-size: 14px; }
.order-card.checking .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line-strong); border-top-color: var(--coral); animation: spin .8s linear infinite; }
.order-card.missing { border-color: #F3C2C2; background: #FDF3F3; color: #8A1C1C; font-size: 14.5px; font-weight: 500; }
.order-card.missing i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #FBE3E3; flex: none; font-style: normal; font-weight: 700; }


.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; border-radius: 16px; }
.reason { position: relative; }
.reason input { position: absolute; opacity: 0; pointer-events: none; }
.reason label {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-warm); font-weight: 600; font-size: 14.5px;
  transition: border-color .2s, background .2s, transform .15s;
}
.reason label:hover { border-color: var(--ink-3); }
.reason label i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sunken); color: var(--ink-2); flex: none; transition: background .2s, color .2s; }
.reason label i svg { width: 19px; height: 19px; }
.reason input:checked + label { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--coral-100); }
.reason input:checked + label i { background: var(--coral); color: #fff; }
.reason input:focus-visible + label { outline: 3px solid var(--coral); outline-offset: 2px; }
.select-wrap { display: none; }
@media (max-width: 520px) { .reasons { grid-template-columns: 1fr; } }

.other-box { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease), margin .35s var(--ease); margin-top: 0; }
.other-box.show { grid-template-rows: 1fr; margin-top: 12px; }
.other-box > div { min-height: 0; }
.counter { text-align: right; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.submit-row .btn { min-width: 200px; }
.submit-row p { color: var(--ink-3); font-size: 13.5px; flex: 1; min-width: 200px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.sending .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { display: none; padding: 14px 16px; border-radius: 14px; background: #FDECEC; color: #8A1C1C; font-weight: 500; margin-bottom: 18px; }
.form-alert.show { display: block; }

/* The live ticket */
.ticket-col { position: sticky; top: 96px; display: grid; gap: 14px; }
.ticket { position: relative; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-3); overflow: hidden; }
.ticket-top { padding: 22px 24px 20px; background: linear-gradient(135deg, var(--ink), #2E3346); color: #fff; }
.ticket-top .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ticket-top .brand { font-size: 19px; color: #fff; }
.ticket-top .brand-mark { width: 26px; height: 26px; }
.ticket-status { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.ticket-status.ready { background: var(--coral); }
.ticket-ref { margin-top: 18px; font: 600 13px ui-monospace, Menlo, monospace; letter-spacing: .1em; color: #C9C6D0; }
.ticket-body { padding: 20px 24px 8px; display: grid; gap: 14px; }
.t-row { display: grid; gap: 2px; }
.t-row span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.t-row b { font-size: 16px; font-weight: 600; min-height: 1.5em; word-break: break-word; transition: color .2s; }
.t-row b.empty { color: var(--ink-4, #B3B2B3); font-weight: 500; }
.t-row b.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .14em; }
.perf { position: relative; margin: 14px 24px 0; border-top: 2px dashed var(--line-strong); }
.perf::before, .perf::after { content: ''; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.perf::before { left: -39px; }
.perf::after { right: -39px; }
.ticket-foot { padding: 16px 24px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barcode { height: 38px; flex: 1; max-width: 190px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); opacity: .85; border-radius: 2px; }
.ticket-foot small { color: var(--ink-3); font-size: 12px; text-align: right; }
.tips { padding: 20px 22px; }
.tips h3 { font-size: 18px; margin-bottom: 10px; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; color: var(--ink-2); font-size: 14.5px; }
.tips li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
@media (max-width: 920px) {
  .repair-grid { grid-template-columns: 1fr; }
  .ticket-col { position: relative; top: 0; }
  .tips { display: none; }
}

/* Done state */
.done { display: none; text-align: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 40px); }
.done.show { display: block; animation: rise .6s var(--ease); }
.done .tick { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.done .tick svg { width: 38px; height: 38px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .2s var(--ease) forwards; }
.done h2 { margin-bottom: 12px; }
.done .lede { margin: 0 auto 22px; }
.refbox { display: inline-flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--sunken); border: 1px solid var(--line); font: 600 17px ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.refbox button { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: var(--sh-3); transition: opacity .25s, transform .3s var(--ease); z-index: 70; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .pad { width: min(360px, 80vw); margin: 0 auto 24px; transform: rotate(-8deg); }
.lost h1 { margin-bottom: 12px; }
.lost .lede { margin: 0 auto 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .form-card, .tips, .done-actions, .refbox button { display: none !important; }
  body { background: #fff; }
  .repair-grid { display: block; }
  .ticket { box-shadow: none; border: 1px solid #ccc; max-width: 420px; margin: 0 auto; }
}
