:root {
  --ink: #172131;
  --sub: #4c596d;
  --muted: #56657a;
  --line: #dce3ed;
  --blue: #294eb5;
  --dark-blue: #25459d;
  --nav-tint: #e9efff;
  --surface: #fff;
  --surface-soft: #f6f8fc;
  --pale: #edf1f8;
  --paper: #f5f7fb;
  --card-hover: #f6f8fd;
  --control-line: #c7d2e4;
  --action: #2f53bf;
  --action-hover: #2345aa;
  --action-pressed: #1b378f;
  --purchase-blue-top: #3159bc;
  --purchase-blue-center: #24469f;
  --purchase-blue-base: #19347f;
  --purchase-rim: #24479f;
  --purchase-sheen: #b7d5ff50;
  --purchase-shadow: 0 2px 3px #162e6824, 0 5px 12px #1a439a26;
  --selling-price: #9e321d;
  --control-radius: 12px;
  --panel-radius: 20px;
  --shell-width: min(1180px, calc(100% - clamp(32px, 6vw, 96px)));
  --control-feedback: 150ms cubic-bezier(.2,.75,.35,1);
  --panel-shadow: 0 16px 48px #182b5426;
  --hero-glow: #ddeaff;
  --shop-tint: #eef3fd;
  --product-shadow-color: 26 50 96;
}

:root[data-theme="dark"] {
  --ink: #edf2fc;
  --sub: #bdc7da;
  --muted: #aab8ce;
  --line: #354258;
  --blue: #aabdff;
  --dark-blue: #c0ceff;
  --nav-tint: #24375e;
  --surface: #151e2b;
  --surface-soft: #1b2637;
  --pale: #222f45;
  --paper: #131b28;
  --card-hover: #222f47;
  --control-line: #586b8b;
  --action: #3b5abe;
  --action-hover: #4867cd;
  --action-pressed: #304ca9;
  --purchase-blue-top: #3b5eb5;
  --purchase-blue-center: #2a49a0;
  --purchase-blue-base: #1e377c;
  --purchase-rim: #5876c7;
  --purchase-shadow: 0 2px 6px #0a112877, 0 5px 15px #0a112845;
  --selling-price: #ffb39b;
  --hero-glow: #21365c;
  --shop-tint: #1d2b43;
  --product-shadow-color: 0 5 18;
  --panel-shadow: 0 16px 48px #080d1966;
}

:where(button, a, select, input, textarea):focus-visible,
.button:focus-visible,
.icon-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.button {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: var(--control-radius);
  font-weight: 620;
  gap: 8px;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  transition: background-color var(--control-feedback), border-color var(--control-feedback), color var(--control-feedback);
}

.button:is(.primary, .add):not(:disabled),
.buying-hero .button.primary:not(:disabled) {
  --purchase-state: transparent;
  background:
    linear-gradient(var(--purchase-state), var(--purchase-state)),
    radial-gradient(ellipse at 22% -75%, var(--purchase-sheen), transparent 72%),
    linear-gradient(165deg, var(--purchase-blue-top), var(--purchase-blue-center) 50%, var(--purchase-blue-base));
  color: #fff;
  border-color: var(--purchase-rim);
  box-shadow: inset 0 1px 0 #ffffff4d, inset 0 -1px 0 #10245344, var(--purchase-shadow);
  font-weight: 650;
  transition: border-color var(--control-feedback), box-shadow var(--control-feedback);
}
@media (hover: hover) and (pointer: fine) {
  .button:is(.primary, .add):hover:not(:disabled),
  .buying-hero .button.primary:hover:not(:disabled) { --purchase-state: #ffffff09; }
}
.button:is(.primary, .add):active:not(:disabled),
.buying-hero .button.primary:active:not(:disabled) {
  --purchase-state: #0a1e4226;
  box-shadow: inset 0 1px 4px #0a183a58, 0 1px 2px #14264c22;
}
.button.secondary { color: var(--dark-blue); background: var(--surface); border-color: var(--line); }
.button.secondary:hover:not(:disabled), .button.secondary:active:not(:disabled) {
  color: var(--dark-blue);
  background: var(--nav-tint);
  border-color: var(--blue);
}
.button:disabled { background: var(--surface-soft); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; }
.buying-hero .button.secondary { color: var(--dark-blue); border-color: var(--line); }
.buying-hero .button.secondary:is(:hover,:active) { background: var(--nav-tint); border-color: var(--control-line); }

.icon-button, .nav-trigger, #nav > .nav-contact {
  border-radius: var(--control-radius);
  color: var(--ink);
  font-weight: 600;
}
.icon-button {
  width: 40px;
  min-height: 40px;
  border-color: transparent;
}
.icon-button:hover, .icon-button:active, .icon-button[aria-expanded="true"] {
  background: var(--nav-tint);
  border-color: transparent;
  color: var(--dark-blue);
}
.nav-menu.is-open > .nav-trigger,
.nav-menu.is-current > .nav-trigger { background: var(--nav-tint); color: var(--dark-blue); }
#nav .is-open > .nav-trigger::after { display: none; }
.header .brand { font-weight: 700; }
.header .brand-mark, .checkout-header .brand-mark { background: var(--action); border-color: transparent; box-shadow: none; }
.announcement, .utility, [data-theme="dark"] .utility { background: var(--surface-soft); border-color: var(--line); }
.header, [data-theme="dark"] .header { background: var(--surface); }
.header.scrolled { box-shadow: none; }
.announcement .support-announcement { font-size: 13px; font-weight: 600; }
.announcement .banner-close { min-width: 32px; min-height: 32px; border-radius: var(--control-radius); }
body:not([data-store-blog]) .announcement { display: none; }

