:root {
  --nav-h: 52px;
  --bg: #fff;
  --alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --blue: #2f6bf0;
  --blue-hover: #3c78f8;
  --blue-press: #2558d4;
  --icon-top: #4884ff;
  --icon-bottom: #2852de;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", -apple-system, sans-serif;
  --wallpaper:
    radial-gradient(120% 90% at 12% 108%, #ff9f6e 0%, rgba(255, 159, 110, 0) 52%),
    radial-gradient(80% 70% at 92% 0%, #9cc8ff 0%, rgba(156, 200, 255, 0) 60%),
    radial-gradient(70% 70% at 64% 66%, #7a63ff 0%, rgba(122, 99, 255, 0) 62%),
    linear-gradient(160deg, #1a3aa8 0%, #3a6df0 48%, #8fb6ff 100%);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(47, 107, 240, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i .fill,
.i .dot {
  fill: currentColor;
}

.i-sm {
  width: 13px;
  height: 13px;
}

.i-xs {
  width: 11px;
  height: 11px;
  stroke-width: 1.8;
}

.i-lg {
  width: 32px;
  height: 32px;
  stroke-width: 1.4;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 10px;
}

.wrap {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s var(--ease-out);
}

.btn:hover {
  background: var(--blue-hover);
}

.btn:active {
  background: var(--blue-press);
  transform: scale(0.97);
}

.btn-large {
  min-height: 48px;
  padding: 0 24px;
  font-size: 17px;
}

.btn-small {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.text-link {
  color: var(--blue);
  font-size: 17px;
}

.text-link:hover {
  text-decoration: underline;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s;
}

.nav.is-scrolled {
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.brand img {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav-links a {
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--ink);
  transition: color 0.2s;
}

.nav-icon:hover {
  color: var(--blue);
}

.nav-icon .i {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.menu-btn span {
  position: absolute;
  left: 11px;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}

.menu-btn span:first-child {
  transform: translateY(-3px);
}

.menu-btn span:last-child {
  transform: translateY(3px);
}

.nav.is-open .menu-btn span:first-child {
  transform: rotate(45deg);
}

.nav.is-open .menu-btn span:last-child {
  transform: rotate(-45deg);
}

/* App icon, drawn to match the native asset so its cards can move */

.app-icon {
  --s: 128px;
  position: relative;
  width: var(--s);
  height: var(--s);
  border-radius: 22.6%;
  background: linear-gradient(var(--icon-top), var(--icon-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 4px rgba(20, 40, 120, 0.12),
    0 18px 40px -12px rgba(40, 82, 222, 0.6);
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}

.ic-card {
  position: absolute;
  width: 41.26%;
  height: 41.26%;
  border-radius: 18.8%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: calc(var(--s) * 0.279);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.ic-back {
  left: 19.66%;
  top: 19.66%;
  background: rgba(255, 255, 255, 0.27);
  color: #fff;
}

.ic-front {
  z-index: 1;
  left: 39.08%;
  top: 39.08%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.965);
  color: #2c58e2;
  box-shadow: 0 calc(var(--s) * 0.016) calc(var(--s) * 0.04) rgba(10, 20, 80, 0.28);
}

.ic-glyph {
  display: block;
}

.ic-glyph.out {
  animation: glyph-out 0.26s ease-in forwards;
}

.ic-glyph.in {
  animation: glyph-in 0.5s var(--spring) both;
}

@keyframes glyph-out {
  to {
    opacity: 0;
    transform: translateY(-45%);
    filter: blur(3px);
  }
}

@keyframes glyph-in {
  from {
    opacity: 0;
    transform: translateY(45%);
    filter: blur(3px);
  }
}

/* Hero */

.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(64px, 11vh, 120px) 24px 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: clamp(20px, 6vh, 70px);
  left: 50%;
  width: 520px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(72, 132, 255, 0.18), rgba(72, 132, 255, 0));
  pointer-events: none;
  z-index: -1;
}

.hero-icon {
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  margin-top: 24px;
}

.macbase-badge,
.dodolaunch-badge {
  display: inline-block;
  max-width: 100%;
}

.macbase-badge img,
.dodolaunch-badge img {
  height: 72px;
  width: auto;
}

.hero-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.2vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.hero-title .line > span {
  display: block;
}

.hero-sub {
  max-width: 600px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 32px;
}

.hero-req {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.js .hero-icon {
  animation: icon-in 1.1s var(--ease-out) both;
}

.js .hero-icon .ic-back {
  animation: fade-in 0.6s 0.25s both;
}

.js .hero-icon .ic-front {
  animation: card-in 0.9s 0.45s var(--spring) both;
}

.js .hero-name {
  animation: rise 0.8s 0.35s var(--ease-out) both;
}

.js .hero-title .line > span {
  animation: line-up 1s var(--ease-out) both;
}

.js .hero-title .line:nth-child(1) > span {
  animation-delay: 0.5s;
}

.js .hero-title .line:nth-child(2) > span {
  animation-delay: 0.64s;
}

.js .hero-sub {
  animation: rise 0.9s 0.9s var(--ease-out) both;
}

.js .hero .hero-ctas {
  animation: rise 0.9s 1.02s var(--ease-out) both;
}

.js .hero .hero-req {
  animation: rise 0.9s 1.12s var(--ease-out) both;
}

@keyframes icon-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.7);
    filter: blur(10px);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translate(-47%, -47%) scale(0.92);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes line-up {
  from {
    transform: translateY(108%);
  }
}

/* Scroll story */

.story {
  position: relative;
  padding-bottom: 40px;
}

.js .story {
  height: 460vh;
  padding-bottom: 0;
}

.story-sticky {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 24px 28px;
}

.js .story-sticky {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  justify-content: center;
  overflow: hidden;
}

.js .story.is-static {
  height: auto;
  padding-bottom: 40px;
}

.js .story.is-static .story-sticky {
  position: static;
  height: auto;
  overflow: visible;
}

.js .story.is-static .story-captions {
  height: auto;
  display: grid;
  gap: 28px;
}

.js .story.is-static .story-captions li {
  position: static;
  opacity: 1;
  transform: none;
}

.js .story.is-static .device {
  width: min(1040px, 100%);
}

.story.is-static .story-progress {
  display: none;
}

.story-captions {
  position: relative;
  width: min(760px, 100%);
  padding: 0;
  list-style: none;
  text-align: center;
}

.js .story-captions {
  height: 118px;
}

.story-captions h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.story-captions p {
  margin: 10px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.42;
}

.js .story-captions li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.45s,
    transform 0.6s var(--ease-out);
  pointer-events: none;
}

.js .story-captions li.is-past {
  transform: translateY(-16px);
}

.js .story-captions li.is-active {
  opacity: 1;
  transform: none;
}

.story-progress {
  display: flex;
  gap: 6px;
  padding: 0;
  list-style: none;
}

.story-progress li {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #d9d9de;
  overflow: hidden;
}

.story-progress li::before {
  content: "";
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(var(--f, 0));
}

.device {
  width: min(1040px, 100%);
}

.js .device {
  width: min(1040px, 100%, calc((100svh - var(--nav-h) - 250px) * 1.55));
}

.bezel {
  padding: 1.3%;
  border-radius: clamp(10px, 2.2vw, 22px);
  background: #0e0e10;
  box-shadow:
    inset 0 0 0 1px #3a3a3c,
    0 0 0 1px #c6c7ca,
    0 40px 80px -36px rgba(10, 20, 60, 0.45);
}

.base {
  position: relative;
  height: clamp(8px, 1.4vw, 16px);
  margin: 0 -6.5%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(#e6e7e9, #b8babd 70%, #8e9094);
}

.base::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 15%;
  height: 45%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(#b5b7ba, #d3d4d6);
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: clamp(4px, 0.9vw, 10px);
  background: #1a3aa8;
}

.canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1000px;
  height: 625px;
  transform: scale(var(--k, 0.5));
  transform-origin: 0 0;
  font-family: var(--font);
  letter-spacing: -0.01em;
  user-select: none;
}

.wallpaper {
  position: absolute;
  inset: 0;
  background: var(--wallpaper);
}

.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.mb-strong {
  font-weight: 700;
}

.mb-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.mb-right .i {
  width: 15px;
  height: 15px;
}

/* Shared window chrome */

.win-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 16px;
  background: #f3f3f5;
  border-bottom: 1px solid #e2e2e6;
}

.lights {
  display: flex;
  gap: 8px;
}

.lights i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.lights i:nth-child(2) {
  background: #febc2e;
}

.lights i:nth-child(3) {
  background: #28c840;
}

.win-arrows {
  color: #9a9aa0;
  font-size: 20px;
  line-height: 1;
}

.addr {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 46%);
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e6e6ea;
  color: #48484d;
  font-size: 13px;
  white-space: nowrap;
}

.win {
  position: absolute;
  left: 100px;
  top: 50px;
  width: 800px;
  height: 548px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.22),
    0 24px 60px rgba(10, 20, 70, 0.38);
}

.site {
  padding: 22px 40px 0;
}

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid #1d1d1f;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav span {
  margin-left: 18px;
  color: #555;
  font-size: 13px;
}

.site-article {
  display: grid;
  grid-template-columns: 384px 1fr;
  gap: 36px;
  padding-top: 30px;
}

.article-text {
  align-self: start;
}

.site-photo figcaption {
  margin-top: 8px;
  color: #86868b;
  font-size: 11.5px;
}

.photo {
  height: 300px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 214, 120, 0.95) 0 1.6%, rgba(255, 214, 120, 0) 4%),
    radial-gradient(circle at 34% 16%, rgba(255, 196, 110, 0.9) 0 1.3%, rgba(255, 196, 110, 0) 3.6%),
    radial-gradient(circle at 52% 24%, rgba(255, 220, 140, 0.95) 0 1.8%, rgba(255, 220, 140, 0) 4.4%),
    radial-gradient(circle at 70% 14%, rgba(255, 200, 120, 0.85) 0 1.4%, rgba(255, 200, 120, 0) 3.8%),
    radial-gradient(circle at 86% 26%, rgba(255, 214, 140, 0.9) 0 1.6%, rgba(255, 214, 140, 0) 4%),
    radial-gradient(60% 40% at 30% 88%, rgba(255, 150, 80, 0.6), rgba(255, 150, 80, 0)),
    linear-gradient(180deg, #24264f 0%, #4b2f63 46%, #8b4a52 78%, #c8744d 100%);
}

/* Translation blocks: the original and its translation share one grid cell */

.tb {
  position: relative;
  display: grid;
}

.tb > .orig,
.tb > .ov {
  grid-area: 1 / 1;
}

.ov {
  display: grid;
  margin: -5px -7px;
  padding: 5px 7px;
  border-radius: 10px;
  transition:
    opacity 0.35s,
    background-color 0.5s,
    box-shadow 0.5s,
    color 0.4s,
    border-radius 0.5s,
    -webkit-backdrop-filter 0.5s,
    backdrop-filter 0.5s;
}

.ov > .tx {
  grid-area: 1 / 1;
  transition:
    opacity 0.45s,
    filter 0.45s,
    font-weight 0.4s;
}

.ov-glass .ov {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(5px) saturate(1.8);
  backdrop-filter: blur(5px) saturate(1.8);
  box-shadow:
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 0.5px rgba(0, 0, 0, 0.09),
    0 3px 12px rgba(0, 0, 0, 0.09);
  color: #1d1d1f;
}

.ov-patch .ov {
  border-radius: 6px;
  background: rgb(var(--tint, 255 255 255) / 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 6px 3px rgb(var(--tint, 255 255 255) / 0.86);
  color: var(--tint-ink, #1d1d1f);
}

.ov-subtitle .ov {
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  color: #fff;
}

.ov-subtitle .tx {
  font-weight: 700;
}

.tb-h .orig {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.tb-h .tx {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.tb-p .orig,
.tb-p .tx {
  font-size: 15.5px;
  line-height: 1.5;
}

.tb-p .orig {
  color: #3a3a3c;
}

.tb + .tb {
  margin-top: 16px;
}

.tb-btn {
  justify-self: start;
}

.tb + .tb-btn {
  margin-top: 22px;
}

.tb-btn .orig {
  padding: 8px 18px;
  border-radius: 980px;
  border: 1.5px solid #1d1d1f;
  font-size: 14px;
  font-weight: 600;
}

.tb-btn .ov {
  margin: 0;
  padding: 0 18px;
  place-items: center start;
  border-radius: 980px;
}

.tb-btn .tx {
  font-size: 14px;
  font-weight: 600;
}

/* Story overlay state, driven by scroll */

.story .ov {
  opacity: var(--o, 0);
  transform: translateY(var(--y, 6px)) scale(var(--sc, 0.985));
  transition: none;
}

.story .tb::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  border-radius: 6px;
  border: 1.5px solid rgba(64, 140, 255, 0.95);
  background: rgba(64, 140, 255, 0.1);
  opacity: var(--rec, 0);
}

.sel {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, calc(var(--dim, 0) * 0.34));
  outline: 1px solid rgba(255, 255, 255, var(--edge, 0));
  pointer-events: none;
}

.sel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 4px;
  border: 1.5px solid rgba(80, 150, 255, 0.95);
  box-shadow:
    0 0 24px rgba(80, 150, 255, 0.5),
    inset 0 0 24px rgba(80, 150, 255, 0.25);
  opacity: var(--reg, 0);
}

.sel-size {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: var(--edge, 0);
}

.scan {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--scan, 0) * 100%);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 20%, #fff 80%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 22px 7px rgba(80, 150, 255, 0.55);
  opacity: var(--scan-o, 0);
}

.sel-hint {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 980px;
  background: rgba(24, 24, 26, 0.92);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  opacity: var(--hint, 0);
}

.sel-hint b {
  margin-left: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
}

.crosshair {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  opacity: 0;
}

.story-toolbar {
  position: absolute;
  left: 0;
  top: 0;
  opacity: var(--tbo, 0);
  transform: translate(-50%, calc((1 - var(--tbo, 0)) * 10px));
}

.keys-hud {
  position: absolute;
  left: 50%;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(28, 28, 30, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transform: translate(-50%, calc((1 - var(--hud, 0)) * 16px)) scale(calc(0.94 + var(--hud, 0) * 0.06));
  opacity: var(--hud, 0);
}

.hud-option {
  left: 84%;
}

.keys-hud span {
  padding: 0 8px 0 4px;
}

.keys-hud kbd {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(#fff, #ececef);
  box-shadow:
    0 3px 0 #b9b9bf,
    0 4px 10px rgba(0, 0, 0, 0.3);
  color: #1d1d1f;
  font-family: var(--font-rounded);
  font-size: 26px;
  font-weight: 500;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}

.keys-hud kbd.is-down {
  transform: translateY(3px);
  background: linear-gradient(#e9e9ee, #dcdce2);
  box-shadow:
    0 0 0 #b9b9bf,
    0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Toolbar */

.toolbar {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  height: 40px;
  padding: 0 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 0.5px rgba(0, 0, 0, 0.14),
    0 10px 28px rgba(0, 0, 0, 0.16);
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tbi {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border-radius: 8px;
}

.tbl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
}

.tbl .i-sm {
  color: #6e6e73;
}

.tbl .i-xs {
  color: #6e6e73;
  margin-left: 1px;
}

.tb-arrow {
  color: #6e6e73;
  margin: 0 2px;
}

.sep {
  width: 1px;
  height: 16px;
  margin: 0 5px;
  background: rgba(0, 0, 0, 0.12);
}

.toolbar-live .tbi,
.toolbar-live button.tbl {
  transition: background-color 0.15s;
}

.toolbar-live .tbi:hover,
.toolbar-live button.tbl:hover,
.toolbar-live [aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.07);
}

.toolbar-live .tbi[aria-pressed="true"] {
  color: var(--blue);
}

.toolbar-live .tbi:focus-visible,
.toolbar-live .tbl:focus-visible {
  outline-offset: 0;
}

.spinner {
  display: none;
  width: 11px;
  height: 11px;
  margin-left: 1px;
  border-radius: 50%;
  border: 1.6px solid rgba(0, 0, 0, 0.14);
  border-top-color: #6e6e73;
  animation: spin 0.7s linear infinite;
}

.is-busy .spinner {
  display: block;
}

.is-busy .chev {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sections */

.section {
  padding: clamp(96px, 13vw, 156px) 0;
}

.intro {
  max-width: 820px;
  text-align: center;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.lede {
  max-width: 640px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 1.7vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Playground */

.play {
  padding-top: clamp(64px, 9vw, 120px);
}

.play-panel {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(28px, 6vw, 72px) clamp(14px, 5vw, 64px) clamp(24px, 4vw, 40px);
  border-radius: clamp(20px, 3vw, 32px);
  background: var(--wallpaper);
}

.play-window {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.2),
    0 30px 70px -20px rgba(10, 20, 70, 0.5);
}

.play-body {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 36px;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px) clamp(28px, 4vw, 44px);
}

.play-photo {
  height: 100%;
  min-height: 220px;
}

.play-body .tx {
  opacity: 0;
  filter: blur(6px);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.play-body .tx.is-on {
  opacity: 1;
  filter: none;
}

.play-body.is-closed .ov {
  opacity: 0;
}

.peekable .ov {
  transition-property: opacity, background-color, box-shadow, color, border-radius, -webkit-backdrop-filter, backdrop-filter;
}

.play-body.peek .ov,
.peeking .peekable .ov {
  opacity: 0;
  transition-duration: 0.22s;
}

.toolbar-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.toolbar-live {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease-out);
}

.toolbar-live::-webkit-scrollbar {
  display: none;
}

.toolbar-live.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.menu {
  position: absolute;
  z-index: 20;
  min-width: 210px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(246, 246, 248, 0.88);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.2),
    0 14px 36px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  letter-spacing: -0.01em;
  transform-origin: top center;
  animation: menu-in 0.16s ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(-4px);
  }
}

.menu button {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 26px;
  padding: 3px 12px 3px 6px;
  border-radius: 7px;
  text-align: left;
}

.menu button .i {
  width: 13px;
  height: 13px;
  stroke-width: 2;
  visibility: hidden;
}

.menu button[aria-checked="true"] .i {
  visibility: visible;
}

.menu button:hover,
.menu button:focus-visible {
  background: var(--blue);
  color: #fff;
  outline: none;
}

.hud {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(30, 30, 32, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition:
    opacity 0.2s,
    transform 0.3s var(--spring);
  pointer-events: none;
}

.hud.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.again-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(47, 107, 240, 0.35);
  animation: rise 0.4s var(--ease-out);
}

.play-hint {
  margin-top: 18px;
  text-align: center;
}

.peek-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 14px 0 6px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  transition: background-color 0.2s;
}

.peek-btn:hover,
.peek-btn.is-down {
  background: rgba(255, 255, 255, 0.32);
}

.peek-btn kbd {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #fff;
  color: #1d1d1f;
  font-family: var(--font-rounded);
  font-size: 15px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  transition: transform 0.1s;
}

.peek-btn.is-down kbd {
  transform: translateY(2px);
  box-shadow: none;
}

/* Styles */

.styles {
  background: var(--alt);
}

.seg-wrap {
  display: flex;
  justify-content: center;
  margin: clamp(36px, 5vw, 56px) 0 28px;
}

.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.07);
}

