:root {
  --ink: #10100f;
  --paper: #f4f0e8;
  --purple: #6b35d9;
  --purple-deep: #351476;
  --purple-pale: #e5dcff;
  --line: rgba(16, 16, 15, 0.17);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Mono", monospace; }
button { font: inherit; }

.landing { position: relative; display: grid; min-height: 100svh; padding: 1.5rem; overflow: hidden; isolation: isolate; }
.landing::before { position: absolute; z-index: -1; top: 13%; left: -8%; width: 44vw; height: 44vw; border-radius: 50%; background: rgba(107, 53, 217, 0.11); filter: blur(8px); content: ""; }
.wordmark, .eyebrow, footer, .availability { font-size: 0.64rem; letter-spacing: 0.11em; line-height: 1.35; }
.wordmark { align-self: start; }

.stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); grid-template-areas: "copy media" "actions media" "checkout media" "availability media"; gap: 1.25rem clamp(2rem, 5vw, 6rem); width: min(1180px, 100%); margin: auto; padding: 3rem 0; }
.copy { grid-area: copy; align-self: end; }
.eyebrow { margin: 0 0 1.6rem; color: var(--purple-deep); }
h1 { max-width: 740px; margin: 0; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(3.8rem, 7.1vw, 7.1rem); font-weight: 400; letter-spacing: -0.065em; line-height: 0.83; }
h1 em { color: var(--purple); }

.media-placeholder { position: relative; grid-area: media; display: flex; aspect-ratio: 4 / 5; min-height: 430px; padding: 1.25rem; overflow: hidden; color: var(--paper); background: radial-gradient(circle at 79% 15%, #f3d1ff 0 3%, transparent 19%), radial-gradient(ellipse at 23% 83%, #3e148f 0 4%, transparent 52%), linear-gradient(144deg, #0f0623 8%, #42147e 45%, #a462e4 69%, #d5b2fb 100%); box-shadow: 14px 15px 0 var(--purple); }
.media-placeholder::before { position: absolute; inset: 0; background: linear-gradient(125deg, transparent 28%, rgba(255,255,255,.19) 28.3%, transparent 29%), linear-gradient(transparent 64%, rgba(11,2,29,.36)); content: ""; }
.media-grain { position: absolute; inset: 0; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.media-placeholder p, .media-index { position: relative; z-index: 1; margin: 0; }
.media-placeholder p { align-self: center; font-size: clamp(1.15rem, 2vw, 1.9rem); letter-spacing: .08em; line-height: 1.06; }
.media-index { align-self: end; margin-left: auto; font-size: .63rem; }

.actions { grid-area: actions; display: grid; max-width: 480px; border-top: 1px solid var(--line); }
.action-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 3.7rem; padding: .9rem 0; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: .73rem; letter-spacing: .025em; text-align: left; transition: padding .22s ease, color .22s ease, background .22s ease; }
.action-button span:last-child { color: var(--purple); font-size: 1.2rem; transition: transform .22s ease; }
.action-button:hover, .action-button:focus-visible { padding-inline: .8rem; color: var(--purple-deep); background: var(--purple-pale); outline: 0; }
.action-button:hover span:last-child, .action-button:focus-visible span:last-child { transform: translate(3px, -3px); }
.action-button.primary { color: var(--purple-deep); font-weight: 500; }
.checkout-panel { grid-area: checkout; display: none; max-width: 480px; padding: 1.1rem; border: 1px solid var(--purple); background: var(--purple-pale); }
.checkout-panel.is-open { display: block; animation: reveal .26s ease both; }
.checkout-panel__header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.checkout-panel__eyebrow { margin: 0; color: var(--purple-deep); font-size: .6rem; letter-spacing: .11em; }
.checkout-panel__close { width: 1.5rem; height: 1.5rem; margin: -.25rem -.25rem 0 0; padding: 0; border: 0; color: var(--purple-deep); background: transparent; cursor: pointer; font-size: 1.45rem; line-height: 1; }
.checkout-panel__close:hover, .checkout-panel__close:focus-visible { color: var(--ink); outline: 1px solid var(--purple-deep); outline-offset: 2px; }
.checkout-panel h2 { margin: 1.35rem 0 .45rem; font-family: "Instrument Serif", Georgia, serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -.04em; line-height: .9; }
.checkout-panel__note { margin: 0; color: rgba(16,16,15,.72); font-size: .67rem; line-height: 1.55; }
.checkout-slot { min-height: 4rem; margin-top: 1.1rem; border: 1px dashed rgba(53,20,118,.48); color: var(--purple-deep); }
.checkout-status { display: grid; min-height: 4rem; place-items: center; margin: 0; padding: .8rem; font-size: .58rem; letter-spacing: .11em; text-align: center; }
.checkout-status.is-error { color: #8b1d3f; }
.checkout-form { padding: 1rem; background: rgba(244,240,232,.72); }
.checkout-submit { display: flex; justify-content: space-between; width: 100%; margin-top: 1rem; padding: .83rem .9rem; border: 1px solid var(--purple-deep); color: var(--paper); background: var(--purple-deep); cursor: pointer; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.checkout-submit:disabled { cursor: wait; opacity: .7; }
.checkout-submit:hover, .checkout-submit:focus-visible { color: var(--purple-deep); background: transparent; outline: 0; }
.availability { grid-area: availability; align-self: start; margin: 0; color: rgba(16,16,15,.66); }
.availability span { display: inline-block; width: .48rem; height: .48rem; margin-right: .45rem; border-radius: 50%; background: var(--purple); }
footer { display: flex; justify-content: space-between; align-self: end; color: rgba(16,16,15,.63); }

@keyframes reveal { from { opacity: 0; transform: translateY(-.45rem); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) { .landing { padding: 1.1rem; } .stage { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "actions" "checkout" "availability"; margin-block: 1.5rem; padding: 0; gap: 1.5rem; } h1 { font-size: clamp(3.45rem, 16.1vw, 5.5rem); } .media-placeholder { min-height: 0; aspect-ratio: 5 / 4; box-shadow: 9px 10px 0 var(--purple); } footer { font-size: .53rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
