/* BedX Hub concept: shared styles. Page-specific rules live in each screen's <style>. */

@font-face { font-family: 'Poppins'; src: url("../fonts/poppins-700.0bd523f60499.woff2") format('woff2'); font-weight: 700; }
@font-face { font-family: 'Poppins'; src: url("../fonts/poppins-600.b550bca8934b.woff2") format('woff2'); font-weight: 600; }
@font-face { font-family: 'Inter'; src: url("../fonts/inter-var.65850a373e25.woff2") format('woff2'); font-weight: 100 900; }

:root {
  --black: #0b0b0b;
  --ink: #1a1a1a;
  --grey: #5c5c5c;
  --mute: #8a8a8a;
  --line: #dcd8cf;
  --paper: #f4f1ea;
  --white: #ffffff;
  --lime: #bfd62d;
  --lime-soft: #eef4c9;
  --red: #d8432f;
  --red-soft: #fbe7e3;
  --amber: #e0a100;
  --amber-soft: #fbf1cf;
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); }
body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.5;
  min-width: 320px;
}
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
h1, h2, h3, h4, .num { font-family: 'Poppins', 'Inter', sans-serif; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: 40px; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 17px; font-weight: 600; }
p.lead { font-size: 20px; color: var(--grey); }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--lime);
}
.kicker.dark { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 26px;
  font-weight: 700; font-size: 17px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap; font-family: inherit; line-height: 1.2;
}
.btn.lime { background: var(--lime); color: var(--black); }
.btn.ghost { border-color: rgba(255,255,255,.35); color: var(--white); background: none; }
.btn.black { background: var(--black); color: var(--white); }
.btn.outline { border-color: var(--black); color: var(--black); background: none; }
.btn.quiet { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn.sm { padding: 10px 16px; font-size: 15px; gap: 8px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.sm svg { width: 16px; height: 16px; }
.link { font-weight: 700; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link svg { width: 16px; height: 16px; }
svg.ic { vertical-align: -0.15em; flex: none; }

/* tags */
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; line-height: 1.3; }
.tag.live { background: var(--lime); color: var(--black); }
.tag.next { background: var(--paper); color: var(--grey); border: 1px solid var(--line); }
.tag.good { background: var(--lime-soft); color: #4d5a00; }
.tag.warn { background: var(--red-soft); color: #9a2a1b; }
.tag.part { background: var(--amber-soft); color: #7a5600; }
.tag.draft { background: var(--paper); color: var(--grey); border: 1px solid var(--line); }

/* concept strip: remove before anything outward */
.concept {
  background: #2b2b2b; color: #cfcfcf; font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; padding: 8px 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.concept b { color: var(--lime); }
.concept .cnav { display: flex; gap: 18px; flex: none; }
.concept .cnav a { color: var(--white); text-decoration: none; font-weight: 700; }
.concept .cnav a.off { opacity: .35; pointer-events: none; }

/* nav */
nav.top { background: var(--black); color: var(--white); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: flex; align-items: center; color: var(--white); text-decoration: none; }
.logo img { height: 46px; display: block; }
nav.top ul { display: flex; gap: 34px; list-style: none; }
nav.top ul a { color: rgba(255,255,255,.85); text-decoration: none; font-weight: 500; font-size: 16px; }
nav.top ul a.on { color: var(--lime); }
nav.top .btn { padding: 12px 20px; font-size: 15px; }
nav.top .navr { display: flex; align-items: center; gap: 10px; }
nav.top .btn.login { color: var(--white); border-color: rgba(255,255,255,.35); background: none; }
.burger { display: none; background: none; border: 0; color: var(--white); width: 40px; height: 40px; padding: 6px; }
.burger svg { width: 100%; height: 100%; }
/* mobile menu: hub.js builds .mnav from the nav's own links and buttons */
nav.top { position: relative; z-index: 20; }
.mnav { display: none; }
/* signed-in nav variant */
nav.top .me { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 15px; text-decoration: none; }
nav.top .me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--black); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* footer */
footer { background: var(--black); color: rgba(255,255,255,.7); padding: 64px 0 40px; font-size: 15px; }
footer .wrap:not(.base-wrap) { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
footer .wrap.base-wrap { display: block; }
footer .logo { margin-bottom: 18px; }
footer .logo img { height: 120px; }
footer p { max-width: 380px; }
footer h5 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer a { color: rgba(255,255,255,.7); text-decoration: none; }
footer .base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.45); }
footer .essence { color: var(--lime); font-weight: 700; margin-top: 18px; }
footer.mini { padding: 28px 0; }
footer.mini .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,.5); }
footer.mini .logo img { height: 30px; }

/* form controls */
label.f { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
label.f small { display: block; font-weight: 400; color: var(--grey); font-size: 14px; margin-top: 2px; }
.in { width: 100%; font: inherit; font-size: 16px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); }
.in:focus { outline: none; border-color: var(--black); }
select.in { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; padding-right: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 10px 16px; border: 2px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; background: var(--white); font-family: inherit; color: var(--ink); }
.chip.on { border-color: var(--black); background: var(--black); color: var(--white); }
.chip.on.lime { background: var(--lime); border-color: var(--lime); color: var(--black); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg .chip { border-radius: 6px; text-align: center; padding: 12px 10px; }
.fld { margin-bottom: 26px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* progress bar */
.bar { height: 8px; background: #ece9e1; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--black); border-radius: 4px; }
.bar i.good { background: var(--lime); }
.bar i.warn { background: var(--red); }
.bar i.part { background: var(--amber); }

/* responsive, shared */
@media (max-width: 1100px) {
  footer .wrap:not(.base-wrap) { grid-template-columns: 1fr 1fr; gap: 40px; }
  footer .wrap:not(.base-wrap) > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  h2 { font-size: 30px; }
  p.lead { font-size: 18px; }
  .btn { white-space: normal; text-align: left; }
  .concept { padding: 8px 20px; font-size: 11px; }
  .concept > span:not(.cnav) { display: none; }
  .concept > span:first-child { display: block; }
  nav.top .wrap { height: 72px; }
  nav.top ul { display: none; }
  nav.top .navr .btn { display: none; }
  nav.top .me span { display: none; }
  .burger { display: block; }
  .logo img { height: 38px; }
  .row2 { grid-template-columns: 1fr; }
  footer .wrap:not(.base-wrap) { grid-template-columns: 1fr; gap: 32px; }
  footer .logo img { height: 96px; }
  footer .base { flex-direction: column; gap: 8px; }
  footer.mini .wrap { flex-direction: column; align-items: flex-start; }
  nav.top.open .mnav { display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--black); border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 3px solid var(--lime); padding: 4px 20px 24px; }
  nav.top .mnav ul { display: flex; flex-direction: column; gap: 0; }
  nav.top .mnav ul a { display: block; padding: 15px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mnav-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
  nav.top .mnav .btn { display: flex; text-align: center; padding: 14px 20px; font-size: 16px; }
  nav.top .mnav .me { padding: 4px 0; }
  nav.top .mnav .me span { display: inline; }
  nav.top .mnav .me .av { display: grid; }
}
