/* Dó paper + ink + indigo (chàm). Kraft only on the seller tags. One bold element: the hero print. */
:root {
  --page: #ECEBE4;
  --ink: #1F1B16;
  --ink-soft: #46403A;
  --indigo: #2B3B69;
  --indigo-dark: #1F2C52;
  --kraft: #C8A677;
  --kraft-deep: #B48F5C;
  --paper: #FAFAF6;
  --glow: #F3DDB5;
  --serif: "Literata", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  background-color: var(--page);
  /* dó paper: faint long fibres (stretched turbulence), very low opacity */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: .18em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 6vw, 4rem);
  max-width: 76rem;
  margin: 0 auto;
  align-items: center;
}
.model { font-size: 1rem; color: var(--ink-soft); margin-bottom: .75rem; }
.hero h1 {
  font-size: clamp(2.4rem, 8.5vw, 4.6rem);
  letter-spacing: -.015em;
  line-height: 1.05;
  max-width: 13ch;
  text-wrap: balance;
}
.lede { margin-top: 1.25rem; max-width: var(--measure); font-size: 1.125rem; }
.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: .9rem 1.6rem;
  min-height: 48px;
  background: var(--indigo);
  color: var(--page);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 0 var(--indigo-dark);
}
.btn:hover { background: var(--indigo-dark); }
.colors { margin-top: 1.25rem; color: var(--ink-soft); font-size: .95rem; }
.swatch {
  display: inline-block; width: .9em; height: .9em; border-radius: 50%;
  vertical-align: -.1em; margin: 0 .3em 0 .15em; border: 1px solid var(--ink-soft);
}
.swatch-white { background: #F4F4F2; }
.swatch-black { background: #333; }

/* a product photo printed on paper and laid on the kraft */
.print {
  margin: 0;
  background: var(--paper);
  padding: clamp(.5rem, 1.6vw, 1rem);
  box-shadow: 0 1px 0 rgba(31, 27, 22, .12), 0 16px 34px -20px rgba(31, 27, 22, .45);
}
.hero-print { transform: rotate(-1.4deg); }
.print img { width: 100%; mix-blend-mode: multiply; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; }
}

/* ---------- three reasons ---------- */
.reasons {
  display: grid;
  gap: 0;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.reason { padding: 1.5rem 0; border-top: 2px solid var(--ink); }
.reason h2 { font-size: 1.4rem; color: var(--ink); }
.reason p { margin-top: .5rem; max-width: var(--measure); color: var(--ink-soft); }
@media (min-width: 860px) {
  .reasons { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

/* ---------- shared section bits ---------- */
main > section { max-width: 76rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) 0; }
main > section.reasons { padding-top: 0; }
.section-title { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.section-lede { margin-top: .6rem; max-width: var(--measure); color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- features ---------- */
.feature-list { display: grid; gap: 2.25rem; margin-top: 2rem; }
.feature { display: grid; grid-template-columns: 46% 1fr; gap: 1.1rem; align-items: start; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: .35rem; color: var(--ink-soft); }
.feature.no-shot { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .feature-list { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
  .feature { grid-template-columns: 1fr; }
  .feature .device { max-width: 17rem; }
}
@media (min-width: 1100px) {
  .feature-list { grid-template-columns: repeat(4, 1fr); }
  .feature .device { max-width: none; }
}

/* E707 front, proportions measured from the drawing:
   side bezel 10% of screen width, top 8% / bottom chin 16% of screen height */
.device {
  display: block; width: 100%; border: 0; margin: 0; cursor: zoom-in; font: inherit; color: inherit;
  padding: 9% 8.33% 18%;
  background: linear-gradient(170deg, #3A3631, #24211D 70%);
  border-radius: 9% / 6.6%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .35),
              0 12px 24px -14px rgba(31, 27, 22, .55);
}
.device:focus-visible { outline: 3px solid var(--indigo); outline-offset: 4px; }
.device:hover { transform: translateY(-2px); transition: transform .15s; }
@media (prefers-reduced-motion: reduce) { .device:hover { transform: none; } }
.panel { width: 100%; background: #EDEDE8; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }

/* ---------- specs ---------- */
.specs .print { margin-top: 2rem; }
.specs table { width: 100%; max-width: 44rem; margin-top: 2rem; border-collapse: collapse; }
.specs th, .specs td { text-align: left; vertical-align: top; padding: .7rem 0; border-bottom: 1px solid rgba(31, 27, 22, .22); }
.specs th { width: 38%; font-weight: 500; color: var(--ink-soft); padding-right: 1rem; }

/* ---------- pro teaser: the only warm-lit corner ---------- */
.pro {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  margin-top: clamp(3rem, 8vw, 5.5rem) !important;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) !important;
  background: linear-gradient(160deg, #4A3622, #2E2216);
  color: var(--glow);
  border-radius: 1.25rem;
}
.pro-device { width: 7.5rem; color: var(--glow); filter: drop-shadow(0 0 22px rgba(255, 210, 140, .45)); }
.pro h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); color: #FFF3DC; margin-top: .5rem; }
.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  background: var(--glow); color: #3A2A17; font-weight: 600; font-size: .9rem;
}
.pro ul { margin: 1rem 0; padding-left: 1.1rem; }
.pro li { margin: .3rem 0; }
.pro a { color: #FFE2A8; }
.pro a:focus-visible { outline-color: var(--glow); }
@media (min-width: 700px) { .pro { grid-template-columns: auto 1fr; gap: 3rem; } .pro-device { width: 9rem; } }

/* ---------- warranty seal ---------- */
.warranty { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.warranty p { margin-top: .5rem; max-width: var(--measure); }
.seal {
  flex: none;
  width: 7rem; height: 7rem; border-radius: 50%;
  border: 3px solid var(--indigo); outline: 1px solid var(--indigo); outline-offset: -9px;
  display: grid; place-content: center; text-align: center; color: var(--indigo);
  transform: rotate(-8deg);
}
.seal-num { font: 600 2.6rem/1 var(--serif); }
.seal-unit { font-weight: 600; }

/* ---------- sellers: paper shipping tags ---------- */
.seller-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 760px) { .seller-list { grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); } }
.seller-card {
  position: relative;
  background: var(--kraft);
  padding: 1.5rem 1.4rem 1.4rem 3.4rem;
  clip-path: polygon(1.6rem 0, 100% 0, 100% 100%, 1.6rem 100%, 0 calc(100% - 1.6rem), 0 1.6rem);
  filter: drop-shadow(0 8px 14px rgba(60, 40, 15, .22));
}
.tag-hole {
  position: absolute; left: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -.55rem;
  border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 3px var(--kraft-deep);
}
.seller-card h3 { font-size: 1.45rem; }
.seller-area { color: var(--ink); margin-top: .2rem; }
.seller-address { margin-top: .6rem; overflow-wrap: anywhere; }
.tag-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.tag-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1rem;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .98rem;
}
.tag-btn-main { background: var(--ink); color: var(--kraft); }
.tag-btn-main:hover { background: #000; }
.tag-btn-plain { border: 1.5px solid var(--ink); color: var(--ink); }
.tag-btn:focus-visible { outline-color: var(--ink); }
@media (max-width: 480px) { .tag-btn-main { flex: 1 1 100%; justify-content: center; } }

.partner p { margin-top: .6rem; }

/* ---------- footer ---------- */
.foot { max-width: 76rem; margin: 0 auto; padding: 4rem var(--gutter) 2.5rem; color: var(--ink-soft); font-size: .95rem; }

/* the render has wide empty margins: frame the devices tighter */
.hero-print img { aspect-ratio: 1.4; object-fit: cover; object-position: 50% 46%; }

/* ---------- tap-to-zoom ---------- */
.zoom { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.zoom::backdrop { background: rgba(20, 18, 15, .78); }
.zoom .device-lg { width: min(86vw, 60vh); cursor: zoom-out; }
.zoom .device-lg img { width: 100%; height: auto; display: block; background: #EDEDE8; border-radius: 3px; }
.zoom-caption { color: var(--page); text-align: center; margin-top: .9rem; font-family: var(--serif); font-size: 1.15rem; }
.zoom-close {
  position: absolute; top: -.5rem; right: -.5rem; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--page); color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.zoom-close:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }

/* ---------- footer links (home page) ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-bottom: .9rem; }
.foot-links a { font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- document pages: the manual, the apps page ---------- */
.topbar {
  max-width: 76rem; margin: 0 auto; padding: 1rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.topbar .home { font: 600 1.15rem/1.2 var(--serif); color: var(--ink); text-decoration: none; margin-right: auto; padding: .6rem 0; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--ink-soft); }
.topbar nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 2px; }

.doc { max-width: 76rem; margin: 0 auto; padding: clamp(2rem, 6vw, 3.5rem) var(--gutter) 0; }
.doc-head h1 { font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.01em; max-width: 18ch; text-wrap: balance; }
.doc-head .lede { margin-top: .9rem; }

.doc-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.toc { background: var(--paper); padding: 1rem 1.25rem; box-shadow: 0 1px 0 rgba(31, 27, 22, .12); }
.toc h2 { font: 600 .95rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.toc ol { margin: .5rem 0 0; padding-left: 1.6rem; }
.toc li { padding: .15rem 0; }
.toc a { display: inline-block; padding: .2rem 0; }
@media (min-width: 1000px) {
  .doc-body { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; align-items: start; }
  .toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
}

.chapter { padding-top: 2.5rem; scroll-margin-top: 1rem; }
.chapter:first-child { padding-top: 0; }
.chapter > h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); padding-top: .9rem; border-top: 2px solid var(--ink); }
.chapter h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.chapter p, .chapter ul, .chapter ol, .chapter dl { max-width: 40rem; }
.chapter p { margin-top: .75rem; }
.chapter ul, .chapter ol { margin: .75rem 0 0; padding-left: 1.3rem; }
.chapter li { margin: .4rem 0; }
.chapter li::marker { color: var(--ink-soft); }
.chapter dl { margin: .75rem 0 0; }
.chapter dt { font-weight: 600; margin-top: .8rem; }
.chapter dd { margin: .2rem 0 0; color: var(--ink-soft); }

/* an on-screen label or a key, written as the device shows it */
.ui {
  display: inline; padding: 0 .3em; border: 1.5px solid var(--ink); border-radius: .3em;
  font-weight: 500; font-size: .94em; line-height: 1.35; background: var(--paper);
  white-space: nowrap; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.ui.long { white-space: normal; }
.key { display: inline-block; padding: 0 .4em; border-radius: .3em; background: var(--ink); color: var(--page); font-weight: 600; font-size: .9em; line-height: 1.45; white-space: nowrap; }
code, .path { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }

.note { margin-top: 1rem; max-width: 40rem; padding: .8rem 1rem; border-left: 4px solid var(--indigo); background: rgba(43, 59, 105, .07); }
.note.warn { border-left-color: var(--ink); background: rgba(31, 27, 22, .06); }
.note p:first-child { margin-top: 0; }

/* a section with one real screen beside its text */
.with-shot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.shot { margin: 1rem 0 0; width: min(13rem, 62%); }
.shot figcaption { margin-top: .5rem; font-size: .92rem; color: var(--ink-soft); }
@media (min-width: 760px) {
  .with-shot { grid-template-columns: minmax(0, 1fr) 13rem; gap: 2.5rem; }
  .with-shot .shot { width: 100%; margin-top: 1.25rem; }
}
.device-static { cursor: default; }
.device-static:hover { transform: none; }

/* the apps page */
.soon {
  display: block; margin-top: 1.5rem; max-width: 40rem;
  padding: .9rem 1.1rem; background: var(--indigo); color: var(--page); border-radius: .6rem;
}
.soon strong { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 2.8rem; margin: 1rem 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--ink); color: var(--page); font-weight: 600; display: grid; place-items: center;
}
.examples { display: grid; gap: 1rem; margin-top: 1rem; max-width: 46rem; }
@media (min-width: 640px) { .examples { grid-template-columns: 1fr 1fr; } }
.example { background: var(--paper); padding: 1rem 1.1rem; box-shadow: 0 1px 0 rgba(31, 27, 22, .12); }
.example h3 { margin: 0; font-size: 1.1rem; }
.example p { margin-top: .3rem; color: var(--ink-soft); }
.example a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.btn-line { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.btn-line .btn { margin-top: 0; }
.prompt-box { margin-top: 1rem; max-width: 46rem; background: var(--paper); box-shadow: 0 1px 0 rgba(31, 27, 22, .12); }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .6rem .6rem 1rem; border-bottom: 1px solid rgba(31, 27, 22, .22); }
.prompt-bar span { color: var(--ink-soft); font-size: .95rem; }
.copy-btn {
  min-height: 44px; padding: .5rem 1.2rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--page);
  font: 600 1rem/1 var(--sans); cursor: pointer;
}
.copy-btn:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }
.prompt {
  margin: 0; padding: 1rem; max-height: 30rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere;
  font: .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink);
}

/* VReader wordmark: lockup (logo + tagline) on the home hero, logo in the doc topbar */
.wordmark { margin: 0; }
.wordmark .wordmark-logo { display: block; width: min(15rem, 62%); height: auto; }
.tagline { margin: .55rem 0 1.75rem; font-weight: 300; font-size: 1.15rem; color: var(--ink); }
.topbar .wordmark-logo { display: block; height: 1.6rem; width: auto; }
