/* =========================================================
   悦漫 · 官网样式
   设计语言：纯白留白 + 墨色文字 + 应用同源靛蓝
   浅色模式：所有页面与分区背景统一为 #FFFFFF
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --bg-deep: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --ink: #15171C;
  --ink-2: #434852;
  --muted: #6F7581;
  --line: rgba(21, 23, 28, .14);
  --line-soft: rgba(21, 23, 28, .08);
  --line-strong: rgba(21, 23, 28, .30);
  --accent: #3554C6;
  --accent-soft: rgba(53, 84, 198, .10);
  --accent-fg: #FFFFFF;
  --wrong: #B23A32;
  --dark-panel: #FFFFFF;
  --dark-ink: #15171C;
  --dark-muted: #4C515C;
  --dark-line: rgba(21, 23, 28, .14);
  --panel-accent: #3554C6;
  --hover-fill: transparent;
  --tab-active-fill: transparent;
  --shadow-sm: 0 1px 2px rgba(21, 23, 28, .04), 0 8px 24px -20px rgba(21, 23, 28, .22);
  --shadow-lg: 0 30px 60px -28px rgba(21, 23, 28, .30), 0 12px 24px -18px rgba(21, 23, 28, .18);
  --device-shell: #FFFFFF;
  --device-inset: inset 0 1px 0 #FFFFFF;
  --device-edge: rgba(21, 23, 28, .22);
  --device-shadow: 0 26px 50px -30px rgba(21, 23, 28, .32), 0 8px 18px -14px rgba(21, 23, 28, .16);
  --device-camera: rgba(21, 23, 28, .22);
  --device-camera-ring: rgba(21, 23, 28, .08);
  --radius: 18px;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --font-sans: "HarmonyOS Sans SC", "HarmonyOS Sans", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-deep: #121212;
  --surface: #121212;
  --surface-2: #121212;
  --ink: #ECEEF4;
  --ink-2: #A7AEBC;
  --muted: #8A92A2;
  --line: rgba(255, 255, 255, .14);
  --line-soft: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .28);
  --accent: #93A8FF;
  --accent-soft: rgba(147, 168, 255, .12);
  --accent-fg: #0B0E15;
  --wrong: #FF9A93;
  --dark-panel: #121212;
  --dark-ink: #EDEEF3;
  --dark-muted: rgba(237, 238, 243, .72);
  --dark-line: rgba(237, 238, 243, .14);
  --panel-accent: #9DB0FF;
  --hover-fill: transparent;
  --tab-active-fill: transparent;
  --shadow-sm: none;
  --shadow-lg: none;
  --device-shell: #121212;
  --device-inset: inset 0 1px 0 rgba(255, 255, 255, .05);
  --device-edge: rgba(255, 255, 255, .18);
  --device-shadow: 0 0 0 0 transparent;
  --device-camera: rgba(255, 255, 255, .22);
  --device-camera-ring: rgba(255, 255, 255, .06);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, dl, dd, dt, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-fg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: none;
  opacity: .045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 3. Typography helpers ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.label span {
  color: var(--accent);
  letter-spacing: .08em;
}
.label::after {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: var(--line-strong);
}

html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-outline,
html[data-theme="light"] .icon-btn { border-color: rgba(21, 23, 28, .22); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 800;
}

.section {
  position: relative;
  padding-block: clamp(76px, 9vw, 132px);
  scroll-margin-top: 80px;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-sub {
  margin-top: 22px;
  color: var(--ink-2);
  font-size: 16.5px;
  max-width: 44em;
}

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  background: none;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 10px 24px -14px rgba(53, 84, 198, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(53, 84, 198, .8); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--line-strong); background: var(--surface); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--line-strong); }

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .25s, background-color .25s, color .25s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface); }
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .icon-btn { border-color: rgba(255, 255, 255, .22); }
html[data-theme="dark"] .mobile-menu nav a { border-bottom-color: var(--line); }
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .icon-btn:hover {
  background: #121212;
  border-color: rgba(255, 255, 255, .38);
}
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- 5. Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }
html[data-theme="dark"] .nav {
  background: #121212;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="dark"] .nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--pad);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { border-radius: 9px; }
html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .footer-brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.05;
}
.brand-text i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .34em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 13px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-mail { margin-left: 4px; }

.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  padding: 96px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu nav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--muted);
}
.mobile-menu-foot { font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: 0;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at center, var(--accent-soft), transparent 66%);
  pointer-events: none;
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 6vw, 76px);
}

.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero-grid > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.85rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
  margin: 0 0 26px;
}

.lede {
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 33em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  gap: clamp(22px, 3.2vw, 42px);
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 520px;
  flex-wrap: wrap;
  row-gap: 18px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-stats dt {
  order: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  white-space: nowrap;
}
.hero-stats dd {
  order: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.2;
  white-space: nowrap;
}
.hero-stats b {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat-note {
  order: 3;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  white-space: nowrap;
}

/* device frame */
.device {
  position: relative;
  padding: 13px;
  border-radius: 30px;
  background: var(--device-shell);
  box-shadow:
    var(--device-inset),
    inset 0 0 0 1px var(--device-edge),
    var(--device-shadow);
}
.device::before {
  content: "";
  position: absolute;
  top: 5.5px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--device-camera);
  box-shadow: 0 0 0 1px var(--device-camera-ring);
  transform: translateX(-50%);
}
.device-screen {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0A0B0E;
}
.device-screen img { display: block; width: 100%; height: auto; }
html[data-theme="light"] .device-screen { background: #FFFFFF; }
html[data-theme="dark"] .device-screen { background: #121212; }

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1;
}
.hero-device {
  width: min(100%, 392px);
  position: relative;
  z-index: 2;
}
.hero-device::after {
  content: "";
  position: absolute;
  inset: 26px -18px -18px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  z-index: -1;
  opacity: .55;
  pointer-events: none;
}
html[data-theme="light"] .hero-device::after { display: none; }
html[data-theme="dark"] .hero-device::after { display: none; }

.hero-caption {
  margin-top: 16px;
  padding-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}

/* format marquee */
.format-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-deep);
  padding-block: 15px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.format-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.format-track span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink-2);
  white-space: nowrap;
}
.format-track span:nth-child(3n+1) { color: var(--muted); }
.format-strip:hover .format-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-16.6667%); }
}

