/* ==============================================================
   BrioSync — shared site styles
   Used by every sub-page (pricing, about, vs/*, etc.)
   The main index.html keeps its own inline styles (this file
   does not need to round-trip to the home page).
   ============================================================== */

:root {
  --text: #0b1020;
  --text-2: #3b4252;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-2: #f8fafc;
  --bg-soft: #f5f6fb;
  --accent: #4f7ae3;
  --accent-2: #7c3aed;
  --accent-soft: rgba(79, 122, 227, 0.08);
  --grad: linear-gradient(135deg, #a855f7 0%, #4f7ae3 100%);
  --grad-soft: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(79, 122, 227, 0.08) 100%);
  --green: #2fa36b;
  --amber: #d39511;
  --red: #d85034;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 30px 80px rgba(79, 122, 227, 0.2);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 50px; font-weight: 800; }
h2 { font-size: 36px; font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--text-2); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
li { margin-bottom: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== NAV ===== */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(255, 255, 255, 0.85); transition: background .25s ease, box-shadow .25s ease; }
.nav.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 rgba(11, 16, 32, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1180px; margin: 0 auto; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-wordmark { height: 32px; width: auto; display: block; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; font-family: inherit; transition: background .15s ease, color .15s ease; }
.nav-link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.nav-link.active { color: var(--accent); background: var(--accent-soft); }
.nav-caret { width: 10px; height: 10px; transition: transform .2s ease; }
.has-dropdown:hover .nav-caret,
.has-dropdown[data-open] .nav-caret { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 340px; background: white; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; z-index: 60; }
.has-dropdown:hover .dropdown,
.has-dropdown[data-open] .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); transition: background .14s ease; }
.dd-item:hover { background: var(--bg-2); text-decoration: none; }
.dd-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.dd-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dd-body { min-width: 0; }
.dd-title { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.dd-desc { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dd-pill { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--grad); color: white; font-size: 9.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: middle; }
.nav-cta-group { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; width: 42px; height: 42px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad); color: white; box-shadow: 0 10px 26px rgba(79, 122, 227, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(79, 122, 227, 0.45); color: white; }
.btn-ghost { background: white; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

/* ===== PAGE LAYOUT ===== */
section { padding: 90px 0; }
.section-eyebrow { display: inline-block; padding: 5px 13px; border-radius: 999px; background: var(--grad-soft); color: var(--accent-2); font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 18px; }
.section-head-center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-sub { font-size: 17px; color: var(--text-2); margin-top: 16px; }
.alt { background: var(--bg-soft); }

/* ===== PAGE HERO (generic for sub-pages) ===== */
.page-hero { padding: 90px 0 60px; background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, transparent 100%); }
.page-hero .wrap { text-align: center; max-width: 780px; }
.page-hero h1 { font-size: 56px; margin-bottom: 16px; }
.page-hero .lead { font-size: 19px; color: var(--text-2); margin: 0 auto 28px; max-width: 640px; }
.page-hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.page-hero .trust { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* ===== CARD GRIDS ===== */
.card { background: white; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(79, 122, 227, 0.3); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ===== ICON ===== */
.icon-bubble { width: 48px; height: 48px; border-radius: 14px; background: var(--grad-soft); color: var(--accent-2); display: grid; place-items: center; margin-bottom: 18px; }
.icon-bubble svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== CHECKMARK LIST ===== */
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; color: var(--text-2); font-size: 15px; }
.check-list li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: rgba(47, 163, 107, 0.12); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--grad); color: white; border-radius: 24px; padding: 64px 40px; text-align: center; margin: 80px auto; max-width: 980px; }
.cta-banner h2 { color: white; font-size: 38px; margin-bottom: 16px; }
.cta-banner p { color: rgba(255, 255, 255, 0.9); font-size: 17px; max-width: 580px; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: white; color: var(--accent-2); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.cta-banner .btn-primary:hover { color: var(--accent-2); background: white; }
.cta-banner .btn-ghost { background: transparent; color: white; border-color: rgba(255, 255, 255, 0.4); }
.cta-banner .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: white; }
.cta-banner .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-banner .trust { font-size: 13.5px; color: rgba(255, 255, 255, 0.8); margin-top: 18px; }

/* ===== FOOTER ===== */
footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 60px 0 32px; margin-top: 80px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 32px; margin-bottom: 16px; }
.foot-brand p { font-size: 14px; max-width: 320px; }
.foot-col h5 { font-size: 12px; font-weight: 800; color: var(--text); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }

/* ===== ANIMATIONS ===== */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.has-js .reveal { opacity: 0; transform: translateY(28px); }
.has-js .reveal.in-view { opacity: 1; transform: none; }
.has-js .reveal.delay-1 { transition-delay: 0.08s; }
.has-js .reveal.delay-2 { transition-delay: 0.16s; }
.has-js .reveal.delay-3 { transition-delay: 0.24s; }
.has-js .reveal.delay-4 { transition-delay: 0.32s; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  h1, .page-hero h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  section { padding: 60px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav { backdrop-filter: none !important; background: rgba(255, 255, 255, 0.96); }
  .nav-menu {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    height: calc(100vh - 64px); height: calc(100dvh - 64px); max-height: calc(100vh - 64px);
    background: white; padding: 20px 18px 28px;
    display: none; overflow-y: auto; -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    justify-content: flex-start;
    z-index: 200;
  }
  .nav-menu.open { display: flex !important; }
  .nav-list { display: flex !important; flex-direction: column; gap: 4px; width: 100%; align-items: stretch; margin: 0; padding: 0; list-style: none; }
  .nav-item { width: 100%; display: block; position: static; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 16px; border-radius: 10px; color: var(--text); display: flex !important; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 8px 12px; min-width: 0; display: none; background: transparent; }
  .has-dropdown[data-open] .dropdown { display: block; }
  .has-dropdown[data-open] > .nav-link { background: var(--accent-soft); }
  .nav-cta-group { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); width: 100%; }
  .nav-cta-group .btn { width: 100%; justify-content: center; padding: 13px 22px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .cta-banner { padding: 48px 24px; }
  .cta-banner h2 { font-size: 28px; }
}
