/* XX's blue app icon supplies the accent for navigation and controls. */
:root {
  --brand: #0071bc;
  --brand-hover: #005d9c;
  --night: #0a2033;
  --ice: #9dd4f6;
  --ink: #132839;
  --muted: #4e606c;
  --line: #d8e1e6;
  --header-height: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: white;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
::selection { color: var(--night); background: #bedff5; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 10; padding: 12px; color: var(--night); background: white; }
.skip-link:focus { top: 8px; }
.topbar { position: sticky; top: 0; z-index: 5; color: white; background: var(--night); border-bottom: 1px solid #ffffff1f; }
.header-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 3px; margin-inline-start: auto; }
.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px clamp(9px, 1vw, 15px);
  border-radius: 6px;
  color: #c1d2de;
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}
.nav a:hover { color: white; background: #ffffff0b; }
.nav a[aria-current] { color: #cfeaff; background: #1a364c; font-weight: 600; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline-start: 18px;
  border-inline-start: 1px solid #ffffff24;
}
.nav-recharge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid #42627a;
  border-radius: 6px;
  background: transparent;
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-recharge:disabled { cursor: default; }
.menu-toggle { display: none; }

.hero { color: white; background: var(--night); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(36px, 6vw, 96px); padding-block: clamp(40px, 4.3vw, 68px); }
.hero-copy { min-width: 0; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-size: clamp(52px, 5.4vw, 78px); font-weight: 650; letter-spacing: -.045em; line-height: 1.14; }
.hero h1 small { display: block; margin-top: 15px; color: #b7d6e9; font-size: clamp(21px, 2.1vw, 31px); font-weight: 450; line-height: 1.45; letter-spacing: 0; }
.hero-lede { max-width: 26em; margin-top: 24px; color: #ccdae4; font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-size: 15px; }
.button { padding: 10px 21px; border-radius: 6px; font-weight: 600; }
.primary { color: white; background: var(--brand); }
.primary:hover { background: var(--brand-hover); }
.text-link { color: #d1e7f4; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #759bb2; }
.text-link:hover { color: white; text-decoration-color: currentColor; }

.screen-gallery { display: grid; justify-items: center; gap: 16px; min-width: 0; }
/* The rim and selfie lens are sampled from the same straight-on product photo. */
.screen-frame {
  --handset-photo: url("static/xxm/handset-rim.webp");
  position: relative;
  isolation: isolate;
  width: min(100% - 16px, clamp(270px, 21vw, 310px));
  aspect-ratio: 608 / 1292;
  filter: drop-shadow(0 12px 12px rgb(0 9 18 / 22%));
}
.screen-frame::before, .screen-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--handset-photo) center / 100% 100% no-repeat;
  pointer-events: none;
}
.screen-frame::before {
  /* Only the left corners of the front handset overlap the source's second handset. */
  clip-path: inset(0 round 12.1% 0 0 12.1% / 5.7% 0 0 5.7%);
}
.screen-frame::after {
  clip-path: ellipse(2.38% 1.12% at 49.51% 4.41%);
}
.display-glass {
  position: absolute;
  inset: 1.32% 3.62% 1.7% 2.8%;
  border-radius: 10.1% / 4.6%;
  background: #fff;
  overflow: hidden;
}
.screen-original {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background: white;
  cursor: zoom-in;
}
.screen-original::before {
  content: "";
  flex: 0 0 2%;
  background: #022f56;
}
#screen-overview::before { background: #0476d7; }
.screen-original img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: auto;
}
.screen-original::after {
  content: "";
  align-self: center;
  width: 25%;
  height: 3px;
  margin: auto 0 2.7%;
  border-radius: 4px;
  background: #30383d;
}
.screen-original:focus-visible { outline: 3px solid var(--brand); outline-offset: -4px; }
.screen-switch { --screen-count: 3; position: relative; display: grid; grid-template-columns: repeat(var(--screen-count), minmax(0, 1fr)); width: min(100%, 294px); border-bottom: 1px solid #385166; }
.screen-switch::after {
  content: ""; position: absolute; bottom: 0; left: 0; pointer-events: none;
  width: calc(100% / var(--screen-count)); height: 2px; background: var(--ice);
  transform: translateX(calc(var(--screen-index, 0) * 100%));
}
.screen-switch button { min-height: 44px; padding: 6px; border: none; border-bottom: 2px solid transparent; background: none; color: #b7cad8; font-size: 14px; }
.screen-switch button[aria-pressed=true] { color: white; font-weight: 600; }
.screen-switch button:hover { color: white; }

@media (prefers-reduced-motion: no-preference) {
  .screen-frame.in-view { animation: phone-settle 520ms cubic-bezier(.2,.75,.25,1); }
  .screen-frame.has-switched .screen-original:not([hidden]) img { animation: screen-arrive 180ms ease-out; }
  .screen-switch::after { transition: transform 180ms ease-out; }
}
/* Home movements finish once and never gate the main text on JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 { animation: home-rise 440ms cubic-bezier(.2,.75,.25,1) backwards; }
  .hero-actions { animation: home-rise 440ms 80ms cubic-bezier(.2,.75,.25,1) backwards; }
  .feature-grid article { position: relative; }
  .feature-grid article.in-view::before {
    content: "";
    position: absolute;
    inset: -1px auto auto 0;
    width: 44px;
    height: 2px;
    background: var(--brand);
    transform-origin: left;
    animation: feature-rule 480ms cubic-bezier(.2,.75,.25,1) backwards;
  }
  .feature-grid article.in-view h3, .steps li.in-view { animation: home-rise 360ms ease-out backwards; }
  .feature-guide span { transition: transform 160ms ease-out; }
  .hero-actions .button, .download-button { transition: transform 160ms ease-out; }
  .feature-guide:focus-visible span { transform: translateX(3px); }
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .feature-grid article.in-view:nth-child(even)::before,
  .feature-grid article.in-view:nth-child(even) h3 { animation-delay: 70ms; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .feature-guide:hover span { transform: translateX(4px); }
  .hero-actions .button:hover, .download-button:hover { transform: translateY(-2px); }
  .hero-actions .button:active, .download-button:active { transform: translateY(0); }
}
@keyframes home-rise {
  from { opacity: .83; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes feature-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes phone-settle {
  from { transform: perspective(900px) translateY(12px) rotateY(-7deg) rotateZ(-1deg); }
  to { transform: none; }
}
@keyframes screen-arrive {
  from { opacity: .78; transform: scale(1.012); }
  to { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .screen-switch button[aria-pressed=true] { border-bottom-color: Highlight; }
}

.section { padding-block: clamp(48px, 5.7vw, 82px); }
.section h2 { font-size: clamp(27px, 2.7vw, 38px); line-height: 1.35; letter-spacing: -.025em; font-weight: 630; }
.section h3 { font-size: 20px; line-height: 1.55; font-weight: 600; }
.section p { max-width: 40em; color: var(--muted); font-size: 16px; line-height: 1.85; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(30px, 5vw, 82px); margin-top: 30px; }
.feature-grid article { padding: 22px 0; border-top: 1px solid var(--line); }
.feature-grid article p, .steps p, .notes p { margin-top: 6px; }
.feature-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--brand-hover);
  font-size: 14px;
  font-weight: 600;
}
.feature-guide:hover { text-decoration: underline; text-underline-offset: 4px; }
.split { display: grid; grid-template-columns: .85fr 1.4fr; align-items: start; gap: clamp(32px, 7vw, 100px); }
.workflow-section { background: #f0f5f8; }
.steps { margin: 0; padding-left: 1.65em; }
.steps li { padding: 16px 0 16px 8px; border-top: 1px solid #cfdce5; }
.steps li:first-child { padding-top: 0; border: 0; }
.steps li:last-child { padding-bottom: 0; }
.steps li::marker { font-weight: 600; color: var(--brand-hover); font-variant-numeric: tabular-nums; }
.notes { display: grid; gap: 20px; }
.notes h3 { font-size: 17px; }
.about { border-top: 1px solid var(--line); }
.download-section { color: white; background: var(--night); }
.download-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.download-wrap p { margin-top: 10px; color: #c5d5e0; }
.download-button { background: white; color: var(--brand-hover); }
.download-button:hover { background: #e3f0f9; }
.contact-copy { overflow-wrap: anywhere; }
.footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand { font-size: 16px; }
.footer small { color: var(--muted); }
.announcement { background: #e5f1f9; padding-block: 14px; font-size: 14px; }
.announcement a { color: var(--brand-hover); text-decoration: underline; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 56px); }
  .header-actions { padding-inline-start: 12px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  :root { --header-height: 60px; }
  .wrap { width: calc(100% - 40px); }
  .header-inner { gap: 10px; }
  .header-inner .brand img { width: 30px; height: 30px; }
  .header-actions { margin-inline-start: auto; padding: 0; border: 0; }
  .nav-recharge { padding-inline: 12px; }
  .menu-toggle { display: grid; align-content: center; justify-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: none; color: #e2ebf2; }
  .menu-toggle:hover, .menu-toggle[aria-expanded=true] { background: #1a364c; }
  .menu-toggle i { width: 19px; height: 2px; background: currentColor; }
  .menu-toggle[aria-expanded=true] i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav {
    display: none;
    position: absolute;
    inset: calc(100% + 6px) 20px auto;
    max-height: calc(100dvh - var(--header-height) - 14px);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    border: 1px solid #304b61;
    border-radius: 9px;
    background: #11293c;
    box-shadow: 0 14px 28px #00101f66;
  }
  .nav.open { display: grid; }
  .nav a { justify-content: flex-start; min-height: 48px; padding-inline: 14px; }
  .nav a:focus-visible { outline-offset: -3px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 34px 26px; }
  .hero h1 { font-size: clamp(42px, 10vw, 58px); }
  .hero h1 small { margin-top: 5px; font-size: 21px; }
  .hero-lede { max-width: 32em; margin-top: 14px; font-size: 15px; line-height: 1.75; }
  .hero-actions { margin-top: 18px; }
  .screen-gallery { gap: 8px; }
  .screen-switch { grid-row: 1; margin-bottom: 8px; }
  .screen-frame { width: min(100% - 16px, 296px); }
  .feature-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .split h2 { margin-bottom: 24px; }
  .feature-grid { margin-top: 22px; }
  .feature-grid article { padding: 18px 0; }
  .feature-grid article:last-child { padding-bottom: 0; }
  .section h3 { font-size: 18px; }
  .download-wrap { align-items: flex-start; flex-direction: column; }
  .footer { min-height: 76px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .nav { inset-inline: 16px; }
  .screen-frame { width: min(100% - 16px, 252px); }
}

/* Keep language controls aligned with the existing navigation. */
.nav .language-switch { color: var(--ice); margin-inline-start: 5px; }
html[lang="en"] .hero-lede { max-width: 31em; }
html[lang="en"] .feature-tabs a { font-size: 14px; }
html[lang="en"] .feature-visual figcaption { line-height: 1.55; }
html[lang="en"] .footer small { font-size: 12px; }
@media (min-width: 701px) and (max-width: 1024px) {
  html[lang="en"] .nav { gap: 0; }
  html[lang="en"] .nav a { padding-inline: 7px; font-size: 12px; }
  html[lang="en"] .brand { font-size: 16px; gap: 7px; }
  html[lang="en"] .header-inner { gap: 10px; }
  html[lang="en"] .header-actions { padding-inline-start: 10px; }
}
@media (max-width: 700px) {
  html[lang="en"] .footer { flex-wrap: wrap; padding-block: 16px; gap: 10px; }
  html[lang="en"] .footer small { flex-basis: 100%; }
  html[lang="en"] .feature-tabs a { font-size: 13px; }
}