/* ---------- 7. Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.why-side { position: sticky; top: 110px; }
.why-side h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }

.profile {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  max-width: 300px;
}
.profile > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.profile dt { color: var(--muted); }
.profile dd { color: var(--ink); text-align: right; }

.why-lead {
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.62;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-bottom: 26px;
  max-width: 22em;
}
.why-body p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 18px;
  max-width: 40em;
}
.why-points {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.why-points li {
  display: flex;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-2);
}
.why-points span {
  flex: none;
  width: 92px;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 8. Features ---------- */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.feature {
  position: relative;
  padding: clamp(26px, 3.4vw, 40px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color .3s var(--ease);
}
.feature:nth-child(even) { border-right: 0; }
.feature:hover { background: var(--hover-fill); }
html[data-theme="light"] .feature:hover .feature-no { color: var(--accent); }
html[data-theme="dark"] .feature:hover { background: transparent; }
html[data-theme="dark"] .feature:hover .feature-no { color: var(--accent); }

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.feature-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}
.feature-icon {
  width: 26px;
  height: 26px;
  color: var(--ink-2);
  transition: color .3s, transform .3s var(--ease);
}
.feature:hover .feature-icon { color: var(--accent); transform: translateY(-2px); }

.feature h3 {
  font-size: clamp(18.5px, 1.7vw, 21px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.45;
  margin-bottom: 12px;
}
.feature p {
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--ink-2);
}
.feature-tags {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px !important;
  letter-spacing: .06em;
  color: var(--muted) !important;
}

/* ---------- 9. Screens ---------- */
.screens { background: var(--surface-2); border-block: 1px solid var(--line-soft); }
html[data-theme="light"] .screens { border-block-color: var(--line); }
html[data-theme="dark"] .screens { border-block-color: var(--line); }

.showcase {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.showcase-stage { position: sticky; top: 104px; }
.showcase-device { width: 100%; }
.device-screen.stack { aspect-ratio: 747 / 1165; }
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.shot.is-active { opacity: 1; }
.showcase-caption {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.showcase-list { border-top: 1px solid var(--line); }
.shot-tab {
  position: relative;
  display: flex;
  gap: 22px;
  width: 100%;
  padding: 24px 22px 24px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  transition: padding-left .3s var(--ease), background-color .3s;
}
.shot-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease);
}
.shot-tab:hover { padding-left: 16px; }
.shot-tab.is-active { padding-left: 20px; background: var(--tab-active-fill); }
.shot-tab.is-active::before { transform: scaleY(1); }

