/* brb.happyhacks.io: Deep Teal / Eucalyptus / Apricot / Ivory ("Need a moment? Be right back.") */
:root {
  --teal: #244B4B; --teal-dark: #1A3838; --euca: #8FB9AA; --euca-soft: #DCE9E4; --apricot: #EAB394; --apricot-soft: #F6E3D4;
  --ivory: #FAF8F3; --paper: #FFFFFF; --ink: #244B4B; --text: #3C5653; --muted: #6B807C; --line: #E6E1D8; --line-hi: #D8D1C5;
  --live: #3FAF7F; --amber: #D98B2B; --danger: #C2554B;
  --head: "Outfit", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; background: var(--ivory); color: var(--text);
  font: 16px/1.6 "Nunito Sans", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; }
a { color: var(--teal); text-decoration-color: var(--apricot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 880px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--euca-soft); color: var(--ink); border-radius: 5px; padding: 1px 6px; }

/* header / footer */
.nav-bar { background: rgba(250, 248, 243, .92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(6px); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; line-height: 1; }
.brand svg { width: 44px; height: auto; }
.brand b { font-family: var(--head); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; display: block; }
.brand small { font-family: var(--head); font-weight: 600; font-size: .72rem; display: block; margin-top: 2px; }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav nav a:hover { color: var(--teal-dark); text-decoration: underline; text-decoration-color: var(--apricot); }
.nav form { margin: 0; }
.who { color: var(--muted) !important; font-size: .9rem; }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-inner .sp { flex: 1; }
.foot a { color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: inherit; font-weight: 700;
  border-radius: 999px; padding: 12px 24px; color: var(--ivory); background: var(--teal); border: 1px solid var(--teal);
  cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-dark); }
