/* DW-303 page: the instrument's silver panel and red LEDs, on a soft warm ground.
   Sans-serif throughout; everything is scoped to .dw303-page. */
.dw303-page {
  --ink: #1d1c1a; --ink-dim: #55534d; --ink-faint: #75726b;
  --ground: #ecebe6; --band: #f7f6f3; --card: #fcfbf9;
  --rule: #dcd9d2; --rule-strong: #bdb9b0;
  --led: #e0362b; --led-soft: #f05a45; --led-glow: rgba(240, 70, 50, .55); --amber: #e6a840;
  --night: #181816; --night-rule: #34332f;
  --radius: 18px; --radius-sm: 12px;
  --card-border: 1px solid rgba(0, 0, 0, .065);
  --card-shadow: 0 1px 2px rgba(30, 28, 24, .04), 0 8px 24px -14px rgba(30, 28, 24, .14);
  --cols: minmax(0, 1fr) minmax(0, 1.15fr); --col-gap: clamp(32px, 7vw, 104px);
  --text-s: 13px; --text-m: 15px; --text-l: 17px;
  background: var(--ground); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.dw303-page h1, .dw303-page h2, .dw303-page h3 { font-family: var(--sans); font-weight: 500; margin: 0; }
.dw303-page h1 { font-size: clamp(72px, 9vw, 128px); line-height: .92; letter-spacing: -.055em; }
.dw303-page h1 span { color: var(--led); }
.dw303-page h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.dw303-page h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.015em; text-wrap: balance; }
:where(.dw303-page) p { margin: 0; text-wrap: pretty; }
.dw303-page a { color: inherit; }
.dw303-page .pp-crumbs { font-family: var(--sans); font-size: var(--text-s); letter-spacing: 0; text-transform: none; margin-bottom: clamp(32px, 4vw, 48px); }
.dw303-page .crumb { color: var(--ink-faint); text-decoration: none; }
.dw303-page .crumb.active, .dw303-page .crumb:hover { color: var(--ink); }
.dw303-page .crumb-sep { color: var(--rule-strong); margin: 0 2px; }
.dw303-page a:focus-visible, .dw303-page button:focus-visible { outline: 2px solid var(--led); outline-offset: 3px; border-radius: 4px; }

/* One light card recipe, shared by every light card on the page */
.dw303-offer, .dw303-overview li, .dw303-stage, .dw303-ravet, .dw303-spec-list, .dw303-param-list {
  background: var(--card); border: var(--card-border); box-shadow: var(--card-shadow);
}
/* One chip recipe */
.dw303-format-list li, .dw303-param-range {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  background: transparent; border: 1px solid var(--rule-strong); color: var(--ink-dim); font: 500 var(--text-s)/1.3 var(--sans); white-space: nowrap;
}

/* ---------- Hero ---------- */
.dw303-hero {
  padding: 40px 0 clamp(48px, 5vw, 72px);
  background: radial-gradient(80% 60% at 85% 0%, rgba(255, 255, 255, .55), transparent 70%), var(--ground);
}
.dw303-heading {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px);
}
.dw303-title { position: relative; display: inline-block; padding-right: clamp(56px, 6vw, 84px); }
.dw303-lede { max-width: 30ch; margin-top: 28px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; letter-spacing: -.012em; }
.dw303-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.dw303-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: var(--text-m); color: var(--ink-dim); text-decoration: none; transition: color .15s; }
.dw303-links a span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-faint); font-size: var(--text-s); transition: border-color .15s, transform .2s; }
.dw303-links a:hover { color: var(--ink); }
.dw303-links a:hover span { border-color: var(--ink); transform: translateY(2px); }

