:root {
  color-scheme: light;
  --bg: #fbfcfb;
  --ink: #17201c;
  --muted: #607067;
  --line: #dce7df;
  --surface: #ffffff;
  --soft: #eef8f2;
  --mint: #69c6a3;
  --mint-dark: #1d755b;
  --accent: #e85f4f;
  --sun: #f3c65b;
  --shadow: 0 24px 60px rgba(23, 32, 28, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
article[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 251, 0.92);
  border-bottom: 1px solid rgba(220, 231, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.header-action,
.button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand img {
  image-rendering: pixelated;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.header-action,
.button {
  gap: 9px;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1;
}

.header-action {
  padding: 10px 13px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  min-height: calc(100svh - 148px);
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 72px) 38px;
}

.purchase-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(180px, 0.42fr);
  align-items: center;
  gap: clamp(20px, 4vw, 62px);
  min-height: clamp(390px, 62svh, 620px);
  padding: clamp(40px, 6vw, 78px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fdfb 0%, #eef8f2 100%);
  border-bottom: 1px solid var(--line);
}

.purchase-result[hidden] {
  display: none;
}

.purchase-copy {
  max-width: 760px;
}

.purchase-copy h1 {
  max-width: 860px;
  margin: 10px 0 18px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.9;
}

.purchase-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.25;
  font-weight: 650;
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.purchase-cat {
  justify-self: center;
  width: min(100%, 310px);
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 22px 34px rgba(23, 32, 28, 0.14));
}

.hero-copy {
  max-width: 760px;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(5rem, 12vw, 10.5rem);
  line-height: 0.82;
  font-weight: 900;
}

.hero-lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.16;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.button {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font: inherit;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(232, 95, 79, 0.22);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button:not([aria-disabled="true"]):hover,
.button:not([aria-disabled="true"]):focus-visible,
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-1px);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.button[aria-disabled="true"] {
  cursor: default;
  box-shadow: none;
}

.status-row,
.release-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}

.status-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
}

.status-row div,
.release-meta div,
.details-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.status-row div {
  padding: 15px;
}

dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: grid;
  align-items: center;
}

.hero-target {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 26px 40px rgba(23, 32, 28, 0.1));
}

.cat-note {
  position: absolute;
  left: 8%;
  bottom: 4%;
  max-width: 250px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(220, 231, 223, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 650;
  box-shadow: 0 12px 30px rgba(23, 32, 28, 0.1);
}

.release-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 54px clamp(20px, 5vw, 72px) 64px;
  background: var(--soft);
  border-block: 1px solid var(--line);
}

.section-copy h2,
.details-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-copy p,
.details-grid p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.release-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(29, 117, 91, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(29, 117, 91, 0.12);
}

.release-main {
  display: grid;
  gap: 8px;
}

.release-label {
  color: var(--mint-dark);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.release-main strong {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.release-main span:last-child {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.release-meta {
  grid-column: 1 / -1;
  grid-template-columns: 0.8fr 0.8fr minmax(0, 1.4fr);
}

.release-meta div {
  min-width: 0;
  padding: 13px;
}

.release-meta dd {
  overflow-wrap: anywhere;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 64px clamp(20px, 5vw, 72px) 86px;
}

.details-grid article {
  padding: clamp(22px, 4vw, 34px);
}

.details-grid h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.license-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 22px;
}

.checkout-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 650;
}

.license-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 650;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .header-action {
    transition: transform 160ms ease, box-shadow 160ms ease;
  }
}

@media (max-width: 980px) {
  .hero,
  .purchase-result,
  .release-strip,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .release-panel {
    grid-template-columns: 1fr;
  }

  .purchase-cat {
    max-width: 240px;
  }
}

@media (max-width: 760px) {
  section[id],
  article[id] {
    scroll-margin-top: 184px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-action {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .header-action span {
    display: none;
  }

  .hero {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 26px;
  }

  .purchase-result {
    gap: 10px;
    min-height: auto;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .purchase-copy h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .purchase-copy p {
    font-size: 1.02rem;
  }

  .purchase-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .purchase-actions .button {
    justify-content: center;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(3.8rem, 20vw, 5.5rem);
  }

  .hero-lede {
    font-size: 1.08rem;
    line-height: 1.22;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
  }

  .hero-actions .button {
    justify-content: center;
    min-height: 44px;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero-actions .button svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
  }

  .release-meta {
    grid-template-columns: 1fr;
  }

  .status-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .status-row div {
    padding: 11px 9px;
  }

  .status-row dt {
    font-size: 0.72rem;
  }

  .status-row dd {
    font-size: 0.74rem;
  }

  .hero-visual {
    min-height: 154px;
  }

  .cat-note {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -8px 10px 0;
    padding: 9px 10px;
    font-size: 0.86rem;
  }
}