.hero {
  background:
    radial-gradient(ellipse at 85% 5%, var(--hero-glow), transparent 64%),
    linear-gradient(180deg, var(--shop-tint) 0%, var(--surface) 66%);
  border-color: var(--line);
}
.hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 60px) clamp(26px,4.5vw,68px);
  padding-block: clamp(30px,4.2vw,62px) clamp(30px,4vw,52px);
}
.hero .hero-copy h1 {
  max-inline-size: 12ch;
  margin-block: 0;
  font-size: clamp(37px, 4.6vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-text { max-width: 27em; margin-block: 17px 24px; color: var(--sub); }
.hero-copy .hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 0; }
.hero-copy .hero-actions .button { flex: none; min-height: 46px; }
.hero-support { gap: 7px; }
.hero-catalog-summary { margin-top: 12px; color: var(--muted); }
.hero-departments {
  position: static;
  display: grid;
  align-items: stretch;
  align-self: center;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(9px,1.2vw,16px);
  padding: clamp(10px,1.5vw,20px);
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-departments .hero-department {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0 4px;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--panel-radius) - 5px);
  background: var(--surface);
  color: var(--ink);
  white-space: normal;
  line-height: 1.4;
  overflow: hidden;
  transition: background-color var(--control-feedback), border-color var(--control-feedback);
}
.hero-departments .hero-department:hover { border-color: var(--blue); }
.hero-department > span { min-width: 0; padding: 12px 0 13px 14px; }
.hero-department img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1.18;
  object-fit: cover;
  object-position: center top;
}
.hero-department strong { display: block; margin-block-end: 4px; font-size: clamp(16px, 1.8vw, 24px); font-weight: 660; }
.hero-department small { display: block; color: var(--sub); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.hero-department svg { width: 15px; height: 15px; margin: 17px 11px 0 0; fill: none; stroke: var(--dark-blue); stroke-width: 1.7; transform: rotate(-90deg); }
[dir="rtl"] .hero-department svg { transform: rotate(90deg); }

.section-heading h2, .hero-spotlight h2, .description-section h2 { font-weight: 700; letter-spacing: -.015em; }
.collection-card, .guide-card, .support-banner { border-radius: var(--panel-radius); box-shadow: none; }
.product {
  border-radius: var(--panel-radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(var(--product-shadow-color) / .05), 0 3px 10px rgb(var(--product-shadow-color) / .045);
  transition: border-color var(--control-feedback), box-shadow var(--control-feedback), transform var(--control-feedback);
}
.product:focus-within { border-color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .product:hover {
    box-shadow: 0 2px 5px rgb(var(--product-shadow-color) / .07), 0 7px 18px rgb(var(--product-shadow-color) / .075);
  }
  .product:hover:not(:focus-within) { border-color: var(--control-line); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product:hover { transform: translateY(-2px); }
}
.product-visual { padding: 0; background: var(--shop-tint); border-block-end: 0; }
.product-content { gap: 8px; }
.product h3 { font-weight: 650; line-height: 1.45; }
.hero-spotlight :is(.product, li:empty) { border-radius: var(--panel-radius); }
.hero-spotlight .product-visual { max-height: 210px; }
.product .price, .detail-purchase .price { letter-spacing: -.018em; font-weight: 720; }
.product-pricing .current-price, .choice-prices dd:not(.unavailable) { color: var(--selling-price); }
.current-price-label { font-weight: 550; }
.price-difference {
  background: var(--selection-tint);
  border: 1px solid transparent;
  color: var(--selling-price);
  font-weight: 600;
}
.product-tail > .button {
  min-height: 44px;
  border-radius: var(--control-radius);
  padding-inline: 7px;
}
.product-meta { gap: 5px 6px; }
.product-meta :is(.product-tag, .product-system) {
  display: inline-flex;
  align-items: center;
  max-inline-size: 100%;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--sub);
  font-weight: 550;
  line-height: 1.4;
}
.product-meta .product-tag {
  background: var(--nav-tint);
  color: var(--dark-blue);
  border-color: color-mix(in srgb, var(--line) 85%, var(--blue));
}
.product-meta .product-system { min-block-size: 24px; }
.product-meta [data-platform-family="windows"] { background: var(--shop-tint); color: var(--dark-blue); }
.product-meta [data-platform-family="mac"] { background: var(--pale); }

.detail-layout { gap: clamp(22px, 4.8vw, 64px); }
.detail-layout .reference-art { border: 0; border-radius: var(--panel-radius); background: var(--shop-tint); }
.detail-info h1 { font-weight: 680; letter-spacing: -.025em; text-wrap: balance; }
.detail-purchase {
  padding: clamp(13px, 2vw, 21px);
  margin-top: 17px;
  border-radius: var(--panel-radius);
  border-color: var(--line);
  background: var(--shop-tint);
}
.detail-purchase .hero-actions { margin-block: 12px 0; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 8px; }
.detail-purchase .hero-actions .button { min-height: 46px; border-radius: var(--control-radius); }
.detail-purchase .detail-support.secondary { border-color: transparent; background: var(--nav-tint); color: var(--dark-blue); }
.detail-purchase .detail-support.secondary:is(:hover,:active) { border-color: var(--control-line); background: var(--surface); }
.detail-info:has([data-activation-picker]) .detail-purchase .product-pricing { min-height: 90px; align-content: start; }
.detail-compatibility .product-facts { margin-block: 20px 3px; padding-block: 9px 0; }
.detail-compatibility .system-note { margin-block: 8px 0; font-size: 13px; }
.variant-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.detail-info .product-platforms { margin: 14px 0 0; gap: 5px; }
.detail-info .product-platforms > div { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 4px; max-width: 390px; padding: 4px; border-radius: calc(var(--control-radius) + 4px); background: var(--surface-soft); }
.detail-info .product-platforms a {
  min-height: 44px;
  justify-content: center;
  padding: 5px 7px;
  border-radius: var(--control-radius);
  border-color: transparent;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color var(--control-feedback), color var(--control-feedback), border-color var(--control-feedback);
}
.detail-info .product-platforms a:hover { background: var(--surface); color: var(--dark-blue); }
.detail-info .product-platforms a[aria-current="page"] {
  background: var(--nav-tint);
  color: var(--dark-blue);
  border-color: var(--control-line);
  font-weight: 600;
}
.detail-info .product-platforms a[aria-disabled="true"]:not([aria-current]) { color: var(--muted); cursor: default; background: transparent; text-decoration: line-through; }

.catalog-toolbar :is(.search-field, .sort-field, select),
.search-dialog .search-field,
#guest-support :is(#support-body, select, input) {
  border-color: var(--control-line);
  border-radius: var(--control-radius);
  background: var(--surface);
  color: var(--ink);
}
.search-dialog, #guest-support :is(#support-dialog, #support-followup), .paid-dialog, .checkout-card {
  border-radius: var(--panel-radius);
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.search-dialog[open], #guest-support :is(#support-dialog,#support-followup)[open], .paid-dialog[open] { box-shadow: var(--panel-shadow); }
.drawer, .nav-drawer { background: var(--surface); box-shadow: var(--panel-shadow); border-inline-start: 1px solid var(--line); }
.drawer::backdrop, .nav-drawer::backdrop, .paid-dialog::backdrop, #guest-support dialog::backdrop { background: #121b3652; }
.drawer-head, .mobile-nav-head { border-bottom-color: var(--line); }
.drawer-foot, .mobile-nav-foot { background: var(--surface-soft); }
.quantity button, .checkout-link,
body[data-store-blog] :is(.journal-search, .journal-share, .journal-share-top) button {
  border-radius: var(--control-radius);
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--dark-blue);
  font-weight: 600;
  transition: background-color var(--control-feedback), color var(--control-feedback), border-color var(--control-feedback);
}
.checkout-link:hover, .quantity button:hover, body[data-store-blog] :is(.journal-search, .journal-share, .journal-share-top) button:hover {
  background: var(--nav-tint);
  text-decoration: none;
}
.quantity button { min-width: 38px; min-height: 38px; }
.quantity button:disabled { opacity: .55; cursor: default; }
.checkout-link { min-height: 36px; }
.checkout-page { background: var(--paper); }
.checkout-shell h1 { font-weight: 700; letter-spacing: -.02em; }
.paid-dialog .checkout-link[data-copy] { min-height: 38px; }
.paid-dialog .paid-dialog-close .checkout-link { background: transparent; }
.paid-dialog-close .checkout-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: none; }
#guest-support #support-launch, #site-language-control .site-language-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--dark-blue);
  background: var(--surface);
  box-shadow: 0 2px 8px #20376913;
  transition: background-color var(--control-feedback), color var(--control-feedback), border-color var(--control-feedback);
}
#guest-support #support-launch:hover, #site-language-control .site-language-toggle:hover { background: var(--nav-tint); }
#guest-support .support-send {
  min-height: 44px;
  border-radius: var(--control-radius);
  background: var(--action);
  color: #fff;
}
#guest-support .support-send:hover { background: var(--action-hover); }
#guest-support .support-send:active { background: var(--action-pressed); }
#guest-support #support-dialog header button {
  border-radius: var(--control-radius);
  background: var(--surface-soft);
  color: var(--ink);
}
#guest-support :is(.support-hint, #support-status, .support-entry small) { color: var(--sub); }
#guest-support .support-entry { background: var(--surface-soft); }
#guest-support .support-entry.own { background: var(--nav-tint); }
#guest-support .support-entry p, #guest-support .support-product { color: var(--ink); }
#guest-support #support-older { color: var(--dark-blue); background: var(--surface); border-color: var(--control-line); }
#guest-support :is(#support-number,#support-label,#support-contact-summary,#support-staff-contact) { color: var(--sub); }
#guest-support :is(#support-edit,#support-cancel-edit) { color: var(--dark-blue); }
.footer { background: var(--shop-tint); border-top: 1px solid var(--line); color: var(--ink); }
.footer :is(small, .footer-links, .contact-method dt, .contact-status) { color: var(--sub); }
.footer .contact { border-bottom-color: var(--line); }
.footer .contact-method { background: var(--surface); border-color: var(--line); border-radius: var(--panel-radius); }
.footer :is(.contact-chat, .contact-copy) { color: var(--dark-blue); background: var(--nav-tint); border: 1px solid transparent; border-radius: var(--control-radius); text-decoration: none; transition: background-color var(--control-feedback), border-color var(--control-feedback); }
.footer .contact-chat { padding-inline: 12px; }
.footer :is(.contact-chat, .contact-copy):hover { color: var(--dark-blue); background: var(--surface); border-color: var(--control-line); text-decoration: none; }
#site-language-control .site-language-dialog { background: var(--surface); color: var(--ink); border-radius: var(--panel-radius); box-shadow: var(--panel-shadow); }
#site-language-control .site-language-list button { color: var(--ink); background: var(--surface); border-color: var(--control-line); border-radius: var(--control-radius); }
#site-language-control .site-language-list button:hover, #site-language-control .site-language-list button[aria-pressed="true"] { background: var(--nav-tint); }

