/* FairWitnessAI.com — inner pages, dark editorial style matching the home page (css/home.css) */
:root {
  /* Palette shared with home.css */
  --navy: #070d1a;
  --navy-2: #0b1426;
  --navy-card: #101a30;
  --ivory: #f3efe6;
  --ivory-dim: #c9c2b4;
  --gold: #c9a227;
  --gold-soft: #e0c56a;
  --blue: #1a6dff;
  --blue-hot: #3d8bff;
  --blue-glow: rgba(26, 109, 255, 0.35);

  /* Semantic tokens (dark sections). .section-muted redefines these for its light panel. */
  --bg: var(--navy);
  --bg-elevated: var(--navy-card);
  --bg-muted: var(--navy-2);
  --ink: var(--ivory);
  --ink-secondary: var(--ivory-dim);
  --ink-muted: #948d80;
  --teal: var(--gold-soft);        /* accent: eyebrows, status labels, step numbers */
  --teal-dark: var(--gold);
  --link: var(--blue-hot);
  --border: rgba(243, 239, 230, 0.14);
  --border-strong: rgba(243, 239, 230, 0.3);
  --warn-bg: rgba(36, 29, 9, 0.88);
  --warn-border: rgba(201, 162, 39, 0.45);
  --warn-ink: #e8cf7a;
  --ok-bg: rgba(62, 207, 142, 0.1);
  --ok-border: rgba(62, 207, 142, 0.4);
  --field-bg: rgba(255, 255, 255, 0.04);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-ui: "IBM Plex Sans", "Source Sans 3", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --container: min(1080px, calc(100% - 2.5rem));
  --radius: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-hot); outline-offset: 3px; }

.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ivory); color: var(--navy); padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 0; width: var(--container); margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ivory); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-seal {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden; border: 1px solid rgba(201, 162, 39, 0.45);
}
.brand-seal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--ivory);
}
.brand-tag { font-size: 0.72rem; color: var(--ivory-dim); letter-spacing: 0.02em; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border-strong);
  padding: 0.45rem 0.7rem; border-radius: 8px; cursor: pointer; color: var(--ivory);
}
.site-nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--ivory-dim); text-decoration: none; font-family: var(--font-ui);
  font-size: 0.86rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ivory); }

/* Buttons (same as home) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.85rem 1.35rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 8px 28px var(--blue-glow);
}
.btn-primary:hover { background: var(--blue-hot); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: rgba(0, 0, 0, 0.35); color: var(--ink); border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.site-nav .btn-primary { padding: 0.65rem 1.1rem; color: #fff; }

/* Hero: dark, with an optional page photo set per page via --hero-img */
.hero {
  position: relative;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(7, 13, 26, 0.94) 0%, rgba(7, 13, 26, 0.82) 40%, rgba(7, 13, 26, 0.45) 58%, rgba(7, 13, 26, 0.1) 80%, rgba(7, 13, 26, 0) 100%),
    linear-gradient(0deg, rgba(7, 13, 26, 0.85) 0%, rgba(7, 13, 26, 0) 30%),
    var(--hero-img, radial-gradient(ellipse 80% 70% at 100% 0%, rgba(26, 109, 255, 0.14), transparent 60%)) center / cover no-repeat,
    var(--navy);
}
.eyebrow {
  font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.08; color: var(--ivory); max-width: 16ch; margin-bottom: 1rem;
}
.positioning {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; max-width: 40rem; margin-bottom: 1.25rem; color: var(--ivory-dim); }
.brand-line {
  font-family: var(--font-display); font-style: italic; color: var(--gold-soft);
  margin-bottom: 1.75rem; font-size: 1.3rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--bg); color: var(--ink-secondary); }
.section + .section { border-top: 1px solid var(--border); }
.section h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  color: var(--ink); margin-bottom: 0.85rem; line-height: 1.15;
}
.section h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}
.section p + p { margin-top: 0.85rem; }
.section .container > * + h2 { margin-top: 2.5rem; }
.section-intro { max-width: 40rem; margin-bottom: 1.75rem; }

/* The light panel, like the home page's comparison block */
.section-muted {
  --bg: #ebe6dc;
  --bg-elevated: #ffffff;
  --ink: #12151a;
  --ink-secondary: #2a2e35;
  --ink-muted: #5c564c;
  --teal: #8a6d12;
  --teal-dark: #6f570c;
  --link: #1557d6;
  --border: #d9d2c4;
  --border-strong: #b9b1a2;
  --warn-bg: #fff8eb;
  --warn-border: #e8c87a;
  --warn-ink: #7a5a12;
  --ok-bg: #ecf8f5;
  --ok-border: #9ad4c8;
  --field-bg: #ffffff;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  background: var(--bg);
}
.section-muted .btn-secondary { background: transparent; }

