/* Blinken Labs brand layer, for every page: loaded after style.css on pages whose <body> has class="bl", it
   restyles the shared header, hero, buttons and frames in the logo's charcoal, cream and amber. */

:root {
  --bl-ink: #16171c;        /* logo background */
  --bl-ink-2: #1f2027;
  --bl-ink-3: #2a2b33;
  --bl-cream: #f2eee8;      /* logo lettering */
  --bl-cream-muted: #b9b4ab;
  --bl-amber: #ffb140;      /* the blinking light */
  --bl-amber-deep: #b86e00; /* amber dark enough for text on cream */
  --bl-round: "Nunito", ui-rounded, "SF Pro Rounded", var(--font);
}

/* Nunito ExtraBold, the logo's typeface, served from this site (no third-party requests). Latin subset only,
   which includes the dotless ı the logo uses. License: fonts/OFL.txt. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-latin-800.woff2") format("woff2");
}

body.bl {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-2: #efeae2;
  --text: #16171c;
  --muted: #5d5a55;
  --border: #e4ddd2;
  --accent: #16171c;
  --link: #9a5c00;
  --code-bg: #efeae2;
  --hero-bg: radial-gradient(900px 420px at 22% -12%, rgba(255, 177, 64, .16) 0%, transparent 60%), var(--bl-ink);
  --hero-text: var(--bl-cream);
  --hero-muted: var(--bl-cream-muted);
  --shadow: 0 1px 2px rgba(22, 23, 28, .05), 0 8px 24px rgba(22, 23, 28, .06);
}
@media (prefers-color-scheme: dark) {
  body.bl {
    --bg: #121317;
    --surface: #1b1c22;
    --surface-2: #24252c;
    --text: #f2eee8;
    --muted: #aaa59c;
    --border: #2e2f37;
    --accent: #ffb140;
    --link: #ffc56e;
    --code-bg: #24252c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

/* ---------- Logo ---------- */

.logo {
  font-family: var(--bl-round);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--bl-cream);
  white-space: nowrap;
}
/* The i is a dotless ı with the amber light where its dot would be, trailing two fading after-images. */
.logo .i { position: relative; display: inline-block; }
.logo .i::before,
.logo .i::after,
.logo .i b {
  content: "";
  position: absolute;
  top: .07em;
  left: 50%;
  width: .19em;
  height: .19em;
  margin-left: -.095em;
  border-radius: 50%;
  background: var(--bl-amber);
}
.logo .i b { z-index: 1; }
.logo .i::before { transform: translateX(.26em); opacity: .55; filter: blur(.03em); }
.logo .i::after { transform: translateX(.52em); opacity: .18; filter: blur(.06em); }
.logo.static .i::before, .logo.static .i::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .logo.blink .i b { animation: bl-led 3.2s ease-in-out infinite; }
  .logo.blink .i::before { animation: bl-trail 3.2s ease-in-out infinite; }
  .logo.blink .i::after { animation: bl-trail 3.2s ease-in-out .12s infinite; }
}
@keyframes bl-led {
  0%, 62%, 100% { opacity: 1; box-shadow: 0 0 .18em rgba(255, 177, 64, .7); }
  70% { opacity: .35; box-shadow: none; }
  78% { opacity: 1; box-shadow: 0 0 .3em rgba(255, 177, 64, .9); }
}
@keyframes bl-trail {
  0%, 60% { opacity: 0; }
  76% { opacity: .5; }
  100% { opacity: 0; }
}

/* ---------- Header, hero, buttons on brand pages ---------- */

body.bl .site-header { background: rgba(22, 23, 28, .9); }
body.bl .nav a { color: var(--bl-cream-muted); }
body.bl .nav a:hover, body.bl .nav a[aria-current="page"] { color: var(--bl-cream); }
body.bl .nav a.nav-cta { background: var(--bl-amber); color: var(--bl-ink); font-weight: 600; }
@media (max-width: 760px) { body.bl .nav .wide { display: none; } }

