/* ConnectMeet 2026 design for the public website (Config -> Appearance).
   Same tokens as the app: light by default, dark with html[data-theme="dark"]. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist/GeistMono-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fcfcfd; --bg-elevated: #fff; --bg-subtle: #f4f4f5; --bg-hover: #f0f0f2; --border: #e4e4e7; --border-strong: #d4d4d8;
  --text: #09090b; --text-secondary: #52525b; --text-tertiary: #62626b; --primary: #6366f1; --cta-bg: #09090b; --cta-text: #fff;
  --glass: rgba(255, 255, 255, .86); --shadow-md: 0 8px 24px rgba(9, 9, 11, .08);
}
html[data-theme="dark"] {
  --bg: #09090b; --bg-elevated: #111113; --bg-subtle: #18181b; --bg-hover: #1f1f23; --border: #232326; --border-strong: #2e2e32;
  --text: #fafafa; --text-secondary: #a1a1aa; --text-tertiary: #71717a; --cta-bg: #fafafa; --cta-text: #09090b;
  --glass: rgba(17, 17, 19, .86); --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
}

html.cm-ui body { background: var(--bg); color: var(--text-secondary); font-family: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
html.cm-ui h1, html.cm-ui h2, html.cm-ui h3, html.cm-ui h4, html.cm-ui h5, html.cm-ui h6 { font-family: 'Geist', system-ui, sans-serif; color: var(--text); letter-spacing: -.02em; font-weight: 600; }
html.cm-ui a { color: var(--primary); }
html.cm-ui section, html.cm-ui .section-bg { background: transparent !important; }
html.cm-ui .section-bg { background: var(--bg-subtle) !important; }

/* header */
html.cm-ui #header { background: var(--glass) !important; backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); box-shadow: none !important; height: 64px; padding: 0 !important; display: flex; align-items: center; }
html.cm-ui #header .logo img { max-height: 30px; }
html.cm-ui .nav-menu a { color: var(--text-secondary) !important; font-family: 'Geist', sans-serif; font-weight: 500; font-size: 14px; border-radius: 10px; }
html.cm-ui .nav-menu a:hover, html.cm-ui .nav-menu .active > a, html.cm-ui .nav-menu li:hover > a { color: var(--text) !important; background: var(--bg-hover); }
html.cm-ui .nav-menu .drop-down ul { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); }
html.cm-ui .get-started-btn, html.cm-ui .btn-get-started, html.cm-ui .nav-menu .get-started a, html.cm-ui .cta-btn, html.cm-ui .btn-primary, html.cm-ui .btn-buy {
  background: var(--cta-bg) !important; color: var(--cta-text) !important; border: 0 !important; border-radius: 999px !important; font-family: 'Geist', sans-serif; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
html.cm-ui .mobile-nav { background: var(--bg-elevated); border-radius: 16px; border: 1px solid var(--border); }
html.cm-ui .mobile-nav a { color: var(--text) !important; }
html.cm-ui .mobile-nav-toggle i { color: var(--text) !important; }

/* hero */
html.cm-ui #home, html.cm-ui .subheader, html.cm-ui .breadcrumbs { background: #09090b !important; position: relative; overflow: hidden; }
html.cm-ui #home::before, html.cm-ui .subheader::before { content: ''; position: absolute; inset: auto -200px -300px auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 102, 241, .4), transparent 65%); pointer-events: none; }
html.cm-ui #home h1, html.cm-ui #home h2, html.cm-ui .subheader h2, html.cm-ui .breadcrumbs h2 { color: #fafafa !important; }
html.cm-ui #home h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; }
html.cm-ui #home p, html.cm-ui #home h2 { color: #a1a1aa !important; font-weight: 400; }
html.cm-ui #home .btn-get-started { background: #fafafa !important; color: #09090b !important; }

/* sections */
html.cm-ui .section-title h2 { font-family: 'Geist Mono', monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary) !important; }
html.cm-ui .section-title h2::before, html.cm-ui .section-title h2::after { display: none !important; }
html.cm-ui .section-title p { color: var(--text) !important; font-family: 'Geist', sans-serif; font-weight: 600; letter-spacing: -.02em; }
html.cm-ui .highlights .icon-box, html.cm-ui .reviews .review-item, html.cm-ui .cases .case-item, html.cm-ui .pricing .box, html.cm-ui .faq li, html.cm-ui .event-container, html.cm-ui .contact .info, html.cm-ui .contact .php-email-form, html.cm-ui .features .icon-box, html.cm-ui .team .member, html.cm-ui .steps .content, html.cm-ui .default-template .container > * > .card {
  background: var(--bg-elevated) !important; border: 1px solid var(--border) !important; border-radius: 16px !important; box-shadow: none !important; color: var(--text-secondary);
}
html.cm-ui .highlights .icon-box:hover, html.cm-ui .cases .case-item:hover, html.cm-ui .pricing .box:hover { border-color: var(--border-strong) !important; background: var(--bg-subtle) !important; transform: translateY(-2px); }
html.cm-ui .highlights .icon-box .icon i, html.cm-ui .features .icon-box i { color: var(--primary) !important; }
html.cm-ui .pricing .box h3, html.cm-ui .pricing h4 { color: var(--text) !important; }
html.cm-ui .pricing .featured { border-color: var(--text) !important; }
html.cm-ui .cta { background: #09090b !important; border-radius: 24px; margin: 24px auto; max-width: 1180px; }
html.cm-ui .cta h3, html.cm-ui .cta p { color: #fafafa !important; }
html.cm-ui .form-control { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 10px; color: var(--text); }

/* footer */
html.cm-ui #footer { background: var(--bg-subtle) !important; color: var(--text-secondary) !important; border-top: 1px solid var(--border); }
html.cm-ui #footer .footer-top { background: transparent !important; }
html.cm-ui #footer h3, html.cm-ui #footer h4 { color: var(--text) !important; }
html.cm-ui #footer a { color: var(--text-secondary) !important; }
html.cm-ui #footer a:hover { color: var(--text) !important; }
html.cm-ui .back-to-top { background: var(--cta-bg) !important; color: var(--cta-text) !important; border-radius: 999px !important; }
html.cm-ui #preloader { background: var(--bg) !important; }

/* 1.9.4 Terms, Privacy Policy and About: comfortable reading width and rhythm */
.legal-doc, .about.legal-page .container { max-width: 820px; margin: 0 auto; line-height: 1.7; font-size: 16px; }
.legal-doc h2, .about.legal-page h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; font-weight: 700; }
.legal-doc ul, .about.legal-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-doc li, .about.legal-page li { margin-bottom: .35rem; }
.legal-doc p em:only-child { color: #6b7280; }
.about.legal-page .lead { font-size: 1.2rem; color: #4b5563; margin-bottom: 1.5rem; }
.footer-legal a { color: inherit; opacity: .85; }
.footer-legal a:hover { opacity: 1; text-decoration: underline; }

/* 1.9.14.4 readability: text links in the brand colour a shade darker so they pass WCAG AA */
:root:not([data-theme="dark"]) a[data-home-all-plans], :root:not([data-theme="dark"]) .contact a[href^="mailto:"], :root:not([data-theme="dark"]) .contact-info a { color: #4f46e5; }
