:root {
  --red: #C8232C; --red-d: #A81C24; --ink: #17181B; --steel: #5F6470; --mist: #8A8F99; --line: #E6E8EC; --cloud: #F5F5F7; --paper: #fff; --ok: #12823F;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { font: 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); min-height: 100vh; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }

/* Top bar */
.bk-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 64px;
  padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); }
.bk-logo img { height: 34px; width: auto; }
.bk-secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); padding: 5px 11px; border-radius: 999px; background: #EDF7F0; }
.bk-sp { flex: 1; }
.bk-call { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.bk-exit { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--cloud); transition: background .15s; }
.bk-exit:hover { background: var(--line); }
.bk-bar { height: 3px; background: var(--line); position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 20; }
.bk-bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .45s cubic-bezier(.2,.8,.2,1); }

/* Layout */
.bk-main { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start;
  padding: 56px max(20px, env(safe-area-inset-right, 0px)) 96px max(20px, env(safe-area-inset-left, 0px)); }
.bk-stage { min-width: 0; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
body[data-step="4"] .bk-main { grid-template-columns: minmax(0, 1fr) 360px; }

/* Step header */
.st-step { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--red); margin-bottom: 14px; }
.st-step span { color: var(--mist); }
.st-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; text-wrap: balance; }
.st-lede { margin-top: 12px; font-size: 18px; color: var(--steel); max-width: 52ch; }
.st-head { margin-bottom: 32px; }
.st-q { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 16px; }
.st-note { margin-top: 18px; color: var(--steel); font-size: 15px; }
.st-none { margin-top: 18px; color: var(--steel); }
.st-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.st-back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--steel); padding: 8px 0; margin-bottom: 6px; }
.st-back:hover { color: var(--ink); }

/* Buttons */
.btn-red, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 28px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; transition: background .15s, transform .1s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; border: 0; }
.btn-red:hover { background: var(--red-d); }
.btn-red:active { transform: scale(.98); }
.btn-red:disabled { opacity: .6; cursor: wait; }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); background: var(--paper); }
.btn-line:hover { border-color: var(--ink); }
.st-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.st-nav .st-back { margin: 0; }

/* Search */
.st-search { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; border-radius: 16px; background: var(--cloud); margin-bottom: 28px; color: var(--mist); transition: box-shadow .15s; }
.st-search:focus-within { box-shadow: 0 0 0 2px var(--ink); background: var(--paper); }
.st-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; color: var(--ink); }

/* Categories */
.st-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.st-cats button { display: grid; gap: 2px; text-align: left; padding: 18px 18px 20px; border-radius: 20px; background: var(--cloud); transition: transform .2s, background .2s; }
.st-cats button:hover { background: #ECECEF; transform: translateY(-2px); }
.st-cats img { height: 112px; width: 100%; object-fit: contain; margin-bottom: 14px; }
.st-cats b { font-size: 17px; }
.st-cats small { color: var(--steel); font-size: 13px; }

/* Brands */
.st-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-brands button { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); font-weight: 600; text-align: left; transition: border-color .15s; }
.st-brands button:hover { border-color: var(--ink); }
.st-brands .bt-logo img { flex: none; }

/* Models */
.st-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-model { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); text-align: left; font-size: 14px; font-weight: 600; line-height: 1.3; transition: border-color .15s, transform .2s; }
.st-model:hover { border-color: var(--ink); transform: translateY(-2px); }
.st-mimg { display: grid; place-items: center; height: 96px; }
.st-mimg img { max-height: 96px; width: auto; object-fit: contain; }
.st-mimg img.ghost { opacity: .25; filter: grayscale(1); }

/* Issues */
.st-issues { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.st-issues button { display: grid; gap: 4px; text-align: left; padding: 18px 20px; border-radius: 16px; border: 1.5px solid var(--line); transition: border-color .15s; }
.st-issues button:hover { border-color: var(--ink); }
.st-issues b { font-size: 17px; }
.st-issues small { color: var(--steel); font-size: 14px; }

.st-custom { display: flex; gap: 10px; flex-wrap: wrap; }
.st-custom input { flex: 1 1 260px; height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); font-size: 17px; }
.st-custom input:focus { outline: 0; border-color: var(--ink); }

