/* Chickadee — getchickadee.org
   One stylesheet for every page (landing, legal, about). No framework, no
   webfonts, no third-party requests: the page must load nothing but itself,
   because the product claims the same thing and the audience checks. */

:root {
  /* One palette across both brands (John, 2026-08-02). Dashie's #ffaa00 is the
     brand fill and is used EXACTLY. It cannot also be the text colour: on white
     it measures 1.91:1, far under the 4.5:1 body minimum, and these pages use
     the accent for every heading and link. --accent is therefore the same hue
     darkened until it passes (4.63:1); --fill stays Dashie-exact. */
  --accent: #9f6a00;        /* headings + links on light */
  --accent-hover: #7b5200;
  --fill: #ffaa00;          /* buttons, icons, rules — Dashie-exact */
  --fill-hover: #ffbb22;
  --on-fill: #2a1c00;       /* text on a filled surface (8.70:1) */
  --bg: #ffffff;
  --fg: #1a1c20;
  --muted: #5b6270;
  --card: #f5f7fa;
  --border: #e4e8ee;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* On the dark background #ffaa00 measures 9.49:1, so the brand colour
       works directly as text here — no darkened variant needed. */
    --accent: #ffaa00;
    --accent-hover: #ffbb22;
    --fill: #ffaa00;
    --fill-hover: #ffbb22;
    --on-fill: #2a1c00;
    --bg: #14161a;
    --fg: #e9ecf1;
    --muted: #9aa2b1;
    --card: #1c1f26;
    --border: #2a2e38;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; max-width: 760px; width: 100%; margin: 0 auto; padding: 8vh 24px 4vh; }

/* Marketing pages run wider than prose pages — 760px is right for a privacy
   policy and cramped for a feature grid. */
main.wide { max-width: 1040px; padding-top: 56px; }
main.wide .lede, main.wide .tagline, main.wide .description { margin-left: auto; margin-right: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* The wordmark ships in two versions rather than being filtered: a CSS filter
   would flatten the mark and destroy the bird's negative-space head. The dark
   variant inverts ONLY the neutral ink — the brand orange is left exactly as
   authored — so the charcoal text goes light and the eye's white centre goes
   dark, which is the negative-space behaviour the mark is designed around. */
.logo, .home img, .home picture { display: block; height: auto; }

/* ---- landing ---- */

.hero { text-align: center; margin-bottom: 12px; }
.hero .logo { width: 100%; max-width: 340px; margin: 0 auto 4px; }

h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0.5em 0 0.4em;
}

.lede { color: var(--muted); font-size: 1.06rem; max-width: 54ch; margin: 0 auto 1.5em; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 8px; }
.badge {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
}

section { margin-top: 3em; }
h2 { color: var(--accent); font-size: 1.28rem; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 1.02rem; font-weight: 650; margin: 0 0 6px; }
p { margin: 0 0 1em; }

.cards, .routes { display: grid; gap: 14px; margin-top: 18px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card, .route {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.card p, .route p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.steps { margin: 0 0 1em; padding-left: 22px; }
.steps li { margin-bottom: 10px; }

/* Placeholder for a link that is deliberately not rendered yet — see the
   SOURCE_URL comments in the pages and the README go-live checklist. */
.pending {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 12px 16px;
  margin: 0;
}

.honesty ul { margin: 18px 0 0; padding-left: 22px; }
.honesty li { margin-bottom: 14px; color: var(--muted); }
.honesty li strong { color: var(--fg); }

/* ---- legal / about ---- */

.container { max-width: 760px; margin: 0 auto; padding: 48px 24px 24px; flex: 1; width: 100%; }
.home { display: inline-block; margin-bottom: 32px; }
.home img { height: 44px; }
.container h1 { font-size: 1.9em; margin: 0 0 8px; }
.container h2 { color: var(--accent); font-size: 1.3em; margin: 34px 0 12px; }
.container h3 { font-size: 1.05em; font-weight: 600; margin: 22px 0 8px; }
.effective-date { color: var(--muted); font-style: italic; font-size: 0.92em; margin-bottom: 28px; }
.muted { color: var(--muted); }
ul { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 8px; }
code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.88em;
}
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--fill);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 28px 24px;
  margin-top: 40px;
}
footer p { margin: 0 0 6px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }
footer .fine { max-width: 56ch; margin: 8px auto 0; line-height: 1.6; }

/* ==========================================================================
   Marketing pages (/, /voice)
   Structure ported from dashieapp.com, minus everything that implies paying.
   No JavaScript anywhere: the carousel is CSS scroll-snap and the nav is
   static markup, so /privacy's "this page loads nothing" stays literally true.
   ========================================================================== */

