:root {
  color-scheme: light;
  --surface: #fff;
  --ink: #18191f;
  --body: #51535e;
  --line: #e0e1e7;
  --accent: #b82c27;
  --primary-bg: #b82c27;
  --primary-hover: #991f1b;
  --accent-tint: #faecec;
  --surface-hover: #f0eef2;
  --focus: #215abc;
  --control-border: #d4d3db;
  --frame-border: #d8d9e0;
  --code-bg: #e6e7ee;
  --code-ink: #282838;
  --step-bg: #f9e1e1;
  --step-ink: #9e211d;
  --hero-start: #faf9fa;
  --hero-mid: #f5f3f6;
  --hero-end: #e9ebf5;
  --availability-bg: #261f2b;
  --panel: #f4f4f7;
  --width: 72rem;
  --header-height: 5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  scroll-padding-top: calc(var(--header-height) + .75rem);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #14151b;
  --ink: #f2f0f5;
  --body: #c7c2d0;
  --line: #393a48;
  --accent: #ff9690;
  --primary-bg: #ad3830;
  --primary-hover: #9c322b;
  --accent-tint: #45282e;
  --surface-hover: #2e303e;
  --focus: #a6c3ff;
  --control-border: #686978;
  --frame-border: #444653;
  --code-bg: #303244;
  --code-ink: #f2f0f5;
  --step-bg: #45282e;
  --step-ink: #ffaaa3;
  --hero-start: #1e1b25;
  --hero-mid: #20212d;
  --hero-end: #252b3e;
  --availability-bg: #302330;
  --panel: #20212b;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, summary:focus-visible, button:focus-visible, select:focus-visible, .feature-gallery:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(var(--width), calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: -8rem; z-index: 6; padding: .7rem 1rem; background: var(--surface); }
.skip:focus { top: 1rem; }
.header { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; justify-content: space-between; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 780; font-size: 1.3rem; letter-spacing: -.05em; }
.header-links { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; margin-inline-start: auto; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .375rem 1.45rem; font-size: .95rem; font-weight: 630; color: var(--body); }
.main-nav a { text-decoration: none; padding-block: .4rem; }
.nav-home[data-reveal-on-scroll] { opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility 0s linear .24s; }
.nav-home[data-reveal-on-scroll].is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  .nav-home[data-reveal-on-scroll] { transition: none; }
}
.header-tools { display: flex; align-items: center; flex: none; gap: .375rem; }
.language-picker { position: relative; }
.language-trigger, .theme-toggle {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--control-border);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.language-trigger {
  display: flex;
  justify-content: center;
  gap: .35rem;
  padding-inline: .6rem;
  list-style: none;
  font-size: .875rem;
  font-weight: 730;
}
.language-trigger::-webkit-details-marker { display: none; }
.language-trigger::after {
  content: "";
  width: .36rem;
  height: .36rem;
  border: solid currentColor;
  border-width: 0 .1rem .1rem 0;
  transform: translateY(-.1rem) rotate(45deg);
}
.language-picker[open] .language-trigger::after { transform: translateY(.1rem) rotate(225deg); }
.language-choices {
  position: absolute;
  inset-block-start: calc(100% + .35rem);
  inset-inline-end: 0;
  z-index: 1;
  min-width: 8.5rem;
  padding: .3rem;
  border: 1px solid var(--control-border);
  border-radius: .55rem;
  background: var(--surface);
  box-shadow: 0 .45rem 1.25rem #18191f33;
}
.language-choices a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: .65rem;
  border-radius: .35rem;
  font-size: .875rem;
  text-decoration: none;
}
.language-choices a:hover, .language-trigger:hover, .theme-toggle:hover { background: var(--surface-hover); }
.language-choices a[aria-current] { color: var(--accent); background: var(--accent-tint); font-weight: 730; }
.theme-toggle[hidden] { display: none; }
.theme-icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-icon-sun, [data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }
.header nav a:hover, .footer a:hover { color: var(--accent); }

