/* Pansophy AI — Shared Styles
 * Used by:
 *   - legal.pansophyai.com  (eula, privacy, responsible-ai, support)
 *   - pansophyai.com        (home, secondopinion, for-it-admins)
 *
 * Deploy to BOTH pansophyailegal/$web/shared.css and pansophyaisite/$web/shared.css.
 * Keep them in sync — do not edit one without copying to the other.
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  --navy:   #0F1E3C;
  --ink:    #1A2D52;
  --blue:   #1E5FBF;
  --sky:    #3B82C4;
  --mist:   #EAF0FB;
  --white:  #FFFFFF;
  --gray50: #F7F8FA;
  --gray100:#EEF0F4;
  --gray400:#8A93A8;
  --gray700:#3D4560;
  --text:   #1C2640;
  --accent: #C8983A;
  --radius: 4px;
  --max:    780px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAV (shared across all pages)
   ============================================================ */

/* Site-header nav only (scoped to body > nav so nested <nav class="toc"> is not affected) */
body > nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

/* ============================================================
   LEGAL PAGES — .page-header + .content-wrap + .doc-section
   Used on: eula.html, privacy.html, responsible-ai.html, support.html,
            for-it-admins/index.html
   ============================================================ */

.page-header {
  background: var(--navy);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(30,95,191,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,152,58,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.page-header .meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.02em;
}

.content-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.toc {
  background: var(--gray50);
  border: 1px solid var(--gray100);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Extra breathing room when TOC follows a callout or warning block */
.callout + .toc,
.warning + .toc {
  margin-top: 2.5rem;
}

.toc-title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray400);
  margin-bottom: 0.8rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.3rem;
  break-inside: avoid;
}

.toc a {
  color: var(--blue);
  text-decoration: none;
}

.toc a:hover { text-decoration: underline; }

.doc-section {
  margin-bottom: 2.8rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--gray100);
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
}

.doc-section h3 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin: 1.4rem 0 0.6rem;
  text-transform: uppercase;
}

.doc-section p {
  font-size: 0.93rem;
  color: var(--gray700);
  margin-bottom: 0.9rem;
  line-height: 1.8;
}

.doc-section ul,
.doc-section ol {
  margin: 0.4rem 0 0.9rem 1.4rem;
}

.doc-section li {
  font-size: 0.93rem;
  color: var(--gray700);
  margin-bottom: 0.4rem;
  line-height: 1.8;
}

/* ============================================================
   CALLOUTS (shared across page types)
   ============================================================ */

.callout {
  background: var(--mist);
  border: 1px solid rgba(30,95,191,0.15);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}

.callout p {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
  font-style: italic;
  line-height: 1.75;
}

.warning {
  background: #FFF8ED;
  border: 1px solid rgba(200,152,58,0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
}

.warning p {
  font-size: 0.88rem;
  color: #6B4A10;
  margin: 0;
  line-height: 1.75;
}

.contact-block {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-top: 1rem;
}

.contact-block p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.88rem !important;
  margin-bottom: 0.3rem !important;
}

.contact-block a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block strong {
  color: var(--white);
  font-weight: 500;
}

/* ============================================================
   HERO (used on home + secondopinion)
   ============================================================ */

.hero {
  background: var(--navy);
  padding: 6rem 2rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(30,95,191,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(200,152,58,0.4);
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.6rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 2.4rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Slightly larger hero H1 on the product page */
.hero--product h1 { font-size: 3.2rem; line-height: 1.1; }

/* ============================================================
   BUTTONS
   ============================================================ */

.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,152,58,0.3);
}

.cta-hint {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   TRUST STRIP (between hero and content)
   ============================================================ */

.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray100);
  padding: 1.2rem 2rem;
}

.trust-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray400);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   MARKETING SECTION SHELL
   (used for content blocks on home + secondopinion)
   ============================================================ */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-wide {
  max-width: 960px;
}

.section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section .section-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section p {
  font-size: 0.98rem;
  color: var(--gray700);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.section p.body-lede {
  font-size: 1.08rem;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.section-alt {
  background: var(--gray50);
  border-top: 1px solid var(--gray100);
  border-bottom: 1px solid var(--gray100);
  padding: 5rem 2rem;
}

.section-alt .section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* ============================================================
   PRODUCT CARD (home page)
   ============================================================ */

.product-card {
  background: var(--white);
  border: 1px solid var(--gray100);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem;
  margin-top: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}

.product-card:hover {
  box-shadow: 0 8px 28px rgba(15,30,60,0.08);
  transform: translateY(-2px);
}

.product-card .product-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.product-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.product-card .product-tagline {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--gray700);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.product-card .product-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.02em;
}

/* ============================================================
   COMPANY FACTS (home page)
   ============================================================ */

.company-facts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.8rem 2rem;
  margin-top: 1.8rem;
  font-size: 0.93rem;
  line-height: 1.75;
}