.tab-no {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
  padding-top: 5px;
}
.tab-body strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 5px;
  color: var(--ink-2);
  transition: color .25s;
}
.shot-tab.is-active .tab-body strong { color: var(--ink); }
.tab-body em {
  display: block;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38em;
}
.shot-tab.is-active .tab-no { color: var(--accent); }

/* phone row */
.phone-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.device-phone { width: 232px; border-radius: 34px; padding: 9px; }
.device-phone .device-screen { border-radius: 26px; }
.device-phone::before { top: 4px; width: 4px; height: 4px; }
.phone-row-text .label { margin-bottom: 16px; }
.phone-row-text h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.4;
  margin-bottom: 14px;
}
.phone-row-text p { color: var(--ink-2); font-size: 15.5px; max-width: 36em; }

/* ---------- 10. Scenes ---------- */
.scene-list { border-top: 1px solid var(--line); }
.scene {
  display: grid;
  grid-template-columns: 96px 1fr 210px;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease);
}
.scene:hover { padding-left: 10px; }
.scene-no {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1;
  color: var(--line-strong);
  transition: color .3s;
}
.scene:hover .scene-no { color: var(--accent); }
.scene-main h3 {
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 6px;
}
.scene-main p {
  font-size: 14.8px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 46em;
}
.scene-tag {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  transition: border-color .3s, color .3s;
}
.scene:hover .scene-tag { border-color: var(--line-strong); color: var(--ink-2); }

/* ---------- 11. Privacy ---------- */
.privacy {
  background: var(--dark-panel);
  color: var(--dark-ink);
  border-top: 1px solid var(--dark-line);
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(120, 145, 255, .14), transparent 62%);
  pointer-events: none;
  display: none;
}
html[data-theme="dark"] .privacy .label { color: rgba(237, 238, 243, .52); }
html[data-theme="dark"] .privacy .label::after { background: rgba(237, 238, 243, .28); }
html[data-theme="dark"] .perm-list code { color: #B9C5FF; }
.privacy .wrap { position: relative; z-index: 1; }
.privacy .label { color: var(--dark-muted); }
.privacy .label span { color: var(--panel-accent); }
.privacy .label::after { background: var(--dark-line); }

html[data-theme="light"] .zero strong { font-weight: 500; }
.privacy-head { max-width: 760px; }
.privacy-head h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.privacy-head p {
  margin-top: 24px;
  max-width: 40em;
  color: var(--dark-muted);
  font-size: 16.5px;
  line-height: 1.85;
}

.zeros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--dark-line);
}
.zero {
  padding: 28px 28px 30px 0;
  border-right: 1px solid var(--dark-line);
}
.zero:last-child { border-right: 0; }
.zero strong {
  display: block;
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--panel-accent);
  margin-bottom: 14px;
}
.zero span { display: block; font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.zero em {
  font-style: normal;
  font-size: 13px;
  color: var(--dark-muted);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  margin-top: clamp(44px, 5vw, 64px);
}
.privacy-grid h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.privacy-grid p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--dark-muted);
}
.perm-list { border-top: 1px solid var(--dark-line); }
.perm-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-line);
}
.perm-list code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--panel-accent);
}
.perm-list span { font-size: 13px; color: var(--dark-muted); }