.seg button {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0 clamp(12px, 2.4vw, 22px);
  border-radius: 980px;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.25s;
}

.seg button[aria-checked="true"] {
  color: var(--ink);
  font-weight: 500;
}

.seg-thumb {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 0;
  border-radius: 980px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 3px 10px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.45s var(--spring),
    width 0.45s var(--spring);
}

.poster {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(180deg, #161a46 0%, #3b2468 38%, #8a3d68 62%, #e0704a 84%, #f6b26b 100%);
}

.poster-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.2px 1.2px at 12% 30%, #fff, transparent),
    radial-gradient(1px 1px at 26% 8%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 48% 12%, #fff, transparent),
    radial-gradient(1px 1px at 63% 6%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 88% 34%, #fff, transparent);
  opacity: 0.7;
}

.poster-sky::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 2%;
  height: 18%;
  border-bottom: 1.5px solid rgba(255, 220, 180, 0.4);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.poster-sky i {
  position: absolute;
  z-index: 1;
  left: var(--x);
  top: var(--y);
  width: calc(3.2cqw * var(--d));
  aspect-ratio: 0.82;
  border-radius: 46%;
  background: radial-gradient(circle at 50% 40%, #fff3c4 0%, #ffb547 38%, #f0612d 80%);
  box-shadow:
    0 0 2cqw 0.6cqw rgba(255, 150, 60, 0.55),
    0 0 7cqw 2cqw rgba(255, 120, 50, 0.22);
}

.poster-town {
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: #1e1426;
  clip-path: polygon(
    0 52%, 6% 52%, 6% 30%, 12% 30%, 12% 46%, 19% 46%, 19% 18%, 23% 10%, 27% 18%, 27% 44%, 35% 44%, 35% 32%,
    44% 32%, 44% 50%, 52% 50%, 52% 24%, 60% 24%, 60% 40%, 68% 40%, 68% 14%, 72% 6%, 76% 14%, 76% 38%, 84% 38%,
    84% 28%, 92% 28%, 92% 48%, 100% 48%, 100% 100%, 0 100%
  );
}

.poster-text {
  position: absolute;
  left: 7%;
  top: 34%;
  width: 60%;
}

.poster .tb-title .orig {
  font-family: var(--font-ja);
  font-size: 9cqw;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 0.3cqw 2cqw rgba(0, 0, 0, 0.3);
}

.poster .tb-title .tx {
  font-family: var(--font-display);
  font-size: 5.6cqw;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  align-self: center;
}

.poster .tb-line {
  justify-self: start;
  margin-top: 2.4cqw;
}

.poster .tb-line .orig {
  font-family: var(--font-ja);
  font-size: 2.6cqw;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  letter-spacing: 0.04em;
}

.poster .tb-line .tx {
  font-size: 2.4cqw;
  font-weight: 600;
  line-height: 1.5;
}

.poster .ov {
  margin: -0.6cqw -1cqw;
  padding: 0.6cqw 1cqw;
  border-radius: 1.2cqw;
}

.poster.ov-subtitle .ov,
.poster.ov-patch .ov {
  border-radius: 0.7cqw;
}

.style-notes {
  position: relative;
  display: grid;
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
}

.style-notes p {
  grid-area: 1 / 1;
  color: var(--muted);
  font-size: 17px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease-out);
}

.style-notes p.is-active {
  opacity: 1;
  transform: none;
}

.style-notes strong {
  color: var(--ink);
  font-weight: 600;
}

/* Providers */

.prov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
}

.prov {
  padding: 32px;
  border-radius: 24px;
  background: var(--alt);
}

.prov h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.prov p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.prov-main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 24px;
  align-items: start;
  padding: clamp(32px, 4vw, 48px);
  background: linear-gradient(135deg, var(--icon-top), var(--icon-bottom));
  color: #fff;
}

