@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed.woff2") format("woff2");
  font-weight: 900;
  font-display: optional;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 600;
  font-display: optional;
}

:root {
  color-scheme: dark;
  --ground: #11131A;
  --surface: #181B24;
  --line: #2A303E;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --moss: #4D7C0F;
  --acid: #BEF264;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--ground);
}
.brand-icon { display: inline-block; width: 30px; height: 30px; border-radius: 7px; flex: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 280px; margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
::selection { background: var(--acid); color: var(--ground); }
[id] { scroll-margin-top: 22px; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: var(--acid); color: #141413; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #282629; background: #101012; }
.header-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; width: fit-content; font-size: 23px; font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.brand > span:last-child { color: var(--acid); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 29px; margin-right: 9px; gap: 2px; border-radius: 5px; background: var(--acid); }
.brand-mark i { width: 7px; height: 12px; border: 1.5px solid #141413; background: #141413; border-radius: 2px 2px 0 1px; transform: skewY(12deg); }
.brand-mark i + i { transform: skewY(-12deg); background: transparent; }
nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 52px); }
nav a, .site-footer > a:last-child { font-size: 14px; font-weight: 600; color: var(--muted); }
nav a:hover, .site-footer > a:last-child:hover { color: var(--acid); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; width: fit-content; gap: 11px; padding: 0 21px; border: 1px solid var(--acid); border-radius: 5px; background: var(--acid); color: #141413; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.button:hover { background: #fff99a; border-color: #fff99a; }
.button-small { justify-self: end; min-height: 39px; padding-inline: 13px; font-size: 13px; }
.header-actions, .install-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.header-actions { justify-self: end; justify-content: flex-end; }
.header-content:has(.header-actions) { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
.header-content:has(.header-actions) nav { justify-content: center; flex-wrap: wrap; gap: 6px clamp(12px, 2vw, 28px); }

@media (max-width: 900px) {
  .header-content:has(.header-actions) { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 12px; }
  .header-content:has(.header-actions) nav { grid-area: 2 / 1 / 3 / -1; padding-top: 9px; border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .header-content:has(.header-actions) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .header-content:has(.header-actions) nav { grid-area: 3 / 1 / 4 / -1; width: 100%; }
  .header-actions { justify-self: center; justify-content: center; }
}
.button-quiet { background: #151517; color: var(--text); border-color: #444247; }
.button-quiet:hover { background: #242326; border-color: #77737d; }
.button small { font-family: var(--mono); font-size: 10px; color: #494610; }
.download-icon { font-size: 19px; line-height: 1; border-bottom: 1px solid currentColor; }

.opening { overflow: hidden; padding-bottom: 45px; background: radial-gradient(ellipse at 50% 24%, #311318 0%, #1c1014 32%, transparent 71%), var(--ground); position: relative; isolation: isolate; }
.opening::before { content: ""; position: absolute; pointer-events: none; inset: 0; z-index: -1; opacity: .26; background: radial-gradient(circle, #a8555d 1px, transparent 1.35px) 0 0 / 7px 7px; mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000), linear-gradient(180deg, #000, transparent 72%); mask-composite: intersect; }
.hero { text-align: center; padding-top: clamp(49px, 6vw, 85px); }
.eyebrow, .reader-bar, .panel-label, .reader-caption { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid #65523d; border-radius: 3px; padding: 7px 10px; color: var(--acid); gap: 8px; }
.signal { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: var(--acid); box-shadow: 0 0 9px #f8ee5c80; }
h1, h2, .download h3 { font-family: var(--display); font-weight: 900; }
h1 { font-size: clamp(47px, 8.7vw, 126px); line-height: .84; letter-spacing: -.026em; margin: 20px 0 0; }
h1 em { color: var(--acid); font-style: normal; }
.intro { margin: 25px auto 0; max-width: 505px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.58; color: #d0c8ca; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 24px; }

.demo-section { margin-top: clamp(28px, 4vw, 51px); }
.reader { padding: 0 7px; border: 1px solid #464047; border-radius: 10px; background: #141315; box-shadow: 0 16px 60px #080709c0; }
.reader-bar, .reader-caption { min-height: 43px; padding-inline: 9px; display: grid; align-items: center; color: var(--muted); }
.reader-bar { grid-template-columns: 1fr auto 1fr; }
.window-dots, .reader-live { display: inline-flex; align-items: center; gap: 6px; }
.window-dots i { border-radius: 50%; width: 7px; height: 7px; background: #52474b; }
.window-dots i:first-child { background: #b64d54; }
.reader-title span { color: #9b777b; }
.reader-live { justify-self: end; gap: 7px; color: var(--acid); }
.panel { --split: 50%; position: relative; isolation: isolate; aspect-ratio: 2.34; overflow: hidden; background: #26171b; border: 1px solid #3d363d; }
.panel > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.panel-layer { position: absolute; inset: 0; }
.sample-original { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.sample-translation { clip-path: inset(0 0 0 var(--split)); }
.panel-label { position: absolute; top: 13px; left: 13px; padding: 6px 9px; border-radius: 3px; border: 1px solid #76706e; background: #151416; color: var(--text); }
.sample-translation .panel-label { left: auto; right: 13px; background: var(--acid); color: #151416; border-color: var(--acid); }
.bubble { position: absolute; display: grid; place-content: center; width: clamp(82px, 15%, 151px); min-height: clamp(53px, 8.8vw, 104px); padding: 6px 9px; border: 2px solid #151416; border-radius: 50%; background: #f5f0e5; color: #171517; box-shadow: 0 2px 0 #151416; text-align: center; font-weight: 900; font-size: clamp(12px, 1.65vw, 22px); line-height: 1.15; }
.bubble::after { content: ""; position: absolute; width: 18%; height: 19%; left: 63%; bottom: -8%; transform: skew(-25deg) rotate(47deg); border-bottom: 2px solid #151416; border-right: 2px solid #151416; background: #f5f0e5; }
.bubble-first { top: 30%; left: 12%; transform: rotate(-6deg); }
.bubble-second { bottom: 17%; right: 13%; transform: rotate(5deg); }
.bubble-second::after { left: 17%; transform: skew(25deg) rotate(42deg); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: var(--acid); pointer-events: none; box-shadow: 0 0 12px #10090a; }
.divider > span { display: grid; place-content: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 39px; height: 39px; border-radius: 50%; background: var(--acid); color: #181712; grid-auto-flow: column; align-items: center; gap: 5px; font: 800 25px/1 Arial, sans-serif; }
.divider b { font: inherit; }
.panel input { position: absolute; inset: 0; appearance: none; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.panel input::-webkit-slider-thumb { appearance: none; width: 2px; height: 44px; }
.panel input::-moz-range-thumb { width: 2px; height: 44px; border: 0; }
.panel:focus-within { outline: 2px solid var(--acid); outline-offset: 3px; }
.reader-caption { grid-template-columns: 1fr auto; gap: 10px; letter-spacing: .025em; }
.reader-caption b { color: var(--acid); }

.content-section { padding-block: clamp(52px, 8vw, 93px); }
.content-section h2 { font-size: clamp(44px, 7vw, 82px); line-height: .94; letter-spacing: -.015em; margin-bottom: 31px; }
.feature-grid, .setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 25px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.feature-icon { display: inline-grid; place-content: center; border: 1px solid #595537; border-radius: 4px; width: 41px; height: 41px; color: var(--acid); background: #24231a; font-size: 21px; }
.feature h3, .setup-grid h3 { margin-block: 13px 6px; font-weight: 800; font-size: 19px; }
.feature p, .setup-grid p, .download p { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.pricing-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, #242115 0%, transparent 65%), var(--ground); }
.pricing-section .eyebrow { margin-bottom: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.price-card-featured { border-color: #655e34; background: #1a1913; box-shadow: 0 12px 40px #08070990; }
.plan-name { font-size: 18px; font-weight: 650; }
.price-card-featured .plan-name { color: var(--acid); }
.price-amount { margin-top: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 62px); line-height: .95; }
.price-amount s { font-size: .48em; color: var(--muted); font-weight: 700; margin-left: 6px; text-decoration-thickness: 2px; }
.price-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.price-alt { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.price-alt:hover { color: var(--acid); }
.footer-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-meta a:hover { color: var(--acid); }
.setup-section { border-block: 1px solid var(--line); background: #111113; }
.setup-grid { counter-reset: setup; margin: 0; padding: 0; }
.setup-grid li { counter-increment: setup; padding: 16px 18px 19px 0; border-top: 1px solid #514c40; }
.setup-grid li::before { content: counter(setup, decimal-leading-zero); color: var(--acid); font: 600 13px var(--mono); }
.setup-grid code { color: var(--text); font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 32px; padding: clamp(19px, 3.5vw, 38px); border: 1px solid #655e34; border-radius: 6px; background: #211f16; }
.download h3 { font-size: clamp(35px, 5vw, 53px); line-height: .95; margin-bottom: 8px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 89px; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-content { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 13px; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; padding-top: 9px; border-top: 1px solid var(--line); }
  .opening { padding-bottom: 21px; }
  .panel { aspect-ratio: 1.52; }
  .panel-label { top: 7px; left: 7px; padding: 4px 5px; letter-spacing: .03em; font-size: 9px; }
  .sample-translation .panel-label { right: 7px; }
  .bubble-first { left: 7%; }
  .bubble-second { right: 8%; }
  .reader-title, .reader-live { font-size: 9px; letter-spacing: .03em; }
  .reader-caption { font-size: 10px; padding-inline: 4px; }
  .feature-grid, .setup-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  h1 { font-size: clamp(35px, 12vw, 47px); }
  .header-content .brand { font-size: 20px; }
  .header-content .brand-mark { width: 25px; height: 25px; margin-right: 6px; }
  .button-small { padding-inline: 8px; gap: 5px; font-size: 12px; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 4px; height: 4px; }
  .reader-caption { grid-template-columns: 1fr; gap: 2px; padding-block: 8px; }
}

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

.legal-page { max-width: 78ch; padding-block: 48px 72px; }
.legal-page h1 { margin-top: 10px; }
.legal-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.legal-section h2 { font-size: 20px; margin-bottom: 10px; }
.legal-section p, .legal-section li { color: rgba(244,244,246,.82); line-height: 1.65; }
.legal-section ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-section a { color: var(--acid, #d8ff72); text-decoration: underline; text-underline-offset: 3px; }

/* The homepage pairs an editorial headline with a self-contained reader. */
.wrap { width: min(1180px, calc(100% - 64px)); }
.site-header { background: var(--ground); border-color: var(--line); }
.brand-icon { margin-right: 9px; }
.home-page {
  --display: "Geist", Arial, sans-serif;
  font-family: var(--display);
}
.home-page .opening {
  position: relative; isolation: isolate; padding: 0; overflow: clip;
  --comic-height: clamp(128px, 44vw, 445px);
  --opening-bottom: clamp(16px, 2.4vw, 32px);
  --reveal-edge: calc(100% - var(--opening-bottom));
  background:
    linear-gradient(to bottom, #101218d4 0%, #101218ad 52%, #101218f0 var(--reveal-edge), var(--ground) var(--reveal-edge)),
    var(--home-hero-art, url("./assets/night-train-cover.webp")) 50% 28% / cover no-repeat, #101218;
}
.home-page main > #demo,
.home-page main > #compare,
.home-page main > #pricing,
.home-page main > #setup {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 750px;
}
#comic-demo-mount:empty { min-block-size: 1px; }

@media (max-width: 600px) {
  .home-page .opening { --home-hero-art: url("./assets/night-train-cover-mobile.webp"); }
  .home-page .opening::before { display: none; }
}
.home-page .opening::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: radial-gradient(circle, #788c6e 1px, transparent 1.4px) center / 8px 8px;
  mask-image: linear-gradient(to bottom, #000 var(--reveal-edge), transparent var(--reveal-edge)),
    radial-gradient(ellipse at 50% 85%, #000 4%, transparent 68%);
  mask-composite: intersect;
}
.home-page .opening::after {
  content: ""; position: absolute; inset: var(--reveal-edge) 0 auto; z-index: 1;
  height: 2px; background: linear-gradient(90deg, var(--line), #789364, var(--line));
  box-shadow: 0 4px 12px #0a0c11a6;
}
.opening-spread { padding-block: clamp(52px, 7vw, 94px) var(--opening-bottom); }
.home-page .hero { padding: 0; text-align: center; }
.home-page .hero .eyebrow {
  padding: 0; border: 0; gap: 9px; color: #c4ccca;
  font: 550 .82rem/1.4 var(--display); letter-spacing: .015em;
}
.home-page .hero .signal { box-shadow: 0 0 10px #bef26460; }
.home-page .hero h1 {
  margin: 20px auto 0; font-size: clamp(36px, 6.6vw, 88px);
  font-weight: 650; line-height: 1.02; letter-spacing: -.052em;
  text-wrap: balance; color: #f4f6ef;
}
.home-page .hero h1 em { color: #d0f398; white-space: nowrap; }
.home-page .hero .intro {
  max-width: 53ch; margin: 21px auto 0; color: #bcc5ce;
  font-size: clamp(15px, 1.55vw, 17px); line-height: 1.6;
  text-wrap: balance;
}
.home-page .hero-actions { margin-top: 25px; }
.home-page .hero-actions .button { min-height: 48px; padding-inline: 19px; border-radius: 8px; font-weight: 650; }
.hero-trial-note { margin-top: 12px; color: #a8b4c5; font-size: 13px; }
.cover-art {
  position: relative; isolation: isolate; height: var(--comic-height);
  max-width: 1020px; margin: clamp(28px, 4vw, 50px) auto 0;
  overflow: clip;
  view-timeline: --comic-stack block;
}
.cover-stack { position: absolute; inset: 0; }
.cover-mobile { display: none; }
@media (max-width: 600px) {
  .home-page .cover-stack { display: none; }
  .cover-mobile { display: block; position: absolute; inset: 0; }
  .cover-mobile img { width: 100%; height: 100%; object-fit: contain; }
}
.cover-panel {
  position: absolute; inset: 6% auto auto 50%; height: 97%;
  padding: 2px; border: 1px solid #bac8b579;
  border-radius: clamp(6px, 1vw, 12px); background: #e1e6dc;
  box-shadow: 0 14px 32px #070a0ccc;
  transform: translateX(calc(-50% + var(--fan-offset))) translateY(3%) rotate(var(--fan-angle));
}
.cover-panel-manhwa {
  --fan-offset: calc(var(--comic-height) * -.55); --fan-angle: -4deg;
  --stack-offset: -12%; --stack-angle: -4deg;
}
.cover-panel-manga {
  z-index: 1; inset-block-start: 1%; height: 106%;
  transform: translateX(-50%); border-color: #f2f6ef;
}
.cover-panel-manhua {
  --fan-offset: calc(var(--comic-height) * .60); --fan-angle: 4deg;
  --stack-offset: 10%; --stack-angle: 4deg;
}
.cover-panel img { display: block; width: auto; height: 100%; border-radius: 3px; }
.cover-panel picture { display: block; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .cover-stack { animation: comic-entrance .55s ease-out both; }
  @keyframes comic-entrance {
    from { transform: translateY(28px); opacity: .8; }
  }
  @supports (animation-range: exit 0% exit 100%) {
    .cover-panel:is(.cover-panel-manhwa, .cover-panel-manhua) {
      animation: comic-fan-close 1s ease-in-out both;
      animation-timeline: --comic-stack;
      animation-range: exit 0% exit 100%;
    }
    .cover-panel-manga {
      animation: comic-page-close 1s ease-in-out both;
      animation-timeline: --comic-stack;
      animation-range: exit 0% exit 100%;
    }
    @keyframes comic-fan-close {
      to {
        transform: translateX(calc(-50% + var(--stack-offset))) translateY(116%) rotate(var(--stack-angle)) scale(.94);
      }
    }
    @keyframes comic-page-close {
      to { transform: translateX(-50%) translateY(102%); }
    }
  }
}
.comic-player {
  --sheet-height: clamp(460px, 68svh, 620px);
  min-width: 0; padding: 0;
  border: 1px solid #2A303E; border-radius: 6px;
  background: #11131A; overflow: hidden;
}
.demo-workbench .comic-player .comic-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 16px; padding: 0 14px; margin: 0;
  background: #161922; border-bottom: 1px solid #2A303E;
}
.demo-workbench .comic-player .comic-formats {
  display: flex; align-items: stretch; gap: 2px; width: auto;
}
.demo-workbench .comic-player .comic-formats label {
  min-height: 44px; padding: 0 12px; gap: 7px; border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; background: transparent; color: #94A3B8; font-size: 13px;
}
.demo-workbench .comic-player .comic-formats label:hover { color: #F8FAFC; background: transparent; }
.demo-workbench .comic-player .comic-formats label:has(:checked) {
  border-bottom-color: var(--acid); background: transparent; color: #F8FAFC;
}
.demo-workbench .comic-player .comic-formats label:has(:checked) em { color: var(--acid); }
.demo-workbench .comic-player .comic-format-logo { width: 17px; height: 17px; border-radius: 50%; }
.demo-workbench .comic-player .comic-views-wrap {
  display: flex; align-items: center; gap: 8px; padding-block: 6px;
}
.demo-workbench .comic-player .comic-views {
  display: inline-grid; grid-template-columns: repeat(3, auto);
  padding: 2px; border: 1px solid #2A303E; border-radius: 4px; gap: 2px; background: #0B0D12;
}
.demo-workbench .comic-player .comic-views label {
  min-height: 28px; padding: 4px 10px; border-radius: 3px;
  border: 0; background: transparent; color: #94A3B8; font-size: 12px; font-weight: 600;
}
.demo-workbench .comic-player .comic-views label:hover { color: #F8FAFC; }
.demo-workbench .comic-player .comic-views label:has(:checked) {
  background: #232B1D; color: var(--acid);
}
.demo-workbench .comic-player .comic-expand-btn {
  position: static; width: 32px; height: 32px; flex: none;
  display: grid; place-items: center; border-radius: 4px;
  border: 1px solid #2A303E; background: #0B0D12; color: #CBD5E1; cursor: pointer;
}
.demo-workbench .comic-player .comic-expand-btn:hover { border-color: var(--acid); color: var(--acid); }
.demo-workbench .comic-player .comic-frame { border: 0; border-radius: 0; box-shadow: none; }
.demo-workbench .comic-player .comic-viewport {
  display: grid; place-items: center;
  padding: 18px 16px; overflow: visible; background: #0B0D12;
}
.demo-workbench .comic-player .comic-viewport::before { content: none; }
.demo-workbench .comic-player .comic-art {
  width: min(100%, 540px);
  margin-inline: auto; border: 1px solid #2A303E; box-shadow: none;
}
.demo-workbench .comic-player [data-comic-format="manhua"] { width: min(100%, 600px); }
.demo-workbench .comic-player .comic-caption {
  margin: 0; padding: 10px 14px; border-top: 1px solid #2A303E; background: #11131A;
  text-align: left; color: #94A3B8; font-size: 12px; line-height: 1.4;
}
.demo-workbench { width: min(860px, calc(100% - 32px)); padding-bottom: 0; }
.demo-workbench .demo-header-row { margin-bottom: 16px; }
@media (max-width: 880px) {
  .comic-player { --sheet-height: min(127vw, 530px); }
}
@media (max-width: 700px) {
  .demo-workbench .comic-player .comic-controls { padding: 0 10px; }
  .demo-workbench .comic-player .comic-views-wrap { width: 100%; justify-content: space-between; padding-top: 0; }
}
@media (max-width: 500px) {
  .home-page .hero h1 { font-size: clamp(32px, 9.2vw, 46px); }
  .home-page .hero .eyebrow { font-size: .72rem; }
  .home-page .hero-actions .button { padding-inline: 13px; font-size: 13px; }
  .cover-panel-manhwa { --fan-offset: calc(var(--comic-height) * -.51); }
  .cover-panel-manhua { --fan-offset: calc(var(--comic-height) * .54); }
  .demo-workbench .comic-player .comic-format-logo { width: 15px; height: 15px; }
  .demo-workbench .comic-player .comic-formats label { padding: 0 8px; font-size: 11.5px; gap: 4px; }
  .demo-workbench .comic-player .comic-formats label em { font-size: 9.5px; }
  .demo-workbench .comic-player .comic-views label { padding: 4px 7px; font-size: 11px; }
  .demo-workbench .comic-player .comic-viewport { padding: 10px; }
}
.button { border-radius: 5px; }
.button:hover { background: #D4F98A; border-color: #D4F98A; }
.button-quiet { background: transparent; border-color: #566072; }
.button-quiet:hover { background: var(--surface); color: var(--text); border-color: var(--muted); }
.install-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.button-small .install-icon { width: 16px; height: 16px; }
.button.install-chrome { background: #c5ddff; border-color: #c5ddff; color: #102549; }
.button.install-chrome:hover { background: #e0edff; border-color: #e0edff; }
.button.install-chrome:focus-visible { outline-color: #c5ddff; }
.demo-section { margin: 0; scroll-margin-top: 10px; }
.reader { padding: 0; border-color: #414a5b; border-radius: 7px 7px 0 0; background: #151821; box-shadow: none; }
.reader-bar { grid-template-columns: 1fr auto; padding-inline: 15px; gap: 8px; min-height: 35px; }
.reader-title { color: var(--text); }
.panel { aspect-ratio: 2.75; border: 0; border-block: 1px solid #4d576b; }
.panel > img { object-position: 50% 41%; }
.bubble { width: clamp(87px, 14%, 157px); min-height: clamp(55px, 7vw, 89px); font-size: clamp(12px, 1.55vw, 20px); }
.bubble-first { left: 18%; top: 25%; }
.bubble-second { right: 15%; bottom: 19%; }
.divider { box-shadow: none; }
.divider > span { border: 2px solid #11131a; }
.reader-caption { min-height: 56px; padding: 7px 15px; }
.demo-views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 7px; background: #0b0d12; }
.demo-views button {
  padding: 6px 11px; border: 1px solid transparent; border-radius: 5px;
  color: #b7c2d2; background: transparent; font: 700 13px/1.3 "DM Sans", sans-serif; cursor: pointer;
}
.demo-views button:hover { color: var(--text); }
.demo-views button[aria-pressed="true"] { border-color: #596e3e; background: #26331b; color: var(--acid); }

.content-section h2 { font-size: clamp(43px, 6vw, 77px); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: auto minmax(210px, 0.95fr) minmax(0, 1.35fr);
  align-items: center; gap: clamp(16px, 3vw, 34px);
  padding: clamp(18px, 2.5vw, 28px) 0 clamp(18px, 2.5vw, 28px) clamp(14px, 2vw, 22px);
  border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--fmt-accent, var(--line));
  border-radius: 0; background: transparent;
}
.feature:first-child { padding-left: clamp(14px, 2vw, 22px); }
.feature + .feature { border-left: 3px solid var(--fmt-accent, var(--line)); }
.format-manga { --fmt-accent: #ed6565; }
.format-manhwa { --fmt-accent: #42b8f5; }
.format-manhua { --fmt-accent: #e5a93c; }
.feature-heading { min-width: 0; }
.format-kicker {
  display: block; margin-bottom: 5px;
  font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .1em; color: var(--fmt-accent, var(--muted));
}
.feature h3, .setup-grid h3 { margin: 0; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.15; }
.feature p { max-width: 48ch; margin: 0; }
.feature-art { display: flex; align-items: center; margin-bottom: 0; gap: 4px; color: var(--acid); }
.feature-art-dialogue span { width: 27px; height: 18px; border: 1px solid currentColor; border-radius: 51% 48% 41% 16%; transform: translateY(-4px); }
.feature-art-dialogue span + span { background: var(--acid); transform: translate(-9px, 4px) scaleX(-1); }
.feature-art-languages span { min-width: 27px; padding: 2px 5px; border: 1px solid #728250; border-radius: 4px; text-align: center; font-weight: 750; }
.feature-art-local img { display: block; }
.pricing-section {
  background: linear-gradient(90deg, #0b0d12 32%, #0b0d1259 100%),
    url("./assets/night-city.svg") right 0 top -27px / 780px auto no-repeat, #0b0d12;
}
.pricing-section .eyebrow { border-color: var(--line); }
.pricing-grid { gap: 9px; }
.price-card { border-radius: 6px; }
.price-card-featured { border-color: #556a35; background: #181e18; box-shadow: none; }
.setup-section { background: var(--ground); }
.setup-grid li { border-color: var(--line); }
.setup-grid li::before { display: inline-block; margin-bottom: 8px; }
.setup-intro { margin: 0 0 22px; color: var(--muted); }
.setup-grid a { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.download {
  border-color: #556a35;
  background: linear-gradient(90deg, #181e18 38%, #181e18b5),
    url("./assets/night-city.svg") right 0 center / 570px auto no-repeat, #181e18;
}
.footer-meta { flex-wrap: wrap; }
.wrap.legal-page { width: min(78ch, calc(100% - 40px)); }
.install-guide h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.05; }
.install-guide h2 { margin: 34px 0 10px; font-size: clamp(23px, 3vw, 31px); }
.install-guide p { margin-block: 12px; line-height: 1.65; }
.install-guide p a { text-decoration: underline; text-underline-offset: 3px; }
.install-guide li .inline-link { display: inline-block; min-height: 28px; }
.install-guide .install-actions { margin-top: 18px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(52px, 11.5vw, 87px); text-wrap: initial; }
  .panel { aspect-ratio: 1.65; }
  .bubble-first { left: 8%; top: 28%; }
  .bubble-second { right: 8%; bottom: 15%; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; padding-block: 16px; }
}
@media (max-width: 680px) {
  .header-content nav { gap: clamp(13px, 4vw, 36px); }
  .feature { grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; padding-block: 18px; }
  .feature p { grid-column: 2; }
  .feature-art-badge { grid-row: 1 / span 2; align-self: start; }
  .feature-art-badge img { width: 76px; height: 76px; }
  .reader-caption { grid-template-columns: 1fr; justify-items: start; gap: 6px; padding-inline: 8px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: clamp(43px, 13vw, 53px); }
  .reader-bar { padding-inline: 8px; }
}

.hero h1 { font-size: clamp(52px, 7.2vw, 106px); text-wrap: balance; }
.comic-demo { padding-bottom: clamp(22px, 3vw, 38px); }
.demo-header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.comic-demo > h2, .demo-header-row h2 { margin: 0; font-size: clamp(28px, 3.6vw, 42px); line-height: 1; }
.demo-sub { margin: 0; color: var(--muted); font-size: 14px; }
.comic-comparison:not(.demo-workbench .comic-comparison) {
  display: grid; grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  grid-template-areas: "comic controls";
  align-items: start; gap: clamp(18px, 3vw, 34px); padding: clamp(14px, 2vw, 22px);
  border: 1px solid #353e50; border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 24, 33, .92) 0%, rgba(13, 15, 21, .96) 100%);
}
.comic-source { grid-area: auto; margin: 0; min-width: 0; width: 100%; }
.comic-comparison:not(.demo-workbench .comic-comparison) .comic-source { grid-area: comic; }
.comic-frame {
  position: relative;
  width: 100%; border: 2px solid #4c5f32; border-radius: 6px; background: #0b0d12; overflow: hidden;
  box-shadow: 10px 10px 0 #182115, 0 22px 48px rgba(0, 0, 0, .6);
  transition: transform .2s ease;
}
.comic-expand-btn {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; border-radius: 6px;
  border: 1px solid #4c5f32; background: rgba(11, 13, 18, .88); color: var(--acid);
  cursor: pointer; backdrop-filter: blur(4px);
}
.comic-expand-btn:hover { background: #222e1b; border-color: var(--acid); }
.comic-lightbox {
  max-width: min(94vw, 820px); width: 100%; max-height: 92vh;
  margin: auto; padding: 0; border: 1px solid #4c5f32; border-radius: 8px;
  background: #0b0d12; color: var(--text); overflow: hidden;
}
.comic-lightbox::backdrop { background: rgba(5, 7, 11, .84); backdrop-filter: blur(4px); }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #11141c;
}
.lightbox-views { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.lightbox-views button, .lightbox-close {
  padding: 6px 12px; border: 1px solid #353f52; border-radius: 5px;
  background: #141822; color: #c9d4df; font: 700 13px/1.2 "DM Sans", sans-serif; cursor: pointer;
}
.lightbox-views button[aria-pressed="true"] { border-color: #8aa858; background: #222e1b; color: var(--acid); }
.lightbox-close:hover, .lightbox-views button:hover { border-color: var(--acid); }
.lightbox-stage { max-height: calc(92vh - 56px); overflow-y: auto; padding: 14px; }
.lightbox-stage .comic-art { display: block !important; width: 100%; }
.lightbox-stage [data-comic-text] { display: none; }
.lightbox-stage[data-view="original"] [data-comic-text="original"],
.lightbox-stage[data-view="quick"] [data-comic-text="quick"],
.lightbox-stage[data-view="context"] [data-comic-text="context"] { display: block; }
.comic-frame-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px; border-bottom: 1px solid #283040; background: #11141c;
}
.comic-frame-title {
  font: 700 10.5px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .09em; color: var(--acid);
}
.comic-caption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.comic-viewport { max-height: none; overflow: visible; width: 100%; }
.comic-art { position: relative; container-type: inline-size; contain: layout; width: 100%; height: auto; }
.comic-art > img { display: block; width: 100%; height: auto; border-radius: 0; }
.comic-source figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.comic-source a { text-decoration: underline; text-underline-offset: 2px; }
.comic-source [data-comic-format], .comic-controls [data-comic-format] { display: none; }
.comic-comparison:has(input[name="comic-format"][value="manga"]:checked) [data-comic-format="manga"],
.comic-comparison:has(input[name="comic-format"][value="manhwa"]:checked) [data-comic-format="manhwa"],
.comic-comparison:has(input[name="comic-format"][value="manhua"]:checked) [data-comic-format="manhua"] { display: block; }
.comic-comparison:has(input[name="comic-format"][value="manga"]:checked) .demo-callout[data-comic-format="manga"],
.comic-comparison:has(input[name="comic-format"][value="manhwa"]:checked) .demo-callout[data-comic-format="manhwa"],
.comic-comparison:has(input[name="comic-format"][value="manhua"]:checked) .demo-callout[data-comic-format="manhua"] { display: grid; }
.comic-lettering [data-comic-text] { display: none; }
.comic-comparison:has(input[value="original"]:checked) [data-comic-text="original"],
.comic-comparison:has(input[value="quick"]:checked) [data-comic-text="quick"],
.comic-comparison:has(input[value="context"]:checked) [data-comic-text="context"] { display: block; }
.comic-lettering [data-comic-text]:not(.sr-only) {
  position: absolute; inset: 0; pointer-events: none;
}
.comic-bubble {
  position: absolute; display: flex; align-items: center; justify-content: center;
  contain: layout;
  padding: 0.22cqi 0.3cqi; border-radius: 3px;
  background: var(--bg, #fcfcfc); color: var(--fg, #171717);
  text-align: center; font-weight: 760;
  font-size: clamp(8.5px, 2cqi, 15px); line-height: 1.06;
  overflow: hidden; overflow-wrap: normal; word-break: normal;
}
.comic-lettering mark { padding-inline: .08em; background: #E5F6C8; color: inherit; box-decoration-break: clone; }
.comic-lettering [data-comic-text="quick"] mark { background: #F9EDCA; }
.comic-controls { grid-area: controls; min-width: 0; display: grid; gap: 10px; }
.comic-formats { min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.comic-formats legend, .comic-views legend { padding: 0 0 7px; font: 700 11.5px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.comic-formats label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0;
  padding: 9px 10px; border: 1px solid #353f52; border-radius: 5px; background: #11131a; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #c9d4df; white-space: nowrap;
}
.comic-formats label em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.comic-format-logo { width: 20px; height: 20px; flex: none; object-fit: contain; display: block; }
.comic-formats label:hover { border-color: #8e9cae; }
.comic-formats label:has(:checked) { border-color: #8aa858; background: #222e1b; color: var(--acid); }
.comic-formats label:has(:checked) em { color: #b7d77a; }
.comic-formats label:has(:focus-visible) { outline: 2px solid var(--acid); outline-offset: 2px; }
.comic-formats input { position: absolute; opacity: 0; pointer-events: none; }
.comic-views { min-width: 0; margin: 0; padding: 3px; border: 1px solid #2c3444; border-radius: 6px; background: #0b0d12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.comic-views label {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 700; color: #b7c2d2; white-space: nowrap;
}
.comic-views label:hover { color: var(--text); }
.comic-views label:has(:checked) { border-color: #556a35; background: #222e1b; color: var(--acid); }
.comic-views label:has(:focus-visible) { outline: 2px solid var(--acid); outline-offset: 2px; }
.comic-views input { position: absolute; opacity: 0; pointer-events: none; }
.feature-art-badge { display: flex; align-items: center; justify-content: center; }
.feature-art-badge img { width: 104px; height: 104px; object-fit: contain; display: block; }
@media (max-width: 780px) {
  .comic-comparison:not(.demo-workbench .comic-comparison) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "comic"; }
  .comic-source { justify-items: stretch; }
  .comic-art { margin-inline: auto; height: auto; width: 100%; }
  .comic-art > img { width: 100%; height: auto; }
}
.demo-callout {
  gap: 8px; padding: 14px 16px; border: 1px solid #2c3444; border-radius: 6px; background: #0e1118;
}
.callout-kicker {
  margin: 0 0 2px; font: 700 10.5px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em; color: var(--muted);
}
.callout-row {
  display: grid; gap: 3px; padding: 9px 11px; border-radius: 5px;
  background: #141822; border-left: 3px solid #353f52;
}
.callout-row span { font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.callout-row p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.callout-fast { border-left-color: #d9a441; }
.callout-fast p em { font-style: normal; font-size: 12px; color: #b7c2d2; }
.callout-quality { border-left-color: var(--acid); background: #182115; }
.callout-quality span { color: var(--acid); }
.demo-footnote { margin: 0; font-size: 12.5px; color: var(--muted); }
.demo-notes { margin-top: 10px; color: var(--muted); font-size: 13px; }
.demo-notes summary { width: fit-content; cursor: pointer; }
.demo-notes p { margin: 5px 0 0; max-width: 70ch; line-height: 1.5; }
.translation-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.translation-mode { padding: clamp(12px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: 5px; background: #11131a; }
.quality-result { border-color: #556a35; background: #1b231a; }
.quality-result h3 { color: var(--acid); }
.translation-mode p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.translation-mode h3 { font-size: 24px; }
.translation-mode .mode-label { margin-block: 3px 10px; color: #c9d4df; font-size: 13px; font-weight: 700; }
.translation-mode .mode-label:last-child { margin-block: 14px 0; }
.language-section { padding-top: 0; }
.reader-questions details { padding-block: 14px; border-top: 1px solid var(--line); }
.reader-questions summary { font-weight: 750; cursor: pointer; }
.reader-questions details p { margin-top: 9px; max-width: 75ch; color: var(--muted); line-height: 1.6; }
@media (max-width: 780px) {
  .hero h1 { font-size: clamp(42px, 8.9vw, 72px); }
  .comic-comparison { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "comic"; }
  .comic-views { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comic-views label { justify-content: center; text-align: center; padding-inline: 4px; }
  .comic-views input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
}
@media (max-width: 500px) {
  .comic-views strong { font-size: 13px; }
  .comic-views small { font-size: 10.5px; }
  .header-content nav { gap: 5px clamp(9px, 3vw, 15px); flex-wrap: wrap; }
}
.site-footer-band { border-top: 1px solid var(--line); overflow: hidden; }
.download { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 36px; }
.download-copy { min-width: 0; }
.download-kicker {
  display: inline-block; margin-bottom: 8px; padding: 3px 8px;
  border: 1px solid #4c5f32; border-radius: 4px; background: #141c13;
  font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em; color: var(--acid);
}
.download-free-line { margin: 0; color: var(--text); font-size: 15px; }
.download-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; flex: none; }
.os-icon { flex: none; display: inline-block; vertical-align: middle; }
.coming-soon-os {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  font-size: 12px; line-height: 1.2; color: var(--muted); white-space: nowrap;
}
.download-pro-note { margin-top: 8px; max-width: 62ch; font-size: 13.5px; color: var(--muted); }
.download-pro-note a { color: var(--acid); font-weight: 700; text-decoration: none; }
.download-pro-note a:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .download { grid-template-columns: minmax(0, 1fr); }
  .download-actions { align-items: flex-start; }
}
.sysreqs { margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: #11131a; overflow: hidden; }
.sysreqs-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; cursor: pointer; list-style: none; font-size: 13px; color: var(--muted);
}
.sysreqs-summary::-webkit-details-marker { display: none; }
.sysreqs-summary-text strong { color: var(--text); font-weight: 600; }
.sysreqs-toggle {
  flex: none; font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .06em; color: var(--acid);
}
.sysreqs-toggle::after { content: " +"; }
.sysreqs-drawer[open] .sysreqs-toggle::after { content: " −"; }
.sysreqs-drawer[open] .sysreqs-summary { border-bottom: 1px solid rgba(255,255,255,.06); }
.sysreq-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.35; }
.sysreq-table th, .sysreq-table td { padding: 7px 12px; text-align: left; border-top: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.sysreq-table thead th { border-top: 0; font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #0d0f15; padding-block: 8px; }
.sysreq-table tbody th { width: 84px; font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sysreq-table td { color: var(--text); }
.sysreq-rec-col { background: rgba(216, 255, 114, .03); border-left: 1px solid rgba(255,255,255,.06); }
.sysreq-table thead .sysreq-rec-col { color: var(--acid); }
@media (max-width: 640px) {
  .sysreq-table thead { display: none; }
  .sysreq-table tr { display: grid; grid-template-columns: 76px 1fr; border-top: 1px solid rgba(255,255,255,.06); }
  .sysreq-table tr:first-child { border-top: 0; }
  .sysreq-table tbody th { grid-row: 1 / span 2; border-top: 0; align-self: center; }
  .sysreq-table td { border-top: 0; padding: 5px 10px; }
  .sysreq-table td + td { border-left: 0; padding-top: 2px; color: #d7e6b0; }
  .sysreq-table td:not(.sysreq-rec-col)::before { content: "Min: "; color: var(--muted); font-size: 11px; }
  .sysreq-table td.sysreq-rec-col::before { content: "Rec: "; color: var(--acid); font-size: 11px; }
}
.welcome-hero-band {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, #0b0d12f2 0%, #0b0d12cc 46%, #0b0d1259 100%),
    linear-gradient(0deg, #0b0d12 0%, #0b0d1200 60%),
    url("./assets/night-train-cover.webp") 50% 34% / cover no-repeat, #0b0d12;
}
.welcome-hero-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; pointer-events: none;
  background: radial-gradient(circle, #788c6e 1px, transparent 1.4px) center / 8px 8px;
}
.welcome-hero { padding-block: clamp(36px, 5vw, 64px); }
.welcome-hero .hero-copy { max-width: 54ch; color: #cbd5e1; font-size: 16px; line-height: 1.55; margin: 12px 0 22px; }
.welcome-steps { display: grid; gap: 20px; }
.guide-step {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 32px);
  align-items: center; padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--line); border-radius: 6px; background: #11131a;
}
.guide-num {
  display: inline-block; margin-bottom: 8px;
  font: 700 11px/1.2 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em; color: var(--acid);
}
.guide-copy h3 { margin: 0 0 8px; font-size: clamp(20px, 2.2vw, 24px); }
.guide-copy p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.guide-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text); font-size: 14px; line-height: 1.5; }
.guide-list code { padding: 1px 5px; border-radius: 3px; background: #181c26; color: var(--acid); font-size: 13px; }
.guide-shot { margin: 0; }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.guide-shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.guide-shot-placeholder {
  display: grid; place-content: center; gap: 6px; min-height: 210px; padding: 20px;
  border: 1px dashed #343f54; border-radius: 6px; background: #0c0e14; text-align: center;
}
.guide-shot-placeholder span { font-size: 14px; font-weight: 600; color: var(--text); }
.guide-shot-placeholder small { font-size: 12.5px; color: var(--muted); }
.welcome-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inline-link { color: var(--acid); font-weight: 700; text-decoration: none; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 780px) {
  .guide-step, .welcome-cards { grid-template-columns: minmax(0, 1fr); }
}
.feature-heading h3 a:hover { color: var(--acid); text-decoration: underline; text-underline-offset: 3px; }
.subpage-hero { padding-block: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 32px); }
.subpage-hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 26px; }
.subpage-badge { width: 88px; height: 88px; object-fit: contain; display: block; }
.engine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.engine-card {
  display: flex; flex-direction: column; padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line); border-radius: 6px; background: #11131a;
}
.engine-featured { border-color: #556a35; background: linear-gradient(180deg, #1a2318 0%, #131814 100%); }
.engine-pill {
  align-self: flex-start; margin-bottom: 12px; padding: 3px 8px;
  border: 1px solid #353f52; border-radius: 4px; background: #0d0f15;
  font: 700 10.5px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .07em; color: #b7c2d2;
}
.engine-featured .engine-pill { border-color: #556a35; background: #1f2b1b; color: var(--acid); }
.engine-card h3 { font-size: 23px; margin: 0 0 8px; }
.engine-featured h3 { color: var(--acid); }
.engine-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 16px; }
.engine-specs { margin: auto 0 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; display: grid; gap: 6px; }
.engine-specs > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.engine-specs dt { color: var(--muted); }
.engine-specs dd { margin: 0; font-weight: 700; color: var(--text); text-align: right; }
@media (max-width: 820px) { .engine-grid { grid-template-columns: minmax(0, 1fr); } }
.subpage-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: .94; margin-top: 6px; text-transform: uppercase; letter-spacing: -.025em; }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #11131a; font-size: 14px; }
.compare-table th, .compare-table td { padding: 11px 14px; text-align: left; border-top: 1px solid rgba(255,255,255,.07); }
.compare-table thead th { border-top: 0; background: #0d0f15; font: 700 11.5px/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare-table thead th.col-ms { color: var(--acid); }
.compare-table td.col-ms { background: rgba(216, 255, 114, .03); color: var(--text); font-weight: 600; }
.compare-table td:last-child { color: var(--muted); }
.plan-comparison { table-layout: fixed; }
.plan-comparison thead th:first-child { width: 42%; }
.plan-comparison tbody th { font-weight: 650; }
.plan-comparison tbody small { display: block; margin-top: 3px; color: var(--muted); font-size: .86em; font-weight: 400; }
.plan-comparison td.col-ms { color: var(--text); }
@media (max-width: 500px) {
  .plan-comparison { font-size: 13px; }
  .plan-comparison :is(th, td) { padding-inline: 8px; overflow-wrap: anywhere; }
}
@media (max-width: 360px) {
  .compare-table :is(th, td) { padding-inline: 8px; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  .subpage-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .subpage-badge { width: 68px; height: 68px; }
}

.home-page h2, .home-page .download h3 { font-weight: 650; letter-spacing: -.042em; }
.home-page .content-section h2 { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.1; }
.home-page .demo-header-row h2 { font-size: clamp(26px, 3.4vw, 41px); }
.home-page .price-amount { font-weight: 650; letter-spacing: -.055em; }

/* Translator landing pages keep the original subpage layout with comic art behind it. */
.translator-page .subpage-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.translator-page .hero-info {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-left: calc(88px + 26px);
}
.translator-page .hero-info .intro {
  max-width: 64ch; margin: 18px 0 0; text-align: left;
}
.translator-page .hero-actions {
  justify-content: flex-start; margin-top: 20px;
}
.translator-page .subpage-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0 auto 0 50%; width: 100vw; transform: translateX(-50%); pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(216,255,114,.12) .8px, transparent 1.2px),
    linear-gradient(90deg, rgba(17,19,26,.96) 0%, rgba(17,19,26,.86) 36%, rgba(17,19,26,.84) 72%, rgba(17,19,26,.84) 100%),
    linear-gradient(0deg, #11131a 0%, rgba(17,19,26,.08) 65%),
    var(--hero-art);
  background-size: 9px 9px, auto, auto, cover;
  background-position: left top, center, center, right 42%;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}
.translator-page[data-translator="manga"],
.translator-page[data-translator="all"] { --hero-art: url("./assets/demo-page-cover-320.webp"); }
.translator-page[data-translator="manhwa"] { --hero-art: url("./assets/demo-manhwa-cover-320.webp"); }
.translator-page[data-translator="manhua"] { --hero-art: url("./assets/demo-manhua-cover-320.webp"); }

.translator-page .demo-workbench { width: min(860px, calc(100% - 32px)); }
.translator-page .demo-workbench .demo-header-row { margin-bottom: 16px; }
.translator-page .comic-demo > .comic-comparison {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  border: 1px solid #35403c; border-radius: 18px;
  background: linear-gradient(145deg, #18201d, #11141b 72%);
  box-shadow: 0 20px 60px #080a0ec0;
}
.translator-page .comic-controls {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 10px 12px; border-bottom: 1px solid var(--line); background: #15191b;
}
.translator-page .comic-controls .comic-views legend {
  padding: 0 0 7px; color: var(--muted); font: 700 11px/1.2 var(--mono);
  letter-spacing: .06em; text-transform: uppercase;
}
.translator-page .comic-controls .comic-views {
  display: inline-grid; grid-template-columns: repeat(3, max-content);
  gap: 3px; margin: 0; padding: 3px; border: 1px solid var(--line);
  border-radius: 9px; background: #0d1015;
}
.translator-page .comic-controls .comic-views label {
  min-height: 36px; padding: 5px 12px; border: 0; border-radius: 6px;
  color: #aab6c3; font-size: 13px; white-space: nowrap;
}
.translator-page .comic-controls .comic-views label:has(:checked) {
  background: #26321e; color: var(--acid);
}
.translator-page .comic-controls .comic-views label span { display: inline-flex; gap: 5px; align-items: baseline; }
.translator-page .comic-controls .comic-views label strong { font-size: 13px; }
.translator-page .comic-controls .comic-views label small { color: inherit; opacity: .76; font-size: 11px; }
.translator-page .comic-source { width: 100%; padding: 14px; }
.translator-page .comic-frame {
  max-width: 620px; margin-inline: auto; border-color: #35403c; border-radius: 10px;
  box-shadow: 0 12px 34px #080a0e80;
}
.translator-page .comic-frame-bar { min-height: 36px; }
.translator-page .comic-viewport { max-width: 100%; margin-inline: auto; }
.translator-page .comic-art { max-width: 100%; }
.translator-page .comic-source figcaption {
  max-width: 620px; margin: 9px auto 0; padding-inline: 2px;
}
@media (max-width: 600px) {
  .translator-page .subpage-hero { width: calc(100% - 32px); padding-top: 38px; }
  .translator-page .hero-info { margin-left: 0; }
  .translator-page .subpage-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .translator-page .comic-demo > .comic-comparison { border-radius: 13px; }
  .translator-page .comic-controls { justify-content: stretch; padding: 9px; }
  .translator-page .comic-controls .comic-views { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .translator-page .comic-controls .comic-views label { min-width: 0; padding-inline: 5px; white-space: normal; text-align: center; }
  .translator-page .comic-controls .comic-views label span { display: grid; gap: 1px; }
  .translator-page .comic-controls .comic-views label strong { font-size: 11.5px; }
  .translator-page .comic-controls .comic-views label small { font-size: 9px; }
  .translator-page .comic-source { padding: 9px; }
}


/* The homepage footer groups its links and keeps the comic texture quiet. */
.home-page .site-footer-home {
  position: relative; isolation: isolate; overflow: hidden;
  border-top: 1px solid #30333b; background: #0d0f14;
}
.home-page .site-footer-home::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(216,255,114,.13) .8px, transparent 1.2px) right top / 10px 10px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.home-page .footer-home-grid {
  display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 8vw, 110px); padding-block: 42px 34px;
}
.home-page .footer-home-brand .brand { font-size: 25px; }
.home-page .footer-home-brand p {
  margin: 15px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6;
}
.home-page .footer-ascii-art { padding-bottom: 24px; overflow: hidden; }
.home-page .footer-ascii-logo {
  display: block; width: max-content; max-width: 100%; margin: 0 auto; overflow: hidden;
  color: rgba(216,255,114,.38); font: 700 clamp(2px, .34vw, 3.6px)/1 var(--mono);
  letter-spacing: .025em; text-align: center; white-space: pre; user-select: none;
}.home-page .footer-home-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.home-page .footer-home-group { display: grid; align-content: start; justify-items: start; gap: 10px; }
.home-page .footer-home-group h2 {
  margin: 0 0 5px; color: var(--acid); font: 700 10px/1.2 var(--mono);
  letter-spacing: .1em; text-transform: uppercase;
}
.home-page .footer-home-group a {
  color: #c2c8d2; font-size: 13px; line-height: 1.35; text-decoration: none;
  transition: color .16s ease;
}
.home-page .footer-home-group a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.home-page .footer-home-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 15px 20px; border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8998; font-size: 12px;
}
.home-page .footer-home-bottom a { color: #cbd2dc; font-weight: 650; text-decoration: none; }
.home-page .footer-home-bottom a:hover { color: var(--acid); }
@media (max-width: 680px) {
  .home-page .footer-home-grid { grid-template-columns: minmax(0, 1fr); gap: 27px; padding-block: 30px 24px; }
  .home-page .footer-home-nav { gap: 20px; }
  .home-page .footer-home-bottom { align-items: flex-start; flex-direction: column; gap: 9px; }
}

.brand .brand-wordmark { color: var(--text, #f4f6f1); white-space: nowrap; }
