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

:root {
  --bg: #050505;
  --bg-elev: #272727;
  --bg-elev-2: #2f2f2f;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f2;
  --text-muted: rgba(242, 242, 242, 0.62);
  --text-dim: rgba(242, 242, 242, 0.4);
  --accent: #00bfff;
  --accent-dim: rgba(0, 191, 255, 0.16);
  /* Theme-driven surfaces (swapped in the light block below). */
  --bar-bg: rgba(5, 5, 5, 0.85);       /* sticky header + fixed footer bar */
  --rule-color: rgba(255, 255, 255, 0.55);
  --menu-text: rgba(255, 255, 255, 0.86);
  --menu-text-strong: #fff;
  --logo-filter: none;                  /* logo SVG is near-white; invert it on light */
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── Light mode ── (toggle sets data-theme on <html>) */
:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-elev: #ededed;
  --bg-elev-2: #e3e3e3;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --text: #0a0a0a;
  --text-muted: rgba(10, 10, 10, 0.62);
  --text-dim: rgba(10, 10, 10, 0.42);
  --accent: #0092c4;                    /* darker cyan so it reads on white */
  --accent-dim: rgba(0, 146, 196, 0.16);
  --bar-bg: rgba(250, 250, 250, 0.82);
  --rule-color: rgba(0, 0, 0, 0.32);
  --menu-text: rgba(10, 10, 10, 0.86);
  --menu-text-strong: #000;
  --logo-filter: invert(1);
}

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; display: flex; flex-direction: column; }

/* Size to the VISIBLE viewport on mobile browsers (100vh hides the last
   ~60px behind the collapsed URL bar, pushing footers below the fold). */
