/* ==========================================================================
   Site skin: the dashboard's design system on every other page
   (landing, about, founder, help, privacy, terms, login, signup, reset, 404).
   Loads after the page's own CSS and css/minimal.css; scoped to body.tg-min.

   Same tokens as the dashboard (--m-*): neutral surfaces, one green accent
   used sparingly, Bricolage Grotesque for headings, Inter for everything
   else, dark-on-light / light-on-dark primary buttons. Removes the older
   language: glow orbs, uppercase pill eyebrows, single accent-coloured
   words, monospace chips, navy-tinted cards and inputs, scroll hints.
   ========================================================================== */

body.tg-min { background: var(--m-bg) !important; color: var(--m-text); }

/* ── Decoration that doesn't belong in the new system ──────────────────── */
body.tg-min .hero-orbs-wrap,
body.tg-min .hero-orb,
body.tg-min .hero-scroll-hint,
body.tg-min .nav-overlay,
body.tg-min .auth-canvas,
body.tg-min .phone-showcase { display: none !important; }
body.tg-min .hero-glow-breathe,
body.tg-min .hero-glow-breathe::before,
body.tg-min .hero-glow-breathe::after { animation: none !important; background: transparent !important; box-shadow: none !important; }
body.tg-min .about-hero::before, body.tg-min .about-hero::after,
body.tg-min .help-hero::before, body.tg-min .help-hero::after,
body.tg-min .founder-hero::before, body.tg-min .founder-hero::after,
body.tg-min .lp-hero::before, body.tg-min .lp-hero::after { display: none !important; }

/* ── Heroes: same treatment as the dashboard's empty screen ───────────── */
body.tg-min .about-hero,
body.tg-min .help-hero,
body.tg-min .founder-hero,
body.tg-min .lp-hero {
  position: relative; isolation: isolate;
  background: transparent !important;
  min-height: 0 !important;
  padding-top: 96px !important; padding-bottom: 56px !important;
}
/* graph paper fading out from the top-left, as on the chat screen */
body.tg-min .about-hero::before,
body.tg-min .help-hero::before,
body.tg-min .founder-hero::before,
body.tg-min .lp-hero::before {
  content: "" !important; display: block !important;
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--m-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--m-grid) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  -webkit-mask-image: radial-gradient(60% 70% at 30% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 30% 40%, #000 20%, transparent 75%);
}
body.tg-min .about-hero h1,
body.tg-min .help-hero h1,
body.tg-min .founder-hero h1,
body.tg-min .lp-h1 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.04 !important;
  color: var(--m-text) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
/* one accent-coloured word per headline is a template tell; keep it plain */
body.tg-min .about-hero h1 *, body.tg-min .help-hero h1 *,
body.tg-min .founder-hero h1 *, body.tg-min .lp-h1 * {
  color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important;
}
body.tg-min .lp-price { color: var(--m-text) !important; }
body.tg-min .hero-desc, body.tg-min .lp-desc, body.tg-min .subtext {
  color: var(--m-muted) !important; font-size: 1.05rem !important; line-height: 1.6 !important; max-width: 46ch;
}

/* Eyebrows and section labels: quiet sentence case, no pills */
body.tg-min .hero-eyebrow,
body.tg-min .lp-board-line,
body.tg-min .lp-section-label,
body.tg-min .lp-subjects-label,
body.tg-min .rag-badge,
body.tg-min .auth-section-label {
  text-transform: none !important; letter-spacing: 0 !important;
  background: none !important; border: none !important; box-shadow: none !important;
  padding: 0 !important;
  color: var(--m-muted) !important;
  font-size: 0.9rem !important; font-weight: 500 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
}
body.tg-min .hero-eyebrow svg, body.tg-min .rag-badge svg { display: none !important; }

/* Section headings */
body.tg-min .lp-section-title,
body.tg-min .about-section h2,
body.tg-min .help-section h2,
body.tg-min .founder-section h2,
body.tg-min .contact-form h2,
body.tg-min .contact-form h3 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-weight: 600 !important; letter-spacing: -0.03em !important;
  text-transform: none !important;
  color: var(--m-text) !important;
}
body.tg-min .lp-section-sub,
body.tg-min .about-section p,
body.tg-min .founder-section p,
body.tg-min .help-section p { color: var(--m-muted) !important; }
body.tg-min .about-divider, body.tg-min .help-divider,
body.tg-min .founder-divider, body.tg-min .lp-divider {
  background: var(--m-faint) !important; border-color: var(--m-faint) !important; opacity: 1 !important;
}