/* ---------- 12. Craft ---------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 48px);
}
.craft-item svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
  margin-bottom: 22px;
}
.craft-item h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 10px;
}
.craft-item p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

/* ---------- 13. Get ---------- */
.get { background: var(--surface-2); border-top: 1px solid var(--line-soft); }
html[data-theme="light"] .get { border-top-color: var(--line); }
html[data-theme="dark"] .get { border-top-color: var(--line); }
.get-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.get-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
html[data-theme="dark"] .get-card { background: #121212; box-shadow: none; }
.spec > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec dt { font-size: 13px; color: var(--muted); flex: none; }
.spec dd { font-size: 14px; text-align: right; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.get-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
}
.get-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.copy-btn { padding-inline: 16px; }
.get-mail {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}

.limits h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: 16px;
}
.limits ul { border-top: 1px solid var(--line); }
.limits li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}
.limits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.limits li strong { color: var(--ink); font-weight: 600; }
.limits-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 14. Footer ---------- */
.footer {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(18px, 3vw, 36px);
  overflow: hidden;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { border-radius: 11px; }
.footer-brand strong { font-size: 17px; letter-spacing: .03em; }
.footer-brand p { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin-top: 4px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer-fine p { font-size: 11.5px; line-height: 1.9; color: var(--muted); }

.footer-word {
  margin-top: 8px;
  font-size: clamp(92px, 14vw, 188px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-align: center;
  color: var(--ink);
  opacity: .05;
  user-select: none;
}
html[data-theme="light"] .footer-word { display: none; }
html[data-theme="dark"] .footer-word { display: none; }

/* ---------- 15. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  transform: translate(-50%, 16px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  box-shadow: var(--shadow-lg);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-primary:hover { box-shadow: none; }
html[data-theme="dark"] .toast {
  background: #121212;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
html[data-theme="dark"] .skip-link {
  background: #121212;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

/* ---------- 16. Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }


/* ---------- 16c. Scan guide ---------- */
.scan { border-top: 1px solid var(--line); }
.scan-head { max-width: 780px; }
.scan-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}

.scan-index { position: static; }
.scan-index-inner {
  position: sticky;
  top: 104px;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.scan-index > p {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.scan-index ol { list-style: none; margin: 0; padding: 0; }
.scan-index a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-2);
  transition: color .2s;
}
.scan-index a span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .2s;
}
.scan-index a:hover { color: var(--accent); }
.scan-index a:hover span { color: var(--accent); }

.scan-body { min-width: 0; }
.scan-block { margin-bottom: clamp(48px, 6vw, 72px); scroll-margin-top: 96px; }
.scan-block:last-child { margin-bottom: 0; }
.scan-block-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.scan-block-head > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
}
.scan-block-head h3 {
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.scan-p {
  font-size: 14.8px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 46em;
  margin-bottom: 16px;
}
.scan-note {
  margin-top: 18px;
  font-size: 12.6px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 54em;
}
.scan-p code,
.scan-note code,
.rule-main code,
.naming code,
.fail code,
.format-group code {
  font-family: var(--font-mono);
  font-size: .92em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* entries */
.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.entry {
  padding: 20px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}
.entry:nth-child(odd) { border-right: 1px solid var(--line); }
.entry:nth-child(even) { padding-left: 28px; padding-right: 0; }
.entry-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 9px;
}
.entry h4 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.5;
  margin-bottom: 6px;
}
.entry p:not(.entry-tag) { font-size: 13.8px; line-height: 1.8; color: var(--ink-2); }

/* flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.flow li {
  padding: 20px 22px 24px 0;
  border-right: 1px solid var(--line);
}
.flow li + li { padding-left: 22px; }
.flow li:last-child { border-right: 0; padding-right: 0; }
.flow-no {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.flow h4 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.flow p { font-size: 13.2px; line-height: 1.8; color: var(--ink-2); }

/* rules */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.rule-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
  padding-top: 3px;
}
.rule-main h4 { font-size: 15.8px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; line-height: 1.5; }
.rule-main p { font-size: 13.6px; line-height: 1.8; color: var(--ink-2); }
.rule-out {
  justify-self: end;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11.5px;
  color: var(--ink);
}

/* formats */
.format-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.format-group h4 {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .03em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--ink-2);
}
.chips code.is-warn { color: var(--wrong); }
.format-group p { margin-top: 12px; font-size: 12.8px; line-height: 1.75; color: var(--muted); }

/* correct / wrong layouts */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 18px;
}
.case.is-ok { border-color: var(--line-strong); }
.case.is-bad { border-style: dashed; }
.case.is-muted { border-style: dashed; }
.is-muted .case-mark { color: var(--muted); border-color: var(--line-strong); }
.case-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.case-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid;
  border-radius: 50%;
  font-size: 10.5px;
  line-height: 1;
}
.is-ok .case-mark { color: var(--accent); border-color: var(--accent); }
.is-bad .case-mark { color: var(--wrong); border-color: var(--wrong); }
.case-head h4 { font-size: 14.2px; font-weight: 600; letter-spacing: -.01em; }
.case pre {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.8px;
  line-height: 1.75;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: pre;
}
.case p { font-size: 12.6px; line-height: 1.75; color: var(--ink-2); }
.case p strong { color: var(--ink); font-weight: 600; }
.case.is-bad p strong { color: var(--wrong); }

