:root {
  color-scheme: dark;
  --bg: #0a0e13;
  --surface: #10171f;
  --raised: #121a22;
  --ink: #e9eef3;
  --muted: #a3b1bf;
  --line: #28333e;
  --edge: #586776;
  --accent: #1ec8b6;
  --accent-hover: #7af0e2;
  --on-accent: #04110f;
  --selected: #10302f;
  --warn: #efb76c;
  --error: #ff9a85;
  --studio: #1b2732;
  --grid: rgb(146 184 204 / 7%);
  --header: rgb(10 14 19 / 93%);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1f4;
  --surface: #fff;
  --raised: #f6f8fa;
  --ink: #111820;
  --muted: #4b5763;
  --line: #cdd6de;
  --edge: #788591;
  --accent: #096e65;
  --accent-hover: #06584f;
  --on-accent: #fff;
  --selected: #e1f3ef;
  --warn: #895216;
  --error: #aa3324;
  --studio: #e2e8ed;
  --grid: rgb(44 75 90 / 7%);
  --header: rgb(238 241 244 / 93%);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, summary, a[href] { cursor: pointer; }
:focus-visible, .logocard:has(:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.wrap { width: min(1140px, 92vw); margin: auto; }
.skip, .sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.skip:focus { width: auto; height: auto; clip-path: none; z-index: 30; background: var(--surface); }
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.head, .brand, .hero-actions, .actions { display: flex; align-items: center; }
.head { gap: 20px; min-height: 68px; }
.brand { gap: 11px; font-size: .98rem; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--edge); border-radius: 6px; background: var(--raised);
}
.brand-mark::after {
  content: ""; width: 32px; height: 16px; background: var(--accent);
  mask: url("iwc-mark.svg") center / contain no-repeat;
}
.headtag, .headlink { font-size: .84rem; }
.headtag { color: var(--muted); border-left: 1px solid var(--line); padding-left: 20px; }
.headlink { font-weight: 650; }
.headlink:hover, .steps a:hover, .delivery a:hover { color: var(--accent); }
.theme {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px;
  margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--muted);
}
.theme:hover { color: var(--ink); }
.theme svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
:root[data-theme="light"] .theme-sun,
:root[data-theme="dark"] .theme-moon { display: none; }

.hero { padding: 40px 0 28px; }
.hero-copy { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; }
.hero-copy .rubric { grid-column: 1 / -1; }
.hero-copy h1 { margin-bottom: 0; }

