/* Shared styles for the Smart Deposition AI marketing site.
   Design direction: heritage insurance/legal institution, not startup
   SaaS -- ivory + navy + brass, serif display type, illustrated (not
   stock-photo) imagery grounded in the actual product. Light is the
   primary identity (reads as "established carrier," not "app demo");
   dark is a fully-supported second theme, not an afterthought. */

:root {
  --ink: #14233F;
  --paper: #F6F2E7;
  --surface: #FFFFFF;
  --brass: #A6802E;
  --brass-deep: #7C5F20;
  --slate: #56637C;
  --border: #DEDCC8;
  --redline: #A63F36;
  --sage: #5B7F63;
  --radius: 3px;
  --max: 1160px;
  /* Same tier tokens the in-app scorecard uses (train.html / results.html:
     scoreColorClass()) -- >=80 good, >=60 warn, else bad. Fixed across
     both themes on purpose, same as the app: these are pass/fail signal
     colors, not brand colors, so they shouldn't shift with light/dark. */
  --score-good: #68d391;
  --score-warn: #f6ad55;
  --score-bad:  #fc8181;
}
:root[data-theme="dark"] {
  --ink: #F3EEE0;
  --paper: #101A2E;
  --surface: #17223A;
  --brass: #C7A052;
  --brass-deep: #E3BE73;
  --slate: #93A0BC;
  --border: #263049;
  --redline: #C1544A;
  --sage: #7FA487;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3EEE0;
    --paper: #101A2E;
    --surface: #17223A;
    --brass: #C7A052;
    --brass-deep: #E3BE73;
    --slate: #93A0BC;
    --border: #263049;
    --redline: #C1544A;
    --sage: #7FA487;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brass-deep); text-decoration: none; }
:root[data-theme="dark"] a, @media (prefers-color-scheme: dark) { }
a:hover { text-decoration: underline; }
::selection { background: var(--brass); color: var(--paper); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  z-index: 50;
}
header.site .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--max); margin: 0 auto;
}
.logo {
  font-family: Georgia, "Iowan Old Style", serif;
  font-weight: 400; font-size: 19px; color: var(--ink); letter-spacing: 0.2px;
}
.logo span { color: var(--brass-deep); }
nav.site-nav { display: flex; gap: 26px; align-items: center; }
nav.site-nav a { color: var(--slate); font-size: 14px; font-weight: 600; }
nav.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
}
.nav-cta:hover { background: var(--brass-deep); text-decoration: none; }

@media (max-width: 700px) {
  header.site .bar { padding: 12px 20px; }
  nav.site-nav a:not(.nav-cta) { display: none; }
  nav.site-nav { gap: 0; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

section { padding: 88px 24px; }
section.tight { padding: 56px 24px; }
@media (max-width: 700px) {
  section { padding: 48px 20px; }
  section.tight { padding: 34px 20px; }
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-inner.narrow { max-width: 760px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 1.4px; font-size: 12px; font-weight: 700;
  color: var(--brass-deep); margin-bottom: 12px;
}
h1, h2, h3 { color: var(--ink); margin: 0 0 18px; font-family: Georgia, "Iowan Old Style", serif; font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -0.3px; line-height: 1.14; }
h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.2px; line-height: 1.2; }
h3 { font-size: 19px; font-family: -apple-system, sans-serif; font-weight: 700; }
p { color: var(--slate); margin: 0 0 16px; }
.lede { font-size: 19px; color: var(--slate); }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass-deep); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brass-deep); color: var(--brass-deep); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---- Hero: a real captured session screenshot -- replaces the earlier
   hand-illustrated "live session" mockup now that we have actual product
   footage to show instead of a stand-in for it. ---- */
.hero {
  padding: 76px 24px 0;
  background: linear-gradient(180deg, var(--surface), var(--paper) 70%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-bottom: 56px;
}
.hero-copy .lede { max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--slate); margin-top: 20px; }