/* Service types */
.st-types { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-types button { position: relative; display: grid; gap: 6px; align-content: start; text-align: left; min-height: 168px; padding: 22px 22px 24px; border-radius: 20px; border: 1.5px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.st-types button:hover { border-color: #C9CCD2; }
.st-types button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.st-tnum { font: 500 12px var(--mono); color: var(--mist); margin-bottom: 18px; }
.st-types b { font-size: 21px; letter-spacing: -.01em; }
.st-types small { color: var(--steel); font-size: 14px; line-height: 1.45; max-width: 32ch; }
.st-radio { position: absolute; top: 20px; right: 20px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C9CCD2; }
[aria-pressed="true"] > .st-radio { border: 7px solid var(--red); }

/* Days + slots */
.st-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.st-days button { flex: none; display: grid; justify-items: center; gap: 1px; width: 72px; padding: 12px 0; border-radius: 16px; border: 1.5px solid var(--line); scroll-snap-align: start; transition: border-color .15s; }
.st-days small { font-size: 12px; color: var(--steel); }
.st-days b { font-size: 24px; letter-spacing: -.02em; }
.st-days button:hover { border-color: #C9CCD2; }
.st-days [aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-days [aria-checked="true"] small { color: #C9CCD2; }
.st-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.st-slots button { height: 48px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 15px var(--mono); transition: border-color .15s; }
.st-slots button:hover:not(:disabled) { border-color: var(--ink); }
.st-slots [aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.st-slots button:disabled { color: #C2C5CB; text-decoration: line-through; cursor: not-allowed; background: var(--cloud); border-color: var(--cloud); }
.st-err { color: var(--red); font-weight: 600; min-height: 1.5em; margin-top: 12px; }

/* Details form */
.st-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-form .wide { grid-column: 1 / -1; }
.st-form label { display: grid; gap: 7px; }
.st-form label span { font-size: 14px; font-weight: 600; }
.st-form em { font-style: normal; color: var(--mist); font-weight: 500; }
.st-form input, .st-form textarea { width: 100%; min-width: 0; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.st-form textarea { resize: vertical; }
.st-form input:focus, .st-form textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,27,.08); }
.st-form input.bad { border-color: var(--red); }
.st-form .st-err { margin: 0; }
.st-form .st-nav { margin-top: 8px; }
.st-fine { color: var(--mist); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Done */
.st-done { padding-top: 12px; }
.st-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; margin-bottom: 26px; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.st-done h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.st-ref { margin-top: 16px; font: 500 15px var(--mono); color: var(--steel); }
.st-ref b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Summary */
.bk-sum { position: sticky; top: 100px; min-width: 0; }
.sm-card { border-radius: 24px; background: var(--cloud); padding: 24px; }
.sm-dev { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sm-dev img, .sm-ph { width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: var(--paper); padding: 6px; }
.sm-dev b { display: block; font-size: 17px; line-height: 1.25; }
.sm-dev small { color: var(--steel); font-size: 14px; }
.sm-rows { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sm-rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.sm-rows dt { color: var(--steel); }
.sm-rows dd { font-weight: 600; text-align: right; }
.sm-trust { list-style: none; padding: 18px 0 0; display: grid; gap: 9px; font-size: 14px; }
.sm-trust li { display: flex; align-items: center; gap: 10px; }
.sm-trust li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/10px no-repeat; }
.sm-help { margin-top: 18px; font-size: 14px; color: var(--steel); }
.sm-help a { color: var(--ink); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .bk-main { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .bk-sum { position: static; order: -1; margin: 0 calc(-1 * max(20px, env(safe-area-inset-left, 0px))) 28px; }
  .sm-card { border-radius: 0; padding: 14px max(20px, env(safe-area-inset-left, 0px)); }
  .sm-dev { grid-template-columns: 52px 1fr; padding: 0; border: 0; }
  .sm-dev img, .sm-ph { width: 52px; height: 52px; }
  .sm-rows, .sm-trust, .sm-help { display: none; }
  body[data-step="4"] .sm-rows { display: grid; padding-bottom: 0; border: 0; }
  .bk-call { display: none; }
}
@media (max-width: 560px) {
  .bk-top { gap: 10px; }
  .bk-logo img { height: 28px; }
  .st-types { grid-template-columns: 1fr; }
  .st-types button { min-height: 0; }
  .st-tnum { margin-bottom: 6px; }
  .st-form { grid-template-columns: 1fr; }
  .st-cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-cats img { height: 84px; }
  .st-models { grid-template-columns: 1fr 1fr; }
  .st-nav .btn-red { flex: 1; }
  .st-actions > * { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ===== v2 polish ===== */
.bk-secure { background: none; padding: 0; color: var(--steel); font-weight: 500; }
.bk-secure svg { color: var(--ok); }
.bk-top { border-bottom: 1px solid rgba(0,0,0,.06); }
.bk-bar { display: none; }

/* Stepper */
.st-steps { list-style: none; padding: 0; display: flex; gap: 6px; margin-bottom: 34px; }
.st-steps li { flex: 1; display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--mist); }
.st-steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--line); }
.st-steps li.done::before, .st-steps li.on::before { background: var(--ink); }
.st-steps li.on { color: var(--ink); }
.st-steps li.done { color: var(--steel); }
.st-steps i { display: none; }
.st-head h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.04em; }

/* Brand tiles: logo + real device photo */
.st-brands { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.st-brands button { position: relative; display: grid; align-content: start; gap: 2px; height: 210px; padding: 20px; border: 0; border-radius: 22px; background: var(--cloud); overflow: hidden; text-align: left; transition: background .2s, transform .25s; }
.st-brands button:hover { background: #ECECEF; transform: translateY(-2px); }
.bt-logo { display: flex; align-items: center; height: 30px; margin-bottom: 10px; }
.bt-logo img { width: auto; height: auto; max-height: 26px; max-width: 104px; object-fit: contain; }
.bt-name { font-size: 17px; font-weight: 700; }
.st-brands small { font-size: 13px; color: var(--mist); font-weight: 500; }
.bt-dev { position: absolute; right: -8px; bottom: -10px; height: 52%; width: auto; max-width: 62%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.14)); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.st-brands button:hover .bt-dev { transform: translateY(-6px) rotate(-2deg); }

/* Category + model tiles: borderless, photo-led */
.st-cats button { border-radius: 22px; }
.st-model { border: 0; background: var(--cloud); border-radius: 18px; }
.st-model:hover { background: #ECECEF; }
.st-search { border-radius: 999px; }

/* Issues */
.st-issues button { position: relative; border: 0; background: var(--cloud); border-radius: 18px; padding: 20px 20px 18px; transition: background .2s; }
.st-issues button:hover { background: #ECECEF; }
.st-issues em { font: 500 12px var(--mono); font-style: normal; color: var(--mist); margin-top: 10px; }

/* Service types */
.st-types button { border: 0; background: var(--cloud); box-shadow: none; }
.st-types button:hover:not(:disabled) { background: #ECECEF; }
.st-types button[aria-pressed="true"] { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.st-types button:disabled { cursor: not-allowed; opacity: .55; }
.st-types button:disabled b { color: var(--steel); }
.st-off { display: inline-block; font: 600 12px var(--mono); letter-spacing: .02em; color: var(--steel); }

/* Days / slots / form: lighter */
.st-days button, .st-slots button { border-color: transparent; background: var(--cloud); }
.st-days button:hover, .st-slots button:hover:not(:disabled) { border-color: var(--ink); }
.st-form input, .st-form textarea { background: var(--cloud); border-color: transparent; }
.st-form input:focus, .st-form textarea:focus { background: var(--paper); }

/* Summary */
.sm-card { background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: 0 0 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.05); }
.sm-dev { display: block; padding: 0; border: 0; }
.sm-img { display: grid; place-items: center; height: 210px; background: radial-gradient(ellipse at 50% 70%, #fff, var(--cloud) 75%); border-bottom: 1px solid var(--line); }
.sm-img img { width: auto; height: auto; max-height: 160px; max-width: 70%; background: none; padding: 0; border-radius: 0; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.15)); }
.sm-dev > div:last-child { padding: 20px 24px 0; }
.sm-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.sm-dev b { font-size: 22px; letter-spacing: -.02em; }
.sm-dev small { font-size: 15px; }
.sm-rows { margin: 16px 24px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sm-g { display: flex; align-items: center; gap: 6px; margin: 18px 24px 0; font-size: 14px; color: var(--steel); text-decoration: none; }
.sm-g b { color: var(--ink); }
.g-stars { color: #F5A623; letter-spacing: 1px; }
.sm-trust { margin: 0 24px; padding-top: 14px; gap: 12px; grid-template-columns: 1fr 1fr; }
.sm-trust li { display: grid; gap: 1px; font-size: 13px; color: var(--steel); }
.sm-trust li::before { display: none; }
.sm-trust b { font-size: 14px; color: var(--ink); }
.sm-help { margin: 18px 24px 0; }

@media (max-width: 900px) {
  .bk-main { padding-top: 24px; }
  .bk-sum { margin: 0 0 24px; }
  .sm-card { border-radius: 18px; padding: 12px; box-shadow: none; background: var(--cloud); border: 0; }
  .sm-dev { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
  .sm-img { height: 56px; width: 56px; border-radius: 12px; background: var(--paper); border: 0; }
  .sm-img img { max-height: 46px; max-width: 46px; filter: none; }
  .sm-dev > div:last-child { padding: 0; }
  .sm-k { display: none; }
  .sm-dev b { font-size: 16px; }
  .sm-dev small { font-size: 13px; }
  .sm-g, .sm-trust, .sm-help { display: none; }
  body[data-step="4"] .sm-rows { margin: 12px 0 0; padding-bottom: 0; border-bottom: 0; }
  .st-steps span { font-size: 12px; }
}
@media (max-width: 560px) {
  .st-brands { grid-template-columns: 1fr 1fr; gap: 10px; }
  .st-brands button { height: 168px; padding: 16px; }
  .bt-logo img { max-width: 84px; max-height: 22px; }
}
