/*
 * jugscope.com shared stylesheet: Direction 1, "Reading Chart" (Jony, approved
 * by Scott 2026-11-02), with the Work Order line-item table for prices.
 * One file for every page. No inline styles anywhere (CSP style-src 'self').
 * Fonts are self-hosted from /fonts/ (SIL OFL 1.1, licence files beside them).
 */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth.woff2") format("woff2-variations"),
       url("../fonts/archivo-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght.woff2") format("woff2-variations"),
       url("../fonts/public-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --page: #ECEFEE;
  --steel: #535B5E;
  --ink: #1C2224;
  --deposit: #7A5530;
  --green: #1E7F3C;
  --red: #C1272D;
  --red-ink: #ffffff;
  --rule: #C5CBCA;
  --panel: #E2E6E5;
  --typed: #1D3C8F;
  --mark-bg: #FFE14D;
  --mark-ink: #1C2224;
  --head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Courier Prime", ui-monospace, Menlo, monospace;
  --wrap: 1240px;
  --measure: 40rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #1A1E20;
    --steel: #A9B2B5;
    --ink: #E9EDEC;
    --rule: #343B3E;
    --panel: #22282A;
    --deposit: #C99A66;
    --green: #4CC174;
    --typed: #9DB4FF;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(38px, 6.4vw, 72px); font-stretch: 80%; letter-spacing: -.01em; line-height: .98; max-width: 15ch; }
h2 { font-size: clamp(28px, 4.2vw, 46px); font-stretch: 80%; line-height: 1.02; }
h3 { font-size: 22px; font-stretch: 87.5%; line-height: 1.15; }
h4 { font-size: 18px; font-stretch: 87.5%; line-height: 1.2; }
p, ul, ol, dl, table, blockquote, figure { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
code { font-family: var(--mono); font-size: .95em; }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--page); padding: 10px 14px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 8px; color: var(--page); }

/* ---------- pending / gate markers (must be gone before launch) ---------- */
mark.pending {
  background: var(--mark-bg);
  color: var(--mark-ink);
  font: 700 13px/1.3 var(--body);
  padding: 1px 6px;
  border: 1px dashed #8a6d00;
  border-radius: 2px;
  white-space: normal;
}

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .bar {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 21px/1 var(--head); font-stretch: 87.5%; text-decoration: none; color: var(--ink);
  min-height: 44px; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--steel); text-decoration: none; font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.menu-toggle {
  display: none;
  min-height: 44px; padding: 0 14px;
  font: 600 15px/1 var(--body); color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 3px; cursor: pointer;
}
/* Without JavaScript (and on the 404, which has none) the nav is a full-width
   row under the brand. With JavaScript on narrow screens it folds behind Menu. */
@media (max-width: 959px) {
  .site-nav { order: 3; flex-basis: 100%; }
  .js .menu-toggle { display: inline-flex; align-items: center; order: 1; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .js .site-nav.open ul { flex-direction: column; gap: 0; padding: 4px 0 8px; border-top: 1px solid var(--rule); }
  .js .site-nav.open a { font-size: 17px; }
  .site-header .appstore-cta { order: 2; flex: 1 1 100%; max-width: none; }
}
@media (min-width: 960px) {
  .site-nav { margin-right: 8px; }
}

/* ---------- App Store CTA + buttons ---------- */
.button, .appstore-cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 8px 18px;
  background: var(--red); color: var(--red-ink); text-decoration: none;
  font: 600 15px/1.2 var(--body); border-radius: 3px; border: 2px solid var(--red);
}
.button:hover, .appstore-cta:hover { color: var(--red-ink); filter: brightness(1.08); }
/* Pre-launch: the App Store CTA is a non-clickable label (span), not a link. */
span.appstore-cta { cursor: default; }
span.appstore-cta:hover { filter: none; }
.button--secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.button--secondary:hover { color: var(--ink); filter: none; background: var(--panel); }
.site-header .appstore-cta { font-size: 14px; padding: 6px 12px; white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 0 0 12px; }
.cta-note { font-size: 14px; color: var(--steel); margin: 0; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- page sections ---------- */
main { display: block; }
.section { border-top: 2px solid var(--ink); padding: 40px 0 56px; }
.section:first-child { border-top: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--steel); max-width: 36em; }
.lede { font-size: 19px; color: var(--steel); max-width: 34em; }
.prose { max-width: var(--measure); }
.prose > :last-child { margin-bottom: 0; }
.muted { color: var(--steel); }
.small { font-size: 15px; }