[data-store-blog] .journal-banner { background: linear-gradient(135deg, var(--shop-tint), var(--surface)); }
[data-store-blog] .journal-banner h1 { font-size: clamp(29px,3.6vw,52px); max-width: 22em; }
[data-store-blog] :is(.journal-feature,.journal-card,.journal-story-cover) { border-radius: var(--panel-radius); }
[data-store-blog] .journal-feature { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
[data-store-blog] .journal-feature .journal-image-link { min-height: unset; aspect-ratio: 1.55; }
[data-store-blog] .journal-topic { border-radius: 8px; font-weight: 600; }
[data-store-blog] .journal-search { border-radius: var(--control-radius); }
[data-store-blog] .journal-search button { min-height: 34px; border-radius: 8px; background: var(--nav-tint); }
[data-store-blog] .journal-search button:hover { color: var(--blue); background: var(--pale); }
[data-store-blog] .journal-tabs a { display: inline-flex; min-height: 38px; align-items: center; }
[data-store-blog] .journal-read {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--nav-tint);
  color: var(--dark-blue);
  font-weight: 600;
  transition: background-color var(--control-feedback);
}
[data-store-blog] .journal-read:hover { background: var(--pale); }
[data-store-blog] :is(.journal-discussion,.journal-prose) .submit { min-height: 44px; background: var(--action); border-radius: var(--control-radius); }
[data-store-blog] :is(.journal-discussion,.journal-prose) .submit:hover { background: var(--action-hover); }

