:root {
  --bg: #f7f8f5;
  --panel: #ffffff;
  --ink: #151719;
  --muted: #637075;
  --line: #dfe4dc;
  --teal: #0f766e;
  --blue: #315dfa;
  --lime: #c9ea61;
  --coral: #dc5f45;
  --intent-response: 180ms;
  --intent-pull: 10px;
  --intent-press: 3px;
  --intent-glow: .38;
  --intent-ease: cubic-bezier(.2, .8, .2, 1);
  --cursor-x: 0px;
  --cursor-y: 0px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 26px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--ink);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.brand-mark::before {
  inset: 8px;
  border: 2px solid var(--lime);
}

.brand-mark::after {
  right: 5px;
  bottom: 5px;
  width: 11px;
  height: 11px;
  background: var(--coral);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.release-pill,
.small-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475256;
  background: #fff;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.intro {
  max-width: 710px;
  padding: 26px 0 28px;
}

.eyebrow,
.panel-label,
.mini-label {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 840;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(48px, 9vw, 96px);
  line-height: .92;
  letter-spacing: 0;
}

.intro p {
  margin-bottom: 0;
  color: #394347;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
}

.drop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: stretch;
}

.preview-panel,
.tune-panel,
.detail-card {
  border: 1px solid rgba(21, 23, 25, .09);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(21, 23, 25, .03);
}

.preview-panel {
  min-width: 0;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 0;
}

.preview-toolbar strong {
  display: block;
  font-size: 22px;
}

.preview-surface {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: clamp(16px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, .06), transparent 42%),
    #fbfcf9;
}

.product-card {
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid rgba(21, 23, 25, .1);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(24, 31, 30, .12);
}

.product-card h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.product-card p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.intent-button {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 56px;
  overflow: hidden;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow:
    0 18px 34px rgba(21, 23, 25, calc(.14 + var(--intent-glow) * .18)),
    0 0 0 1px rgba(255, 255, 255, .08) inset;
  font-weight: 820;
  transform: translate(var(--cursor-x), var(--cursor-y));
  transition:
    transform var(--intent-response) var(--intent-ease),
    box-shadow var(--intent-response) var(--intent-ease),
    background var(--intent-response) var(--intent-ease);
}

.intent-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, calc(var(--intent-glow) * .9)), transparent 34%),
    linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, calc(var(--intent-glow) * .55)), transparent 58%);
  transform: translateX(-26%);
  transition: transform var(--intent-response) var(--intent-ease);
}

.intent-button:hover::before,
.intent-button:focus-visible::before {
  transform: translateX(10%);
}

.intent-button:active {
  transform: translate(var(--cursor-x), calc(var(--cursor-y) + var(--intent-press))) scale(.99);
}

.intent-button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .28);
  outline-offset: 3px;
}

.button-label,
.button-status {
  position: relative;
  z-index: 1;
}

.button-label {
  min-width: 0;
  text-align: left;
}

.button-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #e8eee9;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
}

.tune-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
}

.tune-panel h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1;
}

.control-row,
.select-row {
  display: grid;
  gap: 8px;
}

.control-row span,
.select-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #394246;
  font-size: 13px;
  font-weight: 780;
}

output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcf9;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 150px;
  resize: vertical;
  padding: 12px;
  color: #394246;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
}

.button-row {
  display: flex;
  gap: 8px;
}

.primary-button,
.quiet-button {
  min-height: 38px;
  border-radius: 999px;
  font-weight: 780;
}

.primary-button {
  padding: 0 16px;
  border: 0;
  color: #fff;
  background: var(--ink);
}

.quiet-button {
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.details-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(240px, .7fr) minmax(300px, 1fr);
  gap: 14px;
  padding: 14px 0 48px;
}

.detail-card {
  min-width: 0;
  padding: 16px;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

pre {
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151719;
  color: #f5f7f1;
  font-size: 13px;
  line-height: 1.5;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (max-width: 900px) {
  .drop-layout,
  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 12px;
  }

  .topbar {
    padding-bottom: 18px;
  }

  .release-pill {
    display: none;
  }

  .intro {
    padding-top: 12px;
  }

  h1 {
    font-size: clamp(46px, 15vw, 66px);
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-surface {
    min-height: 380px;
    padding: 12px;
  }

  .product-card {
    padding: 14px;
  }

  .intent-button {
    min-height: 54px;
    padding-inline: 16px;
  }
}

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