/* ── Cards: neutral surfaces like the dashboard ───────────────────────── */
body.tg-min .value-card,
body.tg-min .drives-card,
body.tg-min .lp-feat,
body.tg-min .ps-item,
body.tg-min .contact-card,
body.tg-min .lp-pricing-card,
body.tg-min .lp-pricing-aside,
body.tg-min .rag-highlight,
body.tg-min .rag-stat,
body.tg-min .rag-flow-step,
body.tg-min .help-section details,
body.tg-min .help-section .faq-item {
  background: var(--m-surface) !important;
  border: 1px solid var(--m-faint) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.tg-min .value-icon, body.tg-min .drives-icon, body.tg-min .lp-feat-icon,
body.tg-min .ps-icon, body.tg-min .rag-flow-icon {
  background: var(--m-bg) !important; border: 1px solid var(--m-faint) !important;
  box-shadow: none !important; color: var(--m-text) !important;
}
body.tg-min .value-title, body.tg-min .drives-title, body.tg-min .lp-feat-title,
body.tg-min .ps-title { color: var(--m-text) !important; font-weight: 600 !important; }
body.tg-min .value-desc, body.tg-min .drives-desc, body.tg-min .lp-feat-desc,
body.tg-min .ps-desc, body.tg-min .rag-flow-text { color: var(--m-muted) !important; }
body.tg-min .rag-stat-num { color: var(--m-text) !important; font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important; }
body.tg-min .accent { color: inherit !important; }

/* FAQ rows (help) */
body.tg-min .help-section details summary,
body.tg-min .help-section .faq-q { color: var(--m-text) !important; font-weight: 500 !important; }
body.tg-min .help-section details { padding: 2px 4px; margin-bottom: 8px !important; }

/* ── Demo chat on the landing page mirrors the real chat ──────────────── */
body.tg-min .lp-msg-user {
  background: var(--m-surface-2) !important; color: var(--m-text) !important;
  border: none !important; border-radius: 20px 20px 6px 20px !important;
}
body.tg-min .lp-msg-bot {
  background: transparent !important; border: none !important; box-shadow: none !important;
  color: var(--m-text) !important; padding-left: 2px !important;
}
body.tg-min .lp-msg-caption, body.tg-min .lp-demo-note, body.tg-min .lp-boards-note { color: var(--m-muted) !important; }
body.tg-min .lp-subject-chip {
  font-family: 'Inter', system-ui, sans-serif !important;
  background: var(--m-surface) !important; border: 1px solid var(--m-faint) !important;
  color: var(--m-text) !important; border-radius: 999px !important;
  font-size: 0.86rem !important; font-weight: 500 !important;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
body.tg-min .lp-cta,
body.tg-min .lp-price-cta,
body.tg-min .contact-submit,
body.tg-min .auth-submit,
body.tg-min .nf-btn,
body.tg-min .signup-success-btn,
body.tg-min .founder-linkedin {
  background: var(--m-text) !important; color: var(--m-bg) !important;
  border: none !important; box-shadow: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: opacity 0.15s ease, transform 0.12s ease !important;
}
body.tg-min .lp-cta:hover, body.tg-min .lp-price-cta:hover, body.tg-min .contact-submit:hover,
body.tg-min .auth-submit:hover, body.tg-min .nf-btn:hover, body.tg-min .signup-success-btn:hover,
body.tg-min .founder-linkedin:hover { opacity: 0.88; }
body.tg-min .lp-cta:active, body.tg-min .auth-submit:active, body.tg-min .contact-submit:active { transform: scale(0.98); }
body.tg-min .lp-login-btn,
body.tg-min .auth-back-btn,
body.tg-min .signup-success-ghost {
  background: transparent !important; color: var(--m-text) !important;
  border: 1px solid var(--m-faint) !important; box-shadow: none !important;
  border-radius: 12px !important; font-weight: 600 !important;
}
body.tg-min .lp-login-btn:hover, body.tg-min .auth-back-btn:hover { background: var(--m-faint) !important; }

/* ── Forms (help contact, login, signup, reset) ───────────────────────── */
body.tg-min .contact-form label,
body.tg-min .auth-field label,
body.tg-min .form-field label {
  text-transform: none !important; letter-spacing: 0 !important;
  color: var(--m-muted) !important; font-size: 0.84rem !important; font-weight: 500 !important;
}
body.tg-min .contact-form input, body.tg-min .contact-form textarea, body.tg-min .contact-form select,
body.tg-min .auth-form input:not([type="checkbox"]):not([type="radio"]),
body.tg-min .auth-form select, body.tg-min .auth-form textarea,
body.tg-min .forgot-pw-card input {
  background: var(--m-surface) !important;
  border: 1px solid var(--m-faint) !important;
  color: var(--m-text) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.tg-min .contact-form input:focus, body.tg-min .contact-form textarea:focus,
body.tg-min .auth-form input:focus, body.tg-min .auth-form select:focus,
body.tg-min .forgot-pw-card input:focus {
  border-color: var(--m-accent) !important; outline: none !important;
  box-shadow: 0 0 0 3px var(--m-accent-soft) !important;
}
body.tg-min .contact-form ::placeholder, body.tg-min .auth-form ::placeholder { color: var(--m-muted) !important; opacity: 0.8; }

/* Auth card + role toggle (segmented like Settings) */
body.tg-min .auth-card,
body.tg-min .forgot-pw-card,
body.tg-min .signup-success-card {
  background: var(--m-surface) !important;
  border: 1px solid var(--m-faint) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18) !important;
}
body.tg-min .auth-card h1, body.tg-min .auth-card h2 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  font-weight: 600 !important; letter-spacing: -0.035em !important; color: var(--m-text) !important;
}
body.tg-min .auth-sub, body.tg-min .auth-hint, body.tg-min .auth-switch { color: var(--m-muted) !important; }
body.tg-min .auth-switch a, body.tg-min .auth-card a { color: var(--m-text) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--m-faint); }
body.tg-min .auth-roletoggle {
  background: var(--m-bg) !important; border: 1px solid var(--m-faint) !important;
  border-radius: 12px !important; padding: 3px !important;
}
body.tg-min .auth-roletoggle-btn {
  background: transparent !important; color: var(--m-muted) !important;
  border: none !important; border-radius: 9px !important; box-shadow: none !important; font-weight: 500 !important;
}
body.tg-min .auth-roletoggle-btn.active {
  background: var(--m-surface-2) !important; color: var(--m-text) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14) !important;
}
body.tg-min .signup-step-dot { background: var(--m-faint) !important; }
body.tg-min .signup-step-dot.active { background: var(--m-accent) !important; }

