/* UI UX Pro Max refinement: Harbor identity, readable type and explicit states. */
:root{
 --on-accent:#061728;--surface-raised:#16243b;--control-line:#526e90;
 --focus:#0b84f3;--danger-text:#fecaca;--danger-surface:#2b1c20;
 --header-height:82px;--motion-fast:160ms;--motion-state:240ms;--motion-enter:480ms;
}
html{scroll-padding-top:calc(var(--header-height) + 24px)}
body{font-size:16px}
button,input,select,textarea{font:inherit}
h1,h2,h3{text-wrap:balance}
.scroll-motion .motion-reveal:focus-within{opacity:1;transform:none;transition:none}
#site-nav a[aria-current=page]::after{transform:scaleX(1)}
p{text-wrap:pretty}
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--focus);outline-offset:4px}
:where(a,button,input,select,textarea,summary,[tabindex]){scroll-margin-block:calc(var(--header-height) + 16px) 24px}
.skip-link{color:var(--on-accent)}
.site-header nav{font-size:14px;gap:24px}
.site-header nav a,.header-account{display:inline-flex;align-items:center;min-height:44px}
.header-actions{gap:16px}
.language-toggle,.header-download,.icon-button{min-height:44px;min-width:44px}
.language-toggle{font-size:13px;padding-inline:4px}
.header-download,.header-account{font-size:14px}
.site-header .brand{min-height:44px}
.site-header .nav-download-mobile{display:none}
.button{font-size:14px;min-height:48px;transition:background var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast)}
.button.primary{color:var(--on-accent)}
.button:active:not(:disabled),.provider-button:active:not(:disabled){transform:translateY(1px)}
.hero{padding-top:64px}
.hero-copy h1{font-size:clamp(42px,4.2vw,62px);line-height:1.1;max-width:660px}
.hero-subtitle{font-size:17px;line-height:1.8}
.eyebrow,.release-label{font-size:12px}
.release-status p{font-size:13px;color:var(--muted);line-height:1.75}
.download-button small{font-size:12px;opacity:1}
.store-button{min-height:44px;font-size:14px}
.demo-toolbar{gap:8px;padding:10px}
.demo-toolbar>button{min-height:44px;min-width:44px;font-size:12px;padding:8px}
.demo-toolbar>button[aria-pressed=true]{color:var(--on-accent)}
.demo-window-status{font-size:12px;line-height:1.65;padding:12px 16px}
.demo-caption{font-size:14px}
.safety-strip{font-size:13px;line-height:1.7}
.safety-strip small{font-size:12px;color:var(--muted)}
.safety-strip a{font-size:13px;min-height:28px}
.pro-showcase{padding-top:72px}
.showcase-wrap{width:100%;max-width:1100px;margin-inline:auto;margin-top:32px}
.showcase-tabs{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px;border-radius:14px;background:#0b111e;border:1px solid #26344a;margin-bottom:28px;flex-wrap:wrap}
.showcase-tab{display:inline-flex;align-items:center;gap:9px;padding:10px 18px;border-radius:10px;border:1px solid transparent;background:transparent;color:var(--muted);font-size:13.5px;font-weight:600;min-height:44px;cursor:pointer}
.showcase-tab:hover{color:var(--text);background:rgba(0,0,0,.04)}
.showcase-tab.active{color:#fff;background:var(--blue);border-color:#0b84f3;box-shadow:0 4px 18px rgba(11,132,243,.28)}
.showcase-tab .icon{width:18px;height:18px;flex:none}
.showcase-stage{width:100%}
.showcase-window{background:#111a2e;border:1px solid #26344a;border-radius:16px;overflow:hidden;box-shadow:0 24px 64px rgba(0,0,0,.08),0 0 0 1px rgba(0,0,0,.03)}
.showcase-window:hover{box-shadow:0 32px 80px rgba(0,0,0,.12),0 0 36px rgba(11,132,243,.08)}
.showcase-window-bar{height:42px;background:#16243b;border-bottom:1px solid #26344a;display:flex;align-items:center;justify-content:space-between;padding-inline:16px}
.window-dots{display:flex;gap:7px;align-items:center}
.dot-red,.dot-yellow,.dot-green{width:10px;height:10px;border-radius:50%;opacity:.85}
.dot-red{background:#f87171}
.dot-yellow{background:#fbbf24}
.dot-green{background:#34d399}
.showcase-window-title{font-size:12px;font-weight:500;color:#a6b4c7;letter-spacing:.02em}
.showcase-badge{font-size:10.5px;font-weight:700;color:#0b84f3;background:rgba(11,132,243,.08);border:1px solid rgba(11,132,243,.22);padding:3px 9px;border-radius:9999px;letter-spacing:.06em}
.showcase-video-box{position:relative;width:100%;aspect-ratio:16/9;background:#060b14;overflow:hidden;display:flex;align-items:center;justify-content:center}
.showcase-video{width:100%;height:100%;object-fit:contain;display:block}
.showcase-overlay-controls{position:absolute;inset-block-end:16px;inset-inline-end:16px;z-index:10;display:flex;align-items:center;gap:8px}
.showcase-play-btn{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(11,17,30,.82);backdrop-filter:blur(8px);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.showcase-play-btn:hover{transform:scale(1.08);background:var(--blue);border-color:#3898ff}
.showcase-play-btn .icon{width:20px;height:20px}
.showcase-footer{padding:22px 26px;background:#111a2e;border-top:1px solid #26344a;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.showcase-desc-box{flex:1;min-width:280px}
.showcase-desc-box h3{font-size:18px;font-weight:700;color:#f1f5f9;margin-bottom:6px;letter-spacing:-.02em}
.showcase-desc-box p{font-size:14.5px;color:#94a3b8;line-height:1.7;max-width:640px}
.showcase-tag-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:9999px;background:rgba(11,132,243,.08);border:1px solid rgba(11,132,243,.2);color:#0b84f3;font-size:12px;font-weight:600;white-space:nowrap}
.pulse-indicator{width:8px;height:8px;border-radius:50%;background:#0b84f3;display:inline-block;box-shadow:0 0 10px #0b84f3}
.section-heading>p,.faq-heading>p{font-size:16px;line-height:1.8}
.bento-card>p,.backup-copy>p{font-size:15px;line-height:1.8}
.card-caption,.feature-number{font-size:12px}
.feature-icon{width:40px;height:40px}
.price-card .plan-label{font-size:12px;letter-spacing:.07em}
.plan-subtitle,.price-card .plan-subtitle{font-size:15px;line-height:1.7;min-height:50px}
.price-amount{font-size:clamp(32px,3.2vw,45px);font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.04em}
.price-period,.plan-note,.region-status,.market-field{font-size:13px}
.plan-note{color:var(--muted)}
.price-card li,.price-card .button,.plan-devices{font-size:14px}
.price-card li{line-height:1.7;gap:10px}
.price-card .button{min-height:48px}
.popular-badge{font-size:11px;color:var(--on-accent);max-width:calc(100% - 32px);overflow-wrap:anywhere}
.billing-switch{gap:8px}
.billing-switch button{font-size:14px;min-height:44px;padding-inline:18px}
.market-field select{font-size:16px;min-height:46px;border-color:var(--control-line)}
.studio-section-heading>p,.studio-edition-details>p{font-size:16px}
.studio-edition-label,.studio-edition-purchase>small{font-size:12px}
.studio-edition-details li,.studio-edition-purchase .price-period{font-size:14px;line-height:1.7}
.studio-license-scope,.pricing-footnotes p{font-size:13px;line-height:1.8}
.comparison-table th,.comparison-table td{font-size:14px}
.comparison-note{font-size:14px}
.text-link,.support-link{font-size:14px}
@media (pointer:coarse),(max-width:760px){.text-link,.support-link{display:inline-block;padding-block:7px}}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
.back-link,.full-pricing-link{min-height:44px}
.faq-list summary{font-size:16px;line-height:1.6;min-height:60px}
.faq-answer p{font-size:15px;line-height:1.85}
.faq-answer>a{font-size:14px;min-height:28px}
.footer-top p,.footer-bottom,.footer-bottom small{font-size:13px}
.footer-bottom nav a{display:inline-flex;align-items:center;min-height:44px}
.legal-content p{font-size:16px;line-height:1.9;max-width:72ch}
.legal-date,.legal-notice{font-size:14px}
.account-panel input:not([type=checkbox]),.account-panel select,.account-panel textarea,.field input{font-size:16px;min-height:46px;border-color:var(--control-line)}
.provider-button{font-size:15px;min-height:56px}
.provider-button{animation:none}
.signin-panel{animation:uxPanelArrival var(--motion-enter) ease-out both}
.signin-panel:focus-within{animation:none}
.signin-panel>p,.account-identity bdi,.account-identity p{font-size:15px}
.account-privacy{font-size:13px}
.account-message{font-size:14px;line-height:1.8}
.admin-search label,.license-form>label,.identity-support{font-size:14px}
.admin-table{font-size:14px}
.admin-table td small{font-size:12px}
.admin-table button{min-height:40px;padding:8px;margin:0;font-size:13px;white-space:normal;text-align:start}
.admin-table .danger-link{color:var(--danger-text)}
.account-identity>div{min-width:0}
.account-identity bdi,.account-identity h2{overflow-wrap:anywhere}
.license-form .consent,.consent{font-size:14px;line-height:1.7;gap:12px}
.consent input{min-width:20px;width:20px;height:20px;margin-block-start:3px;accent-color:var(--blue)}
.field-hint,.refund-link,#checkout-provider-hint{font-size:13px;line-height:1.8}
.checkout-summary small{font-size:13px}
.transfer-row{gap:12px}
.transfer-row button{min-width:44px;min-height:44px}
button[aria-busy=true]{position:relative;cursor:progress}
button[aria-busy=true]::after{content:"";display:inline-block;flex:none;width:14px;height:14px;margin-inline-start:8px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:uxBusy .75s linear infinite}
.form-feedback{padding:16px 18px;margin-block:0 20px;border:1px solid #975457;border-inline-start:3px solid var(--danger-text);border-radius:10px;background:var(--danger-surface);color:var(--danger-text);font-size:14px;line-height:1.7}
.form-feedback p{color:inherit;font-weight:600}
.form-feedback ul{margin-block:10px 0;padding-inline-start:20px}
.form-feedback a{text-decoration:underline;text-underline-offset:3px}
.field-error{display:block;font-size:13px;line-height:1.6;color:var(--danger-text);margin-block:8px 0}
[aria-invalid=true]{border-color:var(--danger-text)!important}
@keyframes uxBusy{to{transform:rotate(360deg)}}
@keyframes uxPanelArrival{from{transform:translateY(8px)}to{transform:none}}
html[dir=rtl] :is(h1,h2,h3,.eyebrow,.plan-label,.release-label,.studio-edition-label){letter-spacing:0}
html[dir=rtl] .faq-answer{padding-inline:0 23px}
@media(max-width:800px){
 :root{--header-height:72px}
 .site-header nav{gap:8px;padding:16px 20px;max-height:calc(100dvh - var(--header-height));overflow-y:auto}
 .site-header nav a{font-size:16px;min-height:48px;padding:12px}
 .header-account{display:none}
 .site-header nav.open .nav-download-mobile,.site-header nav.open .nav-account-mobile{display:flex}
 .site-header nav a::after{inset-block-end:3px;inset-inline:12px}
 .header-actions{gap:8px}
 .header-download{padding:10px}
 .hero-copy h1{font-size:clamp(38px,6.5vw,58px)}
 .hero-subtitle{font-size:16px}
 .hero{padding-top:40px}
 .pro-showcase{padding-top:48px}
 .showcase-footer{padding:18px 20px;flex-direction:column;align-items:flex-start}
 .safety-strip{font-size:14px}
 .plan-subtitle,.price-card .plan-subtitle{min-height:0}
 .account-shell{min-height:auto}
 .comparison-table th,.comparison-table td{padding:16px;font-size:14px}
}
@media(max-width:520px){
 .header-inner{gap:8px}
 .header-actions{gap:6px}
 .header-download{display:none}
 .language-toggle{font-size:12px;gap:5px;padding-inline:0}
 .brand{font-size:17px;gap:8px}
 .hero-copy h1{font-size:clamp(35px,10vw,43px);line-height:1.14}
 .hero .eyebrow{font-size:12px}
 .showcase-tabs{gap:6px;padding:4px}
 .showcase-tab{font-size:12px;padding:8px 12px;min-height:44px}
 .showcase-window-title{display:none}
 .showcase-desc-box h3{font-size:16px}
 .showcase-desc-box p{font-size:13.5px}
 .download-button{font-size:14px;padding-inline:14px;gap:12px}
 .demo-toolbar{gap:6px;padding:8px;flex-wrap:wrap}
 .demo-toolbar>button{font-size:11px;gap:4px;padding:6px;min-width:44px}
 .demo-toolbar .toolbar-spacer{min-width:0}
 .demo-window-status{font-size:12px}
 .bento-card>p,.backup-copy>p,.section-heading>p{font-size:16px}
 .price-card li{font-size:14px}
 .studio-edition-purchase .price-amount{font-size:clamp(32px,9.5vw,42px)}
 .pricing-page .section-heading h1{font-size:36px}
 .billing-switch button{font-size:14px;padding-inline:14px}
 .account-panel{padding:24px 20px}
 .account-identity{gap:12px}
 .account-identity h2{font-size:23px}
 .faq-answer p{font-size:16px}
 .footer-bottom nav{gap:8px 20px}
}

/* ── Apple HIG Materials & Tactile Response Upgrades ───────────────────────── */
:root {
 --material-frost: rgba(11, 17, 30, 0.88);
 --material-rim: inset 0 1px 0 rgba(255, 255, 255, 0.09);
 --material-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
 --spring-easing: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
 text-rendering: optimizeLegibility;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

/* Frosted glass header & popovers */
.site-header {
 background: var(--material-frost) !important;
 -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
 backdrop-filter: blur(20px) saturate(180%) !important;
}

.language-popover {
 background: rgba(17, 26, 46, 0.94) !important;
 -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
 backdrop-filter: blur(24px) saturate(180%) !important;
 box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), var(--material-rim) !important;
}

/* Tactile feedback on interactive controls */
.showcase-tab:active:not(:disabled),
.store-badge:active:not(:disabled),
.download-button:active:not(:disabled),
.split-resize-controls button:active:not(:disabled) {
 transform: scale(0.98);
}

.showcase-tab,
.button,
.header-download,
.store-badge {
 transition: transform var(--motion-fast) var(--spring-easing), background var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast);
}

/* Surface rim highlights */
.bento-card,
.product-surface,
.stacking-card,
.tool-gif-card,
.price-card,
.studio-edition-card {
 box-shadow: var(--material-rim), 0 12px 32px rgba(0, 0, 0, 0.28);
}

/* ── WCAG 2.2 Accessibility Focus & High Contrast ───────────────────────────── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
 outline: 2px solid var(--focus) !important;
 outline-offset: 4px !important;
 box-shadow: 0 0 0 5px rgba(11, 132, 243, 0.28) !important;
}

@media (forced-colors: active) {
 :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid Highlight !important;
  outline-offset: 3px !important;
 }
 .button.primary,
 .store-badge,
 .showcase-tab.active {
  border: 2px solid ButtonText !important;
 }
 .split-slider-divider {
  background: Highlight !important;
 }
 .living-ink-stroke {
  stroke: Highlight !important;
 }
}

/* ── Sleek Responsive Scrollbars ────────────────────────────────────────────── */
@supports (scrollbar-color: auto) {
 * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
 }
}

::-webkit-scrollbar {
 width: 8px;
 height: 8px;
}
::-webkit-scrollbar-track {
 background: transparent;
}
::-webkit-scrollbar-thumb {
 background: rgba(255, 255, 255, 0.18);
 border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
 background: rgba(255, 255, 255, 0.32);
}
