/* ==========================================================================
   ClaimPilot AI — shared stylesheet
   Hand-written CSS. System font stacks only. No external requests,
   no trackers, no frameworks. getclaimpilot.ai
   ========================================================================== */

:root {
  /* Palette — deep navy / ink, warm paper white, one metallic accent */
  --navy-950: #07182a;
  --navy-900: #0a2138;
  --navy-800: #0d2b45;
  --navy-700: #14395c;
  --navy-600: #1d4a75;
  --ink: #22313f;
  --body: #3c4c5a;
  --muted: #647684;
  --line: #dde4ea;
  --line-dark: #c8d3dd;
  --paper: #ffffff;
  --paper-soft: #f6f8fa;
  --paper-warm: #faf9f6;
  --gold: #b08d4c;
  --gold-deep: #94753a;
  --gold-soft: #c9ab6d;
  --gold-pale: #efe7d3;
  --on-navy: #e8eff5;
  --on-navy-dim: #a9bfd2;
  --on-navy-faint: #7e97ad;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --s1: 8px;  --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 48px; --s6: 64px;  --s7: 88px;  --s8: 112px;

  --max: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(10, 33, 56, .05), 0 10px 34px -18px rgba(10, 33, 56, .22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--body);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--gold-pale); color: var(--navy-900); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy-900); margin: 0; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.16; letter-spacing: -0.01em; }