.rubric { margin: 0 0 18px; padding-left: 13px; border-left: 2px solid var(--accent); color: var(--muted); font-size: .94rem; }
.rubric span { font-family: var(--mono); }
h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.034em; font-weight: 760; }
[data-client] .name-artwork {
  display: inline-block;
  height: .66em;
  width: 5.145em;
  max-width: 100%;
  padding: 0;
  margin: 0;
  vertical-align: baseline;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
[data-client]:has(.name-prefix) {
  display: inline-grid; width: 5.1em; max-width: 100%; gap: .14em;
  grid-template-columns: minmax(0, 1fr); justify-items: end;
}
[data-client]:has(.name-prefix) .name-artwork {
  display: block; width: 63%; height: auto; object-position: right;
}
[data-client]:has(.name-prefix) .name-prefix { width: 100%; }
@media screen {
  :root[data-theme="dark"] .name-artwork { filter: brightness(0) invert(.94); }
}
.highlight { display: block; color: var(--accent); }
.hero-lead, .lead { color: var(--muted); line-height: 1.6; }
.hero-lead { margin: 0 0 24px; max-width: 39ch; font-size: 1.05rem; }
.hero-actions, .actions { gap: 10px; flex-wrap: wrap; }
.primary, .secondary, .actions button {
  display: inline-flex; align-items: center; gap: 12px; padding: 9px 15px; border: 1px solid var(--edge);
  border-radius: 6px; font-size: .89rem; font-weight: 650; line-height: 1.5;
}
.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.secondary, .actions button { color: var(--ink); background: transparent; }
.secondary:hover, .actions button:hover { border-color: var(--accent); }
.model, .webcard, .sitemap, .quotebox, .editorial {
  min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.model { overflow: hidden; margin-top: 16px; max-width: 900px; }
.model-top {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; font: 12px/1.4 var(--mono);
}
.model-top { justify-content: space-between; border-bottom: 1px solid var(--line); }
.model-top span { color: var(--muted); }
.vehicle-views { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; margin:0; padding:9px 12px; border:0; border-bottom:1px solid var(--line); }
.vehicle-views label { position:relative; cursor:pointer; }
.vehicle-views input, .vehicle-views legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.vehicle-views span { display:flex; flex-direction:column; align-items:center; gap:3px; padding:4px 2px; border:1px solid transparent; border-radius:5px; color:var(--muted); font-size:.86rem; }
.vehicle-views img { display:block; width:56px; height:26px; object-fit:contain; background:white; border-radius:3px; }
.vehicle-views :checked + span { background:var(--selected); border-color:var(--accent); color:var(--ink); }
.vehicle-views :focus-visible + span { outline:2px solid var(--accent); outline-offset:1px; }
#vehicle-mock { display:block; width:100%; height:auto; max-height:370px; background:white; }
#vehicle-mock [data-view] { visibility:hidden; }
#vehicle-mock .is-current { visibility:visible; }
/* The approved artwork and all four views share one decoded sheet. */
:root:has(#materiale-promotionale:target), :root:has(.vehicle-views:focus-within) { scroll-behavior: auto; }
.vehicle-strip-controls label { touch-action: manipulation; }
.vehicle-strip-controls img { object-fit: cover; object-position: center 0%; }
.vehicle-strip-controls [value="right"] + span img { object-position: center 33.333333%; }
.vehicle-strip-controls [value="rear"] + span img { object-position: center 66.666667%; }
.vehicle-strip-controls [value="front"] + span img { object-position: center 100%; }
#vehicle-mock.vehicle-strip { max-height: none; }
.vehicle-window {
  width: 100%; aspect-ratio: 600 / 272; margin-inline: auto; overflow: hidden;
}
.vehicle-film {
  display: block; width: 100%; height: 400%; transform: translate3d(0, var(--view-offset, 0%), 0);
}
.vehicle-strip-controls:has([value="right"]:checked) + .vehicle-strip { --view-offset: -25%; }
.vehicle-strip-controls:has([value="rear"]:checked) + .vehicle-strip { --view-offset: -50%; }
.vehicle-strip-controls:has([value="front"]:checked) + .vehicle-strip { --view-offset: -75%; }
.steps { display: flex; gap: clamp(18px, 4vw, 50px); flex-wrap: wrap; border-block: 1px solid var(--line); padding: 13px 0; }
.steps a { font-weight: 600; font-size: .92rem; }
.chapter { padding: 38px 0; border-bottom: 1px solid var(--line); }
.chapter > h2 { margin: 0 0 7px; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 720; letter-spacing: -.03em; line-height: 1.15; }
.lead { max-width: 72ch; margin: 0 0 20px; }
.eyebrow, .swatch { font: 600 .73rem/1.4 var(--mono); color: var(--accent); }
.logos { align-items: start; margin: 0; padding: 0; min-width: 0; border: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.logocard { position: relative; min-width: 0; border: 1px solid var(--edge); border-radius: 7px; cursor: pointer; overflow: hidden; background: var(--surface); }
.logocard:has(:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.logocard input[type="radio"] { position: absolute; z-index: 1; right: 12px; top: 10px; margin: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.logo-choice { display: block; cursor: pointer; }
.logo-step { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.logo-step legend, #preview-title { font-size: 1rem; font-weight: 650; margin: 0 0 10px; }
#full-logo {
  display: block; width: 100%; height: auto; padding: clamp(12px, 3vw, 36px);
  border: 1px solid var(--edge); border-radius: 7px; background: #f5f7f8;
}
.families { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.family-choice, .palette-option { display:flex; align-items:center; gap:10px; position:relative; min-width:0; cursor:pointer; border:1px solid var(--edge); background:var(--surface); border-radius:7px; padding:10px 12px; }
.family-choice:has(:checked), .palette-option:has(:checked) { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent); }
.family-choice input,.palette-option input { accent-color:var(--accent); margin:0; }
.family-choice img { width:42px; height:42px; background:#f5f7f8; border-radius:4px; padding:4px; }
.family-choice span { display:grid; }
.family-choice small { color:var(--muted); font:600 .72rem var(--mono); }
.palette { display:flex; flex-wrap:wrap; gap:8px; }
.palette-option { font-size:.9rem; min-height:44px; }
.ink-dot { width:18px; height:18px; border-radius:50%; border:1px solid #0002; }
@media(max-width:650px) { .families { grid-template-columns:1fr; } }
.color-message:empty { display: none; }
.color-message { flex-basis: 100%; color: var(--error); }
.swatch { position: absolute; left: 12px; top: 10px; color: #42505c; }
.logoart { display: grid; place-items: center; min-height: 122px; padding: 34px 20px 18px; background: #f5f7f8; }
.logoart img { width: 100%; max-width: 250px; height: 65px; object-fit: contain; }
.logos[data-family="cord"] .logoart img { height: 96px; }
.delivery, .fine, .webmock p, .editorial p { color: var(--muted); }
.delivery { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; margin-top: 14px; }
.delivery a { color: var(--accent); font-weight: 650; }
.notice { padding: 9px 13px; margin: 0 0 16px; border-left: 2px solid var(--warn); background: var(--raised); color: var(--muted); font-size: .85rem; }
.webgrid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 16px; }
.browserbar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 10px 15px; }
.browserbar i { width: 7px; height: 7px; border-radius: 50%; background: var(--edge); }
.browserbar span { margin-left: auto; font: .66rem var(--mono); color: var(--muted); }
.webmock, .sitemap { padding: 24px; }
.webmock img, .quote-top img { display: block; width: 155px; height: 50px; padding: 5px; object-fit: contain; border-radius: 4px; background: #f5f7f8; }
.webmock img { margin-bottom: 22px; }
.webmock h3, .quote-top h3 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); letter-spacing: -.03em; line-height: 1.12; margin: 10px 0; }
.webmock p, .editorial p { font-size: .91rem; }
.samplecta { display: inline-block; padding: 7px 12px; border-radius: 4px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 650; }
.sitemap ol, .editorial ol { margin: 14px 0 0; padding: 0; list-style: none; }
.sitemap li, .editorial li { border-top: 1px solid var(--line); padding: 9px 0; font-size: .9rem; }
.editorial { padding: 15px 21px; margin-top: 14px; }
.editorial summary, .editorial summary > span:first-child { display: flex; align-items: center; gap: 12px; }
.editorial summary { justify-content: space-between; font-weight: 650; list-style: none; }
.editorial summary::-webkit-details-marker { display: none; }
.editorial small { color: var(--accent); font: .75rem var(--mono); }
.editorial[open] .plus { transform: rotate(45deg); }
.editorial ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.quotebox { max-width: 900px; padding: clamp(18px, 3vw, 36px); }
.quote-top, .line, .total { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.quote-top { margin-bottom: 18px; }
.quote-top img { max-width: 30%; }
.approved-quote #quote-logo { width:min(60%,230px); max-width:none; height:auto; }
.approved-quote [data-code] { color:var(--muted); font:0.8rem var(--mono); }
.line { padding: 14px 0; border-top: 1px solid var(--line); font-size: .93rem; }
.line span, .total small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.line strong, .total strong { white-space: nowrap; font-family: var(--mono); }
.total { padding: 14px 16px; border-radius: 6px; background: var(--selected); font-size: 1.13rem; font-weight: 650; }
.total strong { color: var(--accent); font-size: clamp(1.5rem, 3vw, 2.15rem); }
.fine { font-size: .8rem; }
.actions { margin: 20px 0 10px; }
#feedback { color: var(--accent); font-size: .86rem; margin: 0; white-space: pre-wrap; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; padding: 22px 0; color: var(--muted); font-size: .78rem; }

@media (max-width: 840px) {
  .headtag { display: none; }
  .hero h1 { font-size: clamp(2.2rem, 5vw, 2.8rem); }
  .model-top { padding-inline: 11px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .head { min-height: 58px; gap: 10px; }
  .brand { font-size: .86rem; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .headlink { display: none; }
  .hero { padding: 30px 0 22px; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-copy .hero-actions { margin-top: 18px; }
  h1 { margin-bottom: 12px; }
  .rubric { margin: 0 0 12px; }
  .hero-lead { margin-bottom: 16px; font-size: 1rem; }
  .steps { gap: 8px 16px; }
  .steps a { font-size: .84rem; }
  .chapter { padding: 28px 0; }
  .logos, .webgrid, .editorial ol { grid-template-columns: 1fr; }
  .swatch { left: 9px; top: 6px; font-size: .64rem; }
  .logoart { min-height: 83px; padding: 18px 10px 8px; }
  .logoart img { height: 46px; }
  .logos[data-family="cord"] .logoart img { height: 56px; }
  .logocard input[type="radio"] { top: 8px; right: 7px; width: 15px; height: 15px; }
  .webmock, .sitemap { padding: 19px; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
@media print {
  :root, :root[data-theme] {
    color-scheme: light; --bg: white; --surface: white; --ink: black; --muted: #374151;
    --line: #bbb; --accent: #064e46; --selected: #eee;
  }
  header, .hero, .steps, footer, .actions, .skip, #feedback, section.chapter:not(#deviz),
  .quotebox > span, .quote-top .eyebrow, #deviz > .lead { display: none !important; }
  .wrap { width: 100%; }
  .chapter, .quotebox { padding: 0; border: 0; }
  .total { border: 1px solid var(--line); }
  .line, .total { break-inside: avoid; }
}

[hidden] { display:none !important; }
