/* =============================================
   PLCScribe — Shared Stylesheet
   ============================================= */

:root {
  --blue:       #1565C0;
  --blue-dark:  #0d47a1;
  --blue-light: #e3f2fd;
  --green:      #16a34a;
  --dark:       #0f172a;
  --text:       #334155;
  --muted:      #64748b;
  --border:     #e2e8f0;
  --bg:         #f8fafc;
  --white:      #ffffff;
  --radius:     10px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.09);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 112px;
}
.nav-logo {
  text-decoration: none;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.nav-logo img { height: 100px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.btn-nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 6px;
}
.btn-nav:hover { background: var(--blue-dark) !important; }

/* ── FOOTER ─────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 64px 5% 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 28px;
}
.footer-brand .nav-logo { color: white; margin-bottom: 14px; }
.site-footer .nav-logo img { filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.87rem; line-height: 1.75; }
.footer-col h4 {
  color: white; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; color: #94a3b8; text-decoration: none;
  font-size: 0.87rem; margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  font-size: 0.8rem; text-align: center; color: #64748b;
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; border-radius: 8px;
  transition: all 0.2s ease; cursor: pointer;
  border: none; font-family: inherit; font-size: 0.95rem;
  line-height: 1;
}
.btn-primary {
  background: var(--blue); color: white;
  padding: 0.8rem 1.85rem;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(21,101,192,0.3); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
  padding: 0.75rem 1.75rem;
}
.btn-outline:hover { background: var(--blue); color: white; }
.btn-white { background: white; color: var(--blue); padding: 0.8rem 1.85rem; }
.btn-white:hover { background: var(--blue-light); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; border-radius: 9px; }

/* ── SECTION BASICS ─────────────────────── */
.section { padding: 90px 5%; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--dark); color: white; }
.max-w { max-width: 1160px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-title { margin-bottom: 14px; }

.section-title {
  font-size: 2rem; font-weight: 700;
  color: var(--dark); line-height: 1.25;
}
.section-title-white { color: white; }
.section-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 620px; margin: 0 auto;
}
.section-sub-white { color: #94a3b8; }

/* ── BADGE ──────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--blue-light); color: var(--blue);
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-green { background: #dcfce7; color: var(--green); }
.badge-white { background: rgba(255,255,255,0.15); color: white; }

/* ── HERO (inner pages) ─────────────────── */
.page-hero {
  padding: 80px 5% 72px;
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: white; text-align: center;
}
.page-hero .breadcrumb {
  font-size: 0.82rem; color: #64748b; margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: #94a3b8; text-decoration: none; }
.page-hero .breadcrumb a:hover { color: white; }
.page-hero h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: #94a3b8; max-width: 620px; margin: 0 auto 2rem; }

/* ── CARDS ──────────────────────────────── */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-light); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.card-icon i { color: var(--blue); font-size: 1.35rem; }
.card-icon-green { background: #dcfce7; }
.card-icon-green i { color: var(--green); }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.6rem; }
.card p { font-size: 0.93rem; color: var(--muted); }

/* ── GRID HELPERS ───────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

/* ── STEP LIST ──────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; counter-reset: steps; }
.step { text-align: center; padding: 1.5rem; }
.step-num {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--blue); color: white;
  font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

/* ── STAT BAR ───────────────────────────── */
.stat-bar { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; padding: 48px 5%; background: var(--blue); color: white; }
.stat { text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; display: block; }
.stat-label { font-size: 0.88rem; opacity: 0.8; }

/* ── CTA BANNER ─────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: white; padding: 80px 5%; text-align: center;
}
.cta-banner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.cta-banner p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 2rem; }
.cta-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ── FAQ ACCORDION ──────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.4rem;
  font-weight: 600; font-size: 0.97rem;
  color: var(--dark); cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  background: white;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.3rem; color: var(--blue);
  transition: transform 0.2s; flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--blue); background: var(--blue-light); }
.faq-body { padding: 1.1rem 1.4rem; font-size: 0.93rem; color: var(--muted); border-top: 1px solid var(--border); line-height: 1.75; }

/* ── PRICING CARD ───────────────────────── */
.price-cards { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.price-card {
  background: white; border: 1px solid var(--border);
  border-radius: 14px; padding: 2.5rem 2rem;
  width: 320px; position: relative;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 8px 32px rgba(21,101,192,0.15);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: white;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.price-name { font-size: 0.9rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.price-amount { font-size: 2.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.price-amount sup { font-size: 1.2rem; vertical-align: top; margin-top: 6px; }
.price-amount span { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.price-desc { font-size: 0.88rem; color: var(--muted); margin: 12px 0 24px; }
.price-features { list-style: none; margin-bottom: 2rem; flex: 1; }
.price-features li {
  font-size: 0.9rem; color: var(--text);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-features li:last-child { border-bottom: none; }

/* ── COMPLIANCE GRID ────────────────────── */
.comp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  border-left: 4px solid var(--green);
}
.comp-card h3 { color: white; font-size: 1.05rem; margin-bottom: 0.6rem; }
.comp-card p { color: #94a3b8; font-size: 0.9rem; }

/* ── FORM ───────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: white; transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── CHAT DEMO ──────────────────────────── */
.chat-window {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  max-width: 560px; margin: 0 auto;
}
.chat-msg { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.chat-msg.bot { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--muted); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; flex-shrink: 0;
}
.chat-avatar.bot-av { background: var(--blue); }
.chat-bubble {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px;
  font-size: 0.88rem; color: var(--text); max-width: 80%;
  box-shadow: var(--shadow-sm);
}
.chat-bubble.bot-bubble { background: var(--blue); color: white; border-color: var(--blue); }

/* ── UTILITIES ──────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-white { color: white; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }
.fw-700 { font-weight: 700; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page-hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .stat-bar { gap: 2.5rem; }
}
@media (max-width: 700px) {
  .nav-links { gap: 0.9rem; }
  .nav-links .hide-sm { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 64px 5%; }
  .price-cards { flex-direction: column; align-items: center; }
  .price-card { width: 100%; max-width: 360px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.75rem; }
  .site-nav { padding: 0 4%; }
  .nav-links { gap: 0.7rem; }
}