h3 { font-size: 1.28rem; line-height: 1.3; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a { color: var(--gold-deep); text-decoration-color: rgba(176, 141, 76, .45); text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
strong { color: var(--ink); font-weight: 650; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
li::marker { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.lede { font-size: 1.16rem; line-height: 1.62; color: var(--muted); max-width: 44em; }
.lede strong { color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); padding-top: 15px; padding-bottom: 15px;
}
.brand { text-decoration: none; display: block; line-height: 1; }
.brand .brand-name {
  font-family: var(--serif); font-size: 1.42rem; font-weight: 700;
  color: var(--navy-900); letter-spacing: .005em;
}
.brand .brand-name span { color: var(--gold); }
.brand small {
  display: block; margin-top: 5px;
  font-family: var(--sans); font-size: .64rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 550;
  letter-spacing: .07em; text-transform: uppercase; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--navy-900); border-bottom-color: var(--gold-soft); }
.main-nav a.active { color: var(--navy-900); border-bottom-color: var(--gold); }
.main-nav a.nav-cta {
  border: 1px solid var(--navy-800); color: var(--navy-800);
  padding: 8px 16px; border-radius: var(--radius);
}
.main-nav a.nav-cta:hover { background: var(--navy-800); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; letter-spacing: .04em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); color: #fff; }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-950); color: #fff; }
.btn-outline { border-color: var(--line-dark); color: var(--navy-800); background: transparent; }
.btn-outline:hover { border-color: var(--navy-800); color: var(--navy-900); }
.btn-outline-light { border-color: rgba(232, 239, 245, .45); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: var(--s4); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(29, 74, 117, .55), rgba(29, 74, 117, 0) 60%),
    linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 46%, var(--navy-800) 100%);
  color: var(--on-navy);
  padding: var(--s8) 0 var(--s7);
  border-bottom: 3px solid var(--gold);
}
.hero .eyebrow {
  font-size: .76rem; font-weight: 650; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: 14px;
}
.hero .eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.hero h1 { color: #fff; max-width: 15.5em; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero .lede { color: var(--on-navy-dim); margin-top: var(--s3); font-size: 1.2rem; }
.hero .lede strong { color: #fff; }
.fact-bar {
  margin-top: var(--s6); padding-top: var(--s3);
  border-top: 1px solid rgba(232, 239, 245, .16);
  display: flex; flex-wrap: wrap; gap: 12px 0;
}
.fact-bar .fact {
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--on-navy-dim); padding: 0 22px; border-left: 1px solid rgba(232, 239, 245, .16);
}
.fact-bar .fact:first-child { padding-left: 0; border-left: none; }
.fact-bar .fact b { color: #fff; font-weight: 650; }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section.soft { background: var(--paper-soft); }
.section.warm { background: var(--paper-warm); }
.section.navy {
  background: linear-gradient(170deg, var(--navy-900), var(--navy-950));
  color: var(--on-navy);
}
.section.navy h2, .section.navy h3 { color: #fff; }
.section.navy .lede { color: var(--on-navy-dim); }
.section.navy strong { color: #fff; }

.sec-head { max-width: 780px; margin-bottom: var(--s6); }
.sec-head .sec-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: var(--s2); }
.sec-num {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--gold);
}
.kicker {
  font-size: .76rem; font-weight: 650; letter-spacing: .24em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0;
}
.section.navy .kicker { color: var(--gold-soft); }
.sec-head h2 { margin-bottom: var(--s2); }
.sec-head .rule { width: 56px; height: 2px; background: var(--gold); margin-top: var(--s3); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4); height: 100%; box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .99rem; }
.card .step-num {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: 1.9rem; line-height: 1; color: var(--gold); margin-bottom: var(--s2);
}
.card .card-tag {
  display: block; font-size: .72rem; font-weight: 650; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px;
}
.section.navy .card { background: rgba(255, 255, 255, .04); border-color: rgba(232, 239, 245, .16); box-shadow: none; }
.section.navy .card h3 { color: #fff; }
.section.navy .card p, .section.navy .card li { color: var(--on-navy-dim); }

/* Check lists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .8em; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
.checks.two-col { columns: 2; column-gap: var(--s5); }
.checks.two-col li { break-inside: avoid; }
.checks .ck-title { display: block; font-weight: 650; color: var(--ink); }

/* Callouts */
.callout {
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  background: var(--paper); padding: var(--s4) var(--s5); margin: var(--s5) 0;
  box-shadow: var(--shadow-card);
}
.callout .big { font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--navy-900); margin-bottom: .4em; }
.section.navy .callout { background: rgba(255, 255, 255, .05); border-color: rgba(232, 239, 245, .18); border-top-color: var(--gold); box-shadow: none; }
.section.navy .callout .big { color: #fff; }

/* Terms strip */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.term { padding: var(--s4) var(--s4) var(--s4) 0; }
.term + .term { border-left: 1px solid var(--line); padding-left: var(--s4); }
.term .figure { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--navy-900); line-height: 1.05; }
.term .figure small { font-size: 1.15rem; color: var(--muted); }
.term .label { margin-top: 8px; font-size: .95rem; color: var(--muted); max-width: 19em; }

/* Definition list (e.g. "recovered", defined) */
.deflist { display: grid; grid-template-columns: 220px 1fr; row-gap: 0; border-top: 1px solid var(--line); margin-top: var(--s4); }
.deflist dt {
  font-weight: 650; color: var(--navy-900); padding: 15px var(--s3) 15px 0;
  border-bottom: 1px solid var(--line); font-size: .98rem;
}
.deflist dd { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-card); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 620px; }
.tbl caption {
  text-align: left; font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--navy-900); padding: 20px 24px 4px;
}
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.tbl thead th {
  font-family: var(--sans); font-size: .72rem; font-weight: 650; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy-800);
  padding-top: 18px;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td.t-title { font-weight: 650; color: var(--ink); width: 27%; }
