:root {
  color-scheme: dark;
  --paper: #101010;
  --panel: #171717;
  --raised: #222;
  --rule: #424242;
  --ink: #f0efec;
  --quiet: #b2b2ad;
  --accent: #ff754d;
  --film: #191919;
  --film-ink: #eee;
  --film-edge: #4b4b4b;
  --serif: ui-serif, "Iowan Old Style", "Songti SC", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  font: 100%/1.55 system-ui, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --paper: #f6f5f1;
    --panel: #efeee9;
    --raised: #e6e5de;
    --rule: #c2c1b9;
    --ink: #191918;
    --quiet: #575751;
    --accent: #ad3616;
  }
}
:lang(ja) { --serif: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif; }
:lang(zh-Hant) { --serif: ui-serif, "Songti TC", "PMingLiU", serif; }
:lang(ko) { --serif: ui-serif, "AppleMyungjo", "Batang", serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); overflow-wrap: break-word; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, select { color: inherit; font: inherit; cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 4; top: 4px; left: 4px; background: var(--paper); padding: .6rem; }
.wrap, .mast-inner, .footer { max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.masthead { border-bottom: 1px solid var(--rule); }
.mast-inner, .mast-inner nav, .brand, .languages { display: flex; align-items: center; }
.mast-inner { justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.4rem; font-weight: 650; letter-spacing: -.045em; }
.brand img { width: 36px; border-radius: 8px; }
.mast-inner nav { gap: clamp(12px, 3vw, 42px); }
nav a { font-size: .95rem; text-decoration: none; }
nav a[aria-current] { text-decoration: underline; }
.languages { position: relative; gap: 7px; }
.languages::after {
  content: ""; pointer-events: none; position: absolute; right: 2px; top: calc(50% - 3px);
  width: 5px; height: 5px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
select { appearance: none; background: transparent; border: 0; border-radius: 0; padding: .7rem 15px .7rem 0; font-size: .95rem; }
option { background: var(--paper); color: var(--ink); }
.globe { display: inline-block; position: relative; width: 17px; height: 17px; border: 1.5px solid; border-radius: 50%; }
.globe::before { content: ""; position: absolute; inset: 0 3px; border: 1px solid; border-radius: 50%; }
.globe::after { content: ""; position: absolute; inset: 47% 0 auto; border-top: 1px solid; }

.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); align-items: center; gap: 30px clamp(24px, 5vw, 75px); padding-block: clamp(36px, 6vw, 86px) 34px; }
.platform-line, .lightbox header, .lightbox figcaption, .frame-name, .strip-help, .source-language, .footer small {
  font-family: var(--mono); font-size: .83rem; letter-spacing: .035em;
}
.platform-line { display: flex; align-items: center; gap: .65rem; color: var(--quiet); }
.platform-line i { color: var(--accent); font-style: normal; }
.hero h1, .doc-head h1 { font: 500 clamp(3rem, 5.75vw, 5.8rem)/1.01 var(--serif); letter-spacing: -.047em; }
.hero h1 { margin: .22em 0 .36em; }
:lang(zh) h1, :lang(ko) h1, :lang(ja) h1 { letter-spacing: -.055em; line-height: 1.14; }
.intro { font-size: clamp(1.05rem, 1.4vw, 1.23rem); line-height: 1.6; color: var(--quiet); max-width: 43ch; }
.distribution { margin-top: 1.4rem; }
.beta-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.1rem;
  border-radius: 6px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600;
}
.beta-link:hover { background: var(--accent); color: var(--paper); }
.store { display: inline-block; padding: 11px; }
.store img { height: 44px; width: auto; }
.lightbox { min-width: 0; background: #181818; color: var(--film-ink); border: 1px solid var(--film-edge); box-shadow: 0 18px 32px -24px #000; }
.lightbox header, .lightbox figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .6rem 1rem; }
.lightbox header { border-bottom: 1px solid var(--film-edge); }
.lightbox h2 { display: flex; align-items: center; gap: 9px; font: inherit; font-weight: 600; }
.lightbox h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff7249; box-shadow: 0 0 8px #e85c3c8c; }
.lightbox figcaption { color: #bcbcb6; border-top: 1px solid var(--film-edge); }
.lightbox figcaption strong { color: #ff8c69; font-weight: 500; }
.proof-image { position: relative; background: #161616; }
.proof-image img { width: 100%; }
#grain { pointer-events: none; position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox h2::before { animation: safelight 960ms ease-out both; }
  @keyframes safelight { from { background: #48352e; box-shadow: none; } }
}
@media (prefers-reduced-motion: reduce) { #grain { display: none; } }

.strip-wrap { grid-column: 1 / -1; min-width: 0; }
.filmstrip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 5px;
  padding: 14px 8px; overflow-x: auto; overscroll-behavior-x: contain;
  background: repeating-linear-gradient(to right, #777 0 7px, transparent 7px 19px) 6px 4px / 100% 4px no-repeat,
              repeating-linear-gradient(to right, #777 0 7px, transparent 7px 19px) 6px calc(100% - 4px) / 100% 4px no-repeat, var(--film);
  border: 1px solid var(--film-edge); scrollbar-color: #888 var(--film); scrollbar-width: thin;
}
.frame { display: grid; grid-template-rows: auto 1fr; gap: 4px; align-content: start; padding: 3px; min-width: 0; background: none; color: var(--film-ink); border: 1px solid transparent; border-radius: 2px; }
.frame[aria-pressed="true"] { border-color: #ff855f; color: #ff996e; }
.frame:focus-visible { outline-color: white; outline-offset: 0; }
.frame img { width: 100%; }
.frame-name { display: block; font-size: .76rem; line-height: 1.3; text-align: left; overflow-wrap: anywhere; }
.frame-name b { font-weight: 500; opacity: .8; }
.strip-help { margin-top: .6rem; font-size: .82rem; color: var(--quiet); }
.chapter { border-top: 1px solid var(--rule); padding-block: clamp(32px, 5vw, 70px); }
.chapter > h2, .plans h2 { font: 500 clamp(2.1rem, 4vw, 3.7rem)/1.12 var(--serif); letter-spacing: -.035em; }
.tabs { display: flex; flex-wrap: wrap; gap: 3px 1rem; margin: 1.5rem 0 1.8rem; border-bottom: 1px solid var(--rule); }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: .55rem .1rem; color: var(--quiet); min-height: 44px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-color: currentColor; }
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 6vw, 84px); align-items: center; margin-top: 1rem; }
.feature h3 { font: 500 clamp(1.65rem, 3vw, 2.85rem)/1.15 var(--serif); letter-spacing: -.025em; }
.feature-copy p, .plans p { margin-top: .8rem; color: var(--quiet); max-width: 45ch; }
.device { background: #191919; width: fit-content; max-width: 100%; margin-inline: auto; border: 5px solid #292929; border-radius: 12px; box-shadow: 0 0 0 1px #626262; overflow: hidden; }
.device img { max-height: 370px; width: auto; object-fit: contain; margin-inline: auto; }
.screen.inspect .device { border-radius: 21px; }
.screen.export .device { border-radius: 4px; }
.screen figcaption { display: grid; gap: 2px; margin: 10px auto 0; text-align: center; color: var(--quiet); font-size: .91rem; }
.screen small { font-size: .8rem; }
.plans { display: grid; gap: 26px; grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr); }
table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: .97rem; }
th, td { padding: .7rem .65rem; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
thead { background: var(--panel); }
th { font-weight: 600; }
thead th:first-child { width: 24%; }
thead th:last-child { color: var(--accent); }
td { color: var(--quiet); }

.document { max-width: 860px; margin-inline: auto; padding-block: clamp(36px, 7vw, 96px); }
.doc-head { padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); overflow-wrap: anywhere; }
.doc-head .intro { margin-top: 1rem; max-width: 61ch; }
.doc-body { max-width: 70ch; }
.doc-body section { margin-top: 2.1rem; }
.doc-body h2 { margin-bottom: .55rem; font: 540 clamp(1.3rem, 2.3vw, 1.8rem)/1.25 var(--serif); }
.doc-body p { line-height: 1.72; }
.doc-body p + .email { display: inline-block; margin-top: .5rem; }
.doc-body .distribution { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: .9rem 0; font-weight: 580; }
.faq summary::marker { color: var(--accent); }
.faq details p { margin-bottom: 1.2rem; color: var(--quiet); }
.footer { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-block: 1.5rem 2rem; }
.site-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; }
.footer a { font-size: .94rem; }
.footer small { color: var(--quiet); }
@media (max-width: 850px) {
  .plans { grid-template-columns: 1fr; }
  .plans p { max-width: 67ch; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .mast-inner { min-height: 60px; }
  .hero, .feature { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 20px; }
  .hero h1 { max-width: 15ch; }
  .hero .distribution { margin-top: 1rem; }
  .filmstrip { grid-auto-columns: 95px; }
  .feature { gap: 20px; }
  .tabs { margin: 1rem 0; gap: 0 .8rem; }
  .plans { gap: 18px; }
  table { font-size: .91rem; }
  th, td { padding: .55rem .35rem; }
  .footer { align-items: flex-start; }
}
