:root {
  color-scheme: light dark;
  --bg: #f6f4ef;
  --surface-soft: #ede9e0;
  --panel: #ffffff;
  --text: #1f1c19;
  --muted: #5d5750;
  --border: #dcd6cb;
  --border-strong: #c8c0b2;
  --accent: #a9583b;
  --accent-strong: #8d4328;
  --on-accent: #ffffff;
  --ink-blue: #1d4ed8;
  --ink-blue-soft: rgba(29, 78, 216, 0.08);
  --mark: #fbe7c4;
  --shadow-sm: 0 1px 2px rgba(31, 28, 25, 0.05), 0 6px 18px rgba(31, 28, 25, 0.04);
  --shadow-frame: 0 18px 44px rgba(31, 28, 25, 0.14), 0 2px 8px rgba(31, 28, 25, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161513;
    --surface-soft: #22201d;
    --panel: #1f1d1a;
    --text: #eae6de;
    --muted: #a69f95;
    --border: #36332e;
    --border-strong: #4a453e;
    --accent: #d88d6c;
    --accent-strong: #e7a588;
    --on-accent: #161513;
    --ink-blue: #7ab0ff;
    --ink-blue-soft: rgba(122, 176, 255, 0.12);
    --mark: #5a4521;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.2);
    --shadow-frame: 0 20px 48px rgba(0, 0, 0, 0.48), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
img.logo { vertical-align: -6px; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--panel); padding: 8px 12px; color: var(--text); }
.skip:focus { left: 8px; top: 8px; z-index: 20; }

/* Header */
header.top {
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 24px; }
body.is-sub .wrap { max-width: 48rem; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 14px 0; }
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 26px; height: 26px; display: block; }
nav.main { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; }
nav.main a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
nav.langs { margin-left: auto; display: inline-flex; gap: 4px; font-size: 0.85rem; }
nav.langs a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
}
nav.langs a:hover { color: var(--text); background: var(--surface-soft); }
nav.langs a[aria-current] {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
  font-weight: 600;
}

main { padding: 38px 0 64px; }
[id], h2, h3 { scroll-margin-top: 24px; }
h1, h2, h3, .hero-tagline {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
body.is-sub h1 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 0.45em; }
body.is-sub h2 { font-size: 1.3rem; margin: 2em 0 0.5em; padding-top: 0.7em; border-top: 1px solid var(--border); }
h3 { font-size: 1.06rem; margin: 1.3em 0 0.35em; }
p, ul { margin: 0.7em 0; }
ul { padding-left: 1.3em; }
li { margin: 0.3em 0; }
.note {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 0 0 1.6em;
}
mark.todo { background: var(--mark); color: inherit; padding: 1px 5px; border-radius: 4px; }
.soon { color: var(--muted); font-size: 0.9em; }

/* Landing Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(240px, 0.82fr);
  gap: 32px 44px;
  align-items: center;
  padding: 8px 0 28px;
}
.hero-copy { min-width: 0; }
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.25rem, 4.2vw, 3.35rem);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 700;
}
.hero-tagline {
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  max-width: 34ch;
}
.hero-lead {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
}
.hero-subnote {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 48ch;
}
.hero-facts {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-facts li {
  margin: 0;
  padding-left: 14px;
  position: relative;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Video showcase frame */
.hero-media { display: flex; justify-content: center; }
.video-slot { margin: 0; text-align: center; max-width: 300px; width: 100%; }
.phone-frame {
  background: #141311;
  border-radius: 24px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-frame);
}
.phone-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 17px;
  background: #0d0c0b;
}
.video-slot figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Format specimen bar */
.formats-bar {
  margin: 10px 0 12px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.formats-bar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.formats-bar li {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Landing Bands */
.band { margin-top: 46px; }
.band h2 {
  font-size: 1.48rem;
  margin: 0 0 18px;
  padding-top: 0;
  border-top: 0;
}

/* Use cases 2x2 */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.usecase-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.usecase-card:first-child {
  border-left: 4px solid var(--ink-blue);
}
.usecase-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.usecase-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  line-height: 1.3;
  color: var(--text);
}
.usecase-card p {
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--muted);
  flex: 1;
}
.usecase-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Feature grid (What it opens) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.95rem;
  line-height: 1.58;
  box-shadow: var(--shadow-sm);
}
.feature-card strong { color: var(--text); }
.feature-card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, var(--ink-blue-soft), var(--panel) 42%);
  border-color: var(--border-strong);
}

