/* The account page: download, pricing, licenses, questions. Plain and readable: body text 16–20 px,
   nothing to read below 14 px, solid colors, one primary button per section. The legal pages share
   the nav, footer and type below. */
.account-page{--account-line:rgba(190,210,235,.13);--mint:#8be8c6;--amber:#ffc48a;background:var(--night)}
.account-nav,.account-main,.account-footer{width:min(1184px,100%);margin-inline:auto;padding-inline:32px}
.account-nav{height:84px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}
.account-nav nav{display:flex;gap:32px;font-size:16px;color:var(--text-2);white-space:nowrap}
.account-nav nav a:hover,.account-footer a:hover{color:var(--text)}
.account-nav nav span{margin-left:4px;color:var(--cyan)}
.account-eyebrow{font:600 14px/1.6 var(--font-text);color:var(--text-3)}

/* Download */
.download-hero{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:48px;padding:48px 0 96px}
.download-hero h1{font:700 clamp(44px,5.4vw,68px)/1.04 var(--font-display);letter-spacing:-.04em}
.download-lede{font-size:20px;line-height:1.55;color:var(--text-2);margin-top:24px;max-width:28em}
.download-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;margin-top:36px}
.download-actions .btn{--h:54px;font-size:17px}
.download-actions .btn img{width:20px;height:20px;filter:invert(1)}
.download-actions [hidden]{display:none!important}
.download-soon{flex-basis:100%;font-size:16px;color:var(--amber)}
.text-link{font-size:17px;color:var(--cyan)}.text-link:hover{text-decoration:underline;text-underline-offset:4px}
.download-specs{font-size:15px;color:var(--text-3);margin-top:20px}
.download-art{position:relative;display:grid;place-items:center;min-width:0}
.download-art .finale-pool{position:absolute;inset:-10% -10% -10% -10%;z-index:-1;pointer-events:none;background:radial-gradient(circle at 50% 55%,#0075ff2e,transparent 60%)}
.download-art .finale-cat{position:relative;width:min(520px,118%);aspect-ratio:1320/1280;margin:-60px 0 -30px}
.download-art .finale-canvas{position:absolute;inset:0;width:100%;height:100%;max-width:none;pointer-events:none}
.download-art .finale-pet{position:absolute;left:10.38%;top:35.94%;width:79.24%;height:61.64%;border-radius:34% 34% 42% 42%/30% 30% 50% 50%;cursor:default;-webkit-tap-highlight-color:transparent}
.download-art .finale-pet.is-over{cursor:pointer}.download-art .finale-pet:focus-visible{outline:2px solid #61e9fb66;outline-offset:8px}

/* How the trial works: three steps between the download and pricing */
.trial-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;counter-reset:step;margin:-32px 0 96px}
.trial-steps li{position:relative;padding:28px 28px 28px 80px;border-radius:20px;background:var(--raised);border:1px solid var(--line);font-size:16px;line-height:1.5;color:var(--text-2)}
.trial-steps li::before{counter-increment:step;content:counter(step);position:absolute;left:28px;top:26px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffffff12;color:var(--text);font-weight:600}
.trial-steps strong{display:block;font-size:18px;font-weight:600;color:var(--text);margin-bottom:4px}

/* Shared section rhythm */
.account-pricing,.account-desk,.account-faq{padding:96px 0;border-top:1px solid var(--line);scroll-margin-top:8px}
.section-head{max-width:640px}
.section-head h2{font:700 44px/1.08 var(--font-display);letter-spacing:-.035em}
.section-head p{font-size:19px;line-height:1.6;color:var(--text-2);margin-top:16px}
.section-head a{display:inline-block;margin-top:24px;font-size:17px;color:var(--cyan)}
.section-head a:hover{text-decoration:underline;text-underline-offset:4px}

/* Pricing */
.price-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.price-card{position:relative;display:flex;flex-direction:column;padding:32px;border-radius:20px;background:var(--raised);border:1px solid var(--line-2)}
.price-card-best{border-color:#61e9fb73;box-shadow:0 0 0 1px #61e9fb33}
.price-tag{position:absolute;top:-14px;left:32px;padding:5px 12px;border-radius:99px;background:var(--cyan);color:#05232a;font-size:14px;font-weight:650}
.price-card h3{font-size:24px;font-weight:650;letter-spacing:-.02em}
.price-for{font-size:16px;color:var(--text-2);margin-top:4px}
.price{display:flex;align-items:baseline;gap:10px;margin-top:28px}
.price b{font:700 60px/1 var(--font-display);letter-spacing:-.04em}
.price span{font-size:17px;color:var(--text-2)}
.price-each{font-size:16px;color:var(--text-2);margin:12px 0 32px}
.price-each em{font-style:normal;color:var(--mint)}
.price-button{margin-top:auto;width:100%;--h:52px;font-size:16px}
/* Unavailable buttons (purchases or sign-in not open yet) are quiet outlines, never grey slabs. */
.account-page .btn:disabled,.account-page .btn:disabled:hover{background:transparent;color:var(--text-3);box-shadow:inset 0 0 0 1px var(--line-2);cursor:default;transform:none;opacity:1}
.purchase-availability{margin-top:20px;font-size:16px;color:var(--text-2);text-align:center}
.purchase-availability[hidden]{display:none}
.purchase-availability.is-flagged{color:var(--text)}
@media(prefers-reduced-motion:no-preference){.purchase-availability.is-flagged{animation:account-flag .9s var(--ease-out)}@keyframes account-flag{0%{transform:translateY(-4px);color:var(--cyan)}100%{transform:none}}}
.price-includes{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:32px;padding:28px 32px;border-radius:20px;border:1px solid var(--line)}
.price-includes li{font-size:16px;line-height:1.5;color:var(--text-2)}
.price-includes strong{display:block;font-size:17px;font-weight:600;color:var(--text);margin-bottom:4px}
.price-includes li::before{content:'✓';display:block;color:var(--cyan);font-weight:700;font-size:18px;margin-bottom:10px}
.device-terms{font-size:15px;line-height:1.6;color:var(--text-3);margin-top:20px}

/* Licenses */
.desk-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px 32px;flex-wrap:wrap}
.account-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:16px;color:var(--text-2)}
.account-bar[hidden]{display:none}
.account-bar strong{color:var(--text);font-weight:500;overflow-wrap:anywhere}
.text-action{font-size:16px;color:var(--cyan);white-space:nowrap}
.text-action:hover{text-decoration:underline;text-underline-offset:4px}
.account-panel{margin-top:40px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:32px;border-radius:20px;background:var(--raised);border:1px solid var(--line-2)}
.account-panel p{font-size:18px;line-height:1.55;max-width:34em}
.account-panel small{display:block;font-size:16px;color:var(--text-2);margin-top:4px}
.account-panel .btn{--h:52px}
.account-muted{font-size:17px;color:var(--text-2);margin-top:40px}
.account-error{font-size:16px;color:var(--amber);margin-top:16px}
.account-note{font-size:16px;color:var(--text-2);margin-top:24px;padding:16px 20px;border-radius:14px;background:#2fd59b14;border:1px solid #2fd59b33}

.license-tools{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;margin-top:40px}
.license-summary{font-size:16px;color:var(--text-2)}
.license-summary strong{color:var(--text);font-weight:600}
.license-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.license-search{height:42px;width:240px;max-width:100%;padding:0 14px;border-radius:10px;border:1px solid var(--line-2);background:var(--night);color:var(--text);font:16px var(--font-text)}
.license-search::placeholder{color:var(--text-3)}
.license-search:focus{outline:2px solid var(--electric);outline-offset:1px}
.segmented{display:flex;gap:2px;padding:3px;border-radius:11px;background:#ffffff0a;border:1px solid var(--line)}
.segmented button{height:34px;padding:0 12px;border-radius:8px;font-size:15px;color:var(--text-2);white-space:nowrap}
.segmented button:hover{color:var(--text)}
.segmented button[aria-pressed=true]{background:#fff;color:#0b0d11}

.license-table{width:100%;margin-top:16px;border-collapse:separate;border-spacing:0;border:1px solid var(--line-2);border-radius:20px;overflow:hidden;background:var(--raised)}
.license-tools+.license-table{margin-top:16px}
.license-table:first-child{margin-top:40px}
.license-table th{font-size:14px;font-weight:600;color:var(--text-3);text-align:left;padding:16px 24px;border-bottom:1px solid var(--line);white-space:nowrap}
.license-table td{font-size:16px;padding:20px 24px;border-bottom:1px solid var(--line);vertical-align:middle}
.license-table tr:last-child td{border-bottom:0}
.license-name{font-weight:600;font-size:17px;white-space:nowrap}
.license-status{display:flex;align-items:center;gap:8px;margin-top:6px;font-size:15px;font-weight:400;color:var(--mint);white-space:nowrap}
.license-status::before{content:'';width:8px;height:8px;border-radius:50%;background:#2fd59b}
.license-status.is-ready{color:var(--text-2)}.license-status.is-ready::before{background:#8a93a3}
.license-updates{white-space:nowrap}
.license-updates.is-ended{color:var(--amber)}
.license-updates small{display:block;font-size:14px;color:var(--text-3)}
.license-keycell{display:flex;align-items:center;gap:10px}
.license-key{font:14px/1.4 var(--font-mono);color:#d7e3f2;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.copy-key{height:36px;padding:0 14px;border-radius:9px;background:#ffffff14;font-size:15px;font-weight:600;flex:none}
.copy-key:hover{background:#ffffff22}.copy-key.is-copied{background:#2fd59b2e;color:var(--mint)}
.license-actions{display:flex;gap:18px;justify-content:flex-end}
.license-empty{padding:28px 24px!important;color:var(--text-2);text-align:center}
.license-pager{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:16px;font-size:15px;color:var(--text-2)}
.license-pager button{height:38px;padding:0 14px;border-radius:9px;border:1px solid var(--line-2);font-size:15px}
.license-pager button:hover:not(:disabled){background:#ffffff0d}
.license-pager button:disabled{opacity:.35;cursor:default}
.license-after{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:20px;font-size:16px;color:var(--text-2)}
.license-after .btn{--h:44px;font-size:15px}

/* Questions */
.account-faq{display:grid;grid-template-columns:.8fr 1.2fr;gap:64px}
.faq-list{border-top:1px solid var(--line)}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0;font-size:19px;font-weight:600;cursor:pointer;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:'+';font-size:26px;font-weight:300;color:var(--text-2);transition:transform .2s}
.faq-list details[open] summary::after{transform:rotate(45deg)}
.faq-list p{font-size:17px;line-height:1.7;color:var(--text-2);padding:0 0 26px;max-width:46em}

/* The buy bar: follows the visitor below the download, steps aside over pricing and licenses */
.buy-bar{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:50;display:flex;align-items:center;gap:24px;width:min(720px,calc(100% - 32px));padding:12px 12px 12px 24px;border-radius:18px;background:#141922f2;border:1px solid var(--line-2);box-shadow:0 20px 60px #000a;backdrop-filter:blur(12px)}
.buy-bar[hidden]{display:none}
.buy-bar p{flex:1;font-size:17px}.buy-bar span{color:var(--text-2)}
.buy-bar .btn{--h:46px;font-size:16px}

/* Footer: room at the bottom so the buy bar never covers it */
.account-footer{display:flex;gap:28px;align-items:center;padding-block:32px 112px;border-top:1px solid var(--account-line);color:var(--text-3);font-size:15px}
.account-footer nav{display:flex;gap:24px}.account-footer>span{margin-left:auto}
.footer-name{font-size:18px;font-weight:600;letter-spacing:-.5px;color:var(--text-2)}.footer-name span{color:var(--cyan);margin-left:5px}

/* Dialogs: buying, and the versions a license owns. Prices come from the server variant. */
dialog{color:var(--text);background:#0f141c;border:1px solid var(--line-2);border-radius:20px;max-width:480px;width:calc(100% - 32px);padding:36px;box-shadow:0 30px 130px #0009}
dialog::backdrop{background:#030710c9;backdrop-filter:blur(12px)}
dialog h2{font:700 28px/1.15 var(--font-display);letter-spacing:-.02em;margin:0 32px 14px 0}
dialog p{font-size:17px;color:var(--text-2);line-height:1.6}
dialog .btn{font-size:17px;width:100%;--h:52px;margin:24px 0 14px}
dialog .btn:disabled{background:transparent;color:var(--text-3);box-shadow:inset 0 0 0 1px var(--line-2);cursor:default;transform:none}
.dialog-note{font-size:15px!important;text-align:center;color:var(--text-3)!important}
.dialog-close{position:absolute;right:20px;top:16px;color:var(--text-2);font-size:28px;line-height:1}
.terms-check{display:flex;align-items:flex-start;gap:12px;font-size:16px;line-height:1.55;margin-top:24px;padding:16px;border-radius:14px;background:#ffb4501a;border:1px solid #ffb45040;cursor:pointer}
.terms-check input{width:20px;height:20px;accent-color:var(--blue);margin-top:2px;flex:none}
.versions-list{display:grid;gap:8px;margin-top:20px;max-height:min(50vh,420px);overflow:auto}
.versions-list a{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:12px;background:#ffffff0a;font-size:16px}
.versions-list a:hover{background:#ffffff14}
.versions-list a span{color:var(--cyan)}
button:disabled{cursor:default}

/* Legal pages */
.legal-page .account-main{max-width:800px;margin-top:35px}
.legal-page .account-nav>a{font-size:16px}
.legal-page .account-nav>a:first-child{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:600;letter-spacing:-1px}
.legal-page h1{font-size:44px;letter-spacing:-2px;margin:12px 0 28px}
.legal-page h2{font-size:22px;margin:32px 0 12px}
.legal-page p{font-size:17px;color:var(--text-2);line-height:1.8;margin-bottom:16px}
.legal-page .account-footer{margin-top:60px;padding-bottom:48px}

@media(prefers-reduced-motion:no-preference){.download-copy{animation:account-rise .8s var(--ease-out) both}.download-art{animation:account-rise 1s .1s var(--ease-out) both}@keyframes account-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}}
@media(max-width:1000px){.account-nav nav .nav-explore{display:none}.price-includes{grid-template-columns:1fr 1fr}.license-key{max-width:180px}}
@media(max-width:900px){
  .download-hero{grid-template-columns:1fr;gap:0;padding:16px 0 48px}.download-art{order:-1}.download-art .finale-cat{width:min(340px,90vw);margin:-40px 0 0}
  .trial-steps{grid-template-columns:1fr;margin-top:0}
  .price-grid{grid-template-columns:1fr}.account-faq{grid-template-columns:1fr;gap:24px}
  .license-table,.license-table tbody,.license-table tr,.license-table td{display:block}.license-table thead{display:none}
  .license-table tr{padding:16px 20px;border-bottom:1px solid var(--line)}.license-table tr:last-child{border-bottom:0}.license-table td{padding:4px 0;border:0}
  .license-name{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:4px 12px}.license-status{margin:0}
  .license-updates::before{content:'Updates through ';color:var(--text-2)}.license-updates.is-ended::before{content:'Updates ended ';color:inherit}.license-updates small{display:none}.license-updates.is-ended small{display:block}
  .license-updates{white-space:normal}.license-keycell{justify-content:space-between}.license-key{max-width:none;min-width:0;flex:1}.license-actions{justify-content:flex-start;margin-top:4px}
  .license-filters{width:100%}.license-search{flex:1;width:auto}
}
@media(max-width:600px){
  .account-nav,.account-main,.account-footer{padding-inline:20px}
  .account-nav{height:72px}.account-nav nav{gap:20px;font-size:15px}.account-nav nav .nav-questions{display:none}
  .download-hero h1{font-size:40px}.download-lede{font-size:18px}.download-actions .btn{flex:1 1 100%}.download-actions .text-link{margin-inline:auto}
  .trial-steps{margin-bottom:72px}.trial-steps li{padding:22px 22px 22px 70px}.trial-steps li::before{left:20px;top:20px}
  .section-head h2{font-size:34px}.section-head p{font-size:17px}
  .account-pricing,.account-desk,.account-faq{padding:72px 0}
  .price-card{padding:24px}.price-tag{left:24px}.price-includes{grid-template-columns:1fr;padding:24px}
  .account-panel{padding:24px}.account-panel .btn{width:100%}
  .license-pager{justify-content:space-between}.segmented{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));width:100%}
  .account-footer{flex-wrap:wrap}.account-footer>span{margin:0;width:100%}
  .buy-bar{padding:10px 10px 10px 16px;gap:12px}.buy-bar p{font-size:16px}.buy-bar span{display:none}
  dialog{padding:28px 24px}
  .legal-page h1{font-size:36px}
}