@media (prefers-reduced-motion: no-preference) {
  .drawer[open], .nav-drawer[open], .search-dialog[open], .paid-dialog[open],
  #guest-support dialog[open], #site-language-control dialog[open] { animation: panel-appear 160ms var(--ease-out) both; }
  @keyframes panel-appear { from { opacity: .68; } to { opacity: 1; } }
}

@media (max-width: 740px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 23px; padding-block: 27px; }
  .hero .hero-copy h1 { max-inline-size: none; font-size: clamp(32px, 7.3vw, 53px); }
  .hero-text { margin-block: 13px 18px; }
  .hero-departments { gap: 8px; max-width: 480px; width: 100%; justify-self: center; }
  .hero-department img { aspect-ratio: 1.5; }
  .hero-department > span { padding: 9px 0 10px 10px; }
  .hero-department svg { margin: 12px 7px 0 0; }
  .hero-department strong { font-size: 15px; }
  .hero-department small { font-size: 11px; }
  .product-meta { gap: 4px; }
  .product-meta :is(.product-tag, .product-system) { padding-inline: 6px; font-size: 11px; }
  .product-meta .product-system { min-block-size: 22px; }
  .detail-image { max-width: min(80%,350px); }
  .detail-layout .reference-art { padding: clamp(14px,4vw,24px); }
  .icon-button { min-height: 44px; }
}
@media (max-width: 540px) {
  #site-language-control .site-language-toggle { min-width: 44px; justify-content: center; padding: 8px; }
  #site-language-control .site-language-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #site-language-control .site-language-toggle[data-partial]::after { position: absolute; inset: 7px 7px auto auto; }
}
@media (max-width: 700px) {
  [data-store-blog] .journal-feature { grid-template-columns: minmax(0,1fr); }
  [data-store-blog] .journal-feature .journal-image-link { aspect-ratio: 1.92; }
}
@media (max-width: 370px) {
  .header .brand { font-size: 13px; gap: 6px; }
  .header .brand-mark { width: 28px; height: 28px; }
  .header .icon-button { width: 36px; }
  .hero-copy .hero-actions .button { padding-inline: 11px; font-size: 13px; }
  .detail-purchase .hero-actions { grid-template-columns: minmax(0,1fr); }
  .hero-department small { font-size: 10px; }
  .hero-department svg { width: 11px; margin-inline-end: 6px; }
}
@media (pointer: coarse) {
  .quantity button, .checkout-link, #guest-support #support-dialog header button { min-width: 44px; min-height: 44px; }
  [data-store-blog] :is(.journal-tabs a,.journal-read,.journal-search button,.journal-share-top button) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