.hero { overflow: hidden; background: linear-gradient(116deg, var(--hero-start), var(--hero-mid) 53%, var(--hero-end)); border-bottom: 1px solid var(--line); }
.hero-content { min-height: 37rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; padding-block: 4.4rem 4rem; gap: 2rem; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { color: var(--accent); font-size: .875rem; font-weight: 750; letter-spacing: .095em; line-height: 1.45; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(3rem, 5.5vw, 5.35rem); font-weight: 770; line-height: 1.01; letter-spacing: -.075em; margin: 1.2rem 0 1.45rem; }
h1 em { color: var(--accent); font-style: normal; }
.intro { color: var(--body); font-size: clamp(1.08rem, 1.45vw, 1.25rem); max-width: 30rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin: 1.85rem 0 .85rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .65rem 1.1rem; border: 1px solid transparent; border-radius: .65rem; text-decoration: none; font-size: .95rem; font-weight: 690; line-height: 1.3; text-align: center; }
.primary { background: var(--primary-bg); color: #fff; }
.primary:hover { background: var(--primary-hover); }
.secondary { border-color: var(--control-border); background: var(--surface); }
.secondary:hover { background: var(--surface-hover); }
.compatibility { color: var(--body); font-size: .9rem; }
.hero-figure { width: min(52rem, 122%, calc(50vw + 1rem)); justify-self: start; }
.hero-screen { overflow: hidden; border-radius: .85rem; background: #f5f4f2; border: 1px solid var(--frame-border); box-shadow: 0 24px 64px -22px #25253866, 0 1px 3px #25253818; }
.hero-screen img { width: 100%; }
.hero-caption, .gallery-caption { color: var(--body); font-size: .875rem; margin-top: .75rem; }

.features, .help { padding-block: clamp(3.75rem, 7vw, 6.25rem); }
h2 { font-size: clamp(2.15rem, 4vw, 3.65rem); font-weight: 750; line-height: 1.06; letter-spacing: -.065em; }
h3 { font-size: 1.22rem; letter-spacing: -.027em; line-height: 1.3; }
.section-head { display: grid; align-items: end; grid-template-columns: 1.1fr 1fr; gap: 1rem 2rem; }
.section-head p { color: var(--body); max-width: 27rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
.features-grid article { border-top: 1px solid var(--line); padding-top: 1.15rem; }
.features-grid p, .steps p { color: var(--body); margin-top: .5rem; }
.feature-gallery { max-width: 60rem; margin: clamp(1.65rem, 4vw, 3rem) auto 0; }
.gallery-frame { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: var(--panel); }
.gallery-frame { touch-action: pan-y pinch-zoom; }
.gallery-frame img { width: 100%; }
.gallery-caption { text-align: center; }
.slide-controls button {
  position: absolute;
  inset-block-start: 50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  translate: 0 -50%;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 12px #18191f40;
  cursor: pointer;
}
.slide-controls button:hover { background: var(--accent-tint); color: var(--accent); }
.slide-controls button::before {
  content: "";
  width: .6rem;
  height: .6rem;
  border: solid currentColor;
  border-width: .15rem .15rem 0 0;
}
.slide-controls button[data-direction="-1"] { inset-inline-start: .55rem; }
.slide-controls button[data-direction="-1"]::before { transform: translateX(.1rem) rotate(-135deg); }
.slide-controls button[data-direction="1"] { inset-inline-end: .55rem; }
.slide-controls button[data-direction="1"]::before { transform: translateX(-.1rem) rotate(45deg); }

.image-zoom { position: relative; display: block; cursor: zoom-in; }
.image-zoom:focus-visible { outline-offset: -4px; }
.zoom-hint {
  position: absolute;
  inset-inline-end: .65rem;
  inset-block-end: .65rem;
  padding: .45rem .7rem;
  border: 1px solid var(--control-border);
  border-radius: .55rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px #18191f33;
  font-size: .875rem;
  font-weight: 700;
}
.image-zoom:hover .zoom-hint { background: var(--accent-tint); color: var(--accent); }
.image-viewer {
  width: min(94vw, 92rem);
  height: min(90dvh, 64rem);
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid #454653;
  border-radius: .85rem;
  overflow: hidden;
  background: #1d1e27;
  color: #fff;
}
.image-viewer::backdrop { background: #11121cdd; }
:root:has(.image-viewer[open]) { overflow: hidden; }
.viewer-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  padding: .5rem .8rem;
  background: #272833;
}
.viewer-zoom { display: flex; align-items: center; gap: .45rem; }
.viewer-toolbar button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .25rem .65rem;
  border: 1px solid #656772;
  border-radius: .5rem;
  background: #393b47;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.viewer-toolbar button:hover { background: #4c4e5c; }
.viewer-toolbar button:disabled { opacity: .5; cursor: default; }
.zoom-level { min-width: 3rem; text-align: center; font-variant-numeric: tabular-nums; }
.viewer-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.viewer-scroll { overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; }
.viewer-scroll.swipe-enabled { touch-action: pan-y; }
.viewer-canvas { display: grid; place-items: center; width: max-content; min-width: 100%; min-height: 100%; }
.viewer-canvas img { max-width: none; }
.viewer-slide-caption { padding: .5rem 1rem; background: #272833; text-align: center; font-size: .875rem; }

.migration { background: var(--panel); border-block: 1px solid var(--line); padding-block: clamp(3.75rem, 7vw, 6rem); }
.migration-grid { display: grid; grid-template-columns: .8fr 1.3fr; align-items: start; gap: clamp(2rem, 6vw, 6rem); }
.migration-copy h2 { margin: .9rem 0 1rem; }
.migration-copy > p:not(.eyebrow) { color: var(--body); }
.note { padding: .75rem 1rem; margin-top: 1.25rem; background: var(--surface); border-radius: .6rem; border-left: 3px solid var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: .25rem 0 1.45rem 3.45rem; }
.steps li + li { padding-top: 1.45rem; border-top: 1px solid var(--frame-border); }
.steps li:last-child { padding-bottom: 0; }
.step-number { position: absolute; left: 0; top: -.1rem; display: grid; place-items: center; width: 2.25rem; aspect-ratio: 1; border-radius: 50%; font-weight: 750; background: var(--step-bg); color: var(--step-ink); }
.steps li + li .step-number { top: 1.15rem; }
.steps a, .help a { color: var(--accent); }
code { padding: .05em .28em; border-radius: .22em; background: var(--code-bg); font-size: .9em; color: var(--code-ink); }
.help { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 1.75rem clamp(2rem, 6vw, 6rem); align-items: start; }
.help h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.help-contact { padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: .75rem; background: var(--panel); }
.help-contact h2 { font-size: 1.5rem; }
.help-contact p { margin-top: .75rem; }
.faq { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-size: 1.06rem; font-weight: 690; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--body); margin-top: .65rem; }

.availability { border-radius: 1.1rem; background: var(--availability-bg); color: #fff; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding: clamp(1.45rem, 4vw, 3rem); }
.availability h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.light { background: #fff; color: #261f2b; }
.footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .9rem 1.25rem; min-height: 7rem; padding-block: 1.4rem; color: var(--body); font-size: .9rem; }
.footer .brand { grid-column: 1; justify-self: start; color: var(--ink); }
.footer-credit { grid-column: 2; text-align: center; }
.footer-privacy { grid-column: 3; justify-self: end; text-align: end; overflow-wrap: anywhere; }

@media (width > 840px) {
  .hero-figure { margin-inline-start: -1rem; }
}
@media (max-width: 840px) {
  .hero-content { grid-template-columns: 1fr; padding-block: 3.5rem 2.5rem; }
  .hero-figure { width: 100%; }
  .section-head { grid-template-columns: 1fr; }
  .migration-grid, .help { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --header-height: 6.625rem; }
  .header-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem; padding-block: .6rem .25rem; }
  .header-inner > .brand { justify-self: start; }
  .header-links { flex-wrap: wrap; gap: .15rem .55rem; }
  .main-nav { font-size: .875rem; gap: .15rem .7rem; }
  .main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-home { position: absolute; inset-block-start: .6rem; inset-inline-end: 0; }
}
@media (max-width: 550px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-content { min-height: auto; padding-block: 2.8rem 2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .migration { padding-block: 2.15rem 2.75rem; }
  .migration-grid { gap: 1.5rem; }
  .migration-copy h2 { margin-block: .55rem .65rem; }
  .note { margin-top: .75rem; }
  .steps li { padding-left: 2.65rem; }
  .step-number { width: 1.9rem; }
  .image-viewer { width: calc(100% - 1rem); height: calc(100dvh - 1rem); }
}
@media (max-width: 680px) {
  .footer { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .footer .brand, .footer-credit, .footer-privacy { grid-column: 1; justify-self: center; text-align: center; }
}
@media (max-width: 360px) {
  .header-inner { width: calc(100% - 1rem); }
  .header-links { column-gap: .35rem; }
  .main-nav { column-gap: .3rem; }
  .hero-content { padding-top: 2rem; }
  .hero h1 { font-size: 2.625rem; }
}

.policy-heading {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.policy-heading h1 {
  max-width: 19ch;
  margin: .5rem 0 1rem;
  font-size: clamp(2.35rem, 5.4vw, 4.65rem);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.policy-heading p:not(.policy-date) { max-width: 65ch; color: var(--body); }
.policy-date { color: var(--accent); font-size: .9rem; font-weight: 700; }
.policy-body a { color: var(--accent); }
.policy-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 44rem);
  align-items: start;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.policy-toc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1.15rem;
}
.policy-toc h2 { font-size: 1.05rem; letter-spacing: -.02em; }
.policy-toc ul { margin: .75rem 0 0; padding: 0; list-style: none; }
.policy-toc a { display: block; padding: .32rem 0; font-size: .91rem; line-height: 1.4; }
.policy-toc a:hover { color: var(--accent); }
.policy-body section { scroll-margin-top: 1.25rem; }
.policy-body section + section { border-top: 1px solid var(--line); margin-top: 1.9rem; padding-top: 1.9rem; }
.policy-body h2 { font-size: clamp(1.4rem, 2.7vw, 2rem); letter-spacing: -.04em; }
.policy-body p { color: var(--body); margin-top: .65rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); }
}
