:root {
  --bg: #0e1116;
  --bg-soft: #12161c;
  --bg-raise: #161b22;
  --bg-deep: #0a0d12;
  --line: #232a33;
  --line-soft: #1b222a;
  --mint: #6fe0c0;
  --mint-soft: rgba(111, 224, 192, 0.12);
  --mint-line: rgba(111, 224, 192, 0.32);
  --smoke: #9aa3ad;
  --warm: #f2f4f3;
  --ink: #07110e;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 86% -6%, rgba(111, 224, 192, 0.07), transparent 64%),
    radial-gradient(700px 420px at 4% 18%, rgba(154, 163, 173, 0.05), transparent 62%),
    var(--bg);
  color: var(--warm);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.nowrap {
  white-space: nowrap;
}

button,
input,
output,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--smoke);
  font-size: 17px;
  line-height: 1.85;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(35, 42, 51, 0.86);
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--warm);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--warm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  display: block;
  width: 40px;
  height: 40px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-domain {
  margin-top: 3px;
  color: var(--smoke);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--smoke);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover {
  color: var(--warm);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-dl {
  color: var(--warm);
  text-decoration: none;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--mint);
  color: var(--ink);
}

.btn-primary:hover {
  background: #85e8cc;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: #2b3540;
  background: rgba(22, 27, 34, 0.6);
  color: var(--warm);
}

.btn-ghost:hover {
  border-color: var(--mint-line);
  color: var(--mint);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.6rem, 7vw, 6.2rem) 0 clamp(6.5rem, 9vw, 9rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: clamp(2.4rem, 5vw, 4.5rem);
}

.hero-copy {
  min-width: 0;
}

h1 {
  max-width: 12.5em;
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.h1-mark {
  position: relative;
  color: var(--mint);
  white-space: nowrap;
}

.h1-mark::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.02em;
  height: 0.18em;
  background: var(--mint);
  opacity: 0.22;
  border-radius: 2px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-dl {
  color: var(--warm);
  text-decoration: none;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 34px;
  color: var(--smoke);
  font-size: 13px;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.8;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.phone-stack {
  position: relative;
  width: min(332px, 100%);
  margin-right: 8px;
}

.phone-stack::before {
  content: "";
  position: absolute;
  inset: 20px -16px -18px 18px;
  border: 1px solid rgba(111, 224, 192, 0.18);
  border-radius: 46px;
  transform: rotate(3deg);
  pointer-events: none;
}

.phone {
  position: relative;
  padding: 11px;
  border: 1px solid #2a343f;
  border-radius: 46px;
  background: linear-gradient(180deg, #1a212a, #0c1015);
  box-shadow: var(--shadow);
}

.phone-notch {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: #262f39;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 548px;
  padding: 34px 15px 15px;
  border: 1px solid #1b232c;
  border-radius: 36px;
  background: var(--bg-deep);
}

.reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--smoke);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.reader-app {
  color: var(--warm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reader-mode {
  padding: 2px 8px;
  border: 1px solid rgba(111, 224, 192, 0.3);
  border-radius: 999px;
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reader-page {
  overflow: hidden;
  border: 1px solid #232c36;
  border-radius: 12px;
  background: #080b0f;
}

.reader-page img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.reader-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--warm);
  font-size: 14px;
  font-weight: 600;
}

.reader-page-note {
  color: var(--smoke);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.mini-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--smoke);
  font-size: 11.5px;
}

.mini-list li.is-current {
  border-left: 2px solid var(--mint);
  border-radius: 4px 8px 8px 4px;
  background: rgba(111, 224, 192, 0.08);
  color: var(--warm);
}

.mini-state {
  font-size: 10px;
  letter-spacing: 0.04em;
}

.mini-list li.is-current .mini-state {
  color: var(--mint);
}

.reader-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #1c242d;
  color: var(--smoke);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.reader-chrome .is-active {
  color: var(--mint);
}

.chapter-chip {
  position: absolute;
  left: -26px;
  bottom: -80px;
  width: 212px;
  padding: 14px 16px;
  border: 1px solid #2a3540;
  border-radius: 16px;
  background: rgba(20, 26, 33, 0.97);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.chip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--smoke);
  font-size: 11px;
}

.chip-head strong {
  color: var(--warm);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chip-track {
  display: block;
  height: 4px;
  margin: 10px 0 9px;
  border-radius: 999px;
  background: #232c36;
  overflow: hidden;
}

.chip-fill {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.chip-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mint);
  font-size: 11px;
}

.chip-hint span {
  animation: hint-nudge 2.6s ease-in-out infinite;
}

@keyframes hint-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

/* Sections */
.section {
  padding: clamp(3.6rem, 7vw, 6rem) 0;
  scroll-margin-top: 96px;
}

.settings-section,
.library-section,
.promo-section,
.faq-section,
.download-section {
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.section-lede {
  margin-top: 16px;
  color: var(--smoke);
  font-size: 16px;
  line-height: 1.85;
}

/* Settings */
.settings-card {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.settings-controls {
  min-width: 0;
  padding: 32px;
}

.control {
  margin-bottom: 26px;
}

.control-last {
  margin-bottom: 0;
}

.control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.control-head label,
.control-fieldset legend {
  color: var(--warm);
  font-size: 14.5px;
  font-weight: 600;
}

.control-head output {
  color: var(--mint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.control input[type="range"] {
  width: 100%;
  margin: 8px 0 4px;
  accent-color: var(--mint);
  cursor: pointer;
}

.control-note {
  margin-top: 6px;
  color: var(--smoke);
  font-size: 12.5px;
  line-height: 1.6;
}

.control-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.control-fieldset legend {
  margin-bottom: 10px;
  padding: 0;
}

.seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.seg {
  position: relative;
  display: block;
  cursor: pointer;
}

.seg input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: block;
  padding: 11px 10px;
  border: 1px solid #2b353f;
  border-radius: 12px;
  background: #0f141a;
  color: var(--smoke);
  font-size: 13.5px;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.seg input:checked + span {
  border-color: var(--mint-line);
  background: var(--mint-soft);
  color: var(--warm);
}

.seg input:focus-visible + span {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--warm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mint);
  cursor: pointer;
}

.settings-preview {
  min-width: 0;
  padding: 32px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1117, #0b0f14);
}

.preview-label {
  margin-bottom: 12px;
  color: var(--smoke);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.reader-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #232c36;
  border-radius: 20px;
  background: #10151c;
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--smoke);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.preview-badge {
  padding: 2px 9px;
  border: 1px solid rgba(111, 224, 192, 0.32);
  border-radius: 999px;
  color: var(--mint);
  font-size: 10px;
}

.reader-preview:not(.is-night) .preview-badge {
  display: none;
}

.preview-surface {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: 22px;
  border: 1px solid #242e38;
  border-radius: 14px;
  background: #161d25;
  filter: brightness(var(--preview-brightness, 0.8));
  transition: background-color 0.24s ease, border-color 0.24s ease;
}

.reader-preview.is-night .preview-surface {
  border-color: rgba(111, 224, 192, 0.24);
  background: #101a1e;
}

.preview-text {
  margin: 0;
  font-size: var(--preview-font-size, 18px);
  line-height: 1.9;
  letter-spacing: 0.01em;
  transition: font-size 0.18s ease;
}

.preview-divider {
  height: 1px;
  background: rgba(154, 163, 173, 0.18);
}

.preview-turn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mint);
  font-size: 12.5px;
  line-height: 1.5;
}

.turn-glyph {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid rgba(111, 224, 192, 0.34);
  border-radius: 50%;
  font-size: 14px;
  transition: transform 0.24s ease;
}

.reader-preview[data-turn="vertical"] .turn-glyph {
  transform: rotate(90deg);
}

.preview-note {
  color: var(--smoke);
  font-size: 12px;
  line-height: 1.6;
}

.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(154, 163, 173, 0.16);
  color: var(--smoke);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.preview-chrome span:last-child {
  color: var(--mint);
}

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cap-card {
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.cap-card:hover {
  border-color: #303a45;
  transform: translateY(-2px);
}

.cap-icon {
  display: block;
  position: relative;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 1px solid rgba(111, 224, 192, 0.26);
  border-radius: 12px;
  background: var(--mint-soft);
}

.icon-search::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 11px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--mint);
  border-radius: 50%;
}

.icon-search::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--mint);
  transform: rotate(45deg);
  transform-origin: left center;
}