/* Cards / grids */
.grid-2, .grid-3, .grid-4 {
  display: grid; gap: 1.25rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card .step-num {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  color: var(--teal); letter-spacing: 0.06em; margin-bottom: 0.4rem;
}

.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--teal);
  background: var(--bg-elevated); padding: 1rem 1.2rem; border-radius: var(--radius);
  margin: 1.25rem 0; color: var(--ink-secondary);
}
.callout strong { color: var(--ink); }
.callout-warn {
  border-left-color: var(--warn-ink); background: var(--warn-bg); border-color: var(--warn-border);
  color: var(--warn-ink);
}
.callout-warn strong { color: inherit; }
.callout-ok {
  border-left-color: var(--teal); background: var(--ok-bg); border-color: var(--ok-border);
}
.badge-planned {
  display: inline-block; font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn-ink); background: var(--warn-bg);
  border: 1px solid var(--warn-border); padding: 0.3rem 0.65rem; border-radius: 999px;
}

.feature-list { list-style: none; margin: 1rem 0; }
.feature-list li {
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 8rem 1fr; gap: 0.75rem;
}
.feature-list .status {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.04em; color: var(--teal);
}
.feature-list .status.partial { color: var(--warn-ink); }
.feature-list .status.planned { color: var(--ink-muted); }

.schema-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.5rem;
}
.schema-table th, .schema-table td {
  text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.schema-table td.mono { color: var(--teal); }
.schema-table th {
  font-family: var(--font-ui); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.mono { font-family: var(--font-mono); font-size: 0.85em; }
code.mono { color: var(--ink); }

/* Forms */
.form {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; max-width: 36rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0.4rem;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.75rem 0.85rem; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--field-bg); color: var(--ink); font: inherit;
}
.form-row textarea { min-height: 7rem; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--ink-muted); margin-top: 0.35rem; }
.form-status { margin-top: 0.85rem; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: #1f7a52; }
.form-status.err { color: #b4232f; }
.hp { position: absolute; left: -10000px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* About: founder and company */
.founder-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.75rem, 4vw, 3rem); align-items: center;
}
.founder-photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.founder-photo img {
  width: 100%; height: auto; display: block;
  filter: saturate(0.88) contrast(1.05) brightness(0.92);
}
.founder-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(7, 13, 26, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 13, 26, 0) 60%, rgba(7, 13, 26, 0.35) 100%);
}
.founder-copy h2 { margin-bottom: 0.25rem; }
.founder-role {
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.25rem;
}
.founder-place {
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--gold-soft);
}
.company-card {
  margin-top: clamp(2rem, 5vw, 3rem); max-width: 34rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
}
.company-card h3 { margin: 0 0 0.75rem; }
.company-card address { font-style: normal; }
.company-card dl { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem 1rem; }
.company-card dt {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted); padding-top: 0.2rem;
}
.company-card dd { color: var(--ink); }

/* Pricing */
.price-card .amount {
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--ink); margin: 0.4rem 0;
}
.price-card .amount span { font-family: var(--font-body); font-size: 1rem; color: var(--ink-muted); }
.price-card ul { margin: 1rem 0 1.25rem; padding-left: 1.1rem; }
.price-card li { margin-bottom: 0.4rem; }

/* Footer (same as home) */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.75rem 0 2rem;
  background: #050910; color: var(--ivory-dim);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem;
  width: var(--container); margin-inline: auto;
}
.site-footer h4 {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ivory); margin-bottom: 0.75rem;
}
.site-footer a { display: block; color: var(--ivory-dim); text-decoration: none; margin-bottom: 0.35rem; font-size: 0.92rem; }
.site-footer a:hover { color: var(--ivory); }
.footer-copy {
  width: var(--container); margin: 1.75rem auto 0; padding-top: 1.25rem;
  border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--ink-muted);
}

.flow-diagram {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 1.5rem 0;
}
.flow-step {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; text-align: center;
}
.flow-step strong {
  display: block; color: var(--gold-soft); font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; margin-bottom: 0.35rem;
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .flow-diagram, .footer-grid, .founder-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start;
    padding: 0.5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .brand { flex: 1 1 0; min-width: 0; }
  .feature-list li { grid-template-columns: 1fr; gap: 0.2rem; }
  .hero {
    background:
      linear-gradient(0deg, rgba(7, 13, 26, 0.97) 0%, rgba(7, 13, 26, 0.8) 60%, rgba(7, 13, 26, 0.55) 100%),
      var(--hero-img, none) center / cover no-repeat,
      var(--navy);
  }
}
