@font-face {
  font-family: Montserrat;
  src: url(montserrat.ttf) format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #191b1e;
  --muted: #505962;
  --line: #d8dbdd;
  --surface: #f2f3f3;
  --blue: #214ec2;
  --pad: clamp(20px, 4.5vw, 80px);
  --ease: cubic-bezier(.22,1,.36,1);
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--ink);
  scroll-behavior: smooth;
}
* { box-sizing: border-box }
@media (forced-colors: none) {
  html { scrollbar-gutter: stable }
  @supports selector(::-webkit-scrollbar) {
    html::-webkit-scrollbar { width: 12px; height: 12px }
    html::-webkit-scrollbar-track { background: #edf0f3 }
    html::-webkit-scrollbar-thumb { background: #596678; border: 2px solid #edf0f3; border-radius: 8px }
    html::-webkit-scrollbar-thumb:hover { background: #214ec2 }
  }
  @supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: #596678 #edf0f3 }
  }
}
body, h1, h2, h3, p, figure { margin: 0 }
body { background: #fff }
a { color: inherit; text-decoration: none }
button, input, select { font: inherit; color: inherit }
button, summary { cursor: pointer }
button, a, summary, input, select { outline-offset: 4px }
:focus-visible { outline: 3px solid #3573ea }
::selection { background: #cfdefc; color: #14223a }
input { caret-color: var(--blue) }
.wrap { width: min(100%,1640px); padding-inline: var(--pad); margin-inline: auto }
.skip { position: absolute; z-index: 9; top: -90px; background: white; padding: 14px }
.skip:focus { top: 0 }
.nav { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 4 }
.brand { display: inline-flex; gap: 10px; align-items: center }
.brand img { width: 45px }
.brand span { font-weight: 720; font-size: 1.15rem; letter-spacing: -.035em }
.brand small { display: block; margin-top: 2px; font-size: .6875rem; font-weight: 580; letter-spacing: .13em }
.nav > nav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 30px; background: var(--surface) }
nav a { display: block; padding: 10px 16px; border-radius: 20px; font-size: .86rem; font-weight: 580 }
nav a[aria-current="page"], nav a:hover { background: white; color: var(--blue) }
.mobile-nav { display: none }
.button, .utility {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 28px; min-height: 46px; padding: 13px 22px;
  font-size: .88rem; line-height: 1.35; font-weight: 650;
  transition: transform .24s var(--ease), background-color .24s var(--ease);
}
.dark { color: white; background: var(--ink) }
.dark:hover { background: #32435d }
.button:active, .utility:active, .choice:active { transform: scale(.98) }
.utility { background: #e6e9eb; white-space: nowrap }
.utility:hover { background: #dce1e5 }
.utility svg, .mobile-nav svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65 }
.hero-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0,1.22fr); gap: clamp(30px,4vw,72px); align-items: center; padding-block: 16px 28px }
.hero-copy { padding-block: 24px }
h1, h2, h3 { text-wrap: balance; font-weight: 630; letter-spacing: -.04em }
.hero h1 { font-size: clamp(3.3rem,5.25vw,5.8rem); line-height: .99; text-wrap: initial }
.hero h1 span:last-child { color: #3171e9 }
.hero-copy p, .intro p, #presets > p, .how li p { color: var(--muted); font-size: 1rem; line-height: 1.65 }
.hero-copy p { max-width: 38ch; margin: 24px 0 30px; font-size: clamp(1rem,1.17vw,1.18rem) }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px }
.text-link { font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #969da4; padding-block: 12px }
.text-link:hover { color: var(--blue) }
.product-photo { position: relative; isolation: isolate; overflow: hidden; background: #d9dadd; border-radius: 16px; height: clamp(350px,34vw,555px) }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 77% center; display: block; animation: focus-photo .85s var(--ease) }
@keyframes focus-photo { from { transform: scale(1.035) } }
.product-photo figcaption {
  position: absolute; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 8px;
  border-radius: 24px; background: #fafafa; color: var(--ink); padding: 8px 12px; font-size: .79rem; font-weight: 590;
}
.product-photo figcaption i, .swatch { width: 14px; height: 14px; border-radius: 50%; background: #36383c; box-shadow: inset 0 0 0 1px #181b201f }
.facts { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-block: 18px 26px }
.facts > div { display: flex; gap: 11px; align-items: center; font-size: .88rem; font-weight: 550 }
.facts svg { width: 23px; height: 23px; fill: none; stroke: #48525d; stroke-width: 1.4; stroke-linejoin: round }
.section { padding-block: clamp(64px,6.5vw,108px); scroll-margin: 16px }
.studio-section { background: var(--surface) }
h2, .intro h1 { font-size: clamp(2.2rem,3.8vw,4.4rem); line-height: 1.05 }
h3, .tray-heading h2, .summary h2 { font-size: 1.4rem; line-height: 1.2 }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px }
.intro p, #presets > p { margin-top: 12px }
.studio-grid { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(265px,1fr); gap: 20px; align-items: start }
.workbench, .summary { border-radius: 16px; padding: clamp(18px,2.1vw,34px) }
.workbench { background: white; min-width: 0 }
.summary { background: #24272b; color: #fafafa; position: sticky; top: 16px }
.summary h2 { font-size: 1.8rem; margin-bottom: 20px }
.options { display: flex; flex-wrap: wrap; gap: 16px 28px; margin-bottom: 20px }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0 }
legend, .capacity b { font-size: .9rem; font-weight: 640 }
legend { margin-bottom: 8px }
.choices { display: flex; gap: 4px; flex-wrap: wrap }
.choice { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; min-height: 42px; border: 1px solid transparent; background: #f0f2f3; border-radius: 9px; font-weight: 560; font-size: .85rem }
.choice:hover { background: #e6eaee }
.choice[aria-pressed=true] { background: #e9effc; border-color: #90a9df; color: #193f91 }
.size-choice { display: grid; justify-items: start; gap: 3px; min-width: 76px }
.size-choice small { font-size: .75rem; font-weight: 480 }
.preview-box { border-radius: 12px; background: #e5e8ea; box-shadow: inset 0 1px 3px #24272b14 }
.preview-head, .preview-foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .81rem; padding: 15px 18px; color: #44505b }
.preview-head span:first-child, .preview-foot span:first-child { font-weight: 640; color: #262d35 }
.preview-foot { margin-inline: 18px; padding-inline: 0; border-top: 1px solid #c8ced2 }
.mat-drawing { display: block; width: 100%; height: auto }
.slot { fill: #283441; stroke: #a4b8cf; stroke-width: 1; stroke-dasharray: 3 2 }
.slot-number { fill: #f0f5fa; font: 10px Montserrat, sans-serif; pointer-events: none }
.placed, [data-add] { touch-action: none; cursor: grab }
.placed:focus-visible { outline: none }
.placed:focus-visible rect:first-child { stroke: #6198ff; stroke-width: 3 }
.dragging .slot { fill: #33577c; stroke: #c0ddff }
.slot.target { fill: #214ec2; stroke: white; stroke-width: 2 }
.reject { animation: shake .28s var(--ease) }
@keyframes shake { 25%,75% { transform: translateX(3px) } 50% { transform: translateX(-3px) } }
.ghost { position: fixed; top: 0; left: 0; z-index: 8; pointer-events: none; background: white; padding: 10px 16px; font-size: .88rem; border-radius: 20px; box-shadow: 0 6px 22px #17263826 }
.micro, .muted { color: var(--muted); line-height: 1.55 }
.micro { font-size: .8rem; margin-top: 9px }
.muted { font-size: .9rem }
.tray-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 30px 0 6px }
.filters { margin: 16px 0 8px }
.filters .choice { border-radius: 24px }
#tray { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px }
.warranty-option { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: .89rem; cursor: pointer }
.warranty-option input { accent-color: var(--blue) }
.warranty-option small { display: block; margin-top: 4px; color: var(--muted); font-size: .81rem }
.accessory { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 11px; padding: 13px 2px; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: white }
.accessory > svg { width: 48px; height: 48px; background: #eef0f1; border-radius: 10px }
.accessory small, .preset small { display: block; color: var(--muted); margin-top: 4px; font-size: .81rem }
.accessory b { font-size: .89rem }
.add-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--blue); background: #eef3ff }
.add-icon svg, .remove svg, .close svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round }
.accessory:hover .add-icon { color: white; background: var(--blue) }
.row, .total, .capacity > div:first-child, .footer-top, .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.row { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .88rem }
.row span:last-child { white-space: nowrap }
.row small { display: block; color: var(--muted); margin-top: 2px }
.remove, .close { display: inline-grid; place-items: center; border: 0; border-radius: 50%; vertical-align: middle; width: 36px; height: 36px }
.remove { margin-left: 5px; background: #41464d; color: white }
.remove:hover { background: #555c65 }
.summary .row, .summary .total { border-color: #454a50 }
.summary .micro, .summary .row small, .summary #capacity { color: #c4cad0 }
.capacity { margin: 22px 0; font-size: .85rem }
#meter { display: flex; gap: 4px; margin-top: 12px }
#meter i { height: 6px; flex: 1; background: #59616c; border-radius: 4px }
#meter i::after { content: ""; display: block; height: 100%; border-radius: inherit; background: #8cb7ff; transform-origin: left; transform: scaleX(0) }
#meter .used::after { transform: scaleX(1) }
.total { padding: 20px 0; border-top: 1px solid var(--line) }
.total strong { font-size: 1.45rem; letter-spacing: -.03em }
.total, .row, #meter, #capacity, #mobile-total, .preset-price { font-variant-numeric: tabular-nums }
.full { width: 100% }
.summary .dark { background: #fff; color: #191b1e }
.summary .dark:hover { background: #dce9ff }
.summary > .micro { text-align: center }
#feedback:not(:empty) { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5; color: white; background: #24272b; box-shadow: 0 4px 20px #191b1e28; padding: 12px 18px; border-radius: 10px; font-size: .88rem; width: max-content; max-width: calc(100% - 24px) }
#preset-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; margin-top: 30px }
.preset { background: transparent; border: 0; text-align: left; padding: 0 }
.preset-art, .order-art { display: block; background: #e8e9e8; border-radius: 12px; overflow: hidden }
.preset:nth-child(2) .preset-art { background: #e2e8ec }
.preset:nth-child(3) .preset-art { background: #efeee9 }
.preset-art svg { transition: transform .45s var(--ease) }
.preset:hover .preset-art svg, .preset:focus-visible .preset-art svg { transform: scale(1.045) }
.preset-copy { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 6px; padding: 14px 0 }
.preset-copy strong { display: block; font-size: 1.12rem; line-height: 1.25; font-weight: 630 }
.preset-price { font-size: .82rem; white-space: nowrap }
.how { background: var(--surface) }
.how-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: clamp(30px,7vw,110px); align-items: stretch }
.how-detail { background: #ccc url(desk-hero.webp) 50% 13% / 290% auto no-repeat; border-radius: 14px; min-height: 290px }
.how ol { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: steps }
.how li { display: grid; grid-template-columns: 26px 1fr; gap: 4px 14px; padding: 16px 0; border-top: 1px solid var(--line); counter-increment: steps }
.how li:before { content: counter(steps,decimal-leading-zero); grid-row: span 2; color: var(--blue); font-size: .84rem; padding-top: 3px; font-weight: 630 }
.how li p { font-size: .92rem }
footer { background: #191b1e; color: white; padding: 46px 0 }
footer img { filter: brightness(0) invert(1) }
footer p, .footer-bottom { color: #c8cdd2; font-size: .82rem; line-height: 1.65 }
footer p { margin: 26px 0; max-width: 75ch }
.footer-top > span { font-size: .9rem }
.footer-bottom { border-top: 1px solid #44494e; padding-top: 16px }
dialog { width: min(510px,calc(100% - 24px)); max-height: 90dvh; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 16px; padding: 32px; color: var(--ink) }
dialog::backdrop { background: #161b22ab }
.close { position: absolute; right: 12px; top: 12px; background: #e9edef; width: 40px; height: 40px }
.checkout-page { max-width: 620px; margin-inline: auto; padding: clamp(18px, 5vw, 38px); border-radius: 16px; background: white }
.checkout-page h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 18px }
.order-art { margin: 16px 0 }
.order-art svg { max-height: 155px }
.checkout-page label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600 }
.checkout-page form { display: grid; gap: 14px; margin-top: 18px }
#checkout :is(#customer-name, #customer-phone) {
  min-height: 48px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #9299a2;
  border-radius: 10px;
  background-color: #f8f9fa;
  font-size: 1rem;
  font-weight: 500;
}
.fulfilment-options > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.fulfilment-options label { position: relative; cursor: pointer }
.fulfilment-options input { position: absolute; width: 1px; height: 1px; opacity: 0 }
.fulfilment-options span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid #9299a2; border-radius: 10px; background: #f8f9fa }
.fulfilment-options span::before { content: ""; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; flex: none }
.fulfilment-options input:checked + span { border-color: var(--blue); background: #e9effc; color: #193f91 }
.fulfilment-options input:checked + span::before { border: 4px solid currentColor }
.fulfilment-options input:focus-visible + span { outline: 3px solid #3573ea; outline-offset: 3px }
.checkout-page input[aria-invalid="true"] { border-color: #a12835 }
.checkout-page .field-error { color: #a12835; font-weight: 500; line-height: 1.4 }
.checkout-page .field-error:empty { display: none }
.checkout-page p { line-height: 1.55 }
.order-buttons { display: flex; gap: 8px }
.order-buttons > * { flex: 1 }
#mobile-total { display: none }

@media (max-width: 990px) {
  .studio-grid { grid-template-columns: minmax(0,1.65fr) minmax(250px,1fr) }
  #tray { grid-template-columns: 1fr }
  .preset-copy { grid-template-columns: 1fr }
  .hero h1 { font-size: clamp(3rem,6.1vw,4rem) }
}
@media (max-width: 767px) {
  .nav { min-height: 68px; gap: 8px }
  .nav > nav { display: none }
  .nav-cta { margin-left: auto; font-size: .78rem; min-height: 40px; padding: 10px 14px }
  .brand img { width: 33px }
  .brand { gap: 6px }
  .brand span { font-size: .92rem }
  .brand small { display: none }
  .mobile-nav { display: block }
  .mobile-nav summary { display: grid; place-items: center; border-radius: 50%; width: 40px; height: 40px; background: var(--surface); list-style: none }
  .mobile-nav summary::-webkit-details-marker { display: none }
  .mobile-nav nav { position: absolute; top: calc(100% - 5px); right: var(--pad); background: white; border-radius: 12px; padding: 7px; min-width: 175px; box-shadow: 0 7px 32px #17263826 }
  .mobile-nav a { min-height: 44px }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 16px 14px }
  .hero-copy { padding-block: 6px 0 }
  .hero h1 { font-size: clamp(3.1rem,11vw,4.8rem) }
  .hero-copy p { margin: 16px 0 18px }
  .product-photo { height: clamp(200px,54vw,360px) }
  .facts { gap: 5px; flex-wrap: nowrap; padding-block: 12px 22px }
  .facts > div { flex: 1; flex-direction: column; text-align: center; gap: 6px; font-size: .76rem; line-height: 1.3 }
  .facts svg { width: 20px; height: 20px }
  .section { padding-block: 52px }
  .intro { display: grid; gap: 15px; margin-bottom: 18px }
  .intro .utility { justify-self: start; min-height: 40px }
  .studio-grid, .how-layout { grid-template-columns: 1fr }
  .workbench, .summary { padding: 16px }
  .summary { position: static; scroll-margin: 16px }
  .options { gap: 14px }
  .choice { min-height: 44px; padding: 8px 10px }
  .preview-head, .preview-foot { font-size: .76rem; padding-block: 11px }
  .preview-head { padding-inline: 12px }
  .preview-foot { margin-inline: 12px }
  .remove { width: 42px; height: 42px }
  #preset-list { grid-template-columns: 1fr; gap: 12px }
  .preset { display: grid; grid-template-columns: 41% 1fr; align-items: center; gap: 14px }
  .preset-art svg { min-height: 88px }
  .preset-copy { padding: 8px 0 }
  .how-detail { min-height: 0; height: clamp(150px,42vw,270px); background-position: 50% 15% }
  .how-layout { gap: 22px }
  .footer-top, .footer-bottom { align-items: start; flex-direction: column }
  footer .brand small { display: block }
  #mobile-total:not([hidden]) { display: flex; position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; align-items: center; justify-content: space-between; background: #24272b; color: white; padding: 15px var(--pad) max(15px,env(safe-area-inset-bottom)); font-size: .85rem }
  #feedback:not(:empty) { bottom: 56px }
  dialog { padding: 23px 18px }
}
@media (max-width: 430px) {
  .nav-cta { display: none }
}
@media (max-width: 365px) {
  .hero h1 { font-size: 3rem }
  .actions { gap: 12px }
  .workbench { padding: 12px }
  .choice { padding-inline: 8px }
  .order-buttons { flex-direction: column }
}
@keyframes rise-in {
  from { opacity: .55; transform: translateY(var(--rise, 12px)) }
  to { opacity: 1; transform: translateY(0) }
}
@keyframes magnetic-seat {
  0% { opacity: .7; transform: translateY(-7px) scale(.94) }
  62% { opacity: 1; transform: translateY(1.3px) scale(1.045,.97) }
  82% { transform: translateY(-.5px) scale(.99,1.01) }
  100% { transform: none }
}
@keyframes magnetic-ring {
  from { opacity: .8; transform: scale(.62) }
  to { opacity: 0; transform: scale(1.35) }
}
@keyframes review-in {
  from { opacity: .5; transform: translateY(12px) scale(.985) }
  to { opacity: 1; transform: none }
}
@keyframes dim-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes tray-in { from { opacity: .72 } to { opacity: 1 } }
.loading-screen[open] {
  display: grid; place-items: center; position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 20px; border: 0; border-radius: 0;
  background: #f8f9fa; color: var(--ink); animation: none;
}
.loading-screen[open]::backdrop { background: transparent; animation: none }
.loading-lockup { width: min(100%, 320px); display: grid; justify-items: center; text-align: center }
.loading-emblem { display: grid; place-items: center; width: 48px; height: 48px; background: #f1f3f5; border: 1px solid #dce1e6; border-radius: 10px }
.loading-emblem img { object-fit: contain }
.loading-lockup strong { margin-top: 20px; font-size: clamp(1.06rem, 3vw, 1.2rem); font-weight: 800; letter-spacing: .19em; text-indent: .19em }
.loading-lockup span { margin-top: 8px; font-size: .6875rem; font-weight: 600; color: var(--muted); letter-spacing: .23em; text-indent: .23em }
.loading-rail { display: block; width: 100%; height: auto; margin-top: 38px }
.loading-lockup p { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: .81rem; color: var(--muted); letter-spacing: .035em }
.loading-lockup p::before { content: ""; width: 6px; height: 6px; background: #2563eb; border-radius: 50% }
/* Slot offsets use the rail's SVG coordinates, so the keeper docks precisely at every width. */
@keyframes loading-dock {
  0% { transform: translate(-55px,-4px) }
  17%, 40% { transform: translate(0,0) }
  48% { transform: translate(0,-4px) }
  64%, 76% { transform: translate(55px,0) }
  85% { transform: translate(55px,-4px) }
  100% { transform: translate(-55px,-4px) }
}
@media (prefers-reduced-motion: no-preference) {
  .loading-keeper { animation: loading-dock 2.4s var(--ease) infinite }
  .loading-screen[open] { transition: opacity 150ms ease-out }
  .loading-screen.leaving { opacity: 0 }
}
.snap-ring { opacity: 0; pointer-events: none }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto }
  ::view-transition-group(root) { animation-duration: 140ms; animation-timing-function: ease-out }
  .internal-arrival .hero-copy > *, .internal-arrival .hero-photo { animation: none }
  nav a, .filters .choice { transition: background-color 130ms ease-out, color 130ms ease-out, border-color 130ms ease-out }
  .hero-copy > * { animation: rise-in .56s var(--ease) backwards }
  .hero-copy p { animation-delay: 65ms }
  .hero-copy .actions { animation-delay: 125ms }
  .preset.arrived .preset-art { animation: rise-in .55s var(--ease) backwards }
  .preset:nth-child(2).arrived .preset-art { animation-delay: 55ms }
  .preset:nth-child(3).arrived .preset-art { animation-delay: 110ms }
  .mobile-nav::details-content {
    opacity: 0;
    transition: opacity 120ms ease-out, content-visibility 120ms allow-discrete;
  }
  .mobile-nav[open]::details-content { opacity: 1 }
  .mobile-nav:not([open]) nav { pointer-events: none }
  .accessory { animation: tray-in 135ms ease-out }
  .settled .module-art, .settled .snap-ring { transform-box: fill-box; transform-origin: center }
  .settled .module-art { animation: magnetic-seat .34s cubic-bezier(.18,.78,.28,1) }
  .settled .snap-ring { animation: magnetic-ring .35s 60ms var(--ease) }
  #meter i::after { transition: transform .28s var(--ease) }
  dialog[open] { animation: review-in .24s var(--ease) }
  dialog[open]::backdrop { animation: dim-in .2s var(--ease) }
  #order-content:has(#new-setup) > :is(h2,p,.order-art) { --rise: 7px; animation: rise-in .3s var(--ease) }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important }
  dialog::backdrop { animation: none !important }
}

.footer-language { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; font-size: .86rem }
.footer-language select { min-height: 44px; padding: 8px 12px; background: #24272b; color: white; border: 1px solid #767e87; border-radius: 8px }
.receipt-print { margin: 22px 0 32px; padding-inline: clamp(0px, 4vw, 22px); color: #24272b }
.receipt-printer { position: relative; z-index: 1; height: 58px; padding: 0 14px; display: flex; align-items: flex-end; background: linear-gradient(#414951, #272e35); border-radius: 13px 13px 8px 8px; box-shadow: inset 0 1px 0 #69737e, 0 4px 9px #202b3929 }
.receipt-light { position: absolute; top: 15px; right: 16px; width: 6px; height: 6px; border-radius: 50%; background: #80adfb }
.receipt-slot { width: 100%; height: 9px; margin-bottom: 1px; background: #14191e; border-radius: 5px; box-shadow: inset 0 2px 0 #101419 }
.receipt-output { overflow: hidden; padding: 0 0 16px }
.receipt-paper { position: relative; margin: -3px 8px 0; padding: 18px clamp(12px, 4vw, 22px) 15px; background: #f7f8f9; box-shadow: 0 5px 14px #202b3914 }
.receipt-brand { display: flex; align-items: center; gap: 9px; font-size: .83rem; letter-spacing: .07em }
.receipt-brand img { object-fit: contain }
.receipt-number { margin: 8px 0; color: var(--muted); font-size: .77rem }
.receipt-paper .total { border-top: 0; padding-block: 12px }
.receipt-paper .total strong { font-size: 1.12rem }
.receipt-stamp { width: fit-content; border: 1px solid currentColor; border-radius: 3px; padding: 4px 8px; color: var(--blue); font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transform: rotate(-5deg) }
.receipt-tear { margin-inline: 8px; height: 8px; border-top: 1px dashed #a7b0bb; background: #f7f8f9 }
@keyframes receipt-line { from { opacity: 0; transform: translateY(-4px) } }
@keyframes receipt-feed {
  from { transform: translateY(-100%) }
  to { transform: translateY(0) }
}
@keyframes receipt-stamp { from { opacity: 0; transform: rotate(-13deg) scale(1.3) } }
@keyframes receipt-tear { to { opacity: 0; transform: translate(6px,12px) rotate(3deg) } }
@media (prefers-reduced-motion: no-preference) {
  .printing .receipt-paper { animation: receipt-feed var(--feed-duration) steps(12, end) both }
  .printing .receipt-paper > * { animation: receipt-line 180ms var(--ease) var(--line-delay) both }
  .printing .receipt-paper > .receipt-stamp { animation-name: receipt-stamp; animation-duration: 240ms }
  .printing .receipt-tear { animation: receipt-line 120ms var(--ease) var(--feed-duration) both, receipt-tear 280ms var(--ease) var(--tear-delay) forwards }
}
@media (max-width: 767px) { .footer-language { justify-content: flex-start } }

.survey-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 72px); align-items: start }
.survey-intro h1 { font-size: clamp(2.1rem, 4.4vw, 4.25rem); line-height: 1.05 }
.survey-intro p { color: var(--muted); line-height: 1.65; margin-top: 16px; max-width: 38ch }
.survey-card { width: 100%; max-width: none }
.survey-card form { margin: 0; gap: 22px }
.survey-card [hidden] { display: none }
.survey-card fieldset { display: grid; gap: 6px }
.survey-card legend { font-size: 1rem; margin-bottom: 10px }
.survey-card fieldset label { display: flex; align-items: center; padding: 10px 12px; gap: 10px; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #f8f9fa; cursor: pointer }
.survey-card label:has(input:checked) { background: #e9effc; border-color: var(--blue); color: #193f91 }
.survey-card input { flex: 0 0 auto; inline-size: 18px; block-size: 18px; margin: 0; accent-color: var(--blue) }
.survey-card fieldset label > span { min-inline-size: 0; overflow-wrap: anywhere }
.survey-thanks p { margin: 12px 0 18px }
@media (max-width: 900px) { .survey-layout { grid-template-columns: 1fr } }
@media (max-width: 1050px) { .nav > nav a { padding-inline: 10px } }
@media (prefers-reduced-motion: no-preference) {
  .survey-intro, .survey-card fieldset, .survey-thanks { animation: rise-in .4s var(--ease) backwards }
  .survey-card fieldset:nth-child(2) { animation-delay: 45ms }
  .survey-card fieldset:nth-child(3) { animation-delay: 90ms }
  .survey-card fieldset:nth-child(4) { animation-delay: 135ms }
}

.survey-progress label { font-size: .86rem; color: var(--muted) }
.survey-progress progress { width: 100%; height: 9px; display: block; margin: 9px 0 6px; accent-color: var(--blue) }
.survey-progress p { font-size: .82rem; color: var(--muted) }
.survey-step > h2, .survey-thanks h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin: 18px 0 }
.survey-step > fieldset + fieldset { margin-top: 22px }
.survey-card #survey { margin-top: 14px }
#survey-celebration:not(:empty) { margin-top: 14px; padding: 10px 12px; color: #193f91; background: #e9effc; border-radius: 9px; font-size: .9rem; font-weight: 650 }
.survey-confetti { position: fixed; inset: 0; z-index: 10; pointer-events: none; overflow: hidden }
.survey-confetti i { position: absolute; left: 50%; top: 48%; width: 7px; height: 10px; border-radius: 2px; background: var(--piece-color) }
@keyframes survey-confetti {
  0% { opacity: 0; transform: translate(0, 12px) rotate(0) }
  18% { opacity: 1 }
  60% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--turn)) }
  100% { opacity: 0; transform: translate(calc(var(--x) * 1.15), 38px) rotate(calc(var(--turn) * 1.25)) }
}
@media (prefers-reduced-motion: no-preference) {
  .survey-step:not([hidden]) > h2, #survey-celebration:not(:empty) { animation: rise-in .28s var(--ease) both }
  .survey-confetti i { animation: survey-confetti .8s var(--ease) both }
}
@media (prefers-reduced-motion: reduce) { .survey-confetti { display: none } }

.survey-coupon-icon { display: inline-block; font-size: 2.75rem; line-height: 1 }
.survey-coupon-number { display: grid; gap: 4px; width: fit-content; padding: 12px 16px; border: 1px dashed var(--blue); border-radius: 9px; background: #e9effc; color: #193f91 }
.survey-coupon-number span { font-size: .82rem; font-weight: 600 }
.survey-coupon-number strong { font-size: 1.4rem; font-variant-numeric: tabular-nums; letter-spacing: .12em }
@keyframes coupon-pop {
  from { opacity: 0; transform: translateY(8px) scale(.7) }
  65% { opacity: 1; transform: translateY(-3px) scale(1.14) }
  to { opacity: 1; transform: none }
}
@media (prefers-reduced-motion: no-preference) {
  .coupon-earned .survey-coupon-icon { animation: coupon-pop .4s var(--ease) both }
}

.theme-toggle { display: block; min-height: 44px; margin: 16px 0 0 auto; padding: 8px 14px; border: 1px solid #8993a0; border-radius: 24px; background: #24272b; color: #fff; cursor: pointer; font-size: .85rem }
.theme-toggle[aria-pressed="true"] { background: #233c61; border-color: #92b9ff }
@media (max-width: 767px) { .theme-toggle { margin-inline: 0 } }
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f3f8;
  --muted: #bdc7d3;
  --line: #465364;
  --surface: #1b222c;
  --blue: #a5c7ff;
  --dark-panel: #242e3a;
  --dark-control: #303d4d;
  --dark-selected: #263e62;
}
[data-theme="dark"] :is(body, .skip, .mobile-nav nav, nav a[aria-current="page"], nav a:hover, .loading-screen[open]) { background: #151b23 }
[data-theme="dark"] :is(.workbench, .checkout-page, .accessory, .ghost, .summary, .product-photo figcaption, dialog) { background: var(--dark-panel) }
[data-theme="dark"] :is(.utility, .choice, .add-icon, .fulfilment-options span, .survey-card fieldset label, #checkout :is(#customer-name, #customer-phone)) { background: var(--dark-control); color: var(--ink); border-color: var(--line) }
[data-theme="dark"] :is(.utility:hover, .choice:hover) { background: #3b4a5d }
[data-theme="dark"] :is(.choice[aria-pressed="true"], .fulfilment-options input:checked + span, .survey-card label:has(input:checked), #survey-celebration:not(:empty), .survey-coupon-number) { background: var(--dark-selected); color: var(--blue); border-color: #779fdf }
[data-theme="dark"] .button.dark, [data-theme="dark"] .accessory:hover .add-icon { background: #a5c7ff; color: #111d30 }
[data-theme="dark"] .button.dark:hover { background: #c9ddff }
[data-theme="dark"] :is(.preview-box, .preset .preset-art, .order-art) { background: #344152 }
[data-theme="dark"] :is(.preview-head, .preview-foot, .preview-head span:first-child, .preview-foot span:first-child) { color: var(--ink); border-color: var(--line) }
[data-theme="dark"] .facts svg { stroke: var(--muted) }
[data-theme="dark"] #checkout input[aria-invalid="true"] { border-color: #ff9ba6 }
[data-theme="dark"] .field-error { color: #ffb2ba }
[data-theme="dark"] :is(.nav .brand img, .loading-emblem img) { filter: brightness(0) invert(1) }
[data-theme="dark"] .loading-emblem { background: var(--dark-control); border-color: var(--line) }
[data-theme="dark"] .receipt-print { --ink: #24272b; --muted: #505962; --line: #d8dbdd; --blue: #214ec2; color-scheme: light }
@media (forced-colors: none) {
  html[data-theme="dark"] { scrollbar-color: #8394a9 #1b222c }
}
@media (max-width: 430px) {
  .order-buttons { flex-direction: column }
  .order-buttons > * { white-space: normal }
}