.prov-main .i-lg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  stroke-width: 1.2;
}

.prov-main h3 {
  font-size: clamp(28px, 3vw, 40px);
}

.prov-main p {
  max-width: 620px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 1.6vw, 21px);
}

.routing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 128px);
}

.routing-copy p {
  margin-top: 16px;
  color: var(--muted);
}

.settings-win {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 24px 60px -20px rgba(0, 0, 0, 0.3);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.settings-win .win-bar {
  height: 44px;
  background: #fff;
  border-bottom: 0;
}

.settings-title {
  font-weight: 700;
  font-size: 14px;
}

.settings-body {
  padding: 4px 22px 24px;
}

.sp-heading {
  margin: 0 0 8px 10px;
  font-weight: 700;
}

.sp-group {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.035);
  padding: 0 12px;
}

.sp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 6px 0;
}

.sp-row + .sp-row {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.sp-row label {
  cursor: pointer;
}

.sp-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #48484d;
  text-align: right;
}

.sp-val .i {
  padding: 1px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  width: 16px;
  height: 18px;
}

.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  margin: 0;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background-color 0.25s;
}

.switch::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s var(--spring);
}

.switch:checked {
  background: var(--blue);
}

.switch:checked::before {
  transform: translateX(16px);
}

.route {
  margin-top: 22px;
  padding: 0 4px;
}