@supports (min-height: 100dvh) {
  body { min-height: 100dvh; }
}
main > * { flex-shrink: 0; }
main > .ascii-band { flex-shrink: 1; }
.site-footer { flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ── Layout ── */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Slim sticky header on all widths — thin padding, dark translucent bar
   matching the footer. */
.site-header {
  padding: 8px 0;
  position: sticky;
  top: 0;
  background: var(--bar-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand img, .brand svg {
  height: 32px;
  width: auto;
  filter: var(--logo-filter); /* near-white mark; inverts to dark on light theme */
}
.brand .brand-text {
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  /* Keep the nav hugging the right edge next to the theme toggle. */
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

/* ── ASCII art band (home only) ── */

/* Fills the whole viewport behind everything (the hero text sits on top of
   the art). The canvas is absolute inside the band so its intrinsic
   (attribute) size never feeds layout. */
.ascii-band {
  position: fixed;
  inset: 0;
}
.hero { z-index: 1; }
#ascii-bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Phones swap the sideways background band for a small upright logo that
   dribbles on the headline: the canvas sits flush above the h1, so the
   bounce off its bottom edge lands right on the text. Height is explicit —
   the canvas's attribute size must never feed layout (see ascii-bg.js). */
#ascii-hero { display: none; }
@media (max-width: 640px) {
  .ascii-band { display: none; }
  #ascii-hero {
    display: block;
    width: 100%;
    height: clamp(145px, 23vh, 220px);
    pointer-events: none;
  }
}

/* Nav floats inside the ASCII art as bare text labels — no boxes, no cyan
   halo: boldface white with a soft white glow on the letters themselves. */
/* Clean vertical menu, centered below the rule. Tagline font, a touch
   smaller, uppercase with airy tracking. Rests as soft white; on hover it
   lifts to cyan and a thin cyan underline wipes in from the left. */
/* Left-justified stack, tightly spaced, with a cyan command-prompt caret —
   almost a terminal menu. The block is centered; the items align left. */
.ascii-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  margin: 0 auto;
  gap: clamp(2px, 0.5vh, 7px);
}
.ascii-nav .bubble {
  position: relative;
  width: max-content;
  padding: 2px 4px 2px 0;
  text-align: left;
  color: var(--menu-text);
  /* Match the tagline (h1): same weight/tracking, just slightly smaller. */
  font-weight: 700;
  font-size: clamp(20px, 2.7vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}
/* Command-prompt caret before each item; brightens to cyan on hover. */
.ascii-nav .bubble::before {
  content: "> ";
  color: var(--accent);
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}
/* Thin underline that grows from the left on hover. */
.ascii-nav .bubble::after {
  content: "";
  position: absolute;
  left: 0;
  right: 4px;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .ascii-nav .bubble:hover {
    color: var(--menu-text-strong);
    text-shadow:
      0 0 8px rgba(0, 191, 255, 0.6),
      0 0 22px rgba(0, 191, 255, 0.35);
  }
  .ascii-nav .bubble:hover::after { transform: scaleX(1); }
  .ascii-nav .bubble:hover::before { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ascii-nav .bubble::after { transition: none; }
}

/* ── Hero ── */

.hero {
  /* The whole lockup — logo, tagline, rule, menu — is one centered column,
     vertically centered in the viewport. The rule is the midpoint: equal
     --hero-gap above (to the tagline) and below (to the menu), so it reads
     symmetrical top-to-bottom. */
  --hero-gap: clamp(20px, 4vh, 40px);
  /* The sticky header bar is 49px tall (8px padding ×2 + 32px logo + 1px
     border); subtracting it keeps the home page exactly one viewport tall
     instead of scrolling by a bar's height. */
  min-height: calc(100vh - 49px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  text-align: left;
}
@supports (min-height: 100dvh) {
  .hero { min-height: calc(100dvh - 49px); }
}

/* Logo mark stacked over the tagline, sharing one scrim. */
.hero-lockup {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  position: relative;
}
.hero h1 {
  width: fit-content;
  max-width: 100%;
  position: relative;
  margin: 0;
}
/* Thin white rule at the midpoint: equal gap to the tagline above and the
   menu below (the menu supplies its own matching margin-top). */
.hero-rule {
  width: 100%; /* spans the tagline (the lockup is sized to the widest line) */
  height: 1px;
  border: none;
  background: var(--rule-color);
  margin: var(--hero-gap) 0 0;
}
.hero .ascii-nav {
  margin: var(--hero-gap) 0 0;
}
/* Halo hovers centered on the "outliers" word rather than the whole line. */
.hero h1 .accent {
  position: relative;
}
.hero h1 .accent::before {
  content: "";
  position: absolute;
  inset: -1.7em -3.2em;
  background: radial-gradient(
    ellipse 60% 62% at center,
    rgba(0, 191, 255, 0.62),
    rgba(0, 191, 255, 0.2) 44%,
    transparent 66%
  );
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; }

.hero h1 {
  /* two fixed lines under the logo mark: brand name over the tagline */
  font-size: clamp(24px, 3.2vw, 46px);
  font-weight: 700;
}
@media (max-width: 640px) {
  .hero {
    /* Tighter symmetric gap around the rule on phones. */
    --hero-gap: clamp(14px, 2.4vh, 22px);
  }
}
.hero h1 .accent { color: var(--accent); }

.hero p.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .cta-row { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #f2f2f2;
}
.btn-primary:hover { background: #33cfff; color: #050505; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.3); }

.btn.copied {
  background: var(--accent);
  color: #f2f2f2;
  border-color: var(--accent);
  animation: pulse 0.4s var(--ease);
}
@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* ── Sections ── */

section.block {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 48px;
  max-width: 60ch;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 820px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { border-color: var(--border-strong); }
.tier:hover { animation: shake 0.5s var(--ease); }
.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { color: var(--text-muted); font-size: 15px; }

/* ── Footer ── */

/* Persistent slim footer pinned to the bottom of the viewport on ALL widths,
   always visible without scrolling. Pages pad their content so it clears. */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid var(--border);
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 13px;
  background: var(--bar-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body:has(.site-footer) main { padding-bottom: 60px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* Stub pages (all widths): logo-only header centered; the "Site under
   construction." message dead-center in the page; footer has the "Back to
   home" button bottom-left and the copyright + names stacked bottom-right,
   vertically centered with it. */
/* Logo-only header (every page but the waitlist): the wrap's space-between
   puts the logo left and the theme toggle right on desktop. On phones the
   logo centers (the old corner-logo treatment) and the toggle leaves the
   flow, pinning inside the bar's right edge. */
@media (max-width: 640px) {
  .site-header .wrap:not(:has(.nav-links)) { justify-content: center; }
  .site-header .theme-toggle {
    position: absolute;
    top: 7px;
    right: 14px;
  }
}
body:has(.footer-back) main { justify-content: center; }
body:has(.footer-back) .hero { padding: 0; }
.site-footer .footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  text-align: right;
  /* scale down on narrow screens so neither line ever wraps */
  font-size: clamp(10px, 2.6vw, 13px);
}
.site-footer .footer-meta span { white-space: nowrap; }
.footer-back {
  display: inline-flex;
  color: #fff;
  padding: 7px 14px;
  font-size: 13px;
}
/* Beat `.site-footer a:hover` so the button text goes black on the cyan hover. */
.site-footer a.footer-back:hover { color: #050505; }
.site-footer .wrap:has(.footer-back) { align-items: center; }

/* ── Waitlist / Pricing ── */

.waitlist-hero {
  padding: 96px 0 48px;
  text-align: center;
}
.waitlist-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 18px;
}
.waitlist-hero p.lead {
  color: var(--text-muted);
  font-size: clamp(16px, 1.5vw, 19px);
  max-width: 52ch;
  margin: 0 auto;
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 48px 0 24px;
}
@media (max-width: 820px) {
  .tiers { grid-template-columns: 1fr; }
}

.tier {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  position: relative;
}
.tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), var(--bg-elev) 60%);
}
.tier.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #f2f2f2;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

.tier-name {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.tier-price {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.tier-price .per {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
}
.tier-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}
.tier ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}
.tier li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.tier li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  background: var(--accent-dim);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2300bfff' d='M6.5 11.5 3 8l1.4-1.4 2.1 2.1 5.1-5.1L13 5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
}

/* ── Form ── */

.waitlist-form {
  margin: 24px auto 0;
  max-width: 480px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--accent);
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-dim); }

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}
.form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  text-align: center;
}
.form-success.show { display: block; }

