/* hq.theaioperator.io, styled like the no-host news videos (drafts/reels/2026-12-05-osb-idle-save-explainer/style.css) */

:root {
  --stage: #08080A;
  --card: #121218;
  --card-2: #131317;
  --line: #ffffff1c;
  --line-2: #ffffff2e;
  --text: #ffffff;
  --soft: #C9C9D1;
  --muted: #A8A8B0;
  --lime: #B8F03A;
  --lime-ink: #0B0B0D;
  --lime-bg: #1A2208;
  --lime-text: #E9F9C8;
  --purple: #8E86FF;
  --purple-soft: #B9B3FF;
  --blue: #4C9BFF;
  --star: #FFC83D;
  --bar-h: 58px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--stage); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }

body {
  background: var(--stage);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
}

a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* animated video background, same code as the videos (bg.js sizes it to the screen) */
#bg {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0;
}
.veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(8,8,10,.2) 0%, rgba(8,8,10,.6) 60%, rgba(8,8,10,.88) 100%);
}

/* top bar: app header on phones, full navigation on desktop */
.topbar {
  position: sticky; top: 0; z-index: 10;
  padding-top: var(--safe-t);
  background: rgba(8,8,10,.72);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar .in {
  max-width: 900px; height: var(--bar-h); margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--soft); font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: #ffffff10; }
.nav a[aria-current="page"] { color: var(--text); background: #ffffff14; }
.sub {
  margin-left: auto; text-decoration: none;
  background: var(--lime); color: var(--lime-ink);
  font-weight: 800; font-size: 14px; letter-spacing: -.01em;
  padding: 9px 14px; border-radius: 11px; min-height: 40px; display: inline-flex; align-items: center;
  transition: filter .15s;
}
.sub:hover { filter: brightness(1.07); }

/* bottom tab bar on phones, like a native app */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding-bottom: var(--safe-b);
  background: rgba(10,10,13,.86);
  backdrop-filter: saturate(140%) blur(16px); -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar .in { height: var(--tab-h); display: grid; grid-template-columns: repeat(4, 1fr); max-width: 560px; margin: 0 auto; }
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .01em;
}
.tabbar a span.ic { width: 52px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] span.ic { background: var(--lime); color: var(--lime-ink); }

@media (min-width: 760px) {
  .nav { display: flex; }
  .sub { margin-left: 8px; }
  .tabbar { display: none; }
}

/* page column */
.wrap {
  position: relative; z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px calc(var(--tab-h) + var(--safe-b) + 40px);
}
.wrap.wide { max-width: 900px; }
@media (min-width: 760px) { .wrap { padding: 48px 24px 72px; } }

/* entrance, like cards popping in on the video stage */
.pop { opacity: 0; transform: translateY(12px); animation: pop .45s cubic-bezier(.2,.8,.2,1) forwards; }
.d1 { animation-delay: .04s } .d2 { animation-delay: .1s } .d3 { animation-delay: .16s }
.d4 { animation-delay: .22s } .d5 { animation-delay: .28s } .d6 { animation-delay: .34s }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pop { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}

/* small uppercase label with dots, like the CLAUDE CODE card header */
.hd {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
}
.hd i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.hd i.on { background: var(--lime); }

/* hero */
.hero { margin-bottom: 22px; }
.hero .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero .av { width: 60px; height: 60px; border-radius: 16px; border: 1px solid var(--line-2); flex: none; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.hero .by { color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 3px; }
.hero .by a { text-decoration: none; color: var(--text); font-weight: 700; }
.hero .line { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--soft); }
.hero .line strong { color: var(--text); font-weight: 700; }

/* the blue key-word box with corner dots, same as the video captions */
.key {
  position: relative; display: inline-block;
  padding: 0 5px; margin: 0 2px;
  color: var(--text);
  background: rgba(76,155,255,.18);
  outline: 2px solid var(--blue); border-radius: 3px;
}
.key::before, .key::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue);
}
.key::before { left: -5px; top: -5px; }
.key::after { right: -5px; bottom: -5px; }

/* star counter, like the 5.6k stars beat */
.stars { display: flex; align-items: baseline; gap: 7px; margin-top: 10px; }
.stars .s { color: var(--star); font-size: 20px; line-height: 1; }
.stars b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stars span:last-child { color: var(--muted); font-weight: 600; font-size: 14px; }

