/* Accio Patent — the whole stylesheet. No framework, no build step.
 *
 * This is one shared file rather than a <style> block per page, which is where
 * drivenleaf.com and playclovers.com put theirs. Those are two- and three-page sites; at
 * six pages the duplication costs more than the extra request, and /assets is cached for
 * a week by the server config anyway.
 *
 * The teal is #159192 — the tint colour of the app's default theme, and the colour of
 * the band across the barcode in the logo. It is not a decoration picked for the web. */

:root {
  --ink:        #14181A;
  --muted:      #5A6468;
  --teal:       #159192;
  --teal-deep:  #0B6C6D;
  --bg:         #FFFFFF;
  --surface:    #F5F8F8;
  --border:     #E2E7E8;
  --shadow:     0 1px 2px rgba(20,24,26,.05), 0 8px 24px rgba(20,24,26,.06);
  --nav-h:      58px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #E8ECEC;
    --muted:     #9AA6A8;
    --teal:      #4FC5C6;
    --teal-deep: #7BDADB;
    --bg:        #101617;
    --surface:   #18211F;
    --border:    #2A3436;
    --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--teal-deep); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

img, svg { display: block; max-width: 100%; height: auto; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.prose { max-width: 680px; }
.prose h2 { font-size: 21px; margin: 40px 0 10px; line-height: 1.3; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ───────── Top nav ───────── */
/* One CTA colour in both themes. White on #0B6C6D measures 6.21:1, clearing AA for
   14px text. */

.topnav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
/* color-mix is recent; this is the fallback for anything that does not know it. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .topnav { background: var(--bg); }
}
.topnav-inner {
  display: flex; align-items: center; gap: 20px;
  max-width: 1000px; margin: 0 auto;
  padding: 0 20px; height: var(--nav-h);
}
@media (min-width: 720px) { .topnav-inner { padding: 0 32px; } }

.brand {
  display: flex; align-items: center; gap: 9px; flex: 0 0 auto;
  color: var(--ink); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
/* The icon carries recognition; the name is set as text so it stays readable at any
   size. */
.brand img {
  width: 30px; height: 30px; border-radius: 7px;
  background: #fff; border: 1px solid var(--border);
}
@media (max-width: 400px) { .brand span { display: none; } }

.navlinks { display: none; gap: 22px; margin-right: auto; list-style: none; padding: 0; }
@media (min-width: 720px) { .navlinks { display: flex; } }
.navlinks a { color: var(--muted); font-size: 15px; font-weight: 500; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }

.nav-cta {
  margin-left: auto;
  display: inline-flex; align-items: center;
  background: #0B6C6D; color: #fff;
  padding: 7px 16px; border-radius: 100px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.nav-cta:hover, .nav-cta:focus-visible { background: #095152; color: #fff; }

/* ───────── Hero ───────── */

.hero { padding: 56px 0 40px; }
@media (min-width: 720px) { .hero { padding: 76px 0 52px; } }
.hero h1 {
  font-size: 32px; line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 14px; max-width: 24ch;
}
@media (min-width: 720px) { .hero h1 { font-size: 46px; } }
.hero .lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 52ch; }
.appstore { height: 48px; width: auto; }

/* ───────── Feature grid ───────── */

.grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 8px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.feature h2 { font-size: 20px; margin: 0 0 14px; }
.feature p { margin: 0 0 12px; }
.shot {
  width: 100%; max-width: 280px; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 18px;
}
.inline-icon { display: inline; height: 1em; width: auto; vertical-align: -0.12em; }

/* ───────── Quotes ───────── */

.quotes { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; gap: 32px; } }
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
}
.quote blockquote { margin: 0 0 12px; font-style: italic; }
.quote cite { font-style: normal; font-size: 14px; color: var(--muted); }

/* ───────── Premium ───────── */

.premium {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px; max-width: 620px; margin: 0 auto;
}
@media (min-width: 720px) { .premium { padding: 36px; } }
.premium h2 { margin-top: 0; }
.price { font-size: 17px; margin: 0 0 16px; padding-left: 4px; }
.price strong { font-size: 20px; }

/* ───────── Barcodes page ───────── */

@font-face {
  font-family: 'Libre Barcode 39';
  src: url('/fonts/libre-barcode-39.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
/* OCR-B: the face printed as the human-readable line under a real barcode, which is
   exactly what the number below each sample is. Subset to the characters those labels
   use, so it costs about 4KB. */
@font-face {
  font-family: 'OCR B';
  src: url('/fonts/ocr-b-subset.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Barcodes sit on white whatever the page theme is, so they stay high-contrast for
   scanning off a screen or a printout. */
.barcode-card {
  background: #fff; color: #000;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 16px; margin: 0 0 20px; text-align: center;
  overflow-x: auto;
}
.barcode {
  font-family: 'Libre Barcode 39', monospace;
  font-size: 4rem; line-height: 1.1;
  white-space: nowrap; color: #000;
}
.barcode-label {
  font-family: 'OCR B', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px; letter-spacing: 0.02em; color: #000;
}
.barcode-note { font-size: 14px; color: #555; }
.jurisdictions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.jurisdictions a {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px;
}

/* ───────── Barcode picker ─────────
   One barcode at a time, switched by radio inputs and :checked. No JavaScript, and the
   labels are real form controls, so keyboard and screen-reader behaviour come free. */

.picker { margin: 0 0 22px; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.picker-tabs label {
  display: inline-block; padding: 6px 13px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; cursor: pointer; user-select: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.picker-tabs label:hover { border-color: var(--teal); color: var(--teal); }
.picker-panel { display: none; }

/* The per-slot rules — nth checked radio reveals the nth panel — live in a <style>
   block in barcodes.html, next to the markup whose indices they depend on. Keeping
   them here would mean this file silently going stale the day a barcode is added. */

.picker-panel .barcode-card { margin-bottom: 12px; }
.picker-caption { text-align: center; color: var(--muted); font-size: 14px; margin: 0; }

/* ───────── Sections & footer ───────── */

section { padding: 44px 0; scroll-margin-top: calc(var(--nav-h) + 12px); }
section + section { border-top: 1px solid var(--border); }
h1.page-title { font-size: 30px; margin: 0 0 8px; line-height: 1.2; }
@media (min-width: 720px) { h1.page-title { font-size: 38px; } }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px; color: var(--muted); font-size: 14px;
}
.footer__links { margin: 0 0 16px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--ink); font-weight: 500; }
.footer__links a:hover { color: var(--teal); }
.footer p { margin: 0 0 6px; max-width: 78ch; }

/* ───────── 404 ───────── */

.notfound { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.notfound .code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--teal); font-size: 15px; letter-spacing: .1em; margin: 0 0 12px;
}