/* ── Misc ── */

::selection { background: var(--accent); color: #f2f2f2; }

/* ── Animations ── */

/* Scroll fade — direction-aware */
.will-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.will-animate[data-from="top"] {
  transform: translateY(-28px);
}
.will-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Collage float */
@keyframes float-a {
  0%, 100% { transform: rotate(-3deg) translateY(0px); }
  50%       { transform: rotate(-3deg) translateY(-12px); }
}
@keyframes float-b {
  0%, 100% { transform: rotate(4deg) translateY(0px); }
  50%       { transform: rotate(4deg) translateY(-8px); }
}

/* Eyebrow dot breathe */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  30%       { transform: translateX(6px); }
  45%       { transform: translateX(-4px); }
  60%       { transform: translateX(4px); }
  75%       { transform: translateX(-2px); }
  90%       { transform: translateX(2px); }
}

@keyframes dot-breathe {
  0%, 100% { box-shadow: 0 0 12px var(--accent); }
  50%       { box-shadow: 0 0 26px var(--accent), 0 0 52px rgba(0, 191, 255, 0.22); }
}
.eyebrow .dot {
  animation: dot-breathe 2.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .will-animate { opacity: 1 !important; transform: none !important; transition: none !important; }
  .collage-wrap .photo-placeholder { animation: none !important; }
  .eyebrow .dot { animation: none !important; }
}

/* ── Section background variations ── */