/* Sticker: a small static badge pinned to the title; it lifts on hover */
.dw303-ravet-sticker {
  --size: clamp(84px, 7.5vw, 104px);
  position: absolute; top: calc(var(--size) * -.4); right: calc(var(--size) * -.3);
  display: grid; place-content: center; justify-items: center; gap: calc(var(--size) * .06);
  width: var(--size); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8483a, #cf3027 70%); color: #fffaf3;
  text-decoration: none; box-shadow: 0 4px 12px -4px rgba(150, 30, 20, .3), inset 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-12deg); transition: transform .25s ease, box-shadow .25s ease;
}
.dw303-ravet-sticker span { font: 500 calc(var(--size) * .125)/1 var(--sans); letter-spacing: -.01em; }
.dw303-ravet-logo {
  display: block; width: calc(var(--size) * .64); aspect-ratio: 1119 / 350; background: currentColor;
  -webkit-mask: url("ravet/logo.svg") center / contain no-repeat; mask: url("ravet/logo.svg") center / contain no-repeat;
}
.dw303-page .dw303-ravet-sticker { color: #fffaf3; }
.dw303-ravet-sticker:hover { transform: rotate(-6deg) scale(1.05); box-shadow: 0 8px 18px -6px rgba(150, 30, 20, .4), inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* Offer card */
.dw303-offer { padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); }
.dw303-offer > p { font-size: var(--text-m); line-height: 1.6; color: var(--ink-dim); text-wrap: balance; }
.dw303-offer .dw303-price { display: flex; align-items: baseline; gap: 10px; font-size: var(--text-l); margin-bottom: 6px; }
.dw303-price strong { color: var(--ink); font-size: 36px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.dw303-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dw303-platforms { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-dim); }
.dw303-platforms strong { display: inline-block; min-width: 72px; color: var(--ink); font-weight: 600; }
.dw303-button {
  display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px;
  border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: 500 var(--text-m)/1.3 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.dw303-button:hover { border-color: var(--ink); background: rgba(0, 0, 0, .03); }
.dw303-button:active { transform: translateY(1px); }
.dw303-button--primary { background: var(--ink); border-color: var(--ink); color: #f6f4ef; }
.dw303-button--primary:hover { background: var(--led); border-color: var(--led); color: #fff; }
.dw303-button[disabled] { background: #e9e7e1; border-color: transparent; color: var(--ink-faint); cursor: default; transform: none; }
.dw303-button[disabled]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(230, 168, 64, .2); }

/* Product shot on a dark stage */
.dw303-panel {
  position: relative; margin: 0; padding: clamp(20px, 3.4vw, 48px) clamp(16px, 5vw, 80px) clamp(16px, 2.6vw, 36px);
  border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: radial-gradient(70% 90% at 50% 0%, #34322e 0%, var(--night) 72%);
}
.dw303-panel::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); pointer-events: none; }
.dw303-panel img { display: block; width: 100%; height: auto; border-radius: 10px; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, .55)); }

.dw303-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.dw303-overview li { padding: 20px 22px 22px; border-radius: var(--radius-sm); }
.dw303-overview strong { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-m); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; }
.dw303-overview strong::before { content: ''; flex: none; width: 7px; height: 7px; margin-top: .45em; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px rgba(224, 54, 43, .14); }
.dw303-overview span { display: block; margin-top: 6px; color: var(--ink-dim); font-size: var(--text-s); line-height: 1.5; }

/* ---------- Sections ---------- */
.dw303-section { padding: clamp(64px, 7vw, 96px) 0; }
.dw303-split, .dw303-section-head { display: grid; grid-template-columns: var(--cols); gap: var(--col-gap); }
.dw303-section-head { align-items: start; margin-bottom: clamp(36px, 4vw, 52px); }
/* One intro style: first paragraph in ink, the rest dim */
.dw303-section-head > p, .dw303-prose p { max-width: 58ch; font-size: 18px; line-height: 1.65; }
.dw303-section-head > p, .dw303-prose { padding-top: .5em; }
.dw303-prose { align-self: start; }
.dw303-prose p + p { margin-top: 18px; color: var(--ink-dim); }
.dw303-note { max-width: 72ch; margin-top: 24px; color: var(--ink-faint); font-size: var(--text-s); line-height: 1.7; }

/* Circuit stages: each card has a small dark scope screen */
.dw303-circuit, .dw303-formats { background: var(--band); }
.dw303-stage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.dw303-stage { padding: 12px 12px 24px; border-radius: var(--radius); }
.dw303-stage-viz {
  height: 112px; margin-bottom: 22px; padding: 18px 16px 14px; border-radius: 10px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 22px), linear-gradient(180deg, #23221f, #191917);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
}
.dw303-stage-viz .impulse { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.dw303-stage-viz .impulse span { flex: 1; min-height: 1px; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, var(--led-soft), rgba(224, 54, 43, .35)); }
.dw303-stage h3, .dw303-stage p { padding: 0 12px; }
.dw303-stage p { margin-top: 8px; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.6; }