/* page hero (inner pages) */
.page-hero { padding: 40px 0 40px; }
@media (min-width: 960px) { .page-hero { padding: 64px 0 56px; } }
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lede { margin-bottom: 24px; }
.eyebrow { font: 600 14px/1.2 var(--head); font-stretch: 87.5%; color: var(--steel); margin: 0 0 12px; letter-spacing: .02em; }

/* ---------- home hero: the scope circle ---------- */
.hero { display: grid; gap: 32px; padding: 24px 0 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; padding: 56px 0 96px; }
}
.hero h1 { margin-bottom: 20px; max-width: 13ch; }
.hero .lede { margin-bottom: 28px; }
.scope { position: relative; justify-self: center; width: min(calc(100% - 24px), 560px); margin: 0; }
.scope .lens {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px var(--panel), 0 0 0 11px var(--rule);
}
.scope .lens img { width: 100%; height: 100%; object-fit: cover; }
.scope .phone {
  position: absolute; left: -4%; bottom: -8%; width: 34%;
  border: 6px solid #000; border-radius: 22px; overflow: hidden; background: #000;
}
.scope .phone img { width: 100%; }

/* facts strip */
.facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px;
}
@media (min-width: 720px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts li { margin: 0; border-top: 2px solid var(--ink); padding-top: 10px; font: 600 19px/1.2 var(--head); font-stretch: 87.5%; }

/* feature grid (the "specimen plate" without images) */
.plate-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 32px;
}
@media (min-width: 720px) { .plate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .plate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plate-grid li { margin: 0; font-size: 16px; line-height: 1.5; }
.plate-grid b, .plate-grid strong { display: block; font: 700 19px/1.2 var(--head); font-stretch: 87.5%; margin-bottom: 6px; }

/* specimen rings: the 11 views */
.stage { margin: 0 0 32px; }
.stage-title {
  font: 600 17px/1.3 var(--head); font-stretch: 87.5%;
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.stage-title span { color: var(--steel); font-weight: 500; }
.specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px;
}
@media (min-width: 720px) { .specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; } }
.specs li { margin: 0; font-size: 15px; line-height: 1.5; }
.ring { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #000; border: 3px solid var(--steel); margin: 0 0 12px; }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.specs .name { display: block; font: 600 16px/1.25 var(--head); font-stretch: 87.5%; margin-bottom: 4px; }
.specs .n { color: var(--steel); font-weight: 500; margin-right: 4px; }
.ring-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 720px) { .ring-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ring-strip { grid-template-columns: repeat(11, minmax(0, 1fr)); } }
.ring-strip li { margin: 0; font-size: 13px; line-height: 1.3; text-align: center; }
.ring-strip .ring { border-width: 2px; margin-bottom: 6px; }

/* sequence steps with phone shots */
.step { display: grid; gap: 20px; padding: 0 0 48px; align-items: center; }
@media (min-width: 960px) {
  .step { grid-template-columns: 300px 1fr; gap: 64px; }
  .step.flip { grid-template-columns: 1fr 300px; }
  .step.flip .shot { order: 2; }
}
.shot { width: min(72vw, 300px); justify-self: center; margin: 0; }
.shot img { border-radius: 28px; border: 8px solid #000; }
.step h3 { font-size: 26px; font-stretch: 85%; margin-bottom: 10px; }
.step p { max-width: 36em; }

/* dark band (shops) */
.band { background: var(--ink); color: var(--page); padding: 56px 0; }
.band a { color: var(--page); }
.band h2 { margin-bottom: 16px; }
.band p { max-width: 34em; }
.band .button--secondary { color: var(--page); border-color: var(--page); }
.band .button--secondary:hover { background: transparent; color: var(--page); text-decoration: underline; }

/* tiers (plans) */
.tiers { display: grid; gap: 28px; }
@media (min-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; gap: 40px; } }
.tier { border-top: 2px solid var(--ink); padding-top: 14px; }
.tier h3 { font-size: 24px; margin-bottom: 6px; }
.tier .amt { font: 600 30px/1.1 var(--head); font-stretch: 85%; margin: 4px 0 12px; }
.tier ul { margin: 0; }