.about-split:not(.reversed) {
  background: linear-gradient(180deg, #1e1e1e 0%, #0a0a0a 100%);
}

.about-split.reversed {
  background: #0a0a0a;
}

.values-block {
  background: linear-gradient(180deg, #0a0a0a 0%, #4a4a4a 50%, #0a0a0a 100%);
}

.social-media {
  background: #0a0a0a;
}

.tiers-section {
  background: linear-gradient(180deg, #0a0a0a 0%, rgba(22, 61, 22, 0.14) 50%, #1e1e1e 100%);
}

#signup {
  background: #1e1e1e;
}


/* White heading on signup section */
#signup h2 {
  color: #ffffff;
}

/* ── Split layout (about / founder) ── */

.about-split {
  padding: 80px 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 820px) {
  .split-layout { grid-template-columns: 1fr; gap: 36px; }
  .reversed .split-img { order: -1; }
}

.split-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.split-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.split-text p:last-child { margin-bottom: 0; }

.photo-placeholder.tall { aspect-ratio: 3 / 4; }

/* ── Values block ── */

.values-block {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 820px) {
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
}

.value-item { text-align: center; }

.value-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.value-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Social media ── */

.social-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 820px) {
  .social-channels { grid-template-columns: 1fr; }
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.channel-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.channel-name {
  font-size: 15px;
  font-weight: 600;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
}

.play-icon {
  width: 52px;
  height: 52px;
  color: var(--text-dim);
}

/* ── Community About ── */

.community-about {
  padding: 48px 0 64px;
}

.collage-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 48px;
  padding: 24px 0 32px;
  overflow: hidden;
}