.route-line {
  display: flex;
  align-items: center;
}

.route-node {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 980px;
  background: var(--alt);
  font-weight: 600;
  white-space: nowrap;
}

.route-wire {
  position: relative;
  flex: 1;
  min-width: 14px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #c7c7cc 0 4px, transparent 4px 8px);
  background-size: 16px 2px;
  animation: wire 0.8s linear infinite;
}

@keyframes wire {
  to {
    background-position: 16px 0;
  }
}

.route-provider {
  background: #1d1d1f;
  color: #fff;
  transition:
    background-color 0.35s,
    transform 0.35s var(--spring),
    opacity 0.2s;
}

.route-provider.is-local {
  background: var(--blue);
}

.route-provider.is-swapping {
  opacity: 0;
  transform: scale(0.9);
}

.route-note {
  margin-top: 12px;
  color: var(--muted);
}

/* Privacy */

.privacy {
  padding: clamp(110px, 15vw, 180px) 0;
  background: #000;
  color: #f5f5f7;
}

.privacy .h2 {
  background: linear-gradient(180deg, #fff 45%, #cdd7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lit {
  max-width: 820px;
  margin: 36px auto 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.js .lit span {
  color: #424245;
  transition: color 0.3s;
}

.js .lit span.on {
  color: #f5f5f7;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
  margin-top: clamp(72px, 9vw, 112px);
}

.fact .i-lg {
  color: #8fb0ff;
}

.fact h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.fact p {
  margin-top: 6px;
  color: #a1a1a6;
  font-size: 15px;
}

/* Details */

.details {
  background: var(--alt);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px 36px;
  margin-top: clamp(56px, 7vw, 88px);
}

.detail .i-lg {
  color: var(--blue);
}

.detail h3 {
  margin-top: 14px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.detail p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

/* Shortcuts */

.keys-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  max-width: 860px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.keys-list > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 12px;
  border-radius: 12px;
  transition: background-color 0.3s;
}

.keys-list > div::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: #e8e8ed;
}

.keys-list dt {
  display: flex;
  gap: 5px;
  width: 120px;
  flex-shrink: 0;
}

.keys-list dd {
  font-size: 17px;
}

.keys-list kbd {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  background: linear-gradient(#fff, #f4f4f6);
  box-shadow: 0 2px 0 #d2d2d7;
  font-family: var(--font-rounded);
  font-size: 15px;
  font-weight: 500;
  transition:
    transform 0.12s,
    box-shadow 0.12s,
    border-color 0.2s,
    color 0.2s;
}

.keys-list kbd.wide {
  min-width: 76px;
}

.keys-list .is-hit {
  background: rgba(47, 107, 240, 0.08);
}

.keys-list .is-hit kbd {
  transform: translateY(2px);
  box-shadow: 0 0 0 #d2d2d7;
  border-color: var(--blue);
  color: var(--blue);
}

/* FAQ */

.faq {
  background: var(--alt);
}

.faq-wrap {
  max-width: 820px;
}

.faq-list {
  margin-top: 40px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.8px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open] summary::before {
  transform: rotate(45deg);
}

.faq details[open] summary::after {
  transform: rotate(135deg);
}

.faq details p {
  padding: 0 48px 24px 0;
  color: var(--muted);
}

@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.4s var(--ease-out),
      content-visibility 0.4s allow-discrete;
  }

  .faq details[open]::details-content {
    height: auto;
  }
}

