/* HoovyTube shared styles — cream + slate-blue + steel-grey */
:root[data-theme="light"] {
  --bg: #cbd4dd; --bg2: #dee4ea; --panel: #f7f3e6; --panel-2: #efe6cf;
  --text: #2b4056; --muted: #5d7083; --line: #c3ccd6;
  --accent: #3f6288; --accent-ink: #f4ebd1; --dock-item: #efe8d4;
  --cream: #ece2bb; --outline: #35506b; --outline-deep: #263c50;
  --hero-dark: #1b2937; --glow: rgba(63,98,136,.26);
}
:root[data-theme="dark"] {
  --bg: #1b2937; --bg2: #223546; --panel: #243849; --panel-2: #2c4053;
  --text: #ece2bb; --muted: #a6b5c2; --line: #37506a;
  --accent: #ecdfb0; --accent-ink: #22384c; --dock-item: #2d4457;
  --cream: #ece2bb; --outline: #14263a; --outline-deep: #0d1a28;
  --hero-dark: #12202e; --glow: rgba(236,223,176,.20);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)) no-repeat, var(--bg);
  color: var(--text); line-height: 1.6; min-height: 100vh; padding-top: 88px; padding-bottom: 28px;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3, .wordmark { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.wordmark { font-size: 1.35rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; color: var(--text); }
.wordmark .dot { color: var(--accent); }
.topbar .cta { text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--accent); border: 1px solid var(--line); padding: .5rem .9rem; border-radius: 999px; transition: border-color .2s, background .2s; }
.topbar .cta:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Hero */
.hero { text-align: center; padding: 2.2rem 1.25rem 2.5rem; }
.hero .eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5rem); margin: 0 0 1rem; font-weight: 700; line-height: 1.04;
  color: var(--cream); -webkit-text-stroke: 2px var(--outline); paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--outline), 3px 4px 0 var(--outline-deep), 5px 7px 11px rgba(20,38,58,.30); }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 auto 2rem; }

/* Buttons */
.btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.btn { text-decoration: none; font-weight: 600; padding: .85rem 1.5rem; border-radius: 999px; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 22px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--glow); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }

/* Sections */
section { scroll-margin-top: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: center; text-align: center; margin: 0 0 1.5rem; gap: 1rem; }
.section-head h2 { font-size: 1.6rem; margin: 0; }
.section-head .muted { font-size: .95rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.card p { color: var(--muted); margin: 0 0 1rem; } .card p:last-child { margin-bottom: 0; }
.page { padding: 2.5rem 0 3rem; }

/* Gallery grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.tile { position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tile:hover img { transform: scale(1.06); }
.tile.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 1rem; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .7rem; font-size: .8rem; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; opacity: 0; transition: opacity .2s; }
.tile:hover .cap { opacity: 1; }

/* Carousel */
.carousel { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #10171f; }
.carousel-track { display: flex; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.slide { flex: 0 0 100%; min-width: 0; }
.slide video { width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; background: #10171f; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 90%, #000); color: var(--accent-ink); font-size: 24px; display: flex; align-items: center; justify-content: center; opacity: .92; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.car-btn:hover { opacity: 1; } .car-btn.prev { left: 12px; } .car-btn.next { right: 12px; }
.car-sound { position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0,0,0,.55); color: #fff; font-size: 17px; }
.car-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: color-mix(in srgb, var(--muted) 55%, transparent); cursor: pointer; padding: 0; }
.car-dots button.active { background: var(--accent); }

/* Newsletter */
.newsletter .card { background: linear-gradient(135deg, var(--panel), var(--panel-2)); text-align: center; border-radius: 20px; padding: 2.5rem; }
.newsletter h2 { font-size: 1.7rem; margin: 0 0 .5rem; }
.newsletter p { color: var(--muted); margin: 0 0 1.5rem; }
.news-form { display: flex; gap: .6rem; max-width: 440px; margin: 0 auto; }
.news-form input { flex: 1; padding: .8rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.news-form input:focus { outline: none; border-color: var(--accent); }
.msg { min-height: 1.2em; font-size: .9rem; margin-top: .75rem; } .msg.ok { color: #4caf6d; } .msg.err { color: #e06b6b; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); }
footer.site .social { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }
footer.site .social a { color: var(--muted); transition: color .2s; } footer.site .social a:hover { color: var(--accent); }
footer.site small { font-size: .85rem; }

/* Social footer icons (PNG, magnetic grow like the dock) */
footer.site .social { gap: 1.5rem; align-items: flex-end; }
footer.site .social .soc { display: inline-flex; width: 52px; height: 52px; will-change: transform; transform-origin: center bottom; transition: transform .18s cubic-bezier(.2,.9,.3,1.2); }
footer.site .social .soc:hover { transform: scale(1.3); }
footer.site .social .soc-ic { width: 100%; height: 100%; object-fit: contain; display: block; -webkit-user-drag: none; filter: drop-shadow(0 4px 8px rgba(0,0,0,.28)); }
@media (prefers-reduced-motion: reduce) { footer.site .social .soc { transition: none; } }

/* Send-message popup */
.msg-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1.2rem; background: rgba(10,16,22,.55); backdrop-filter: blur(4px); }
.msg-modal.open { display: flex; }
.msg-modal .mm-box { position: relative; width: 100%; max-width: 460px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 24px 64px rgba(0,0,0,.45); animation: mmIn .22s cubic-bezier(.2,.9,.3,1.1); }
@keyframes mmIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.msg-modal h3 { margin: 0 0 .3rem; color: var(--text); }
.msg-modal .mm-sub { margin: 0 0 1rem; color: var(--muted); font-size: .9rem; }
.msg-modal label { display: block; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: .7rem 0 .3rem; }
.msg-modal input, .msg-modal textarea { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .7rem; color: var(--text); font: inherit; }
.msg-modal input:focus, .msg-modal textarea:focus { outline: none; border-color: var(--accent); }
.msg-modal textarea { min-height: 100px; resize: vertical; }
.msg-modal .mm-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.msg-modal .mm-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.1rem; }
.msg-modal .mm-actions button { font: inherit; font-weight: 600; border-radius: 10px; padding: .55rem 1.1rem; cursor: pointer; border: 1px solid var(--line); }
.msg-modal .mm-cancel { background: transparent; color: var(--muted); }
.msg-modal .mm-send { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.msg-modal .mm-x { position: absolute; top: .6rem; right: .8rem; background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; }
.msg-modal .mm-msg { margin-top: .7rem; font-size: .88rem; min-height: 1.1em; }
.msg-modal .mm-msg.ok { color: #2ea36b; }
.msg-modal .mm-msg.err { color: #d05a5a; }
@media (max-width: 480px) { .msg-modal .mm-row { grid-template-columns: 1fr; } }

/* Product cards (Assets & Products) */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.product { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); text-decoration: none; color: var(--text); transition: transform .25s ease, box-shadow .25s ease; }
.product:hover { transform: translateY(-4px); box-shadow: 0 16px 40px var(--glow); }
.product img { width: 100%; display: block; aspect-ratio: 20/9; object-fit: cover; }
.product .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.1rem 1.2rem;
  background: linear-gradient(transparent 30%, rgba(10,18,26,.55) 60%, rgba(10,18,26,.92)); opacity: 0; transition: opacity .25s ease; color: #fff; }
.product:hover .over { opacity: 1; }
.product .over h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: #fff; }
.product .over p { margin: 0 0 .8rem; font-size: .9rem; color: #dfe7ef; line-height: 1.45; }
.product .over .pill { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .82rem; padding: .5rem .9rem; border-radius: 999px; }
.product .badge { position: absolute; top: 10px; right: 10px; background: rgba(10,18,26,.7); color: var(--cream); font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; letter-spacing: .04em; }

/* HoovyTools showcase */
.ht-logo { display: block; max-width: 300px; width: 60%; margin: 0 auto 1.5rem; }
.showcase-img { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
@media (max-width: 640px) { .feature-split { grid-template-columns: 1fr; } }

/* Learn list */
.lesson-list { display: flex; flex-direction: column; gap: .6rem; }
.lesson { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; color: var(--text); transition: border-color .2s, transform .15s, background .2s; }
.lesson:hover { border-color: var(--accent); transform: translateX(4px); background: var(--panel-2); }
.lesson .num { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.lesson .t { flex: 1; font-size: .98rem; }
.lesson .lvl { font-size: .72rem; color: var(--muted); }

/* Magnetic dock (shared nav) */
.dock-wrap { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: 100vw; }
.dock { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px;
  background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.32); }
.dock-item { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 50%; background: var(--dock-item);
  display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer;
  text-decoration: none; color: var(--text); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  padding: 0; font: inherit; will-change: width, height; }
.dock-item:hover, .dock-item.active { color: var(--accent); }
.dock-item.active { box-shadow: inset 0 0 0 2px var(--accent); }
.dock-item svg { width: 55%; height: 55%; stroke: currentColor; fill: none; }
.dock-item img.dock-ic { width: 70%; height: 70%; object-fit: contain; display: block; pointer-events: none; }
.dock-label { position: absolute; top: calc(100% + 10px); bottom: auto; left: 50%; transform: translateX(-50%) translateY(-4px);
  background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: .25rem .55rem; border-radius: 8px;
  font-size: .78rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.dock-item:hover .dock-label { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 560px) { .dock { gap: 7px; padding: 8px 10px; } .dock-item { width: 40px; height: 40px; } }

/* Ghost dock: transparent while over a full-bleed hero, solid once scrolled past it.
   NB: don't transition background/border-color — the base dock uses color-mix()/token
   colors that Chrome can't interpolate to `transparent`, which visually sticks the dock
   at its opaque state. Switch those instantly; fade only box-shadow and icon color. */
.dock { transition: box-shadow .3s ease; }
.dock-item { transition: color .2s ease; }
.dock-wrap.ghost .dock { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.dock-wrap.ghost .dock-item { background: transparent; border-color: transparent; color: var(--cream); }
.dock-wrap.ghost .dock-item svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.dock-wrap.ghost .dock-item img.dock-ic { filter: drop-shadow(0 1px 4px rgba(0,0,0,.55)); }
.dock-wrap.ghost .dock-item:hover, .dock-wrap.ghost .dock-item.active { color: #fff; }
.dock-wrap.ghost .dock-item.active { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); }
.dock-wrap.ghost .dock-label { color: var(--text); }

/* Topbar removed in favour of top dock */
.topbar { display: none; }

/* Scroll progress bar (top) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress-fill { height: 100%; width: 0%; background: linear-gradient(to right, color-mix(in srgb, var(--accent) 15%, transparent), var(--accent) 85%); box-shadow: 0 0 10px var(--glow); transition: width .08s linear; }

/* Scroll-in reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ============================================================
   v2 design language — unified header, spotlight, magnetic,
   hero carousel, section rhythm, newsletter popover.
   ============================================================ */

/* --- Unified minimal page header (replaces per-page heros) --- */
.pagehead { padding: 2.4rem 0 1.6rem; }
.pagehead .inner { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; text-align: center; }
.pagehead .eyebrow { display: block; color: var(--accent);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .74rem; margin: 0 0 .7rem; }
.pagehead h1 { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.05; margin: 0; color: var(--text); }
.pagehead .ph-lead { color: var(--muted); font-size: clamp(1rem, 2.1vw, 1.12rem); max-width: 620px; margin: .8rem auto 0; }
.pagehead .rule { display: none; }

/* --- Spotlight border (cursor-tracked ring glow) --- */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px;
  z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(180px circle at var(--mx, -200px) var(--my, -200px),
    color-mix(in srgb, var(--accent) 92%, #fff), transparent 62%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude; }
.spot.lit::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .spot::after { transition: none; } }

/* --- Magnetic (cursor-drift) — JS sets transform; this just smooths spring-back --- */
.magnetic { will-change: transform; }

/* --- Big hero carousel (homepage) --- */
body.home { padding-top: 0; }            /* hero sits flush at top; dock floats over it */
.home-hero { position: relative; }
.hero-carousel { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #0b131c; }
.hero-carousel .hc-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.hero-carousel .hc-slide { flex: 0 0 100%; height: 100%; position: relative; }
.hero-carousel .hc-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel .hc-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(8,14,20,.86) 0%, rgba(8,14,20,.28) 42%, rgba(8,14,20,.08) 70%, rgba(8,14,20,.34) 100%); }
.hero-lockup { position: absolute; left: 0; right: 0; bottom: clamp(4.25rem, 10vh, 6.5rem); z-index: 4;
  text-align: center; padding: 0 1.25rem; color: #fff; }
.hero-lockup .eyebrow { color: var(--cream); font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  font-size: clamp(.72rem, 1.6vw, .86rem); margin: 0 0 .8rem; opacity: .92; }
.hero-lockup h1 { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2.8rem, 10vw, 6.2rem); line-height: .98; margin: 0; color: var(--cream);
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 14px 40px rgba(0,0,0,.55); }
.hero-lockup .sub { margin: 1rem 0 0; color: #e7edf3; font-size: clamp(.95rem, 2.2vw, 1.2rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.6); }
/* hero controls */
.hero-carousel .hc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28); cursor: pointer; z-index: 5;
  background: rgba(10,16,22,.42); backdrop-filter: blur(6px); color: #fff; font-size: 26px;
  display: flex; align-items: center; justify-content: center; opacity: .7; transition: opacity .2s, background .2s; }
.hero-carousel:hover .hc-btn { opacity: 1; }
.hero-carousel .hc-btn:hover { background: color-mix(in srgb, var(--accent) 78%, #000); }
.hero-carousel .hc-btn.prev { left: 18px; } .hero-carousel .hc-btn.next { right: 18px; }
.hero-carousel .hc-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.hero-carousel .hc-sound { position: absolute; top: 18px; right: 18px; z-index: 5; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(10,16,22,.42);
  backdrop-filter: blur(6px); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.hero-carousel .hc-sound svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.hero-carousel .hc-sound .i-on { display: none; }
.hero-carousel .hc-sound.on .i-on { display: block; }
.hero-carousel .hc-sound.on .i-off { display: none; }
.hero-carousel .hc-dots { position: absolute; left: 0; right: 0; bottom: 50px; z-index: 5;
  display: flex; gap: 9px; justify-content: center; }
.hero-carousel .hc-dots button { width: 30px; height: 4px; border-radius: 3px; border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.34); transition: background .2s, transform .2s; }
.hero-carousel .hc-dots button.active { background: var(--cream); transform: scaleY(1.6); }
.hero-scroll { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 5;
  width: 40px; height: 28px; border: none; background: transparent; color: var(--cream); cursor: pointer;
  opacity: .85; animation: hs-bob 1.8s ease-in-out infinite; }
@keyframes hs-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
@media (max-width: 560px) { .hero-carousel { height: 100svh; } .hero-carousel .hc-btn { display: none; } }

/* --- Section rhythm: consistent spacing + neutral dividers --- */
.section-head .muted { display: none; }   /* drop the right-side grey subtitles */
.divider { max-width: 1000px; margin: 2.6rem auto; height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 20%, var(--line) 80%, transparent); }

/* --- Newsletter popover (bottom-right, dismissible) --- */
.htnews { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.25rem 1.35rem;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  box-shadow: 0 22px 55px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(18px) scale(.94); filter: blur(10px); pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16,1,.3,1), filter .3s ease; }
.htnews.open { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.htnews .hn-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: color-mix(in srgb, var(--line) 55%, transparent); color: var(--text);
  font-size: 1rem; line-height: 1; cursor: pointer; transition: background .2s; }
.htnews .hn-close:hover { background: var(--line); }
.htnews .hn-eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .68rem; margin: 0 0 .35rem; }
.htnews h3 { font-family: 'Space Grotesk', system-ui, sans-serif; margin: 0 0 .35rem; font-size: 1.25rem; color: var(--text); }
.htnews p { color: var(--muted); font-size: .9rem; margin: 0 0 .9rem; line-height: 1.5; }
.htnews .hn-form { display: flex; flex-direction: column; gap: .55rem; }
.htnews input { width: 100%; padding: .72rem .9rem; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; }
.htnews input:focus { outline: none; border-color: var(--accent); }
.htnews .hn-submit { justify-content: center; width: 100%; }
.htnews .hn-msg { min-height: 1.1em; font-size: .84rem; margin-top: .1rem; }
.htnews .hn-msg.ok { color: #4caf6d; } .htnews .hn-msg.err { color: #e06b6b; }
/* reopen tab shown when closed */
.htnews-tab { position: fixed; right: 20px; bottom: 20px; z-index: 89; display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .6rem .95rem; cursor: pointer;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px);
  color: var(--text); font: inherit; font-weight: 600; font-size: .86rem; box-shadow: 0 10px 30px rgba(0,0,0,.28);
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.htnews-tab.show { opacity: 1; transform: none; pointer-events: auto; }
.htnews-tab svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; }
@media (prefers-reduced-motion: reduce) {
  .htnews { transition: opacity .2s ease; transform: none; filter: none; }
  .htnews.open { transform: none; }
}

/* --- Nav search overlay (command palette) --- */
.search-overlay { position: fixed; inset: 0; z-index: 120; display: none; align-items: flex-start; justify-content: center;
  padding: 12vh 1rem 1rem; background: rgba(10,18,26,.55); backdrop-filter: blur(4px); }
.search-overlay.open { display: flex; }
.search-box { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 26px 64px rgba(0,0,0,.45); overflow: hidden; }
.search-inputwrap { display: flex; align-items: center; gap: .7rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.search-inputwrap svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; flex: 0 0 auto; }
.search-input { flex: 1; border: none; background: none; color: var(--text); font: inherit; font-size: 1.05rem; outline: none; }
.search-results { max-height: 56vh; overflow: auto; }
.search-result { display: flex; flex-direction: column; gap: .12rem; padding: .8rem 1.1rem; text-decoration: none; color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.sel { background: var(--panel-2); }
.search-result .st { font-weight: 600; }
.search-result .sd { color: var(--muted); font-size: .85rem; }
.search-empty { padding: 1.2rem; color: var(--muted); text-align: center; }

/* --- Sharp corners: no rounded content boxes (pill buttons + dock stay round) --- */
.card, .feat-inner, .tier, .tier-img, .orbit-wrap, .orbit-item, .embed, .product, .tile,
.showcase-img, .htnews, .htnews input, .news-form input, .modal-box, .carousel,
.faq, .level, .vid, .lesson { border-radius: 0 !important; }