.hero-shot {
  /* Deliberately NOT theme-linked, same reasoning as the mockup it
     replaces: this is a screen-within-a-screen (a real session's video
     UI), which stays dark regardless of the page's own theme. --ink
     flips between themes (it's the body text color), so using it here
     would invert this card to a light box in dark mode. */
  margin: 0; background: #14233F; border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(20, 35, 63, 0.45);
  border: 1px solid var(--border);
}
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot figcaption {
  padding: 12px 16px; text-align: center; font-size: 13px; color: #B9C2D6;
  border-top: 1px solid rgba(246,242,231,0.12);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; }
}
@media (max-width: 700px) {
  .hero { padding: 28px 20px 0; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
}

.step-icon {
  width: 44px; height: 44px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 26px; height: 26px; stroke: var(--brass-deep); }
.step-num {
  display: inline-block; font-family: ui-monospace, monospace; font-size: 11px; color: var(--slate);
  letter-spacing: 0.5px; margin-bottom: 8px;
}

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- 7-factor scorecard: a real visual artifact instead of a
   paragraph describing the feature -- shown, not just told. ---- */
.scorecard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 30px; margin-top: 28px;
}
.scorecard-row { display: flex; align-items: center; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); }
.scorecard-row:first-child { border-top: none; }
.scorecard-row .factor-name { flex: 1; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.scorecard-row .factor-bar-track { flex: 2; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.scorecard-row .factor-bar-fill { display: block; height: 100%; background: var(--brass-deep); border-radius: 999px; }
.scorecard-row .factor-num { font-family: ui-monospace, monospace; font-size: 13px; color: var(--slate); width: 34px; text-align: right; font-weight: 700; }
.scorecard-row .factor-bar-fill.col-good { background: var(--score-good); }
.scorecard-row .factor-bar-fill.col-warn { background: var(--score-warn); }
.scorecard-row .factor-bar-fill.col-bad  { background: var(--score-bad); }
.scorecard-row .factor-num.col-good { color: var(--score-good); }
.scorecard-row .factor-num.col-warn { color: var(--score-warn); }
.scorecard-row .factor-num.col-bad  { color: var(--score-bad); }

.security-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
@media (max-width: 700px) { .security-list { grid-template-columns: 1fr; } }
.security-list li { color: var(--slate); padding-left: 28px; position: relative; font-size: 15px; }
.security-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--sage); font-weight: 700;
}
.security-note {
  margin-top: 30px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper); font-size: 13.5px; color: var(--slate);
}

/* Pricing */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; margin: 0 auto 40px;
}
.billing-toggle button {
  border: none; background: transparent; color: var(--slate); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
}
.billing-toggle button.active { background: var(--ink); color: var(--paper); }
.billing-toggle .save-badge { font-size: 11px; color: var(--brass-deep); font-weight: 700; margin-left: 6px; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 940px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.plan-card.featured {
  border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass);
}
.plan-badge {
  position: absolute; top: -13px; left: 26px; background: var(--brass); color: var(--paper);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 4px; }
.plan-for { font-size: 13.5px; color: var(--slate); margin-bottom: 18px; min-height: 36px; }
.plan-price { font-family: Georgia, serif; font-size: 38px; color: var(--ink); margin-bottom: 2px; }
.plan-price .unit { font-family: -apple-system, sans-serif; font-size: 14px; font-weight: 600; color: var(--slate); }
.plan-price.contact { font-size: 26px; }
.plan-seats { font-size: 13.5px; color: var(--slate); margin-bottom: 22px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan-features li { font-size: 14.5px; color: var(--slate); padding: 7px 0 7px 24px; position: relative; border-top: 1px solid var(--border); }
.plan-features li:first-child { border-top: none; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }

.compare-hint { display: none; font-size: 12.5px; color: var(--slate); margin: 56px 0 -8px; }
.compare-wrap { overflow-x: auto; margin-top: 56px; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .compare-hint { display: block; }
  .compare-wrap { margin-top: 12px; }
}
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
table.compare th, table.compare td {
  padding: 13px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); color: var(--slate);
}
table.compare th { color: var(--ink); font-weight: 700; }
table.compare td.check { text-align: center; color: var(--sage); font-weight: 700; }
table.compare tr td:first-child, table.compare tr th:first-child { color: var(--ink); font-weight: 600; }

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 16.5px; font-family: -apple-system, sans-serif; }
.faq-item p { margin: 0; }

footer.site { border-top: 1px solid var(--border); padding: 48px 24px 32px; background: var(--surface); }
footer.site .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--slate); font-size: 13.5px; }
footer.site .foot-meta { color: var(--slate); font-size: 13px; margin-top: 20px; }

.form-field { margin-bottom: 18px; text-align: left; }
.form-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-size: 14.5px; font-family: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 1px;
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field .field-error { color: var(--redline); font-size: 12.5px; margin-top: 5px; min-height: 1em; }

.notice { border-radius: var(--radius); padding: 14px 16px; font-size: 14px; margin: 18px 0; }
.notice.info { background: var(--surface); color: var(--ink); border: 1px solid var(--brass); }
.notice.warn { background: var(--surface); color: var(--ink); border: 1px solid var(--redline); }

.center { text-align: center; }
.muted { color: var(--slate); font-size: 13px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Chat launcher: present now as a real, working contact channel
   (opens the same enterprise-lead path as /contact); becomes a live
   chat widget once GHL is wired -- not a fake "someone's online" prop. ---- */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  background: var(--ink); color: var(--paper); border: none; border-radius: 999px;
  padding: 13px 20px 13px 16px; display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px -8px rgba(20,35,63,0.4);
}
.chat-launcher:hover { background: var(--brass-deep); }
.chat-launcher svg { width: 18px; height: 18px; stroke: currentColor; flex-shrink: 0; }
@media (max-width: 700px) { .chat-launcher span { display: none; } .chat-launcher { padding: 13px; } }