.tbl .req { font-weight: 650; color: var(--gold-deep); white-space: nowrap; }
.tbl .req-opt { color: var(--muted); white-space: nowrap; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: tl; }
.timeline li {
  display: grid; grid-template-columns: 210px 1fr; gap: var(--s4);
  padding: var(--s3) 0; border-bottom: 1px solid var(--line);
}
.timeline li:first-child { padding-top: 0; }
.timeline li:last-child { border-bottom: none; padding-bottom: 0; }
.timeline .when {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; color: var(--navy-900);
}
.timeline .when span {
  display: block; font-family: var(--sans); font-size: .72rem; font-weight: 650;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px;
}

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 400px 1fr; gap: var(--s7); align-items: start; }
.founder-photo { margin: 0; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; max-width: 400px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-950));
  overflow: visible;
}
.photo-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border: 1px solid var(--gold); transform: translate(16px, 16px);
}
.photo-frame img {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.photo-placeholder .mono {
  font-family: var(--serif); font-size: 4.6rem; line-height: 1; color: var(--gold-soft);
  border: 1px solid rgba(201, 171, 109, .5); border-radius: 50%;
  width: 128px; height: 128px; display: flex; align-items: center; justify-content: center;
}
.photo-placeholder .ph-note {
  font-size: .72rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--on-navy-faint);
}
.founder-photo figcaption {
  margin-top: calc(var(--s3) + 16px); font-family: var(--serif); font-size: 1.08rem; color: #fff;
}
.founder-photo figcaption span {
  display: block; font-family: var(--sans); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-top: 4px;
}
.cred-line {
  font-size: .8rem; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); margin: var(--s3) 0 var(--s4);
  padding-bottom: var(--s3); border-bottom: 1px solid rgba(232, 239, 245, .16);
}
.founder-name { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; line-height: 1.12; }
.sig-block { margin-top: var(--s4); font-size: .95rem; color: var(--on-navy-dim); }
.sig-block .sig-name { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #fff; display: block; margin-bottom: 2px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq details:first-of-type { border-top: 1px solid var(--line-dark); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--navy-900);
  padding: 22px 44px 22px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold);
}
.faq details[open ] summary::after { content: "–"; }
.faq details p { max-width: 52em; padding: 0 44px 24px 0; margin: 0; }

/* ---------- Contact panel ---------- */
.contact-panel {
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  background: var(--paper); box-shadow: var(--shadow-card);
  padding: var(--s6) var(--s5);
}
.contact-panel h2 { margin-bottom: var(--s2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-navy-dim); font-size: .95rem; }
.site-footer .gold-rule { height: 3px; background: var(--gold); }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s5);
  padding: var(--s6) 0 var(--s5);
}
.site-footer .f-brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.site-footer .f-brand span { color: var(--gold-soft); }
.site-footer h5 {
  margin: 0 0 14px; font-size: .74rem; font-weight: 650; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-soft);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .fineprint {
  border-top: 1px solid rgba(232, 239, 245, .14);
  padding: var(--s3) 0 var(--s5); font-size: .82rem; line-height: 1.6; color: var(--on-navy-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .founder-grid { grid-template-columns: 320px 1fr; gap: var(--s5); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .wrap { padding: 0 22px; }
  .section { padding: var(--s6) 0; }
  .hero { padding: var(--s6) 0 var(--s5); }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-nav { flex-wrap: wrap; gap: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .term { padding: var(--s3) 0; }
  .term + .term { border-left: none; border-top: 1px solid var(--line); padding-left: 0; }
  .deflist { grid-template-columns: 1fr; }
  .deflist dt { border-bottom: none; padding-bottom: 2px; }
  .deflist dd { padding-top: 0; }
  .checks.two-col { columns: 1; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .founder-grid { grid-template-columns: 1fr; }
  .photo-frame { max-width: 340px; }
  .site-footer .cols { grid-template-columns: 1fr; gap: var(--s4); }
  .fact-bar .fact { padding: 0 14px; }
  .fact-bar .fact:first-child { padding-left: 0; }
  .contact-panel { padding: var(--s4) var(--s3); }
  .callout { padding: var(--s3); }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .btn, .btn-row, .fact-bar { display: none !important; }
  body { font-size: 11.5pt; color: #000; }
  .hero, .section.navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .section.navy h2, .section.navy h3, .founder-name, .founder-photo figcaption { color: #000 !important; }
  .hero .lede, .section.navy .lede, .site-footer, .sig-block { color: #333 !important; }
  .section { padding: 28pt 0; }
  .card, .callout, .table-wrap, .contact-panel { box-shadow: none; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