.collage-wrap .photo-placeholder:nth-child(1) {
  width: 52vw;
  max-width: 680px;
  animation: float-a 7s ease-in-out infinite;
  z-index: 2;
  margin-right: -7vw;
}
.collage-wrap .photo-placeholder:nth-child(1):hover {
  animation-play-state: paused;
  transform: rotate(-3deg) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.collage-wrap .photo-placeholder:nth-child(2) {
  width: 48vw;
  max-width: 620px;
  animation: float-b 8s ease-in-out infinite 1s;
  z-index: 1;
  margin-top: 48px;
}
.collage-wrap .photo-placeholder:nth-child(2):hover {
  animation-play-state: paused;
  transform: rotate(4deg) scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.photo-placeholder:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.community-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto;
}

/* ── Theme toggle ── */

/* Small circular toggle pinned top-right on every page (mirrors the top-left
   logo). Injected by scripts/theme.js; the glyph is set via ::before. */
.theme-toggle {
  /* A flex child of .site-header .wrap (theme.js mounts it there), so the
     bar's own align-items centering places it — no overlay positioning. */
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bar-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle:active { transform: scale(0.92); }
/* Fallback if a page has no header: pin to the top-right of the viewport. */
body > .theme-toggle {
  position: fixed;
  top: 7px;
  right: clamp(14px, 3vw, 28px);
  z-index: 60;
}
/* Centered inline SVGs (injected by theme.js) — the sun/moon Unicode glyphs
   aren't centered on their own box, so flex centering couldn't fix them. Show
   the sun in dark mode ("click for light"), the moon in light mode. */
.theme-toggle svg { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ── Light-mode overrides for the waitlist page's hardcoded-dark sections ── */
:root[data-theme="light"] .about-split:not(.reversed) {
  background: linear-gradient(180deg, #ededed 0%, #fafafa 100%);
}
:root[data-theme="light"] .about-split.reversed,
:root[data-theme="light"] .social-media {
  background: #fafafa;
}
:root[data-theme="light"] .tiers-section {
  background: linear-gradient(180deg, #fafafa 0%, rgba(0, 146, 196, 0.08) 50%, #ededed 100%);
}
:root[data-theme="light"] #signup { background: #ededed; }
:root[data-theme="light"] #signup h2 { color: #0a0a0a; }

/* ── Blog ── */

/* Callout accent tokens — mid-tones tuned per theme so titles/borders read
   on both near-black and near-white. */
:root {
  --co-note: var(--accent);
  --co-tip: #34c98e;
  --co-warn: #f5a623;
  --co-imp: #ff6bc1;
  --co-quote: rgba(242, 242, 242, 0.55);
}
:root[data-theme="light"] {
  --co-tip: #0e7a55;
  --co-warn: #b45309;
  --co-imp: #b3005f;
  --co-quote: rgba(10, 10, 10, 0.5);
}

/* Blog page top-aligns and scrolls (stub pages center their one-liner). */
body.page-blog main { justify-content: flex-start; }

.blog-feed { padding: 40px 0 48px; }
.blog-feed .wrap { max-width: 760px; }

.blog-empty { color: var(--text-muted); text-align: center; padding: 48px 0; }

.blog-heading {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 700;
  margin-bottom: 24px;
}

/* ── Feed cards — title + short description + side thumbnail ── */

.post-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px;
  margin: 0 -18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.post-card + .post-card { margin-top: 6px; }
.post-card:hover {
  background: var(--bg-elev);
  border-color: var(--border);
}
.card-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.post-card:hover .card-title { color: var(--accent); }
.card-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-thumb {
  flex: 0 0 168px;
  width: 168px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
}
@media (max-width: 640px) {
  .post-card { gap: 14px; padding: 14px; margin: 0 -14px; }
  .card-thumb { flex-basis: 104px; width: 104px; height: 74px; }
  .card-title { font-size: 17px; }
}

.post-head { margin-bottom: 20px; }
.post-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 6px;
}
.post-title a { transition: color 0.2s var(--ease); }
.post-title a:hover { color: var(--accent); }
.post-date {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Post body typography ── */

.post-body { font-size: 16px; line-height: 1.65; }
.post-body > * + * { margin-top: 16px; }
.post-body p { color: var(--text-muted); }
.post-body strong { color: var(--text); }
.post-body h2, .post-body h3 {
  color: var(--text);
  margin-top: 36px;
  font-weight: 600;
}
.post-body h2 { font-size: 22px; }
.post-body h3 { font-size: 18px; }
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.post-body a:hover { border-bottom-color: var(--accent); }
.post-body ul, .post-body ol { padding-left: 24px; color: var(--text-muted); }
.post-body li + li { margin-top: 6px; }
.post-body hr { border: none; height: 1px; background: var(--border); margin: 32px 0; }
.post-body blockquote {
  border-left: 3px solid var(--border-strong);
  padding: 2px 0 2px 16px;
  color: var(--text-dim);
}

/* Code */
.post-body code {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
.post-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
}
.post-body pre code { background: none; border: none; padding: 0; font-size: 13px; }

/* Tables — header band, zebra rows, own horizontal scroll on overflow */
.post-body table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
}
.post-body th, .post-body td {
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-align: left;
}
.post-body th {
  background: var(--bg-elev-2);
  color: var(--text);
  font-weight: 600;
}
.post-body td { color: var(--text-muted); }
.post-body tbody tr:nth-child(even) { background: var(--bg-elev); }

/* Media — full column width, rounded, bordered */
.post-video, .post-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}

/* Equations */
.math-block { overflow-x: auto; padding: 4px 0; }
.math-block math[display="block"] { margin: 0 auto; }
.post-body .math-error { color: var(--co-warn); }

/* Callouts — left border + tint of the same accent */
.callout {
  border-left: 4px solid var(--co-note);
  background: color-mix(in srgb, var(--co-note) 9%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
}
.callout-title { font-weight: 700; color: var(--co-note); margin-bottom: 2px; }
.callout-body > * + * { margin-top: 8px; }
.callout-body p { color: var(--text-muted); }
.callout-tip { border-left-color: var(--co-tip); background: color-mix(in srgb, var(--co-tip) 9%, transparent); }
.callout-tip .callout-title { color: var(--co-tip); }
.callout-warning, .callout-caution { border-left-color: var(--co-warn); background: color-mix(in srgb, var(--co-warn) 9%, transparent); }
.callout-warning .callout-title, .callout-caution .callout-title { color: var(--co-warn); }
.callout-important { border-left-color: var(--co-imp); background: color-mix(in srgb, var(--co-imp) 9%, transparent); }
.callout-important .callout-title { color: var(--co-imp); }
.callout-quote { border-left-color: var(--co-quote); background: color-mix(in srgb, var(--co-quote) 9%, transparent); }
.callout-quote .callout-title { color: var(--co-quote); }