.company-facts dt {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray400);
  padding-top: 0.15rem;
}

.company-facts dd {
  margin: 0;
  color: var(--gray700);
}

.company-facts dd strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   CONTACT GRID (home page)
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-row {
  background: var(--white);
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.contact-row h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.contact-row p {
  font-size: 0.9rem;
  color: var(--gray700);
  line-height: 1.6;
  margin: 0;
}

.contact-row a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.contact-row a:hover { text-decoration: underline; }

/* ============================================================
   USE CASES GRID (secondopinion)
   ============================================================ */

.use-cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.use-case {
  background: var(--gray50);
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem;
}

.use-case h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.use-case p {
  font-size: 0.88rem;
  color: var(--gray700);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   STEPS (secondopinion — upload, scrub, read)
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  position: relative;
}

.step .step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.93rem;
  color: var(--gray700);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   DIFFERENTIATORS (secondopinion — three-point grid)
   ============================================================ */

.diff-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.diff-point h3 {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

.diff-point p {
  font-size: 0.92rem;
  color: var(--gray700);
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   PRICING BLOCK (secondopinion)
   ============================================================ */

.pricing {
  background: var(--mist);
  border: 1px solid rgba(30,95,191,0.15);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-top: 1.5rem;
}

.pricing .price-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.pricing p {
  font-size: 0.94rem;
  color: var(--gray700);
  line-height: 1.7;
  margin: 0.5rem 0 0;
}

/* ============================================================
   ADMIN SECTION (secondopinion — "Working with your IT admin")
   ============================================================ */

.admin-section {
  background: var(--white);
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem 2rem;
  margin: 2rem 0 0;
}

.admin-section .admin-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.admin-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.admin-section .intro {
  font-size: 0.95rem;
  color: var(--gray700);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-card {
  background: var(--gray50);
  border: 1px solid var(--gray100);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-card h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
}

.admin-card p {
  font-size: 0.88rem;
  color: var(--gray700);
  line-height: 1.65;
  margin: 0;
}

.admin-card .action-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.3rem;
}

.admin-card .action-link:hover { text-decoration: underline; }

.admin-script {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
}

.admin-script .script-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.admin-script .script-body p {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 0.8rem 0;
}

.admin-script .script-body p:last-child { margin-bottom: 0; }

.admin-script .copy-hint {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
  font-style: italic;
}

/* ============================================================
   SECONDARY CTA (dark footer-adjacent callout)
   ============================================================ */

.cta-secondary-block {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}

.cta-secondary-block h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.cta-secondary-block p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   FOOTER (shared across all pages)
   ============================================================ */

footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem;
  text-align: center;
}

footer p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
}

footer a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 780px) {
  .hero h1 { font-size: 2.2rem; }
  .hero--product h1 { font-size: 2.4rem; }
  .hero .lede { font-size: 1rem; }
  .section h2, .cta-secondary-block h2 { font-size: 1.5rem; }
  .use-cases { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .diff-points { grid-template-columns: 1fr; gap: 2rem; }
  .admin-actions { grid-template-columns: 1fr; }
  .admin-section { padding: 1.8rem 1.5rem 1.5rem; }
  .company-facts { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .company-facts dt { margin-top: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1.6rem 1.5rem; }
  .trust-strip-inner { gap: 1.2rem; }
  .trust-item { font-size: 0.7rem; letter-spacing: 0.04em; }
}

@media (max-width: 600px) {
  .toc ol { columns: 1; }
  .page-header h1 { font-size: 1.8rem; }
  body > nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .use-cases { grid-template-columns: 1fr; }
}

/* ============================================================
   LOGO — Second Opinion product pages
   Scoped classes so legal pages without the logo HTML are unaffected.
   ============================================================ */

/* Hero logo — used on /secondopinion/index.html (light hero bg) */
.hero-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
}

/* Page-header logo — used on /secondopinion/for-it-admins/ (navy header) */
.page-header-logo {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1; /* sit above the radial gradient overlay in .page-header::before */
}

@media (max-width: 640px) {
  .hero-logo,
  .page-header-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 1.2rem;
  }
}