/* Screenshots showcase */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.shot-gallery .shot { margin: 0; }
.shot-gallery .shot:first-child { grid-column: 1 / -1; }
.shot {
  margin: 1.2em 0;
  min-height: 9rem;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: var(--panel);
  padding: 16px;
}
.shot span { font-size: 0.8rem; }
.shot[data-real] {
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}
.shot[data-real] img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 7px;
  border: 1px solid var(--border);
}
.shot[data-real] figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Bottom 2-col band */
.bottom-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.panel-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.panel-card h2 {
  font-size: 1.22rem;
  margin: 0 0 12px;
}
.alt-download {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.alt-download h3 { margin: 0 0 6px; font-size: 0.98rem; }

/* CTA pills & buttons */
.cta { margin: 1em 0; }
.hero .cta {
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0.68em 1.25em;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero .cta a {
  padding: 0.4em 0.9em;
  margin: -0.25em -0.4em;
}
.cta a {
  display: inline-block;
  padding: 0.72em 1.35em;
  border-radius: 8px;
  background: var(--accent-strong);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.cta a:hover { background: var(--accent); }
.cta .soon {
  display: inline-block;
  padding: 0.22em 0.72em;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.84rem;
}

/* Footer */
footer.bottom {
  border-top: 1px solid var(--border);
  background: var(--panel);
  font-size: 0.88rem;
  color: var(--muted);
}
footer.bottom .wrap {
  padding-top: 20px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
footer.bottom a { color: var(--muted); }
footer.bottom a:hover { color: var(--text); }

/* Language chooser */
.chooser-wrap { max-width: 56rem; margin: 0 auto; padding: 48px 24px 64px; }
.chooser-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.chooser-hero h1 { margin: 0; font-size: 2.1rem; }
.chooser-sub { margin: 0 0 8px; color: var(--muted); font-size: 1.05rem; }
.chooser-tags { margin: 0 0 24px; font-family: ui-monospace, Consolas, monospace; font-size: 0.82rem; color: var(--accent-strong); }
.langchoose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 28px; }
.langchoose a {
  display: block;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.langchoose a:hover { border-color: var(--accent); transform: translateY(-2px); }
.langchoose strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.langchoose span { color: var(--muted); font-size: 0.9rem; }
.chooser-shot { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { justify-content: flex-start; }
  .usecase-grid, .feature-grid, .shot-gallery, .bottom-duo, .langchoose { grid-template-columns: 1fr; }
  .feature-card-wide, .shot-gallery .shot:first-child { grid-column: auto; }
}
@media (max-width: 520px) {
  .wrap, .chooser-wrap { padding-left: 16px; padding-right: 16px; }
  nav.main a, nav.langs a, footer.bottom a { min-height: 44px; display: inline-flex; align-items: center; padding: 6px 10px; }
  nav.langs { margin-left: 0; width: 100%; }
  .hero-media { width: 100%; justify-content: center; }
  .video-slot { max-width: 280px; }
  .pdf-spotlight-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* Scroll-driven archival hairline + Save-as-PDF Motion Centerpiece */
.scroll-rule {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink-blue), var(--accent-strong));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}
.pdf-spotlight {
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, var(--panel), var(--surface-soft));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.pdf-spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}
.spot-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-blue);
  margin-bottom: 6px;
}
.pdf-spotlight-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.32rem, 2.2vw, 1.65rem);
  border-top: 0;
  padding-top: 0;
}
.pdf-spotlight-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 44rem;
}
.signature-scroll-ink {
  flex-shrink: 0;
  color: var(--ink-blue);
  opacity: 0.9;
}
.signature-scroll-ink path {
  stroke-dasharray: 290;
  stroke-dashoffset: 0;
}
.pdfmotion-slot {
  margin: 18px 0 0;
}
.workbench-frame {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0e1118;
  box-shadow: var(--shadow-frame);
}
.workbench-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #0e1118;
}
.pdfmotion-slot figcaption {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--muted);
  text-align: center;
}
@supports (animation-timeline: scroll()) {
  .scroll-rule {
    animation: losdocos-scroll-rule linear both;
    animation-timeline: scroll(root block);
  }
}
@supports (animation-timeline: view()) {
  .workbench-frame {
    animation: losdocos-workbench-unfold linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 42%;
  }
  .signature-scroll-ink path {
    stroke-dashoffset: 290;
    animation: losdocos-ink-draw linear both;
    animation-timeline: view();
    animation-range: entry 12% contain 58%;
  }
}
@keyframes losdocos-scroll-rule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes losdocos-workbench-unfold {
  from { opacity: 0.72; transform: translateY(18px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes losdocos-ink-draw {
  from { stroke-dashoffset: 290; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .usecase-card:hover { transform: none; }
  .scroll-rule, .workbench-frame, .signature-scroll-ink path { animation: none !important; transform: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; }
}