.nav {
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
/* 36px, not 30px. The mark is a 3:1 horizontal lockup in which the wordmark is only
   110/300 of the canvas height, so a 30px slot rendered the NAME at 11px — the smallest
   instance of it anywhere on the site (hero and holding render it at 39–42px). The nav has
   no fixed height (padding 14px, align-items:center), so this just grows the bar by 6px.
   Note this is NOT the kiosk popout's bug: that slot had a fixed 100x44 box whose 2.27:1
   aspect letterboxed the 3:1 mark. Here `width:auto` means the mark is never letterboxed —
   it was only small. */
.nav-brand img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; gap: 20px; font-size: 0.92rem; font-weight: 550; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }

.wide { max-width: 1000px; width: 100%; margin: 0 auto; padding: 0 24px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.hero-badge img { height: 16px; width: auto; }

.tagline { font-size: 1.14rem; color: var(--fg); max-width: 56ch; margin: 0 auto 1em; }
.description { color: var(--muted); max-width: 62ch; margin: 0 auto 1.6em; }

.btn {
  display: inline-block;
  background: var(--fill);
  color: var(--on-fill);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 10px;
  transition: background .15s ease;
}
.btn:hover { background: var(--fill-hover); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }

.section-subtitle { color: var(--muted); max-width: 60ch; margin: 0 auto 26px; }
.centered { text-align: center; }

/* Image slots. Every product shot is pending Chickadee-branded art — the
   Dashie screenshots are deliberately NOT reused here. See README. */
.shot {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  aspect-ratio: 16 / 10;
}
.shot span { max-width: 40ch; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* Carousel — scroll-snap, no script. Swipe on touch, drag/scroll on desktop. */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 560px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
}
.carousel > * { scroll-snap-align: center; }
.slide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.slide h3 { margin-bottom: 6px; }
.slide p { color: var(--muted); font-size: 0.94rem; margin-bottom: 14px; }
.carousel-hint { color: var(--muted); font-size: 0.84rem; text-align: center; margin: 0; }

.platform-list { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 550;
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.icon {
  width: 26px;
  height: 26px;
  stroke: var(--fill);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 12px;
  display: block;
}

/* Signal colours for the privacy tiers. These carry MEANING, so they must not
   be the brand hue: once #ffaa00 became the brand, an amber "leaves your
   network" tier read as the branded/preferred option rather than the one to
   notice. Green stays local, rose leaves the network — 145° and 8° hue, well
   clear of the brand's 40°. */
.tier { border-radius: 12px; padding: 20px 22px; border: 1px solid var(--border); background: var(--card); }
.tier.local { border-left: 3px solid #2e7d4f; }
.tier.byok { border-left: 3px solid #b3402e; }
.tier h3 { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { color: var(--muted); font-size: 0.93rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: #2e7d4f; }
.dot.amber { background: #b3402e; }

.legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 0.86rem; margin-bottom: 24px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }

.item-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.item { display: flex; gap: 12px; }
.item .dot { margin-top: 7px; }
.item h3 { margin-bottom: 4px; }
.item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.tag {
  background: var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

.cta-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 28px;
  text-align: center;
}

/* The setup-honesty block. Deliberately styled as a normal section rather than
   a warning: needing a key is a fact about the product, not a caveat to bury. */
.plain-truth { border-left: 3px solid var(--fill); padding-left: 20px; }

/* The key table — the BYOK lead. The point it has to make at a glance is that
   the "None" column is nearly all of it. */
.keys { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.94rem; }
.keys th, .keys td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.keys thead th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.keys tbody th { font-weight: 650; white-space: nowrap; }
.keys td { color: var(--muted); }
.k-yes, .k-opt, .k-no { font-weight: 650; }
.k-yes { color: #b3402e; }
.k-opt { color: #9f6a00; }
.k-no  { color: #2e7d4f; }
@media (prefers-color-scheme: dark) {
  .k-yes { color: #f08e7c; }
  .k-opt { color: #ffaa00; }
  .k-no  { color: #6fca97; }
}
/* Below ~560px a 3-column table stops being readable; stack it into labelled
   rows rather than letting it scroll sideways. */
@media (max-width: 560px) {
  .keys thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .keys tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .keys th, .keys td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  .keys tbody th { font-size: 1rem; }
}

/* ==========================================================================
   Holding page (/) — the interim single screen that replaces the 2026-07-30
   blanket redirect to dashieapp.com. Reuses the palette above rather than
   carrying its own copy. Removed when the full site goes live.
   ========================================================================== */

main.holding {
  max-width: 620px;
  text-align: center;
  padding: 12vh 24px 6vh;
}
main.holding .logo { width: 100%; max-width: 320px; margin: 0 auto 26px; }
main.holding h1 {
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  line-height: 1.35;
  margin: 0 0 1em;
}
main.holding .lede { font-size: 1rem; margin: 0 auto 1.1em; }
main.holding .soon {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 12px 18px;
  margin: 1.8em auto 1.6em;
}
main.holding .soon strong { color: var(--fg); }
.repos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.repos a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
}
.repos a:hover { border-color: var(--fill); text-decoration: none; }
.licence,
main.holding .contact { color: var(--muted); font-size: 0.82rem; margin: 14px 0 0; }
