/* ====================================================================
   Plexxa marketing — shared styles for subpages (about, contact,
   privacy, terms, DPA, security, etc.). The home page (index.html)
   keeps its own inline CSS because it has lots of bespoke product
   visuals; this stylesheet is the common shell — design tokens, top
   nav, footer, content body typography, and a long-form prose layout.

   Tokens match the home page exactly so the brand carries through.
   Dark gradient hero at the top of each page, clean white body for
   long-form reading.
   ==================================================================== */

:root {
  --brand: #6B48D1;
  --brand-display: #7C3AED;
  --brand-deep: #5B21B6;
  --brand-darker: #2E1065;
  --brand-night: #1A0B3D;
  --brand-glow: #A78BFA;
  --brand-bright: #C4B5FD;
  --brand-soft: #F1EDFA;

  --grad-cta: linear-gradient(180deg, #C4B5FD 0%, #8B5CF6 55%, #6D28D9 100%);
  --grad-cta-hover: linear-gradient(180deg, #DDD6FE 0%, #A78BFA 55%, #7C3AED 100%);
  --grad-hero: radial-gradient(140% 90% at 18% 0%, #4C1D95 0%, #2E1065 45%, #1A0B3D 100%);
  --grad-page: linear-gradient(180deg, #1A0B3D 0%, #2E1065 100%);

  --ink: #0F172A;
  --ink-2: #1F2937;
  --ink-3: #334155;
  --muted: #6B7280;
  --muted-2: #94A3B8;
  --line: #E5E7EB;
  --line-2: #F3F4F6;
  --paper: #FFFFFF;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-pill: 999px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brand-bright); color: var(--brand-darker); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ==================== LAYOUT ==================== */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }
@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .section { padding: 56px 0; }
}

/* ==================== NAV (matches index.html) ==================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark .glyph {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(167, 139, 250, .45),
              0 0 0 1px rgba(255, 255, 255, .14) inset;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; gap: 12px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--brand-darker); text-decoration: none; }
.nav-cta .arrow { transition: transform 200ms ease; }
.nav-cta:hover .arrow { transform: translateX(2px); }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ==================== PAGE HERO (top band) ==================== */
.page-hero {
  background: var(--grad-page);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(167, 139, 250, .25), transparent 70%),
    radial-gradient(40% 40% at 20% 100%, rgba(124, 58, 237, .25), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap-narrow { position: relative; }
.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-bright);
  margin-bottom: 18px;
}
.page-hero .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px var(--brand-bright);
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
}
.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #C4B5FD 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  margin: 0;
  max-width: 56ch;
}
.page-hero .meta {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, .55);
}
@media (max-width: 720px) {
  .page-hero { padding: 56px 0 64px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero .lede { font-size: 16px; }
}

/* ==================== LONG-FORM PROSE ==================== */
.prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 32px 0 8px;
}
.prose p {
  margin: 0 0 16px;
}
.prose ul, .prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  background: var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.prose blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  border-left: 3px solid var(--brand);
  background: var(--brand-soft);
  font-size: 15px;
  color: var(--ink-2);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose .meta-box {
  margin: 32px 0;
  padding: 18px 20px;
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}
.prose .meta-box strong { color: var(--ink); }
.prose .toc {
  margin: 0 0 40px;
  padding: 18px 22px;
  background: var(--line-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.prose .toc-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.prose .toc ol {
  padding-left: 18px;
  margin: 0;
}
.prose .toc li {
  margin-bottom: 4px;
  font-size: 14px;
}
.prose .toc a {
  color: var(--ink-2);
  text-decoration: none;
}
.prose .toc a:hover { color: var(--brand); }
.prose .last-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

/* ==================== FORM (contact / walkthrough) ==================== */
.form-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-card);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.form-row .req { color: var(--brand); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-row textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}
.form-row .hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--grad-cta);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 22px -6px rgba(109, 40, 217, .55),
              0 0 0 1px rgba(255, 255, 255, .2) inset,
              0 1px 0 rgba(255, 255, 255, .28) inset;
  text-shadow: 0 1px 0 rgba(46, 16, 101, .35);
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease;
}
.btn-submit:hover:not(:disabled) { background: var(--grad-cta-hover); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: none;
}
.form-msg.ok { display: block; background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.form-msg.bad { display: block; background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ==================== CARDS / FEATURE GRIDS ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
}
.flat-card {
  padding: 22px 24px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.flat-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}
.flat-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ==================== FOOTER (matches index.html) ==================== */
.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, .65);
  padding: 80px 0 36px;
}
.foot a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .brand-mark { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.foot-brand p {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  max-width: 28ch;
}
.foot-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col li { font-size: 14px; }
.foot-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .4);
}
.foot-bottom .reg { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
}

/* ==================== UTIL ==================== */
.text-center { text-align: center; }
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