/* Sequencer: a strip of panel keys whose LEDs run while it is on screen */
.dw303-sequencer {
  background: radial-gradient(60% 50% at 50% 0%, #2a2926, var(--night) 70%);
  color: #f1efea; --ink-dim: #bdb9b0; scroll-margin-top: 90px;
}
.dw303-steps {
  display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 8px;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(180deg, #e9e7e2, #d3d0c9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.dw303-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 0 10px; border-radius: 8px; background: #2a2926; }
.dw303-step::after { content: ''; order: 2; width: 64%; height: 24px; border-radius: 4px; background: linear-gradient(180deg, #f1eee8, #b4b0a8); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), 0 1px 2px rgba(0, 0, 0, .4); }
.dw303-step i { order: 1; width: 8px; height: 8px; border-radius: 50%; background: #3a2a28; }
.dw303-step b { order: 3; font: 500 11.5px/1 var(--mono); color: #a9a59d; }
.dw303-step:nth-child(4n + 1) b { color: #ebe8e2; }
.dw303-step.accent i { background: var(--led-soft); box-shadow: 0 0 8px var(--led-glow); }
/* Slide: an amber bar under the key, inside its own step */
.dw303-step.slide::before { content: ''; position: absolute; left: 18%; right: 18%; bottom: 27px; height: 3px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 6px rgba(230, 168, 64, .45); }
.dw303-steps.is-running .dw303-step i { animation: dw303-step 2s steps(1, end) infinite; animation-delay: calc(var(--i) * .125s); }
@keyframes dw303-step {
  0% { background: #fff1e6; box-shadow: 0 0 12px var(--led-glow); }
  6.25%, 100% { background: #3a2a28; box-shadow: none; }
}
.dw303-steps.is-running .dw303-step:nth-child(4n + 1) b { color: #ebe8e2; }
.dw303-step.accent i { animation-name: dw303-step-accent; }
@keyframes dw303-step-accent {
  0% { background: #fff1e6; box-shadow: 0 0 12px var(--led-glow); }
  6.25%, 100% { background: var(--led-soft); box-shadow: 0 0 8px var(--led-glow); }
}
.dw303-steps-key { display: flex; gap: 24px; margin: 18px 0 clamp(44px, 5vw, 64px); color: var(--ink-dim); font-size: var(--text-s); }
.dw303-steps-key span { display: inline-flex; align-items: center; gap: 8px; }
.dw303-key-accent::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--led-soft); box-shadow: 0 0 8px var(--led-glow); }
.dw303-key-slide::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: var(--amber); }
.dw303-seq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dw303-seq-grid article { padding: 24px 24px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.dw303-seq-grid p { margin-top: 10px; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.65; }

/* Controls: one card holding a ruled three-column list */
.dw303-param-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 0; padding: 8px 32px; border-radius: var(--radius); }
.dw303-param-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 6px 12px; padding: 20px 0; border-top: 1px solid var(--rule); }
.dw303-param-list > div:nth-child(-n + 3) { border-top: 0; }
.dw303-param-list dt { display: flex; align-items: center; min-height: 28px; font: 600 12.5px/1.3 var(--mono); letter-spacing: .06em; }
.dw303-param-list dd { grid-column: 1 / -1; margin: 0; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.5; }
.dw303-param-list dd.dw303-param-range { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; font-size: var(--text-s); line-height: 1.3; }

/* Formats */
.dw303-format-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 28px 0 0; padding: 0; }
.dw303-format-list li { padding: 6px 13px; }

/* Source and RAVET: two equal-height cards */
.dw303-source-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.dw303-ravet { padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); }
.dw303-ravet h3 { font-size: 21px; }
.dw303-ravet p { margin-top: 14px; color: var(--ink-dim); font-size: var(--text-m); line-height: 1.7; }
.dw303-ravet a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-top: 10px; font-size: var(--text-m); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 5px; }
.dw303-ravet a:hover { color: var(--led); text-decoration-color: currentColor; }
.dw303-spec-list { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 8px 28px; border-radius: var(--radius); }
.dw303-spec-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 18px 0; font-size: var(--text-m); }
.dw303-spec-list > div + div { border-top: 1px solid var(--rule); }
.dw303-spec-list dt { font-weight: 500; }
.dw303-spec-list dd { margin: 0; color: var(--ink-dim); line-height: 1.6; overflow-wrap: anywhere; }
.dw303-spec-list a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 4px; }
.dw303-spec-list a:hover { color: var(--led); text-decoration-color: currentColor; }

/* Close */
.dw303-close { padding-top: 0; color: #f1efea; --ink-dim: #bdb9b0; --rule-strong: #57554f; }
.dw303-close-inner {
  display: grid; grid-template-columns: var(--cols); gap: 28px var(--col-gap); align-items: end;
  padding: clamp(36px, 4.5vw, 64px); border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(40% 110% at 10% 0%, rgba(224, 54, 43, .22), transparent 70%), var(--night);
}
.dw303-close-inner p { max-width: 44ch; font-size: var(--text-l); line-height: 1.6; color: var(--ink-dim); }
.dw303-close-body .dw303-actions { margin-top: 24px; }
.dw303-close .dw303-button { color: #f1efea; flex: 0 0 auto; }
.dw303-close .dw303-button:hover { border-color: #f1efea; background: rgba(255, 255, 255, .06); }
.dw303-close .dw303-button--primary { background: #f1efea; border-color: #f1efea; color: var(--night); }
.dw303-close .dw303-button--primary:hover { background: var(--led); border-color: var(--led); color: #fff; }
.dw303-trademark { max-width: 72ch; margin-top: 20px; color: var(--ink-faint); font-size: var(--text-s); line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .dw303-param-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw303-param-list > div:nth-child(3) { border-top: 1px solid var(--rule); }
  .dw303-stage-grid, .dw303-seq-grid, .dw303-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Product shot straight after the intro, then the offer */
  .dw303-hero > .wrap { display: flex; flex-direction: column; }
  .dw303-heading { display: contents; }
  .dw303-intro { order: 1; margin-bottom: 28px; }
  .dw303-panel { order: 2; }
  .dw303-offer { order: 3; margin-top: 16px; }
  .dw303-overview { order: 4; }
  .dw303-split, .dw303-section-head, .dw303-source-grid, .dw303-close-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dw303-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); row-gap: 12px; }
}
@media (max-width: 560px) {
  .dw303-page h1 { font-size: 68px; }
  .dw303-ravet-sticker { --size: 62px; top: -18px; right: -6px; }
  .dw303-title { padding-right: 64px; }
  .dw303-hero { padding-top: 24px; }
  .dw303-page .pp-crumbs { margin-bottom: 36px; }
  .dw303-lede { margin-top: 18px; font-size: 19px; }
  .dw303-links { margin-top: 6px; }
  .dw303-intro { margin-bottom: 20px; }
  .dw303-section-head > p, .dw303-prose p { font-size: 16px; }
  .dw303-section-head > p, .dw303-prose { padding-top: 0; }
  /* Full-bleed product shot */
  .dw303-panel { margin: 0 calc(var(--gutter) * -1); padding: 14px 8px; border-radius: 0; }
  .dw303-panel img { border-radius: 5px; }
  .dw303-overview { gap: 8px; margin-top: 16px; }
  .dw303-overview li { padding: 16px 14px; }
  .dw303-stage-grid { gap: 8px; }
  .dw303-stage { padding: 8px 8px 16px; }
  .dw303-stage-viz { height: 72px; margin-bottom: 14px; padding: 12px 8px 8px; border-radius: 8px; }
  .dw303-stage-viz .impulse { gap: 1px; }
  .dw303-stage h3, .dw303-stage p { padding: 0 6px; }
  .dw303-stage h3 { font-size: 16px; }
  .dw303-stage p { font-size: 14px; line-height: 1.5; hyphens: auto; }
  .dw303-seq-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .dw303-seq-grid article { padding: 20px; }
  .dw303-steps { gap: 6px; padding: 12px; }
  .dw303-step b { font-size: 10px; }
  .dw303-step.slide::before { bottom: 25px; }
  .dw303-param-list { grid-template-columns: minmax(0, 1fr); padding: 4px 18px; }
  .dw303-param-list > div { padding: 14px 0; }
  .dw303-param-list > div:nth-child(n + 2) { border-top: 1px solid var(--rule); }
  .dw303-spec-list { padding: 4px 18px; }
  .dw303-spec-list > div { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 14px 0; font-size: 14px; }
  .dw303-format-list { gap: 5px; }
  .dw303-format-list li { padding: 4px 9px; font-size: 12.5px; }
  .dw303-close-inner { grid-template-columns: minmax(0, 1fr); }
  .dw303-close-body .dw303-actions { margin-top: 20px; }
  .dw303-actions, .dw303-button { width: 100%; }
  .dw303-close-inner { padding: 32px 22px; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
  .dw303-ravet-sticker, .dw303-links a span, .dw303-button { transition: none; }
  .dw303-steps.is-running .dw303-step i { animation: none; }
}
