/* Purchase confirmation and license card. Loaded only by the download page. */
.download-shell #receipt {
  display:grid; grid-template-columns:minmax(0,1fr); align-items:center;
  width:100%; max-width:none; gap:32px; padding:28px;
  border:1px solid var(--border-light); box-shadow:none; text-align:left;
  background:linear-gradient(115deg,#201715,#181817 46%,#151515);
}
.download-shell #receipt.has-key { grid-template-columns:repeat(2,minmax(0,1fr)); }
#receipt::before,#receipt::after { display:none; }
#receipt .receipt-summary { min-width:0; text-align:left; }
#receipt .stamp { display:none; width:88px; height:96px; margin:-12px 0 8px -10px; padding:0; border:0; background:none; box-shadow:none; }
#receipt.has-stamp .stamp { display:block; }
#receipt .stamp svg { width:100%; height:100%; overflow:visible; }
#receipt h1 { font:800 clamp(28px,3vw,40px)/1.15 var(--font-heading); letter-spacing:-.035em; margin:0 0 13px; }
#receipt .welcome-thanks { color:#cec6c0; font-size:15px; line-height:1.8; }
#receipt .sub { margin:16px 0 0; color:#b9ada3; font-size:13px; line-height:1.8; letter-spacing:0; }
#receipt .receipt-license { display:none; min-width:0; padding-left:30px; border-left:1px solid #4a3935; }
#receipt.has-key .receipt-license { display:block; }
#receipt .key-label { display:block; margin:0 0 13px; color:#c5b8af; font-size:11px; letter-spacing:.13em; text-align:left; }
#receipt .license-card { position:relative; isolation:isolate; width:100%; min-height:310px; aspect-ratio:1.48; padding:25px; overflow:hidden; border-radius:11px; color:#fff7ef; background:linear-gradient(140deg,#f2362a,#cd1d16 70%); box-shadow:inset 0 1px #ffb0a24d; }
#receipt .license-card::before { content:''; position:absolute; inset:0; background:repeating-linear-gradient(115deg,transparent 0 16px,#ffffff04 16px 17px); pointer-events:none; }
#receipt .card-top { position:relative; display:flex; align-items:center; justify-content:space-between; gap:12px; }
#receipt .card-brand { display:flex; align-items:center; gap:5px; font:800 20px/1 var(--font-heading); letter-spacing:-.07em; }
#receipt .card-brand svg { width:18px; height:24px; fill:currentColor; }
#receipt .card-plan { border:1px solid #ffffff55; border-radius:3px; padding:5px 8px; font-size:9px; line-height:1.4; letter-spacing:.05em; }
#receipt .card-middle { position:relative; z-index:1; margin-top:32px; }
#receipt .card-middle h2 { margin:0; font:700 32px/1.05 var(--font-heading); letter-spacing:-.055em; color:inherit; }
#receipt .card-art { position:absolute; right:24px; top:75px; width:115px; height:130px; fill:#ffa99b; opacity:.16; transform:rotate(13deg); pointer-events:none; }
#receipt .sealed-key { position:absolute; isolation:isolate; left:22px; right:22px; bottom:22px; min-height:54px; margin:0; border:0; border-radius:5px; overflow:hidden; background:#f5f2e8; box-shadow:inset 0 1px 3px #0002; }
#receipt .sealed-key .key-row { display:block; visibility:hidden; min-height:54px; margin:0; padding:0; border:0; background:none; }
#receipt .sealed-key.is-opening .key-row,#receipt .sealed-key.is-open .key-row { visibility:visible; }
#receipt .sealed-key .copy-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:54px; padding:12px; border:0; border-radius:5px; background:#f5f2e8; color:#22251f; text-transform:none; font:400 14px/1.6 var(--font-body); cursor:pointer; touch-action:manipulation; opacity:0; transition:opacity .3s .2s,background .2s; }
#receipt .sealed-key.is-opening .copy-btn,#receipt .sealed-key.is-open .copy-btn { opacity:1; }
#receipt .key-block { min-width:0; color:inherit; font:inherit; letter-spacing:.035em; overflow-wrap:anywhere; white-space:normal; }
#receipt .copy-btn svg { flex:0 0 16px; width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.4; }
#receipt .copy-btn:hover { background:#fffaf0; }
#receipt .copy-btn.is-copied { background:#deeddb; color:#23452c; }
#receipt .key-seal { position:absolute; inset:0; z-index:2; width:100%; height:100%; display:flex; align-items:center; justify-content:center; padding:0; border:0; border-radius:5px; background:transparent; color:#26372f; font:400 13px/1 var(--font-body); letter-spacing:.025em; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
#receipt .foil-face { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; overflow:hidden; border:1px solid #ffffff8c; border-radius:5px; background:repeating-linear-gradient(118deg,transparent 0 3px,#ffffff22 3px 4px),linear-gradient(112deg,#a5d7cd 0%,#c6dce7 17%,#e3d3da 34%,#eddbb3 52%,#d6dfb5 70%,#b2d9cc 86%,#d4ded9 100%); box-shadow:inset 0 1px #ffffffb0,inset 0 -1px #81958c55; }
#receipt .foil-face::after { content:''; position:absolute; inset:0; background:linear-gradient(108deg,transparent 15%,#ffffff12 30%,#ffffffa3 47%,#fff3 55%,transparent 76%); transform:translateX(-130%); pointer-events:none; }
#receipt .key-seal:hover .foil-face::after { transform:translateX(130%); transition:transform .85s ease; }
#receipt .foil-text { position:relative; z-index:1; display:flex; align-items:center; gap:8px; text-shadow:0 1px #ffffff70; }
#receipt .foil-text svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.5; }
#receipt .foil-corner { position:absolute; right:0; bottom:0; z-index:3; width:18px; height:18px; border-bottom-right-radius:5px; background:linear-gradient(135deg,transparent 46%,#fbfff8 48%,#e6ece2 61%,#a8bfb7 79%,#f9fff6 100%); filter:drop-shadow(-2px -1px 1px #38594b44); transition:width .2s,height .2s; pointer-events:none; }
#receipt .key-seal:hover .foil-corner { width:25px; height:25px; }
#receipt .sealed-key.is-opening .foil-face { animation:checkout-unseal .7s cubic-bezier(.5,0,.2,1) forwards; }
#receipt .sealed-key.is-opening .foil-corner { opacity:0; }
#receipt .sealed-key.is-open .key-seal { display:none; }
#receipt .key-seal:focus-visible { outline:2px solid #191919; outline-offset:-4px; }
#receipt .copy-btn:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
#receipt .foot { display:block; margin:12px 0 0; padding:0; border:0; color:#a99c91; font-size:12px; line-height:1.7; letter-spacing:0; text-align:left; }
#receipt .scratch-status { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.confirmation-disc { transform-box:fill-box; transform-origin:center; animation:confirmation-appear .45s cubic-bezier(.2,.75,.25,1.25) both; }
.confirmation-tick { stroke-dasharray:40; stroke-dashoffset:40; animation:confirmation-draw .4s ease-out .2s forwards; }
.confirmation-dots { transform-origin:35px 65px; animation:confirmation-settle .8s ease-out both; }
@keyframes checkout-unseal { from { clip-path:inset(0); } to { clip-path:inset(0 0 0 100%); } }
@keyframes confirmation-appear { from { opacity:0;transform:scale(.7); } to { opacity:1;transform:scale(1); } }
@keyframes confirmation-draw { to { stroke-dashoffset:0; } }
@keyframes confirmation-settle { from { opacity:0;transform:translateY(12px) scale(.7); } to { opacity:.75;transform:translateY(0) scale(1); } }
.download-heading { margin-bottom:14px!important; }
.setup-heading { margin-top:10px; }
.panel-copy,.setup-steps li { font-size:14px; line-height:1.75; }
.setup-heading,.setup-steps li::before { font-size:12px; }
.platform-card strong { font-size:14px; }
.platform-card small { font-size:11px; line-height:1.5; }
.build-choice,.linux-guide-note,.desktop-help { font-size:12px; }
.download-action { font-size:13px; min-height:56px; }
.beta-warning,.windows-warning { font-size:13px; }
.mac-menu-cue figcaption { font-size:12px; }
.mac-menu-cue figcaption small { font-size:11px; }
@media(max-width:1024px) {
  .download-shell #receipt.has-key { grid-template-columns:1fr; gap:25px; padding:26px 22px; }
  #receipt .receipt-license { padding:24px 0 0; border-left:0; border-top:1px solid #4a3935; }
  #receipt .license-card { max-width:520px; margin:0; }
  #receipt .key-label,#receipt .foot { max-width:520px; margin-left:0; margin-right:0; }
  .download-grid { grid-template-columns:1fr; }
}
@media(max-width:480px) {
  .download-shell #receipt,.download-shell #receipt.has-key { padding:23px 18px; }
  #receipt .welcome-thanks { font-size:13px; }
  #receipt .license-card { padding:20px; min-height:300px; }
  #receipt .card-brand { font-size:17px; }
  #receipt .card-plan { font-size:8px; }
  #receipt .card-middle { margin-top:28px; }
  #receipt .card-middle h2 { font-size:28px; }
  #receipt .sealed-key { left:17px;right:17px;bottom:18px;min-height:48px; }
  #receipt .sealed-key .key-row,#receipt .sealed-key .copy-btn { min-height:48px; }
  #receipt .key-seal { font-size:11px; }
  #receipt .sealed-key .copy-btn { font-size:11px;gap:7px; }
  #receipt .foot { font-size:11px; }
  .platform-card strong { font-size:12px; }
  .platform-card small { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
  #receipt *,#receipt *::before,#receipt *::after { animation:none!important;transition:none!important; }
  #receipt .confirmation-tick { stroke-dashoffset:0; }
  #receipt .sealed-key.is-open .key-seal { display:none; }
}
