/* ── Licensing page ───────────────────────────────────── */
html, body { min-height: 100%; }
body.purchase-page { overflow-x: hidden; overflow-y: auto; background-color: var(--bg); background-image: linear-gradient(145deg, var(--bg) 0%, var(--bg-end) 100%); }
.purchase-theme { position: fixed; top: max(18px, env(safe-area-inset-top)); right: 18px; z-index: 10; }
.purchase-shell { width: min(100% - 44px, 1060px); margin: 0 auto; padding: 30px 0 max(34px, env(safe-area-inset-bottom)); }
.purchase-head { display: grid; gap: clamp(48px, 10vw, 150px); grid-template-columns: auto 1fr; align-items: start; padding: 12px 0 54px; }
.purchase-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 650; transition: color .2s var(--ease), transform .2s var(--ease); }
.purchase-back:hover { color: var(--text); transform: translateX(-2px); }
.purchase-back svg { width: 17px; height: 17px; transform: rotate(180deg); }
.purchase-intro { max-width: 570px; }
.eyebrow { display: block; color: var(--accent); font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.purchase-intro h1 { margin: 8px 0 10px; font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .95; letter-spacing: -.07em; }
.purchase-intro p, .contact-head p { margin: 0; color: var(--muted); font-size: 15px; }
.license-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.license-card { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 24px; overflow: hidden; border: 1px solid var(--edge); border-radius: 28px; background: var(--bg); box-shadow: var(--raise); animation: purchase-in .6s var(--ease) calc(var(--i) * 80ms) backwards; }
.license-card::after { content: ""; position: absolute; width: 180px; height: 180px; top: -100px; right: -80px; border-radius: 50%; background: color-mix(in srgb, var(--card-accent) 14%, transparent); filter: blur(8px); pointer-events: none; }
.limited { --card-accent: var(--accent); }
.unlimited { --card-accent: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--edge)); }
.exclusive { --card-accent: var(--warn); }
.license-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.license-number { color: var(--card-accent); }
.license-tag { padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--card-accent) 11%, var(--bg)); color: var(--card-accent); }
.license-card h2 { margin: 46px 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.06em; }
.license-lead { min-height: 49px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.price-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 26px 0 24px; }
.price-option, .single-price { border-radius: 16px; background: color-mix(in srgb, var(--card-accent) 8%, var(--bg)); box-shadow: var(--inset-sm); }
.price-option { display: grid; gap: 2px; padding: 13px; }
.price-option span, .single-price span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.price-option strong { font-size: 24px; line-height: 1; letter-spacing: -.05em; }
.price-option small { color: var(--muted); font-size: 10px; }
.single-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 24px; padding: 17px; }
.single-price strong { font-size: 23px; line-height: 1; letter-spacing: -.05em; }
.license-list { display: grid; gap: 12px; margin: auto 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; }
.license-list li { position: relative; padding-left: 19px; color: var(--text-2); font-size: 13px; }
.license-list li::before { content: ""; position: absolute; top: .65em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--card-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent) 14%, transparent); }
.purchase-contact { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: end; margin-top: 76px; padding: 28px 0 8px; border-top: 1px solid var(--line); }
.contact-head h2 { margin: 8px 0 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.06em; }
.contact-links { display: grid; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 14px 10px 10px; border: 1px solid var(--edge); border-radius: 21px; background: var(--bg); box-shadow: 3px 3px 8px var(--sh-d), -3px -3px 8px color-mix(in srgb, var(--sh-l) 30%, transparent); animation: purchase-in .5s var(--ease) calc(var(--i) * 55ms) backwards; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.contact-link:hover { transform: translateY(-2px); box-shadow: 4px 4px 10px var(--sh-d), -4px -4px 10px color-mix(in srgb, var(--sh-l) 30%, transparent); }
.contact-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--text-2); box-shadow: inset 2px 2px 6px var(--sh-d), inset -2px -2px 6px color-mix(in srgb, var(--sh-l) 30%, transparent); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-copy { min-width: 0; flex: 1; }
.contact-copy b, .contact-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy b { font-size: 14px; }
.contact-copy small { color: var(--muted); font-size: 12px; }
.contact-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--muted); box-shadow: 2px 2px 6px var(--sh-d), -2px -2px 6px color-mix(in srgb, var(--sh-l) 30%, transparent); }
.contact-arrow svg { width: 17px; height: 17px; }
.contact-empty { padding: 18px; border-radius: 18px; box-shadow: var(--inset-sm); color: var(--muted); font-size: 13px; }
.purchase-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 54px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.purchase-back-bottom { display: inline-flex; align-items: center; gap: 7px; transition: color .2s var(--ease), transform .2s var(--ease); }
.purchase-back-bottom:hover { color: var(--text); transform: translateX(-2px); }
.purchase-back-bottom svg { width: 15px; height: 15px; transform: rotate(180deg); }
@keyframes purchase-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 800px) { .purchase-head { grid-template-columns: 1fr; gap: 44px; } .license-grid { grid-template-columns: 1fr; } .license-card { min-height: 0; } .purchase-contact { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; } }
@media (max-width: 520px) { .purchase-shell { width: min(100% - 32px, 500px); padding-top: 22px; } .purchase-head { padding-bottom: 38px; } .purchase-intro h1 { font-size: 3rem; } .license-card { padding: 20px; border-radius: 24px; } .purchase-foot { flex-direction: column; margin-top: 38px; } }
@media (prefers-reduced-motion: reduce) { .license-card, .contact-link { animation: none; } }
