/* Hive Home — shared styles.
   Follows docs/design.md: Fraunces for display, Inter for everything else, the
   honey accent, and the app's two themes. The hexagon isn't decoration here —
   it's the same motif the product is built on, so the site and the app read as
   one thing. */

:root {
  --bg:        #FAF9F7;
  --surface:   #FFFFFF;
  --border:    #E4E0D8;
  --hairline:  #EDEAE4;
  --text:      #111218;
  --muted:     #6B7280;
  --honey:     #C97842;
  --honey-ink: #A85F30;
  --honey-wash:#FBF1E8;
  --radius:    16px;
  --maxw:      1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0F0F0F;
    --surface:   #1C1C1E;
    --border:    #2E2E31;
    --hairline:  #242427;
    --text:      #F3F2F0;
    --muted:     #9A9AA0;
    --honey:     #E89968;
    --honey-ink: #F0B98F;
    --honey-wash:#201914;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Type ───────────────────────────────────────────────────────────────────
   Fraunces earns display sizes only. The moment it appears on body copy or a
   label the whole thing starts to read like a template. */
h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

/* The app's sectionLabel, exactly: Inter, uppercase, letterSpacing 1.1 */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--honey);
}
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
a { color: var(--honey-ink); }

/* ── Hex — the motif, used structurally ─────────────────────────────────── */
.hex {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.logo .hex { width: 26px; height: 29px; background: var(--honey); }
.logo .hex span { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 560px) { .nav-links .hide-sm { display: none; } }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: clamp(56px, 9vw, 104px) 0; }
.section-head { max-width: 40rem; margin-bottom: 44px; display: grid; gap: 14px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 .accent { color: var(--honey); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--honey); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.note { font-size: 0.8125rem; color: var(--muted); }

/* ── Product vignettes — show, don't describe ───────────────────────────── */
.device {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.35);
}
.device-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.device-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.375rem; font-weight: 600; }

.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--hairline);
}
.row-label { font-size: 0.875rem; font-weight: 500; flex: 1; min-width: 0; }
.row-meta { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.row.done .row-label { color: var(--muted); text-decoration: line-through; }

.tick { width: 20px; height: 23px; background: var(--border); }
.tick.on { background: var(--honey); }

.avatar { width: 26px; height: 29px; font-size: 11px; font-weight: 700; color: #fff; }

.drops {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--honey-wash); color: var(--honey-ink);
  font-size: 0.75rem; font-weight: 600;
}

.aisle {
  font-size: 0.625rem; font-weight: 600; letter-spacing: 1.1px;
  text-transform: uppercase; color: var(--muted);
  margin: 8px 0 2px;
}

/* ── Feature grid ────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 18px; }
@media (min-width: 680px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: grid; gap: 10px; align-content: start;
}
.card .hex { width: 34px; height: 38px; background: var(--honey-wash); margin-bottom: 6px; }
.card .hex svg { width: 17px; height: 17px; stroke: var(--honey); fill: none; stroke-width: 2; }
.card p { font-size: 0.9375rem; color: var(--muted); }

/* ── Prose (privacy / terms) ─────────────────────────────────────────────── */
.page { max-width: 46rem; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 96px); }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.page-header h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
.page h2 {
  font-size: 1.25rem; margin: 40px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--hairline);
}
.page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.page h3 { margin: 24px 0 8px; }
.page p, .page li { color: var(--muted); font-size: 0.9375rem; }
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 16px 22px; display: grid; gap: 7px; }
.page strong { color: var(--text); font-weight: 600; }
.updated { font-size: 0.8125rem; color: var(--muted); }

/* ── Callout ─────────────────────────────────────────────────────────────── */
.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px, 3.5vw, 36px);
  display: grid; gap: 14px;
}
.callout ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.callout li { font-size: 0.9375rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--hairline); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.875rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Contact block on the legal pages. Kept as its own component because both
   pages end with it and it wants the surface treatment, not prose. */
.contact-block {
  margin-top: 48px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-block h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.contact-block a { color: var(--honey-ink); text-decoration: none; font-weight: 500; }
.contact-block a:hover { text-decoration: underline; }