.icon-grid::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--mint);
  box-shadow: 12px 0 0 var(--mint), 0 12px 0 var(--mint), 12px 12px 0 var(--mint);
}

.icon-sliders::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(var(--mint), var(--mint)) 0 0 / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) 0 8px / 18px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) 0 16px / 18px 2px no-repeat;
}

.cap-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}

.cap-card p {
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.8;
}

/* Library */
.library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.library-copy {
  min-width: 0;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.75;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1px solid rgba(111, 224, 192, 0.34);
  border-radius: 50%;
  color: var(--mint);
  font-size: 11px;
}

.shelf-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.shelf-head h3 {
  font-size: 16px;
  font-weight: 600;
}

.shelf-tag {
  color: var(--mint);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.shelf-covers {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.shelf-cover {
  position: relative;
  display: block;
  width: 26%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.cover-a {
  background: linear-gradient(150deg, #2a3d46, #172027 72%);
}

.cover-b {
  background: linear-gradient(150deg, #453033, #1d1518 72%);
}

.cover-c {
  background: linear-gradient(150deg, #41402f, #1c1b15 72%);
}

.shelf-cover::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  height: 2px;
  border-radius: 1px;
  background: rgba(242, 244, 243, 0.16);
  box-shadow: 0 -6px 0 rgba(242, 244, 243, 0.1), 0 -12px 0 rgba(242, 244, 243, 0.07);
}

.shelf-cover::after {
  content: "";
  position: absolute;
  top: 0;
  right: 10px;
  width: 5px;
  height: 16px;
  border-radius: 0 0 3px 3px;
  background: var(--mint);
  opacity: 0.7;
}

.resume-card {
  padding: 18px;
  border: 1px solid #242e38;
  border-radius: 14px;
  background: #10161d;
}

.resume-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--smoke);
  font-size: 12px;
}

.resume-top strong {
  color: var(--warm);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.resume-track {
  display: block;
  height: 5px;
  margin: 12px 0 10px;
  border-radius: 999px;
  background: #232c36;
  overflow: hidden;
}

.resume-fill {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
}

.resume-card p {
  color: var(--smoke);
  font-size: 12px;
}

.shelf-caption {
  margin-top: 18px;
  color: var(--smoke);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps li {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid #2a333d;
}

.step-num {
  display: block;
  margin-bottom: 14px;
  color: var(--mint);
  font-size: 12px;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.steps p {
  color: var(--smoke);
  font-size: 13.5px;
  line-height: 1.75;
}

/* Promo */
.promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(2.2rem, 4.5vw, 3.8rem);
}

.promo-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #080b0f;
  box-shadow: var(--shadow);
}

.promo-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.promo-copy {
  min-width: 0;
}

.promo-copy h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
}

.promo-copy p {
  margin-top: 16px;
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.85;
}

.promo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.promo-list li {
  position: relative;
  padding-left: 18px;
  color: var(--smoke);
  font-size: 13.5px;
  line-height: 1.7;
}

.promo-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 1px;
  background: var(--mint);
}

/* FAQ */
.faq-wrap {
  max-width: 880px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--warm);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--mint);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 40px 22px 0;
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.85;
}

