  :root {
    --bg: #05070a; --bg-2: #0a0e13; --panel: #0f1319; --panel-2: #151a22; --line: #222934; --line-2: #2e3744;
    --text: #eef1f5; --muted: #8b94a1; --dim: #5d6673;
    --accent: #d4ff3a; --accent-ink: #0d1200; --cyan: #38e8ff;
    --cut: 12px;
    --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; height: auto; display: block; }
  .wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
  .cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }

  /* header */
  header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  header .wrap { display: flex; align-items: center; gap: 28px; height: 62px; }
  .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 1px; }
  .logo .mark { width: 30px; height: 30px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 14px/1 var(--mono); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
  nav { display: flex; gap: 26px; margin-left: auto; color: var(--muted); font-size: 14px; }
  nav a:hover { color: var(--text); }
  .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; font-weight: 800; font-size: 15px; background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer;
    clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); transition: filter .15s; }
  .btn:hover { filter: brightness(1.08); }
  .btn.ghost { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn.small { padding: 9px 18px; font-size: 14px; }
  .btn[aria-disabled="true"] { background: var(--panel-2); color: var(--muted); cursor: not-allowed; filter: none; }
  .btn[aria-disabled="true"] small { color: var(--dim); font-weight: 600; }

  /* hero */
  .home-page { --home-nav-height: 63px; }
  .home-page > header { margin-bottom: calc(0px - var(--home-nav-height));
    background: linear-gradient(180deg, #070e16e8, #070e16a8); border-color: #a5c9cc26; backdrop-filter: blur(10px); }
  .home-page > header .wrap { height: calc(var(--home-nav-height) - 1px); }
  .home-page > header nav { color: #b5c6cb; }
  .hero { background: #08131c; }
  h1 { font-size: clamp(40px, 7.4vw, 84px); line-height: 1.08; margin: 18px 0 18px; font-weight: 900; letter-spacing: 1px; }
  h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 40px color-mix(in srgb, var(--accent) 35%, transparent); }
  .hero-links { scroll-margin-top: calc(var(--home-nav-height) + 12px); text-align: center; padding: clamp(40px, 6vw, 70px) 0 40px; }
  .lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 34em; margin: 0 auto; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
  .chips li { padding: 6px 14px; font-size: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
  .chips li b { color: var(--accent); font-weight: 700; margin-right: 6px; font-family: var(--mono); font-size: 12px; }
  .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
  .hero-links [data-windows-download] { padding-inline: 22px; }
  .hero-links [data-windows-download] small { font-weight: 600; }
  .meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

  .mapping-demo { display: grid; grid-template-rows: minmax(clamp(136px, 26svh, 240px), 1fr) auto;
    position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; margin: 0; padding-top: var(--home-nav-height); }
  .mapping-view { position: absolute; inset: 0; z-index: -1; overflow: hidden;
    background: radial-gradient(ellipse at 53% 37%, #173438, #0c1c2a 56%, #08121b 86%); }
  .mapping-view::after { content: ""; position: absolute; inset: auto 0 0; height: 20%; pointer-events: none;
    background: linear-gradient(180deg, transparent, #060c14b0); }
  .mapping-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .mapping-poster { position: relative; grid-row: 1; justify-self: center; width: min(100%, 1240px); min-height: 0; }
  .mapping-poster img { position: absolute; inset: 8px 12px; width: calc(100% - 24px); height: calc(100% - 16px); object-fit: contain; }
  .mapping-canvas { visibility: hidden; pointer-events: none; }
  .mapping-demo[data-ready] .mapping-canvas { visibility: visible; }
  .mapping-demo[data-ready] .mapping-poster { visibility: hidden; }
  .mapping-caption { grid-row: 2; justify-self: center; display: grid; justify-items: center; gap: 9px;
    max-width: min(100%, 660px); text-align: center; padding: 6px 12px clamp(18px, 3.2svh, 32px); }
  .mapping-caption h1 { margin: 0; font-size: clamp(30px, 4.6vw, 66px); line-height: 1.14; letter-spacing: .02em; }
  .film-demo .mapping-caption p { margin: 0; color: #a8b5be; font-size: 13px; }
  .film-demo .mapping-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
  .film-demo .mapping-controls[hidden] { display: none; }
  .film-demo .mapping-controls button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-2); background: #121c24;
    color: #a8b5be; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.25; white-space: nowrap; cursor: pointer; }
  .film-demo .mapping-controls button:hover { color: var(--text); border-color: #819887; }
  .film-demo .mapping-controls button[aria-pressed="true"] { color: var(--accent); border-color: #657c36; background: #202c1b; }
  .film-demo .mapping-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .film-demo .mapping-view { background: radial-gradient(ellipse at 49% 38%, #203738, #10212d 52%, #08131c 86%); }
  .film-demo .mapping-caption { gap: 6px; }
  .film-demo .film-seek { width: min(290px, 82vw); height: 16px; margin: 0;
    accent-color: var(--accent); cursor: pointer; }
  .film-demo .film-seek:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (max-width: 410px) { .film-demo .mapping-controls { gap: 3px; }
    .film-demo .mapping-controls button { font-size: 12px; padding-inline: 5px; } }
  @media (max-height: 450px) { .film-demo .mapping-caption p { display: none; }
    .film-demo .mapping-caption { gap: 2px; } }
  .hero-next { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 7px; color: #d2dee4;
    font-size: 13px; font-weight: 700; }
  .hero-next span { color: var(--accent); font-size: 17px; line-height: 1; }
  .hero-next:hover { color: var(--accent); }
  .hero-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* points strip */
  .points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .points div { background: var(--bg-2); padding: 22px 24px; }
  .points b { display: block; font-size: 17px; margin-bottom: 4px; }
  .points span { color: var(--muted); font-size: 14px; }

  /* sections */
  section { padding: 96px 0 0; }
  .label { color: var(--accent); font: 700 13px/1 var(--mono); letter-spacing: 2px; }
  h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.2; margin: 12px 0 10px; font-weight: 900; }
  .sub { color: var(--muted); margin: 0 0 40px; max-width: 40em; }

  /* features */
  .feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .fcard { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); padding: 0 0 22px; --cut: 16px; }
  .fcard .demo { height: 190px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
  .fcard .demo svg { width: 100%; height: 100%; display: block; }
  .fcard h3 { margin: 18px 22px 6px; font-size: 19px; display: flex; align-items: center; gap: 8px; }
  .fcard p { margin: 0 22px; color: var(--muted); font-size: 15px; }
  .vip { font: 700 11px/1 var(--mono); color: var(--accent-ink); background: var(--accent); padding: 4px 6px; letter-spacing: 1px; }
  .small-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
  .sf { padding: 18px 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
  .sf b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
  .sf span { color: var(--muted); font-size: 14px; }
  .keycap { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; font: 700 12px/1 var(--mono); color: var(--text); background: var(--panel-2); box-shadow: inset 0 -2px 0 var(--line-2), inset 0 0 0 1px var(--line-2); border-radius: 5px; }

  /* svg demo animation */
  .stroke-draw { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 4.2s ease-in-out infinite; }
  @keyframes draw { 0% { stroke-dashoffset: 520; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
  .ride { offset-path: path("M40 140 C 80 60, 150 40, 190 90 S 280 150, 320 60"); animation: ride 4.2s ease-in-out infinite; }
  @keyframes ride { 0%, 45% { offset-distance: 0%; opacity: 0; } 50% { opacity: 1; } 80% { offset-distance: 100%; opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
  .knob { animation: knob 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes knob { 0%, 100% { transform: translate(0, 0); } 20% { transform: translate(0, -26px); } 40% { transform: translate(26px, 0); } 60% { transform: translate(0, 26px); } 80% { transform: translate(-26px, 0); } }
  .kW { animation: kW 3.6s infinite; } .kD { animation: kD 3.6s infinite; } .kS { animation: kS 3.6s infinite; } .kA { animation: kA 3.6s infinite; }
  @keyframes kW { 10%, 28% { fill: var(--accent); } 0%, 32%, 100% { fill: #151a22; } }
  @keyframes kD { 30%, 48% { fill: var(--accent); } 0%, 22%, 52%, 100% { fill: #151a22; } }
  @keyframes kS { 50%, 68% { fill: var(--accent); } 0%, 42%, 72%, 100% { fill: #151a22; } }
  @keyframes kA { 70%, 88% { fill: var(--accent); } 0%, 62%, 92%, 100% { fill: #151a22; } }
  .aim { animation: aim 5s ease-in-out infinite; }
  @keyframes aim { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(60px, -18px); } 60% { transform: translate(-40px, 14px); } }
  .mouse { animation: aim 5s ease-in-out infinite; }
  .wheel-hl { animation: wheel 4s steps(1) infinite; transform-origin: 180px 95px; }
  @keyframes wheel { 0%, 24% { transform: rotate(0deg); } 25%, 49% { transform: rotate(90deg); } 50%, 74% { transform: rotate(180deg); } 75%, 100% { transform: rotate(270deg); } }
  @media (prefers-reduced-motion: reduce) { .stroke-draw, .ride, .knob, .kW, .kD, .kS, .kA, .aim, .mouse, .wheel-hl { animation: none; } .stroke-draw { stroke-dashoffset: 0; } }

  /* devices */
  .ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .way { display: flex; flex-direction: column; gap: 14px; padding: 26px 28px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); --cut: 18px; }
  .way.bridge { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--panel)), var(--panel) 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  .way .top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .way h3 { margin: 10px 0 0; font-size: 24px; }
  .fits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
  .fits li { padding: 3px 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
  .fits li.k { color: var(--dim); padding: 0 4px 0 0; box-shadow: none; }
  .way p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
  .route { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--bg-2); border: 1px solid var(--line); font: 600 13px/1 "Microsoft YaHei UI", sans-serif; }
  .route i { flex: 1; min-width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); animation: route 1s linear infinite; }
  @keyframes route { to { background-position: 14px 0; } }
  .route b { padding: 5px 8px; color: var(--accent-ink); background: var(--accent); font-weight: 800; }
  .which { margin-top: 40px; max-width: 760px; margin-inline: auto; }
  .which h3 { text-align: center; font-size: 20px; margin: 0 0 14px; }
  .which .compare td:last-child, .which .compare thead th:last-child { color: var(--accent); }
  .which .compare td:nth-child(2):not(.no) { color: var(--text); font-weight: 700; }
  .tip { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
  .note { color: var(--muted); font-size: 13px; }
  @media (prefers-reduced-motion: reduce) { .route i { animation: none; } }

  /* pricing */
  .compare { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); }
  .compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; }
  .compare thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--bg-2); }
  .compare thead th:last-child { color: var(--accent); }
  .compare td:nth-child(n+2), .compare th:nth-child(n+2) { text-align: center; width: 22%; }
  .compare td:last-child { color: var(--accent); font-weight: 700; }
  .compare .no { color: var(--dim); }
  .compare tr.group td { color: var(--dim); font-size: 12px; font-family: var(--mono); letter-spacing: 1px; padding-top: 18px; background: var(--bg-2); }
  .compare small { display: block; color: var(--dim); font-size: 12px; font-weight: 400; }
  .prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
  .price { position: relative; padding: 24px 22px 22px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); --cut: 16px; }
  .price.best { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
  .price .tag { position: absolute; top: 14px; right: 16px; }
  .price h3 { margin: 0; font-size: 17px; }
  .price .amt { margin: 10px 0 2px; font: 900 40px/1.1 var(--mono); color: var(--text); }
  .price .amt small { font-size: 18px; margin-right: 2px; color: var(--muted); }
  .price.best .amt { color: var(--accent); }
  .price p { margin: 0; color: var(--muted); font-size: 14px; }
  .price .was { display: block; color: var(--dim); font: 600 14px/1.4 var(--mono); margin-bottom: 4px; }
  .steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 22px; }
  .steps3 div { background: var(--bg-2); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; }
  .steps3 b.n { font: 900 22px/1 var(--mono); color: var(--accent); }
  .steps3 span { color: var(--muted); font-size: 14px; }
  .steps3 strong { display: block; color: var(--text); font-size: 15px; }

  /* faq */
  .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  details { border-bottom: 1px solid var(--line); padding: 16px 0; }
  summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; color: var(--accent); font: 700 18px/1 var(--mono); }
  details[open] summary::after { content: "−"; }
  details p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }

  /* download */
  .download { margin: 110px 0 0; padding: 64px 28px; text-align: center; position: relative; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); scroll-margin-top: 78px; --cut: 24px; }
  .download::before { content: ""; position: absolute; inset: -40% 20% auto; height: 300px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); }
  .download > * { position: relative; }
  .download h2 { margin-top: 0; }

  footer { margin-top: 90px; border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 13px; }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
  footer .logo { font-size: 15px; margin-right: auto; color: var(--text); }
  footer .logo .mark { width: 22px; height: 22px; font-size: 11px; }

  /* legal documents */
  .legal-page { width: min(760px, 100% - 32px); padding-top: clamp(36px, 7vw, 76px); }
  .legal-content { overflow-wrap: anywhere; }
  .legal-content h1 { margin-top: 0; font-size: clamp(32px, 6vw, 52px); }
  .legal-content h2 { margin: 32px 0 10px; font-size: 22px; }
  .legal-content p, .legal-content ul, .legal-content ol { color: var(--muted); }
  .legal-content a { color: var(--accent); text-decoration: underline; }
  .legal-content table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  .legal-content th, .legal-content td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
  .legal-content th { background: var(--panel); }
  .legal-content th:first-child { width: 32%; }
  footer a[aria-current="page"] { color: var(--text); }

  @media (max-width: 960px) {
    .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ways .bridge { grid-column: 1 / -1; }
    .feat, .small-feats { grid-template-columns: 1fr 1fr; }
    .prices { grid-template-columns: 1fr 1fr; }
  }
  @media (max-width: 720px) {
    /* The nav stays on phones: 会员 is its own page and has no other way in (D-REL-5). */
    header .wrap { gap: 14px; }
    nav { gap: 14px; font-size: 13px; }
    .points, .steps3 { grid-template-columns: 1fr; }
    .faq { grid-template-columns: 1fr; }
    .ways { grid-template-columns: 1fr; }
    .way { padding: 22px 20px; }
  }
  @media (max-height: 780px) and (min-width: 561px) {
    .mapping-caption { gap: 6px; padding-bottom: 17px; }
    .mapping-caption h1 { font-size: clamp(30px, 4.6vw, 48px); }
  }
  @media (max-width: 560px) {
    .feat, .small-feats { grid-template-columns: 1fr; }
    .prices { gap: 10px; }
    .price { padding: 18px 16px 16px; }
    .price .amt { font-size: 30px; }
    .price .tag { position: static; display: inline-block; margin-bottom: 8px; }
    .compare th, .compare td { padding: 11px 10px; font-size: 14px; }
    .compare td:nth-child(n+2), .compare th:nth-child(n+2) { width: 26%; }
    .mapping-caption { gap: 7px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    .mapping-caption h1 { font-size: clamp(28px, 7.3vw, 38px); }
    .film-demo .mapping-caption p { font-size: 12px; }
    .film-demo .mapping-controls { gap: 5px; }
    .film-demo .mapping-controls button { min-height: 44px; padding-inline: 7px; font-size: 13px; }
  }
  @media (min-width: 561px) and (max-height: 360px) and (orientation: landscape) {
    .home-page { --home-nav-height: 54px; }
    .mapping-caption { gap: 4px; padding-block: 2px 3px; }
    .mapping-caption h1 { font-size: 26px; }
    .film-demo .mapping-caption p { font-size: 12px; line-height: 1.35; }
    .hero-next { min-height: 28px; }
  }

  /* page links (D-REL-5) */
  nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
  .page-top { padding-top: 64px; }
  @media (max-width: 480px) {
    .home-page { --home-nav-height: 86px; }
    header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; height: auto; padding-block: 8px 4px; }
    header .logo { justify-self: start; white-space: nowrap; }
    header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 8px; margin-left: 0; }
    header nav a { padding-block: 5px; white-space: nowrap; }
    header .btn.small { grid-column: 2; grid-row: 1; padding: 8px 12px; white-space: nowrap; }
    .download { scroll-margin-top: 100px; }
  }

  :root { color-scheme: dark; }
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f5f1; --bg-2: #edf0e9; --panel: #fff; --panel-2: #e7ebe2;
    --line: #d1d7ca; --line-2: #abb5a8; --text: #161d1b; --muted: #4b5858; --dim: #596562;
    --accent: #4a6700; --accent-ink: #fff; --cyan: #006d7a;
  }
  :root[data-theme="light"] .logo .mark { background: #d4ff3a; color: #182200; }
  :root[data-theme="light"] .home-page > header {
    background: color-mix(in srgb, #f4f8f5 91%, transparent); border-color: #9eafa756;
  }
  :root[data-theme="light"] .home-page > header nav { color: var(--muted); }
  :root[data-theme="light"] .hero { background: #e6ede7; }
  :root[data-theme="light"] .mapping-view {
    background: radial-gradient(ellipse at 54% 38%, #f9fcf4 0%, #e1ece7 59%, #d1deda 100%);
  }
  :root[data-theme="light"] .mapping-view::after {
    background: linear-gradient(180deg, transparent, #eff4edd9);
  }
  :root[data-theme="light"] h1 em { text-shadow: none; }
  :root[data-theme="light"] .film-demo .mapping-caption p { color: var(--muted); }
  :root[data-theme="light"] .hero-next { color: var(--text); }
  :root[data-theme="light"] .hero-next:hover { color: var(--accent); }
  :root[data-theme="light"] .film-demo .mapping-controls button { color: var(--muted); background: #f6f9f4; border-color: #a4b3a8; }
  :root[data-theme="light"] .film-demo .mapping-controls button:hover { border-color: #687c70; }
  :root[data-theme="light"] .film-demo .mapping-controls button[aria-pressed="true"] {
    color: #324b00; background: #e1efc6; border-color: #748d51;
  }
  :root[data-theme="light"] .fcard .demo { background: #18252a; }
  :root[data-theme="light"] .fcard .demo svg { --accent: #d4ff3a; }

  header .site-theme-toggle {
    display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px;
    padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer;
  }
  header .site-theme-toggle:hover { background: var(--panel-2); color: var(--text); }
  header .site-theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .site-theme-toggle svg { width: 21px; height: 21px; }
  .site-theme-toggle .theme-moon, :root[data-theme="light"] .site-theme-toggle .theme-sun { display: none; }
  :root[data-theme="light"] .site-theme-toggle .theme-moon { display: inline; }
  header .wrap { gap: 16px; }
  .home-page > header .wrap { height: 62px; }
  header .btn.small, header .logo { white-space: nowrap; }
  .mapping-caption { min-width: 0; }
  .route { flex-wrap: wrap; line-height: 1.3; }
  .film-demo .mapping-controls button { max-width: 100%; white-space: normal; }
  @media (min-width: 821px) and (max-height: 360px) and (orientation: landscape) {
    .home-page > header .wrap { height: 53px; }
  }
  @media (max-width: 820px) {
    .home-page { --home-nav-height: 88px; }
    header .wrap, .home-page > header .wrap {
      display: grid; height: auto; grid-template-columns: minmax(0, 1fr) auto auto auto;
      grid-template-areas: "brand theme language download" "nav nav nav nav";
      align-items: center; gap: 1px 6px; padding-block: 4px;
    }
    header .logo { grid-area: brand; justify-self: start; }
    header .site-theme-toggle { grid-area: theme; }
    header .site-language { grid-area: language; }
    header .btn.small { grid-area: download; padding: 7px 12px; }
    header nav {
      grid-area: nav; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
      column-gap: 8px; row-gap: 0; margin-left: 0; font-size: 13px;
    }
    header nav a { padding-block: 4px; white-space: normal; }
  }
  @media (min-width: 561px) and (max-width: 820px) and (max-height: 480px) {
    header .wrap, .home-page > header .wrap {
      grid-template-columns: auto minmax(0, 1fr) auto auto auto;
      grid-template-areas: "brand nav theme language download";
    }
    header nav { justify-content: center; }
    .home-page { --home-nav-height: 51px; }
  }
  @media (max-width: 560px) {
    .compare { table-layout: fixed; }
    .compare :is(th,td), .price { overflow-wrap: anywhere; }
    .price, .way { min-width: 0; }
  }
  @media (max-width: 450px) {
    header .logo [data-brand] { overflow: hidden; text-overflow: ellipsis; }
    header .logo { max-width: 100%; }
    header .logo .mark { flex: none; }
  }
  @media (max-width: 360px) {
    header .logo [data-brand] { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
  }

.site-language {
  --language-surface: #191e22; --language-border: #d3d9da;
  --language-text: #c5ccce; --language-active-text: #f7faf9;
  --language-active: #343d40; --language-hover: #293033;
  position: relative; flex: none; width: 40px; height: 40px;
}
:root[data-theme="light"] .site-language {
  --language-surface: #fbfcfa; --language-border: #53605a;
  --language-text: #43514b; --language-active-text: #19291d;
  --language-active: #dde7db; --language-hover: #ecf1ea;
}
.site-language-trigger {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer;
}
.site-language-trigger .language-icon { width: 26px; height: 26px; pointer-events: none; }
.site-language-trigger:hover, .site-language-trigger[aria-expanded="true"] { color: var(--accent); }
.site-language-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-language-menu {
  position: absolute; z-index: 2; top: calc(100% + 9px); left: 0;
  width: 166px; max-width: calc(100vw - 16px);
  border: 1px solid var(--language-border); border-radius: 11px;
  background: var(--language-surface);
  box-shadow: 0 10px 30px #03060940, 0 2px 6px #03060924;
}
.site-language-menu::before {
  content: ""; position: absolute; left: calc(var(--language-pointer) - 6px); top: -5px;
  width: 8px; height: 8px; background: var(--language-surface);
  border-top: 1px solid var(--language-border); border-left: 1px solid var(--language-border);
  transform: rotate(45deg);
}
.site-language-menu[hidden] { display: none; }
.site-language-choices {
  padding: 5px; border-radius: inherit; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.site-language-divider {
  height: 1px; margin: 4px 11px; background: var(--language-border); opacity: .27;
}
.site-language-option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; min-height: 39px; padding: 7px 11px; border: 0; border-radius: 5px;
  background: transparent; color: var(--language-text); font: inherit; font-size: 15px;
  line-height: 1.35; text-align: start; white-space: nowrap; cursor: pointer;
}
.site-language-option:hover { background: var(--language-hover); color: var(--language-active-text); }
.site-language-option[aria-checked="true"] { background: var(--language-active); color: var(--language-active-text); font-weight: 650; }
.site-language-option:focus-visible { outline: 1px solid var(--language-border); outline-offset: -2px; }
.site-language-option svg { flex: none; width: 17px; height: 17px; visibility: hidden; }
.site-language-option[aria-checked="true"] svg { visibility: visible; }
@media (pointer: coarse) { .site-language-option { min-height: 44px; } }
@media (max-width: 560px) {
  .which .compare :is(th, td) { padding-inline: 6px; overflow-wrap: anywhere; }
}