/* Download */

.download {
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(72, 132, 255, 0.14), rgba(72, 132, 255, 0)),
    var(--bg);
}

.download-icon {
  width: 144px;
  height: 144px;
  margin: 0 auto 24px;
}

.download .h2 {
  max-width: 720px;
  margin-inline: auto;
}

/* Footer */

.footer {
  padding: 28px 0 40px;
  background: var(--alt);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.005em;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer a {
  color: #424245;
}

.footer a:hover {
  text-decoration: underline;
}

.footer nav {
  display: flex;
  gap: 20px;
}

.footer-legal {
  flex-basis: 100%;
  color: #86868b;
}

/* Alert */

.alert {
  width: min(300px, calc(100% - 32px));
  padding: 24px 18px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(246, 246, 248, 0.94);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
}

.alert[open] {
  animation: alert-in 0.35s var(--spring);
}

.alert::backdrop {
  background: rgba(0, 0, 0, 0.2);
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

.alert img {
  margin: 0 auto 10px;
}

.alert h2 {
  font-size: 14px;
  font-weight: 700;
}

.alert p {
  margin-top: 6px;
  color: #424245;
}

.alert-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.alert-btn {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 13px;
}

.alert-primary {
  background: var(--blue);
  color: #fff;
}

/* Responsive */

@media (max-width: 1000px) {
  .detail-grid,
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .routing {
    grid-template-columns: 1fr;
  }

  .routing-copy {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    font-size: 17px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.35s var(--ease-out),
      visibility 0s 0.35s;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8ed;
  }

  .nav.is-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s,
      transform 0.35s var(--ease-out);
  }

  .js .story-captions {
    height: 150px;
  }

  .js .device {
    width: 100%;
  }

  .prov-grid {
    grid-template-columns: 1fr;
  }

  .prov-main {
    grid-template-columns: 1fr;
  }

  .prov-main .i-lg {
    grid-row: auto;
    margin-bottom: 12px;
  }

  .play-body {
    grid-template-columns: 1fr;
  }

  .play-photo {
    display: none;
  }

  .toolbar-row {
    justify-content: flex-start;
  }

  .keys-list {
    grid-template-columns: 1fr;
  }

  .poster {
    aspect-ratio: 4 / 3;
  }

  .poster-text {
    width: 86%;
    top: 30%;
  }

  .poster .tb-title .orig {
    font-size: 12cqw;
  }

  .poster .tb-title .tx {
    font-size: 7.4cqw;
  }

  .poster .tb-line .orig {
    font-size: 4cqw;
  }

  .poster .tb-line .tx {
    font-size: 3.7cqw;
  }

  .seg button {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .nav-inner {
    width: calc(100% - 32px);
    gap: 12px;
  }

  .nav-actions {
    gap: 4px;
  }

  .detail-grid,
  .facts {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .toolbar-row {
    justify-content: center;
  }

  .toolbar-live {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 5px 6px;
    overflow: visible;
  }

  .toolbar-live .sep {
    display: none;
  }

  .route-node {
    padding: 5px 9px;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    gap: 8px;
  }

  .brand {
    gap: 6px;
    font-size: 16px;
  }

  .brand img {
    width: 22px;
    height: 22px;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