/* Download */
.download-section {
  background: linear-gradient(180deg, #10151b, #0e1116 78%);
}

.download-head {
  max-width: 640px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.dl-card {
  align-self: stretch;
  height: 100%;
  color: var(--warm);
  text-decoration: none;
  border-radius: 20px;
}

.dl-card-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 190px;
  padding: 26px;
  border: 1px solid #262f39;
  border-radius: 20px;
  background: #141a21;
  transition: border-color 0.22s ease, transform 0.22s ease, background-color 0.22s ease;
}

.dl-card:hover .dl-card-inner {
  border-color: var(--mint-line);
  background: #161d25;
  transform: translateY(-3px);
}

.dl-card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

.dl-tag {
  align-self: flex-start;
  padding: 3px 10px;
  border: 1px solid #313b47;
  border-radius: 999px;
  color: var(--smoke);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.dl-tag-mint {
  border-color: rgba(111, 224, 192, 0.4);
  color: var(--mint);
}

.dl-tag-warm {
  border-color: rgba(242, 244, 243, 0.3);
  color: var(--warm);
}

.dl-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.dl-desc {
  color: var(--smoke);
  font-size: 13.5px;
  line-height: 1.7;
}

.dl-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--mint);
  font-size: 13.5px;
}

.download-note {
  margin-top: 18px;
  color: var(--smoke);
  font-size: 12.5px;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark-sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand-mark-sm img {
  width: 32px;
  height: 32px;
}

.footer-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-domain {
  color: var(--smoke);
  font-size: 11px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-nav a {
  color: var(--smoke);
  font-size: 13px;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-copy {
  color: var(--smoke);
  font-size: 11.5px;
}

/* 404 */
.error-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 64px 24px;
}

.error-card {
  max-width: 520px;
  padding: 44px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  text-align: center;
}

.error-code {
  color: var(--mint);
  font-size: 12px;
  letter-spacing: 0.32em;
}

.error-card h1 {
  max-width: none;
  margin: 12px 0 14px;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.3;
}

.error-card p {
  color: var(--smoke);
  font-size: 14.5px;
  line-height: 1.8;
}

.error-actions {
  margin-top: 26px;
}

/* Responsive */
@media (max-width: 1080px) {
  .settings-card {
    grid-template-columns: 1fr;
  }

  .settings-preview {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-grid {
    gap: 2.5rem;
  }

  .chapter-chip {
    left: -12px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .nav-dl {
    margin-left: auto;
  }

  .hero-grid,
  .library-grid,
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-content: center;
  }

  .phone-stack {
    margin-right: 0;
  }

  .promo-figure {
    order: 2;
  }

  .promo-copy {
    order: 1;
  }

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

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .header-inner {
    min-height: 68px;
    gap: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-domain {
    font-size: 9.5px;
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 2.6rem);
  }

  .lede {
    font-size: 15.5px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-dl {
    width: 100%;
  }

  .hero-dl .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 8px 18px;
    font-size: 12px;
  }

  .phone-stack {
    width: min(320px, 100%);
  }

  .phone-screen {
    min-height: 500px;
  }

  .chapter-chip {
    left: 6px;
    bottom: -72px;
    width: 188px;
    padding: 12px 14px;
  }

  .settings-controls,
  .settings-preview {
    padding: 22px;
  }

  .preview-surface {
    padding: 18px;
  }

  .library-grid {
    gap: 2rem;
  }

  .shelf-panel {
    padding: 20px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps li {
    padding-top: 16px;
  }

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav {
    margin-left: 0;
  }

  .error-card {
    padding: 34px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