/* ---------- tables: Work Order line items ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 1.25em; }
table.items { width: 100%; border-collapse: collapse; font-size: 16px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table.items caption { text-align: left; caption-side: top; font: 600 15px/1.3 var(--head); font-stretch: 87.5%; color: var(--steel); padding: 0 0 8px; }
table.items th {
  font: 600 13px/1.2 var(--head); font-stretch: 87.5%; letter-spacing: .02em; color: var(--steel);
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ink); vertical-align: bottom;
}
table.items td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.items tbody tr:last-child td { border-bottom: 0; }
table.items tbody th { font: 600 16px/1.35 var(--body); color: var(--ink); letter-spacing: 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.items td.typed, table.items .typed { font-family: var(--mono); color: var(--typed); font-size: 17px; white-space: nowrap; }
@media (max-width: 560px) {
  table.items { font-size: 15px; }
  table.items th, table.items td { padding: 8px 8px; }
}

table.items th, table.items td { overflow-wrap: normal; }
/* Wide tables fold into one block per row on phones (cameras: borescopes). */
@media (max-width: 640px) {
  table.items.stack thead { display: none; }
  table.items.stack caption { display: block; width: auto; }
  table.items.stack, table.items.stack tbody, table.items.stack tr { display: block; }
  table.items.stack tr { padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.items.stack tbody tr:last-child { border-bottom: 0; }
  table.items.stack tbody th { display: block; border: 0; padding: 0 0 6px; }
  table.items.stack td { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; border: 0; padding: 2px 0; }
  table.items.stack td::before { content: attr(data-label); font: 600 13px/1.6 var(--head); font-stretch: 87.5%; color: var(--steel); }
}

/* ---------- forms of content ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 14px; }
.steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font: 400 17px/1.6 var(--mono); color: var(--typed);
}
.callout { border-left: 4px solid var(--steel); background: var(--panel); padding: 14px 18px; margin: 0 0 1.25em; }
.callout > :last-child { margin-bottom: 0; }
.callout.note { border-left-color: var(--typed); }
.callout.tip { border-left-color: var(--green); }
.callout.caution { border-left-color: var(--red); }
.callout.audience { border-left-color: var(--deposit); }
blockquote.quote { border-left: 4px solid var(--rule); margin: 0 0 1em; padding: 4px 0 4px 18px; color: var(--ink); }
blockquote.quote footer { font-size: 14px; color: var(--steel); margin-top: 8px; }
.faq h3 { font-size: 20px; margin: 28px 0 8px; }
.faq h3:first-child { margin-top: 0; }
.toc { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.toc li + li { margin-top: 0; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; color: var(--steel); }
dl.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
dl.facts-list dt { font-weight: 650; }
dl.facts-list dd { margin: 0; }

/* ---------- manual ---------- */
.doc { display: grid; gap: 32px; padding-bottom: 48px; }
.doc article { max-width: 46rem; }
.doc article h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 40px 0 14px; padding-top: 16px; border-top: 2px solid var(--ink); }
.doc article h3 { margin: 28px 0 10px; }
.doc article h4 { margin: 24px 0 8px; }
.doc article p.lead { font-size: 19px; color: var(--steel); }
.doc article table { width: 100%; border-collapse: collapse; }
.doc article table th, .doc article table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.doc article table thead th { border-bottom: 1px solid var(--ink); font: 600 14px/1.2 var(--head); color: var(--steel); }
.doc article .glossary p { margin-bottom: .9em; }
.shot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0 0 1.25em; }
.doc figure.shot { width: auto; justify-self: stretch; margin: 0 0 1.25em; }
.doc figure.shot img { border-radius: 10px; border: 1px solid var(--rule); }
.doc figure.shot.phone { max-width: 300px; }
.doc figure.shot.phone img { border-radius: 22px; border: 6px solid #000; }
.doc figcaption { font-size: 14px; color: var(--steel); margin-top: 8px; }
.chapter-nav {
  display: grid; gap: 12px; border-top: 2px solid var(--ink); padding: 20px 0 0; margin-top: 16px;
  max-width: 46rem;
}
@media (min-width: 720px) { .chapter-nav { grid-template-columns: 1fr auto 1fr; align-items: start; } }
.chapter-nav a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.chapter-nav .next { justify-self: end; text-align: right; }
.chapter-nav .contents { justify-self: center; }
.chapter-list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.chapter-list li { margin: 0; border-bottom: 1px solid var(--rule); padding: 14px 0; display: grid; grid-template-columns: 3em 1fr; gap: 4px 12px; }
.chapter-list .num { font: 400 17px/1.5 var(--mono); color: var(--typed); }
.chapter-list a { font: 700 20px/1.25 var(--head); font-stretch: 87.5%; }
.chapter-list p { margin: 4px 0 0; color: var(--steel); font-size: 15px; grid-column: 2; }

/* ---------- closing ---------- */
.close { border-top: 2px solid var(--ink); padding: 48px 0 64px; display: grid; gap: 24px; align-items: center; justify-items: start; }
@media (min-width: 960px) { .close { grid-template-columns: auto 1fr auto; gap: 40px; } }
.close .jugs { display: flex; gap: 6px; }
.close .jugs img { width: 88px; height: 88px; }
.close h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0; }
.close .cta-col { display: grid; gap: 8px; justify-items: start; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 48px; font-size: 14px; color: var(--steel); }
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.site-footer li + li { margin-top: 0; }
.site-footer a, .site-footer .linklike {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--steel);
}
.site-footer a:hover, .site-footer .linklike:hover { color: var(--ink); }
.linklike {
  background: none; border: 0; padding: 0; font: inherit; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.site-footer p { margin: 0 0 4px; }

/* ---------- 404 ---------- */
.not-found { padding: 64px 0 96px; }
.not-found ul { list-style: none; padding: 0; }
.not-found li { margin: 0; }


/* ---------- page-level additions (redesign build) ---------- */
.facts-strip { padding: 0 0 48px; }
.page-hero .facts { margin-top: 8px; }
.share-note { margin: 16px 0 0; }
/* a section with its heading on the left and the body on the right */
.section.split { display: grid; gap: 8px 64px; }
@media (min-width: 960px) {
  .section.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}
.section.split > h2 { margin: 0 0 12px; }
.section > h2 { margin-bottom: 24px; }
.send-list { margin: 0 0 1em; }
.send-list dt { font: 700 19px/1.25 var(--head); font-stretch: 87.5%; margin: 18px 0 4px; }
.send-list dt:first-child { margin-top: 0; }
.send-list dd { margin: 0; }
.step h2 { font-size: clamp(28px, 3.6vw, 40px); }
.shot img { width: 100%; }
.doors { margin-top: 8px; }
.plan-notes { margin-top: 28px; }
.tier h3 .muted { font: 400 16px/1.3 var(--body); }
table.items .num { text-align: right; }
table.items.prices { max-width: 34rem; }
.specs .name .n { display: block; font: 400 14px/1.3 var(--mono); color: var(--typed); margin-bottom: 2px; }
.stage > p { color: var(--steel); max-width: 40em; }
.ring-strip { padding-left: 0; }
.steps .appstore-cta { margin: 6px 0 0; }
.chapter-nav .prev:only-child { grid-column: 1; }
.page-hero .eyebrow a { color: inherit; }
.not-found ul { margin: 24px 0 0; }
blockquote.quote p { margin: 0; }
.band .text-link:hover { color: var(--page); }
@media (prefers-color-scheme: dark) {
  .scope .phone, .shot img { border-color: #000; }
  mark.pending { border-color: #8a6d00; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header .appstore-cta, .menu-toggle, .site-nav, #analytics-consent { display: none !important; }
}
