/* BeeSync public site — beesync.app
   Palette taken from the logo itself (brand/svg/beesync-mark.svg), not from
   docs/04-design-tokens.md, which still documents an older cream/terracotta scheme the brand has
   moved away from:
     #0B2742  deep navy   — the bee, the wordmark, dark bands
     #1ABC9C  teal        — left chevron; the primary accent
     #FEB202  amber       — right chevron; used sparingly, for emphasis only
     #F5F5FA  near-white  — the page ground */

:root {
  --navy:        #0B2742;
  --navy-soft:   #16395c;
  --teal:        #1ABC9C;
  --teal-deep:   #128f76;
  --amber:       #FEB202;
  --ground:      #F5F5FA;
  --surface:     #FFFFFF;
  --ink:         #0B2742;
  --ink-soft:    #4a6076;
  --ink-faint:   #7d8fa0;
  --rule:        #dfe3ec;
  --rule-strong: #c6ccdb;
  --note:        #eef7f5;
  --shadow:      0 1px 2px rgba(11,39,66,.06), 0 12px 32px rgba(11,39,66,.09);
}

@media (prefers-color-scheme: dark) {
  /* Ground is the brand navy exactly: the on-dark lockup carries a #0B2742 backing rect, so any
     other shade shows as a visible plate behind the logo. The band goes darker than the ground so
     it still reads as a distinct band. */
  :root:not([data-theme="light"]) {
    --navy:        #06182A;
    --navy-soft:   #1c4771;
    --teal:        #2fd3b3;
    --teal-deep:   #8ce8d6;
    --amber:       #FFC53D;
    --ground:      #0B2742;
    --surface:     #12314E;
    --ink:         #EAF1F7;
    --ink-soft:    #adc0d1;
    --ink-faint:   #8299ad;
    --rule:        #1e4368;
    --rule-strong: #2d5c86;
    --note:        #0e3244;
    --shadow:      0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.28);
  }
}
:root[data-theme="dark"] {
  --navy:        #06182A;
  --navy-soft:   #1c4771;
  --teal:        #2fd3b3;
  --teal-deep:   #8ce8d6;
  --amber:       #FFC53D;
  --ground:      #0B2742;
  --surface:     #12314E;
  --ink:         #EAF1F7;
  --ink-soft:    #adc0d1;
  --ink-faint:   #8299ad;
  --rule:        #1e4368;
  --rule-strong: #2d5c86;
  --note:        #0e3244;
  --shadow:      0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
.wrap.wide { max-width: 68rem; }

/* ---------- masthead ---------- */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.brand-text { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-text span { color: var(--teal); }
nav.site a {
  font-size: .9rem;
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.15rem;
}
nav.site a:hover, nav.site a:focus-visible { color: var(--teal-deep); text-decoration: underline; }

/* ---------- type ---------- */
h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.026em;
  font-weight: 800;
  margin: 0 0 .7rem;
  text-wrap: balance;
}
h2 {
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -.014em;
  margin: 2.6rem 0 .7rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}
h2:first-of-type { border-top: none; padding-top: 0; }
h3 { font-size: 1.04rem; font-weight: 700; margin: 1.5rem 0 .4rem; }
p, li { max-width: 40rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .45rem; }
a { color: var(--teal-deep); }

.updated { font-size: .82rem; color: var(--ink-faint); margin: 0 0 2.4rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); margin: 0 0 2rem; }

/* ---------- callouts ---------- */
.note {
  background: var(--note);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal);
  padding: 1rem 1.15rem;
  margin: 1.6rem 0;
  font-size: .95rem;
  border-radius: 0 8px 8px 0;
}
.note strong { display: block; margin-bottom: .3rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.2rem 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 30rem; }
th {
  text-align: left;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  padding: 0 1rem .55rem 0;
  border-bottom: 2px solid var(--navy);
}
td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: none; }

/* =======================================================================
   Landing page
   ======================================================================= */

.hero { padding: 2rem 0 1rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.8rem; max-width: 34rem; }
.hero-shot { justify-self: center; }
.hero-shot img {
  width: 100%;
  max-width: 270px;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: block;
}
@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy h1 { max-width: none; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-block;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: .96rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--teal); color: #05231d; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* dark band — the one place amber is allowed to shout */
.band {
  background: var(--navy);
  color: #EAF1F7;
  margin: 4rem calc(50% - 50vw) 0;
  padding: 3.5rem calc(50vw - 50%);
}
.band h2 { border-top: none; padding-top: 0; margin-top: 0; color: #fff; }
.band p { color: #b9cbdb; }
.band .eyebrow { color: var(--amber); }
.eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 .6rem;
}
.band video {
  width: 100%;
  max-width: 52rem;
  border-radius: 14px;
  margin-top: 1.6rem;
  display: block;
  /* Reserve the right box before metadata loads — with preload="none" the element would otherwise
     take the poster's aspect ratio and jump when the video is finally fetched. */
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

/* role cards */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin: 1.8rem 0 0; }
.role {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.role h3 { margin: 0 0 .5rem; }
.role h3::before {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  margin-bottom: .7rem;
}
.role:nth-child(2) h3::before { background: var(--amber); }
.role:nth-child(3) h3::before { background: var(--navy-soft); }
.role p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.1rem 2rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.features li { margin: 0; max-width: none; }
.features strong { display: block; color: var(--ink); }
.features span { font-size: .93rem; color: var(--ink-soft); }

/* screenshot strip */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.4rem; margin-top: 1.8rem; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); display: block; }
.shots figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .6rem; text-align: center; }

.wide-shot { margin-top: 1.8rem; }
.wide-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--rule); box-shadow: var(--shadow); display: block; }

.closing { margin-top: 4rem; padding: 2.2rem 0 0; border-top: 1px solid var(--rule); }

footer.site {
  margin-top: 4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
}
footer.site a { color: var(--ink-soft); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

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