/* The company pages' Download button: a menu of the apps (a <details>; a small script closes it on a click
   elsewhere or Escape). */
.nav-menu { position: relative; }
.nav-menu summary {
  display: flex; align-items: center; gap: 4px;
  list-style: none; cursor: pointer; user-select: none;
  font-size: .95rem; font-weight: 600; padding: 6px 10px 6px 12px; border-radius: 8px;
  background: var(--bl-amber); color: var(--bl-ink);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { filter: brightness(1.1); }
.nav-menu summary svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-menu[open] summary svg { transform: rotate(180deg); }
.nav-menu-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--bl-ink-2); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
}
body.bl .nav .nav-menu-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; font-size: .95rem; color: var(--bl-cream); white-space: nowrap;
}
.nav-menu-list a:hover { background: rgba(255, 255, 255, .08); }
.nav-menu-list img { width: 28px; height: 28px; flex: none; }
.nav-menu-list small { color: var(--bl-cream-muted); font-size: .8rem; }
@media (max-width: 640px) {
  .nav-menu summary { padding: 6px 6px 6px 7px; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) { .nav-menu summary svg { transition: none; } }

/* Lockups: a mark beside a wordmark. Sizes follow the lockup's font-size. */
.lockup { display: inline-flex; align-items: center; gap: .5em; line-height: 1; }
.lockup .word { font-family: var(--bl-round); font-weight: 800; letter-spacing: -.015em; white-space: nowrap; }
.lockup .stack { display: inline-flex; flex-direction: column; gap: .2em; }
.lockup .by { display: inline-flex; align-items: baseline; gap: .35em; font-size: .42em; font-weight: 600; letter-spacing: .02em; opacity: .7; }
.lockup .logo { color: inherit; }
.lockup .by .logo { font-size: 1.15em; }

/* Blinken Labs mark: two rows of eight lights spelling 01000010 01001100, "BL" in binary */
.ledgrid { display: inline-grid; grid-template-columns: repeat(8, .3em); gap: .13em; flex: none; }
.ledgrid i { display: block; width: .3em; height: .3em; border-radius: 50%; background: currentColor; opacity: .15; }
.ledgrid i.on { background: var(--bl-amber); opacity: 1; box-shadow: 0 0 .2em rgba(255, 177, 64, .7); }
@media (prefers-reduced-motion: no-preference) {
  .lockup.blink .ledgrid i.on { animation: bl-flicker 3.4s ease-in-out var(--d) infinite; }
}
@keyframes bl-flicker { 0%, 84%, 100% { opacity: 1; } 90% { opacity: .3; box-shadow: none; } }

/* Fuse Box mark: a column of status lights, a resting red over amber over green */
.statuslights { display: inline-flex; flex-direction: column; gap: .14em; flex: none; }
.statuslights i { display: block; width: .36em; height: .36em; border-radius: 50%; }
.statuslights .r { background: #ff6b5e; opacity: .3; }
.statuslights .a { background: var(--bl-amber); box-shadow: 0 0 .2em rgba(255, 177, 64, .6); }
.statuslights .g { background: #3fd8a8; box-shadow: 0 0 .2em rgba(63, 216, 168, .6); }

body.bl .brand .lockup { font-size: 1.4rem; color: var(--bl-cream); }
body.bl .brand .lockup.ssr { font-size: 1.15rem; }
body.bl .brand .lockup.ssr .by { font-size: .55em; }

@media (max-width: 640px) {
  /* style.css hides the brand's text on phones. Keep the Blinken Labs lockup whole; Fuse Box keeps
     just its lights, as it kept just its icon before. */
  body.bl .brand span.lockup { display: inline-flex; font-size: 1.1rem; }
  body.bl .brand .lockup.ssr span.stack { display: none; }
  body.bl .brand span.ledgrid { display: inline-grid; }
  body.bl .brand span.logo { display: inline; }
  body.bl .brand span.i { display: inline-block; }
  body.bl .brand span.statuslights { display: inline-flex; font-size: 1.5rem; }
}

body.bl .hero .eyebrow { color: var(--bl-amber); background: rgba(255, 177, 64, .1); border-color: rgba(255, 177, 64, .3); }
body.bl .hero p.lead a, body.bl .hero .hero-note a { color: var(--bl-amber); }
body.bl .btn-primary { background: var(--bl-amber); color: var(--bl-ink); }
body.bl .btn-dark { background: var(--bl-ink); color: var(--bl-cream); }
body.bl .kicker { color: var(--bl-amber-deep); }
body.bl .callout { border-color: var(--bl-amber); }
body.bl .step::before { background: var(--bl-ink); color: var(--bl-amber); }
body.bl .site-footer a:hover { color: var(--text); }
@media (prefers-color-scheme: dark) {
  body.bl .kicker { color: var(--bl-amber); }
  body.bl .btn-dark { background: var(--bl-cream); color: var(--bl-ink); }
  body.bl .step::before { background: var(--bl-amber); color: var(--bl-ink); }
}

/* Fuse Box on brand pages: window frames, screenshot placeholders and page links in charcoal and
   amber. The module colors (blue, amber, green, violet, red) stay: they're the app's own chart colors. */
body.bl .hero h1 .grad { background: linear-gradient(90deg, #ffb140, #ffd08a 55%, #f2eee8); -webkit-background-clip: text; background-clip: text; }
body.bl .shot-frame { background: var(--bl-ink-2); }
body.bl .shot-frame .titlebar { background: var(--bl-ink-3); }
body.bl figure.shot.missing .placeholder {
  color: var(--bl-cream-muted);
  background:
    repeating-linear-gradient(135deg, rgba(242, 238, 232, .025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, #24252c, #18191e);
  border-color: rgba(185, 180, 171, .35);
}
body.bl .placeholder strong { color: var(--bl-cream); }
body.bl .placeholder code { color: var(--bl-amber); }
body.bl .toc a:hover { border-color: rgba(255, 177, 64, .5); }
body.bl .split ul.ticks li::before { background-color: #1a9a6c; }
body.bl .dl-card .role { color: var(--bl-amber-deep); }
body.bl .diagram .host-box { stroke: var(--bl-amber); }
@media (prefers-color-scheme: dark) {
  body.bl .dl-card .role { color: var(--bl-amber); }
  body.bl .split ul.ticks li::before { background-color: #2fbf8c; }
}

/* ---------- Home ---------- */

.home-hero { padding: 104px 0 96px; }
.home-hero h1 { font-family: var(--bl-round); font-weight: 800; letter-spacing: -.025em; max-width: 820px; }
.home-hero h1 em { font-style: normal; color: var(--bl-amber); }
.home-hero .hero-note { margin-bottom: 0; }

/* Status lights: a row of small LEDs, one per product */
.leds { display: inline-flex; gap: 6px; margin-right: 2px; }
.leds i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; display: block; }
.leds i.on { opacity: 1; box-shadow: 0 0 6px currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .leds i.on { animation: bl-blink 2.4s steps(1, end) infinite; }
  .leds i.on + i.on { animation-delay: .8s; }
}
@keyframes bl-blink { 0%, 80% { opacity: 1; } 85%, 95% { opacity: .35; } }

/* Product line-up under the hero */
.lineup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: -48px; position: relative; }
.lineup a.card { display: flex; gap: 18px; align-items: center; color: var(--text); transition: transform .15s, box-shadow .15s; }
.lineup a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22, 23, 28, .08), 0 14px 32px rgba(22, 23, 28, .12); }
.lineup .app-icon { width: 64px; height: 64px; flex: none; }
.lineup h3 { margin: 0 0 2px; }
.lineup p { font-size: .95rem; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: #1a9a6c; }
.status.soon { color: var(--bl-amber-deep); }
@media (prefers-color-scheme: dark) {
  .status.live { color: #3fd8a8; }
  .status.soon { color: var(--bl-amber); }
}

/* Product feature panels */
.product { padding: 96px 0; }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product-head .app-icon { width: 72px; height: 72px; flex: none; }
.product-head h2 { margin: 0; }
.product .lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 8px; }
.product .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.product .meta-line { font-size: .88rem; color: var(--muted); margin-top: 12px; }

/* Fuse Box's section on the home page: a dark band in the brand charcoal */
.product.ssr { background: radial-gradient(900px 400px at 85% 0%, rgba(255, 177, 64, .1), transparent 60%), var(--bl-ink); color: var(--bl-cream); }
.product.ssr .lead, .product.ssr .split p, .product.ssr .meta-line { color: var(--bl-cream-muted); }
.product.ssr .split ul.ticks li { color: var(--bl-cream); }
body.bl .product.ssr .kicker { color: var(--bl-amber); }

/* Reel Radar: coming soon */
.product-head .subtitle { margin: 4px 0 0; font-size: 1rem; font-weight: 600; color: var(--muted); }
.product .tagline { font-family: var(--bl-round); font-weight: 800; font-size: 1.3rem; margin: 0 0 8px; }
.bs-art {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius);
  background:
    radial-gradient(500px 300px at 80% 10%, rgba(255, 177, 64, .22), transparent 60%),
    var(--bl-ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* Two iPhone screenshots, overlapping, in thin device frames, with the Blinken light above */
.bs-art.phones { position: relative; overflow: hidden; display: block; }
.bs-art.phones .ph {
  position: absolute; height: 88%; width: auto; top: 9%;
  border-radius: 22px; border: 5px solid #0c0d10; background: #fff;
  box-shadow: 0 0 0 1.5px rgba(242, 238, 232, .25), 0 20px 40px rgba(0, 0, 0, .45);
}
.bs-art.phones .front { left: 46%; transform: rotate(4deg); }
.bs-art.phones .back { left: 16%; top: 13%; transform: rotate(-6deg); opacity: .9; }
.bs-art.phones .blink {
  position: absolute; left: 12%; top: 9%; width: 14px; height: 14px; border-radius: 50%; background: var(--bl-amber);
  box-shadow: 0 0 12px var(--bl-amber), 18px 0 0 -2px rgba(255, 177, 64, .45), 33px 0 0 -3px rgba(255, 177, 64, .18);
}
@media (max-width: 520px) { .bs-art.phones .ph { border-width: 3px; border-radius: 14px; } }
.media-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.media-kinds li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-weight: 550; font-size: .92rem; }
.media-kinds li.later { border-style: dashed; background: none; color: var(--muted); font-weight: 500; }

/* Sign-up placeholder: shown, but switched off until the list exists */
.signup { margin-top: 28px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.signup fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.signup label { flex-basis: 100%; font-weight: 600; font-size: .95rem; }
.signup input {
  flex: 1 1 220px;
  font: inherit;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.signup button { font: inherit; }
.signup fieldset:disabled input, .signup fieldset:disabled button { opacity: .55; cursor: not-allowed; }
.signup small { display: block; margin-top: 10px; color: var(--muted); font-size: .85rem; }

/* About */
.about { text-align: center; }
.about .lockup { font-size: clamp(2.2rem, 7vw, 4rem); color: var(--text); margin-bottom: 14px; }
.about p.binary { font-family: var(--mono); font-size: .88rem; font-weight: 500; letter-spacing: .06em; margin-bottom: 26px; }
.about p { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.about p + p { margin-top: 14px; }
.about .contact { margin-top: 18px; font-size: 1rem; }

/* Placeholder copy, marked so it's easy to find before launch */
.draft { outline: 2px dashed rgba(255, 177, 64, .7); outline-offset: 6px; border-radius: 4px; }