/* buttons and cards */
.stack { display: grid; gap: 10px; margin-bottom: 30px; }
.card {
  display: block; text-decoration: none; position: relative;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 15px 16px;
  box-shadow: 0 16px 48px #000a;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--purple); transform: translateY(-2px); }
.card:active { transform: scale(.99); }
.card .t { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.card .d { display: block; color: var(--soft); font-size: 15px; margin-top: 2px; }
.card .arr { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; color: var(--muted); }

.go {
  display: block; text-decoration: none;
  background: var(--lime); color: var(--lime-ink);
  border-radius: 18px; padding: 15px 18px;
  box-shadow: 0 16px 48px #000a;
  transition: transform .15s ease, filter .15s ease;
}
.go:hover { transform: translateY(-2px); filter: brightness(1.06); }
.go:active { transform: scale(.99); }
.go .t { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.go .d { display: block; font-size: 14px; font-weight: 600; opacity: .78; margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: #fff; color: #0F1419; font-weight: 800; font-size: 12px; border-radius: 8px; padding: 3px 8px; }

/* row of real tool logos on the home card */
.logos { display: flex; align-items: center; margin-top: 12px; }
.logos { gap: 6px; }
.logos .lt { width: 32px; height: 32px; border-radius: 9px; }
.logos .more { margin-left: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }

/* logo tile: every tool shows its real app icon */
.lt {
  flex: none; width: 48px; height: 48px; border-radius: 13px; overflow: hidden;
  background: #1D1D24; display: flex; align-items: center; justify-content: center;
}
.lt img { width: 100%; height: 100%; object-fit: cover; }
.lt.mark img { width: 66%; height: 66%; object-fit: contain; }
.lt.light { background: #fff; }

/* follow grid with real platform icons */
.sec { margin-bottom: 30px; }
.sec > .hd { margin-bottom: 10px; }
.follow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.follow a {
  display: flex; align-items: center; gap: 11px; min-height: 58px;
  text-decoration: none;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 9px 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.follow a:hover { border-color: var(--lime); }
.follow .si { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #ffffff0d; display: flex; align-items: center; justify-content: center; }
.follow .si svg { width: 18px; height: 18px; }
.follow span.tx { min-width: 0; }
.follow b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.follow small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-yt { color: #FF3B3B; } .c-ig { color: #F0567A; } .c-fb { color: #4D8DFF; } .c-li { color: #4A9BE8; }
.c-tt, .c-x, .c-gh { color: #fff; } .c-me { color: var(--lime); }

/* contact, like the dashed purple vault box */
.contact {
  border: 1.5px dashed rgba(142,134,255,.55);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(8,8,10,.6);
}
.contact .hd { color: var(--purple-soft); }
.contact p { font-size: 16px; font-weight: 500; margin-top: 8px; color: var(--soft); }
.contact a { color: var(--lime); text-decoration: none; font-weight: 700; border-bottom: 1.5px solid rgba(184,240,58,.4); }

footer {
  text-align: center; color: #8E8E96;
  font-weight: 600; font-size: 13px;
  margin-top: 36px;
}
footer a { text-decoration: none; }

/* tools page */
.phead { max-width: 640px; margin-bottom: 20px; }
.ptitle { font-size: 32px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.intro { color: var(--soft); font-size: 16px; font-weight: 500; }
.note {
  display: inline-block; margin-top: 14px;
  background: var(--lime-bg); border: 1px solid rgba(184,240,58,.35);
  color: var(--lime-text); border-radius: 12px; padding: 7px 12px;
  font-size: 13px; font-weight: 600;
}
.note b { color: var(--lime); font-weight: 800; }

/* category filter, sticks under the top bar */
.filters {
  position: sticky; top: calc(var(--bar-h) + var(--safe-t)); z-index: 5;
  display: none; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -16px 18px; padding: 10px 16px;
  background: rgba(8,8,10,.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .filters { margin: 0 0 18px; padding: 10px 0; } }
.filters::-webkit-scrollbar { display: none; }
.js .filters { display: flex; }
.filters button {
  flex: none; font: inherit; cursor: pointer;
  min-height: 40px; padding: 0 14px; border-radius: 20px;
  background: #16161C; color: var(--soft); border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, color .15s, border-color .15s;
}
.filters button span { color: var(--muted); font-weight: 600; font-size: 12px; }
.filters button:hover { border-color: var(--line-2); color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.filters button[aria-pressed="true"] span { color: var(--lime-ink); opacity: .7; }

.tsec { margin-bottom: 28px; }
.tsec[hidden] { display: none; }
.sh { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sh::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.tools { display: grid; gap: 10px; }
@media (min-width: 760px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.tool {
  display: flex; align-items: flex-start; gap: 14px; position: relative;
  text-decoration: none;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 18px;
  padding: 14px 40px 14px 14px;
  box-shadow: 0 16px 48px #000a;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.tool:hover { border-color: var(--purple); transform: translateY(-2px); background: #15151C; }
.tool:active { transform: scale(.99); }
.tool .bd { min-width: 0; }
.tool .nm { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.tool .ct { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tool .tag { text-transform: none; letter-spacing: 0; background: #ffffff12; color: var(--soft); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.tool .tag.aff { background: var(--lime-bg); color: var(--lime); }
.tool .d { display: block; color: var(--soft); font-size: 14.5px; line-height: 1.45; margin-top: 6px; }
.tool .arr { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; color: var(--muted); transition: color .15s, transform .15s; }
.tool:hover .arr { color: var(--text); transform: translate(2px,-2px); }

.next { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 760px) { .next { grid-template-columns: 1fr 1fr; } }

/* "Testing now": tools he is trying, all affiliate links, hidden while empty */
.tsec.testing:not(:has(.tool)) { display: none; }
.tnote { color: var(--soft); font-size: 14px; font-weight: 500; margin: -2px 0 12px; }
.tool.trial { border-style: dashed; border-color: rgba(142,134,255,.45); }
.tool.trial:hover { border-color: var(--purple); }
.filters button[hidden] { display: none; }

/* one card for tools he uses as one setup, with a row of their logos */
.lrow { display: flex; gap: 6px; margin-bottom: 10px; }
.lrow .lt { width: 36px; height: 36px; border-radius: 10px; }
.lt.x { background: #000; color: #fff; border: 1px solid var(--line-2); }
.lt.x svg { width: 50%; height: 50%; }

/* GitHub mark: top-nav repo link and the obsidian-second-brain card header */
.navgh { display: inline-flex; align-items: center; gap: 7px; }
.navgh .ghi { width: 16px; height: 16px; }
.hd .ghi { width: 14px; height: 14px; color: var(--text); }

/* top bar fits small phones: no wrapping, shorter button label under 400px */
.brand, .sub { white-space: nowrap; }
.sub .sm { display: none; }
@media (max-width: 399px) { .sub .lg { display: none; } .sub .sm { display: inline; } }

/* face with the brand logo as a badge */
.face { position: relative; flex: none; width: 76px; height: 76px; }
.face .av { width: 76px; height: 76px; border-radius: 50%; border: 2px solid var(--line-2); object-fit: cover; }
.face .badge { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--stage); }

/* proof numbers */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.proof a { text-decoration: none; background: rgba(18,18,24,.8); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 8px; text-align: center; transition: border-color .15s; }
.proof a:hover { border-color: var(--lime); }
.proof b { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-size: 21px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof b .s { color: var(--star); font-size: 15px; }
.proof small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; line-height: 1.25; }

/* email box: subscribe without leaving the page */
.signup {
  display: block; margin-bottom: 30px;
  background: var(--lime); color: var(--lime-ink);
  border-radius: 18px; padding: 16px 16px 14px;
  box-shadow: 0 16px 48px #000a;
}
.signup .t { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.signup .d { display: block; font-size: 14px; font-weight: 600; opacity: .8; margin-top: 2px; }
.signup .btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; margin-top: 12px; padding: 0 18px;
  font: 800 16px/1 "Inter", sans-serif; color: var(--lime); text-decoration: none;
  background: #0B0B0D; border-radius: 12px;
  transition: transform .15s;
}
.signup .btn svg { width: 16px; height: 16px; }
.signup .btn:hover { transform: translateY(-1px); }
.signup .fine { display: block; font-size: 12px; font-weight: 600; opacity: .72; margin-top: 10px; }
.signup .fine a { color: inherit; }

/* latest post and video */
.latest[hidden], .litem[hidden] { display: none; }
.lgrid { display: grid; gap: 8px; }
.litem {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; padding: 10px;
  transition: border-color .15s, transform .15s;
}
.litem:hover { border-color: var(--purple); transform: translateY(-2px); }
.lthumb { flex: none; width: 96px; height: 64px; border-radius: 10px; object-fit: cover; background: #1D1D24; }
.litem.vid .lthumb { width: 45px; height: 80px; }
.lbd { min-width: 0; }
.lk { display: block; font-size: 11px; font-weight: 800; color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.lk .lt-when { color: var(--muted); font-weight: 700; margin-left: 6px; }
.lt-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.35; margin-top: 3px; }
