/* Binda — Support site
   Self-contained static stylesheet. No build step, no framework.
   Brand tokens from design/brand-guidelines.md (Sage & Clay). */

:root {
  /* Core palette */
  --sage: #647056;
  --deep-sage: #3E4A38;
  --sage-soft: #8C9A6F;
  --clay: #C07A4E;
  --clay-deep: #A65F38;
  --warm-gold: #C0913C;
  --paper: #FAF6EC;
  --surface: #FFFFFF;
  --surface-warm: #FFFDF7;
  --sage-tint: #EAEEDF;
  --clay-tint: #F4E6D9;
  --ink: #2B302A;
  --ink-soft: #5C6253;
  --ink-faint: #8A8F80;
  --line: #E7E1D3;
  --line-soft: #F0EBDD;

  /* Status */
  --given: #5E7A52;
  --due: #BC8A36;
  --missed: #B5654A;

  /* Shape */
  --r-card: 24px;
  --r-btn: 16px;
  --r-pill: 999px;
  --shadow-card: 0 1px 2px rgba(43,48,42,.04), 0 6px 20px rgba(43,48,42,.05);

  --maxw: 1080px;
  --font: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* text-wrap: pretty on body copy */
p, li { text-wrap: pretty; }

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

h1, h2, h3, h4 {
  color: var(--deep-sage);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 21px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-sage);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-btn) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 236, 0.88);
  backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 21px;
  color: var(--deep-sage);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; }
.brand .support-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  background: var(--sage-tint);
  padding: 3px 9px;
  border-radius: var(--r-pill);
  letter-spacing: 0;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15.5px;
}
.nav a:hover { color: var(--deep-sage); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--deep-sage); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--sage); color: #fff; }
.btn-primary:hover { background: #566249; }
.btn-secondary { background: var(--clay); color: #fff; }
.btn-secondary:hover { background: var(--clay-deep); }
.btn-ghost {
  background: var(--surface);
  color: var(--deep-sage);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--surface-warm); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 26px;
}

/* ---------- Search box (visual; links to sections) ---------- */
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-card);
}
.searchbox svg { width: 20px; height: 20px; color: var(--ink-faint); flex: none; }
.searchbox input {
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  flex: 1;
  padding: 10px 0;
}
.searchbox input:focus { outline: none; }

/* ---------- Category grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: block;
  color: inherit;
  transition: transform .14s ease, box-shadow .18s ease;
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(43,48,42,.05), 0 14px 34px rgba(43,48,42,.09);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--sage-tint);
  color: var(--sage);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .icon.clay { background: var(--clay-tint); color: var(--clay-deep); }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Sections ---------- */
section.block { padding: 44px 0; }
section.block.tint { background: var(--surface-warm); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

/* ---------- FAQ / accordions (native <details>, no JS) ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}
details.qa[open] { box-shadow: var(--shadow-card); }
details.qa > summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 700;
  color: var(--deep-sage);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after {
  content: "";
  width: 11px; height: 11px;
  border-right: 2.4px solid var(--ink-faint);
  border-bottom: 2.4px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: none;
  margin-top: -4px;
}
details.qa[open] > summary::after { transform: rotate(225deg); margin-top: 2px; }
details.qa .body {
  padding: 0 20px 20px;
  color: var(--ink-soft);
}
details.qa .body > *:first-child { margin-top: 0; }
details.qa .body > *:last-child { margin-bottom: 0; }

/* ---------- Article layout ---------- */
.article { padding: 40px 0 60px; }
.article .lede { font-size: 19px; color: var(--ink-soft); }
.article-body { max-width: 760px; }
.article-body h2 { margin-top: 40px; }
.article-body h3 { margin-top: 28px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body img { max-width: 100%; border-radius: var(--r-card); }

/* breadcrumb */
.crumb { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 8px; }
.crumb a { color: var(--sage); font-weight: 600; }

/* Steps list */
ol.steps { counter-reset: step; list-style: none; padding-left: 0; }
ol.steps > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}
ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 30px; height: 30px;
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}

/* Callout / note box */
.note {
  background: var(--sage-tint);
  border-left: 4px solid var(--sage);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0;
  color: var(--deep-sage);
  font-size: 15.5px;
}
.note.clay { background: var(--clay-tint); border-left-color: var(--clay); color: var(--clay-deep); }
.note strong { color: inherit; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--ink-soft); }
.contact-card a.email { font-weight: 700; font-size: 18px; }

/* Pills for on-page nav (TOC) */
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 30px;
}
.toc a {
  font-size: 14px;
  font-weight: 600;
  color: var(--deep-sage);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}
.toc a:hover { background: var(--sage-tint); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-sage);
  color: #D9E0CC;
  padding: 44px 0 30px;
  margin-top: 30px;
}
.site-footer a { color: #E9EEDC; }
.site-footer .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.site-footer .brand svg { width: 28px; height: 28px; }
.site-footer .tagline { color: #B9C4A6; font-size: 14.5px; margin: 14px 0 0; max-width: 260px; }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 34px;
  padding-top: 20px;
  font-size: 13.5px;
  color: #A9B598;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer .disclaimer { max-width: 620px; }

@media (max-width: 760px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
}
@media (max-width: 480px) {
  .site-footer .cols { grid-template-columns: 1fr; }
}
