/* Shell additions and the company pages (about, contact, privacy, terms, 404).
   Loaded last on every page (see scripts/apply_shell.py). Uses the theme tokens from theme.css. */

/* ---------- nav: top-level "About" link, styled like the button items ---------- */
html body#nebula-site .navlinks a.nl-link {
  display: inline-flex; align-items: center; min-height: 42px; padding: 10px 14px; border-radius: 7px;
  font: inherit; font-size: 13px; font-weight: 550; color: var(--ink) !important; text-decoration: none;
  background: transparent; cursor: pointer;
}
html body#nebula-site .navlinks a.nl-link:hover,
html body#nebula-site .navlinks a.nl-link[aria-current="page"] { background: #F3EDFC; color: #6020BE !important; }
@media (max-width: 1000px) { html body#nebula-site .navlinks a.nl-link { padding: 9px 10px; } }
@media (max-width: 980px) {
  html body#nebula-site .nv > header.mopen .navlinks a.nl-link { padding: 12px 10px; font-size: 15px; min-height: 44px; }
}

/* ---------- footer: sixth column + legal line ---------- */
html body#nebula-site footer .fcols { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 28px 20px !important; }
@media (max-width: 1100px) { html body#nebula-site footer .fcols { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { html body#nebula-site footer .fcols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 22px !important; } }
html body#nebula-site footer [data-shell="legal"] { display: block; }

/* ---------- consent line under lead forms ---------- */
.lead-consent { margin: 4px 0 0; font-size: 12px; line-height: 1.5; width: 100%; }
.lead-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
html body#nebula-site .edcta .lead-consent,
html body#nebula-site .edcta .lead-consent * { font-size: 12px !important; letter-spacing: 0 !important; background: none !important; border: 0 !important; padding: 0 !important; }
html body#nebula-site .edcta .lead-consent { margin-top: 4px; }
html body#nebula-site footer .lead-consent { color: var(--muted); }

/* ---------- company pages ---------- */
.co { font-family: var(--body); color: var(--text); }
.co .wrap { max-width: 1200px; margin: 0 auto; padding: 0; display: block; }
.co > section { padding-left: 24px; padding-right: 24px; }
.co .kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.co-hero { padding: 72px 0 40px; }
.co-hero h1 { margin: 14px 0 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; max-width: 900px; }
.co-hero p.co-lede { margin: 0; max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.co-sec { padding: 40px 0; }
.co-sec h2 { margin: 0 0 8px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.co-sec p.co-sub { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 640px; }
.co-about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.co-about-grid > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.co-about-grid b { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--head); font-size: 17px; }
.co-about-grid span { font-size: 15px; color: var(--muted); }

.co-rowh { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acct); }
.co-rowh::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line2), transparent); }
.co-row { margin-bottom: 44px; }
.co-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.co-card { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.co-card.founder { flex-direction: row; gap: 28px; align-items: flex-start; padding: 28px; }
.co-card.founder .co-info { max-width: 720px; }
.co-photo, .co-mono { flex: none; width: 112px; height: 112px; border-radius: 16px; object-fit: cover; background: var(--bg2); }
.co-card.founder .co-photo, .co-card.founder .co-mono { width: 160px; height: 160px; }
.co-mono { display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 38px; font-weight: 700; letter-spacing: -.02em; background: linear-gradient(135deg, #6D28D9, #A78BFA); }
.co-card.founder .co-mono { font-size: 52px; }
.co-name { margin: 0; font-family: var(--head); font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.co-role { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--acct); }
.co-bio { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.co-in { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--acct); text-decoration: none; }
.co-in:hover { text-decoration: underline; }
.co-more { justify-content: center; text-align: left; background: var(--bg2); }
.co-more .co-big { font-family: var(--head); font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--acct); }
.co-more p { margin: 0; font-size: 16px; color: var(--text); }

/* contact */
.co-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.co-form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.co-form .field { display: flex; flex-direction: column; gap: 6px; }
.co-form label { font-size: 14px; font-weight: 600; color: var(--ink); }
.co-form .opt { font-weight: 400; color: var(--muted); }
.co-form input[type="text"], .co-form input[type="email"], .co-form input[type="tel"] {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 8px; background: #fff; color: var(--ink);
}
.co-form input:focus-visible { outline: 2px solid var(--acct); outline-offset: 1px; }
.co-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.co-form button[type="submit"] { align-self: flex-start; cursor: pointer; border: 0; }
.co-form button[disabled] { opacity: .6; cursor: progress; }
.co-msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: #16794A; }
.co-msg.err { color: #C0262B; }
.co-form .lead-consent { color: var(--muted); }
.co-success { max-width: 640px; padding: 24px 0 40px; }
.co-success h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0; }

/* legal */
.co-legal { max-width: 760px; padding-bottom: 72px; }
.co-legal h2 { margin: 36px 0 10px; font-size: 22px; }
.co-legal p, .co-legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.co-legal ul { padding-left: 22px; }
.co-legal a { color: var(--acct); }
.co-legal .co-updated { color: var(--muted); font-size: 14px; }

/* 404 */
.co-404 { text-align: center; padding: 96px 0 120px; }
.co-404 .co-big { font-family: var(--head); font-size: clamp(88px, 16vw, 160px); font-weight: 800; letter-spacing: -.06em; line-height: 1; background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }
.co-404 p { margin: 12px auto 28px; max-width: 520px; color: var(--muted); font-size: 18px; }
.co-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 900px) {
  .co-contact { grid-template-columns: 1fr; gap: 32px; }
  .co-grid3, .co-about-grid { grid-template-columns: 1fr; }
  .co-card.founder { flex-direction: column; }
  .co-card.founder .co-photo, .co-card.founder .co-mono { width: 128px; height: 128px; }
  .co-hero { padding-top: 48px; }
}

/* the decorative prism behind the hero must not cause sideways scrolling (page CSS does this on other pages) */
html body#nebula-site .sky { overflow-x: clip; overflow-y: visible; }

/* ---------- cookie consent banner (built by brand/site.js) ---------- */
.cc {
  position: fixed; z-index: 2147483000; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px;
  background: #fff; color: #1B1830; border: 1px solid #E3DFEC; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(32, 24, 64, .18); font-size: 13px; line-height: 1.5;
}
.cc[hidden] { display: none; }
.cc-t { margin: 0; flex: 1 1 280px; }
.cc-t a { color: #6020BE; text-decoration: underline; text-underline-offset: 2px; }
.cc-b { display: flex; gap: 8px; flex: 0 0 auto; }
.cc-btn {
  min-height: 40px; min-width: 88px; padding: 8px 18px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid #6020BE;
}
.cc-yes { background: #6020BE; color: #fff; }
.cc-yes:hover { background: #4F189F; }
.cc-no { background: #F3F1F8; color: #1B1830; border-color: #CFC9DD; }
.cc-no:hover { background: #E8E4F1; }
.cc-btn:focus-visible, .cc-t a:focus-visible { outline: 2px solid #6020BE; outline-offset: 2px; }
@media (max-width: 520px) { .cc-b { width: 100%; } .cc-btn { flex: 1 1 0; } }