/* naming */
.naming { border-top: 1px solid var(--line); margin: 0; }
.naming > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.naming dt { font-size: 13px; font-weight: 600; color: var(--ink); }
.naming dd { font-size: 13.6px; line-height: 1.8; color: var(--ink-2); }

/* failures */
.fail-list { border-top: 1px solid var(--line); }
.fail-head,
.fail { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 20px; }
.fail-head {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.fail { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.fail-sym { font-size: 13.8px; font-weight: 600; color: var(--ink); }
.fail p:not(.fail-sym) { font-size: 13.2px; line-height: 1.75; color: var(--ink-2); }
.fail p span {
  display: none;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 2px;
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-side { position: static; }
  .why-side h2 br { display: none; }
  .profile { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; max-width: none; margin-top: 28px; }
  .showcase { grid-template-columns: minmax(300px, 360px) 1fr; gap: 40px; }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav-mail { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { align-items: center; }
  .hero-device { width: min(78%, 380px); }
  .hero-caption { text-align: center; padding: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) { border-right: 0; }
  .feature { padding-inline: 0; }
  .feature:hover { background: transparent; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .showcase-stage { position: static; display: flex; flex-direction: column; align-items: center; }
  .showcase-device { width: min(72%, 360px); }
  .showcase-list { border-top: 1px solid var(--line); }
  .phone-row { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .phone-row-text p { margin-inline: auto; }
  .scene { grid-template-columns: 64px 1fr; }
  .scene-tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .craft-grid { grid-template-columns: 1fr; gap: 28px; }
  .get-grid { grid-template-columns: 1fr; }
  .zeros { grid-template-columns: 1fr; }
  .zero { border-right: 0; border-bottom: 1px solid var(--dark-line); padding-right: 0; }
  .zero:last-child { border-bottom: 0; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 80px; }
  .nav-inner { height: 64px; gap: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-text { font-size: 16px; }
  .brand-text i { display: none; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
  .lede { font-size: 15.5px; }
  .hero-cta { margin-top: 26px; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { margin-top: 32px; gap: 18px; justify-content: space-between; }
  .hero-stats dd { font-size: 19px; }
  .hero-device { width: min(88%, 330px); }
  .hero-device::after { display: none; }
  .hero-visual { padding-bottom: 0; }
  .hero-caption { margin-top: 20px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .label { margin-bottom: 20px; }
  .why-lead { font-size: 20px; }
  .profile { grid-template-columns: 1fr; }
  .feature { padding-block: 28px; }
  .feature-top { margin-bottom: 18px; }
  .showcase-device { width: min(86%, 330px); }
  .shot-tab { padding: 18px 12px 18px 0; gap: 14px; }
  .shot-tab.is-active { padding-left: 12px; }
  .tab-body em { font-size: 13px; }
  .device-phone { width: 190px; }
  .scene { grid-template-columns: 48px 1fr; gap: 14px; padding: 22px 0; }
  .scene-no { font-size: 24px; }
  .zeros { margin-top: 36px; }
  .zero { padding: 22px 0; }
  .get-card { padding: 20px; border-radius: 14px; }
  .get-actions { flex-direction: column; align-items: stretch; }
  .get-actions .btn { width: 100%; }
  .footer-fine { flex-direction: column; }
  .toast { bottom: 18px; width: max-content; max-width: calc(100% - 32px); }
}


/* scan guide responsive */
@media (max-width: 1080px) {
  .scan-layout { grid-template-columns: 176px minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 940px) {
  .scan-layout { grid-template-columns: 1fr; gap: 32px; }
  .scan-index {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 16px 0 6px;
  }
  .scan-index-inner { position: static; border-left: 0; padding-left: 0; }
  .scan-index ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry { padding: 18px 0 !important; border-right: 0 !important; }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .flow li + li { padding-left: 0; }
  .flow li:last-child { border-bottom: 0; }
  .format-groups { grid-template-columns: 1fr; gap: 22px; }
  .compare { grid-template-columns: 1fr; gap: 12px; }
  .fail-head { display: none; }
  .fail { grid-template-columns: 1fr; gap: 8px; }
  .fail p span { display: block; }
}

@media (max-width: 620px) {
  .scan-index ol { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .rule-out { grid-column: 2; justify-self: start; margin-top: 2px; }
  .naming > div { grid-template-columns: 1fr; gap: 4px; }
  .case { padding: 14px; }
  .case pre { font-size: 11.2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .format-track { animation: none; }
}