/* ── Footer ───────────────────────────────────────────────────────────── */
body.tg-min .about-footer {
  background: transparent !important;
  border-top: 1px solid var(--m-faint) !important;
}
body.tg-min .about-footer, body.tg-min .about-footer a, body.tg-min .ft-tag, body.tg-min .ft-made { color: var(--m-muted) !important; }
body.tg-min .about-footer a:hover { color: var(--m-text) !important; }
body.tg-min .ft-word { font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important; color: var(--m-text) !important; letter-spacing: -0.03em; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
body.tg-min .nf-wrap h1 {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif !important;
  letter-spacing: -0.04em !important; color: var(--m-text) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
}
body.tg-min .nf-wrap p { color: var(--m-muted) !important; }

/* Motion: one quiet entrance per page, nothing looping */
body.tg-min .hero-animate, body.tg-min .lp-reveal, body.tg-min .animate-on-scroll { animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  body.tg-min * { animation: none !important; transition: none !important; }
}

/* ── Home: straight to the product ────────────────────────────────────
   Signed-in visitors never see this page (index.html redirects them to the
   chat). Signed-out visitors get one screen: what it is, start or log in. */
body.tg-min .lp-hero {
  min-height: calc(100vh - 160px) !important;
  display: flex !important; flex-direction: column !important; justify-content: center !important;
}
body.tg-min .lp-hero ~ .lp-divider,
body.tg-min .lp-hero ~ .lp-section,
body.tg-min .lp-hero ~ section,
body.tg-min .lp-hero ~ .lp-reveal { display: none !important; }

/* ── About & help ───────────────────────────────────────────────────── */
body.tg-min .tg-about-hero { padding-bottom: 32px !important; }
body.tg-min .tg-about-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
body.tg-min .tg-about-jump a {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--m-faint); color: var(--m-text); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
}
body.tg-min .tg-about-jump a:hover { background: var(--m-faint); }
body.tg-min .tg-about-block { scroll-margin-top: 80px; }
body.tg-min .tg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
body.tg-min .tg-fact {
  padding: 18px 20px; border-radius: 16px;
  background: var(--m-surface); border: 1px solid var(--m-faint);
}
body.tg-min .tg-fact-title { font-weight: 600; color: var(--m-text); margin-bottom: 6px; }
body.tg-min .tg-fact p { margin: 0; color: var(--m-muted); font-size: 0.92rem; line-height: 1.55; }
body.tg-min .tg-founder-text p { color: var(--m-muted) !important; line-height: 1.7; max-width: 62ch; }
body.tg-min .tg-founder-text strong { color: var(--m-text); }
body.tg-min .tg-linkedin { display: inline-block; margin-top: 8px; padding: 9px 16px; text-decoration: none; }
body.tg-min .faq-item {
  background: var(--m-surface) !important; border: 1px solid var(--m-faint) !important;
  border-radius: 14px !important; box-shadow: none !important; margin-bottom: 8px !important;
}
body.tg-min .faq-question { color: var(--m-text) !important; font-weight: 500 !important; background: transparent !important; }
body.tg-min .faq-answer { color: var(--m-muted) !important; line-height: 1.6 !important; }
body.tg-min .faq-chevron { color: var(--m-muted) !important; }
@media (max-width: 640px) { body.tg-min .tg-facts { grid-template-columns: 1fr; } }