.btn small { font-weight: 500; color: var(--euca-soft); }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--line-hi); font-weight: 600; border-radius: 14px; }
.btn.secondary:hover { background: var(--euca-soft); }
.btn.secondary small { color: var(--muted); }
.btn.big { padding: 16px 30px; font-size: 1.12rem; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn[disabled], .missing { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline;
  text-decoration-color: var(--apricot); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: center;
  padding-top: 56px; padding-bottom: 20px; }
.eyebrow { color: var(--muted); font-size: 1.08rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
h1 .u { position: relative; white-space: nowrap; }
h1 .u::after { content: ""; position: absolute; left: 2%; right: 4%; bottom: -.06em; height: .12em; border-radius: 99px;
  background: var(--apricot); transform: rotate(-1.2deg); }
.lede { margin: 0 0 26px; max-width: 46ch; font-size: 1.15rem; }
.by { color: var(--muted); font-size: .85rem; letter-spacing: .14em; margin: 16px 0 0; }
.scene { position: relative; isolation: isolate; display: flex; align-items: center; gap: 4px; padding: 30px 0; }
.scene::before { content: ""; position: absolute; inset: 0 -40px; border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background: var(--apricot-soft); z-index: -1; }
.cam { flex: 1; background: var(--paper); border-radius: 16px; box-shadow: 0 10px 30px rgba(36, 75, 75, .12); padding: 8px;
  min-width: 0; }
.cam.mid { transform: translateY(-6px); }
.cam-top { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; font-size: .74rem; font-weight: 700; color: var(--ink); padding: 2px 4px 8px; }
.cam-top .sp { flex: 1; }
.cam-top .ic { width: 16px; height: 13px; flex: none; }
.cam-top .live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
.cam-pic { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 241 / 233; background: #EFE6DA; }
.cam-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); background: var(--apricot); color: var(--ink);
  font-size: .68rem; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.cam-btns { display: flex; gap: 6px; margin-top: 8px; }
.cam-btns span { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 5px 0;
  background: #F1EEE7; color: var(--muted); }
.cam-btns span.on { background: var(--teal); color: var(--ivory); }
.arrow { color: var(--teal); font-size: 1.3rem; font-weight: 700; flex: none; }

/* how it works */
.how { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line);
  border-radius: 20px; margin-top: 30px; }
.how > div { display: flex; gap: 14px; padding: 24px 22px; }
.how > div + div { border-left: 1px solid var(--line); }
.how .n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--apricot-soft); color: var(--ink);
  font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.how h3 { margin: 6px 0 4px; font-size: 1.08rem; }
.how p { margin: 0; color: var(--muted); font-size: .95rem; }

/* sections */
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 64px 0 14px; font-weight: 700; letter-spacing: -.01em; }
.compat { color: var(--muted); margin: 0 0 20px; }
.compat b { color: var(--ink); font-weight: 700; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card .for { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.all { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 16px; }
.all .btn { justify-content: space-between; width: 100%; }
.steps { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: none; }
.steps.show { display: block; }
.steps strong { font-family: var(--head); color: var(--ink); font-size: 1.05rem; }
.steps ol { margin: 8px 0 0; padding-left: 20px; }
.steps li { margin: 6px 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  background: var(--euca); border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.tag.warn { background: #F4CF9C; }
.tag.bad { background: #F2B8B1; }
.tag.ok { background: var(--euca); }
.tag.dim { background: #EFEBE3; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--euca); }
.feature:nth-child(even) .dot { background: var(--apricot); }
.card.use { background: var(--euca-soft); border-color: transparent; }
.card.use p { margin: 0 0 10px; color: var(--ink); }
.card.use p:last-child { margin-bottom: 0; color: var(--text); }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-family: var(--head); font-size: 1.05rem; }
.faq details p { margin: 10px 0 2px; }
.note.tm { font-size: .78rem; opacity: .85; }

/* plans and keys */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.plan-pro { border: 2px solid var(--teal); }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .price { font-family: var(--head); color: var(--ink); font-size: 2.2rem; font-weight: 800; margin: 6px 0 4px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan ul { padding-left: 18px; color: var(--text); margin: 8px 0 18px; }
.plan li { margin: 4px 0; }
.plan form { margin: 0; }
.keycard { margin-top: 12px; }
.keyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
code.key { font-size: 1.1rem; padding: 6px 10px; letter-spacing: .04em; }
.keytable { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 12px; }
.keytable th, .keytable td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.keytable th { color: var(--muted); font-weight: 600; }
.keytable td .linkbtn { margin-right: 10px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-top: 12px; }
.inline-form label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.inline-form input, .inline-form select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-hi);
  background: var(--paper); color: var(--ink); }
.early { background: var(--apricot-soft); border: 1px solid var(--apricot); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.was { color: var(--muted); font-size: 1.2rem; font-weight: 500; }

/* guide / EULA (Markdown rendered) */
.guide h2 { font-size: 1.35rem; margin-top: 40px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.guide h3 { font-size: 1.08rem; margin-top: 28px; }
.guide li { margin: 5px 0; }
.guide table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: .94rem; background: var(--paper); }
.guide th, .guide td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.guide th { background: var(--euca-soft); color: var(--ink); }
.guide img { display: none; }
.guide strong { color: var(--ink); }

/* message / admin */
.page { padding-top: 40px; padding-bottom: 40px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.msg { border-radius: 12px; padding: 10px 14px; background: var(--euca-soft); color: var(--ink); }
.msg.err { background: #F8DEDA; color: #7A2A22; }
.admin-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.admin-head form { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 22px; }
.admin-card-head { display: flex; align-items: center; gap: 10px; }
.admin-card-head h2 { margin: 0; font-size: 1.15rem; }
.admin-card-head .sp { flex: 1; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.commits { padding-left: 18px; }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.updlog { background: #F3F0E9; border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 360px; overflow: auto;
  white-space: pre-wrap; font-size: .82rem; margin-top: 14px; color: var(--ink); }
.hint { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.stat { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.5rem; color: var(--ink); font-family: var(--head); }
.stat span { color: var(--muted); font-size: .85rem; }
.field { display: grid; gap: 6px; margin: 16px 0; max-width: 360px; }
.field input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-hi); background: var(--paper); color: var(--ink); }
.or { color: var(--muted); margin: 22px 0 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .scene { margin: 0 4px; }
  .scene::before { inset: 0 -16px; }
  .dl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .how { grid-template-columns: 1fr; }
  .how > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .nav { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav nav { margin-left: 0; width: 100%; gap: 6px 14px; font-size: .95rem; }
  .card { padding: 18px; }
  .scene { gap: 0; }
  .arrow { font-size: 1rem; }
  .cam { padding: 5px; border-radius: 12px; }
  .cam-top { font-size: .56rem; padding-bottom: 5px; gap: 4px; }
  .cam-top .ic { width: 12px; height: 10px; }
  .cam-btns span { font-size: .58rem; }
  .pill { font-size: .55rem; padding: 2px 6px; }
}

/* header Download Free + its dialog */
.nav-dl { flex: none; padding: 9px 18px; font-size: .95rem; }
.dl-modal { border: 0; border-radius: 22px; padding: 30px 30px 24px; width: min(480px, calc(100vw - 32px)); background: var(--paper);
  color: var(--text); box-shadow: 0 24px 60px rgba(36, 75, 75, .28); text-align: center; }
.dl-modal::backdrop { background: rgba(26, 56, 56, .45); backdrop-filter: blur(2px); }
.dl-modal h2 { margin: 8px 0 6px; font-size: 1.6rem; }
.dl-mark svg { width: 64px; height: auto; }
.dl-for { margin: 0 0 18px; color: var(--muted); }
.dl-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dl-actions form { margin: 0; }
.dl-actions .btn.secondary { border-radius: 999px; padding: 15px 24px; }
.dl-other { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.dl-close { position: absolute; top: 10px; right: 12px; margin: 0; }
.dl-close .x { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
@media (max-width: 640px) {
  .nav .brand { flex: 1; }
  .nav nav { order: 3; }
  .nav-dl { order: 2; }
}

/* See it in action */
.see-head { padding-top: 52px; max-width: 760px; }
.see-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.see-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 64px; }
.see-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 36px; align-items: center; }
.see-step:nth-child(even) { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.see-step:nth-child(even) .see-text { order: 2; }
.see-text h2 { margin: 10px 0 8px; font-size: clamp(1.3rem, 2.6vw, 1.65rem); }
.see-text p { margin: 0 0 10px; }
.see-text .n { width: 40px; height: 40px; border-radius: 50%; background: var(--apricot-soft); color: var(--ink);
  font-family: var(--head); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(36, 75, 75, .14); }
.shot img { display: block; width: 100%; height: auto; }
.shot.mini { max-width: 448px; justify-self: center; }
.meet { background: #1F2A2A; border-radius: 18px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  box-shadow: 0 14px 40px rgba(36, 75, 75, .18); }
.tile { position: relative; aspect-ratio: 249 / 184; border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile b { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--head);
  font-size: 1.3rem; }
.tile span { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: .78rem; font-weight: 700;
  background: rgba(0, 0, 0, .45); border-radius: 6px; padding: 1px 7px; }
.tile.you { outline: 3px solid var(--euca); outline-offset: -3px; }
.tile.t1 { background: #2E3B3B; } .tile.t1 b { background: #5E7FA8; }
.tile.t2 { background: #2E3B3B; } .tile.t2 b { background: #A8745E; }
.tile.t3 { background: #2E3B3B; } .tile.t3 b { background: #7A6AA0; }
.see-cta { text-align: center; margin-top: 72px; }
.see-cta h2 { margin-top: 0; }
@media (max-width: 860px) {
  .see-step, .see-step:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .see-step:nth-child(even) .see-text { order: 0; }
}
