/* ===========================================================
   Baltiqo — Design System (v2)
   Warm ink + single gold accent · restrained, Sourcify-influenced
   Spectral + Public Sans
   =========================================================== */

:root {
  /* Brand colors — corrected after seeing an actual Sourcify screenshot:
     they run on ONE vivid, confident blue (not black, not muted navy)
     with gold used sparingly as a single accent touch, everything else
     neutral/grayscale. This mirrors that ratio: blue does the branded/
     interactive work, ink is just body text, gold is genuinely rare. */
  --ink: #1C1B18;
  --ink-soft: #302E28;
  --ink-deep: #0E0D0B;
  --blue: #2145A6;
  --blue-deep: #163374;
  --brass: #B8935A;
  --brass-deep: #96723C;
  --paper: #FBFAF7;
  --stone: #ECE6D8;

  /* Derived */
  --text-body: #33312B;
  --text-muted: #726C5E;
  --white: #FFFFFF;
  --line: rgba(28, 27, 24, 0.14);
  --line-soft: rgba(28, 27, 24, 0.08);

  /* Type */
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.1rem + 0.25vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.3rem + 0.5vw, 1.75rem);
  --step-3: clamp(1.85rem, 1.6rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.5rem, 2.1rem + 1.8vw, 3.6rem);

  --radius-sm: 4px;
  --radius-md: 6px;
  --container: 1180px;
  --nav-h: 76px;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 500; }
h4 { font-size: var(--step-1); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: 62ch; }
p.lede { font-size: var(--step-1); color: var(--text-body); max-width: 54ch; }
a { color: var(--blue); text-decoration-color: rgba(33,69,166,0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--brass); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--brass-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { max-width: 100%; display: block; }

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

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
  section.tight { padding: 36px 0; }
}

.bg-stone { background: var(--stone); }
.bg-accent { background: var(--blue); color: rgba(251,250,247,0.92); }
.bg-accent h2, .bg-accent h3, .bg-accent h4 { color: var(--white); }
.bg-accent p { color: rgba(251,250,247,0.82); }
.bg-accent a { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--brass);
}
.bg-accent .label { color: var(--brass); border-bottom-color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-deep); }
.bg-accent .btn-primary { background: var(--white); color: var(--blue); }
.bg-accent .btn-primary:hover { background: #E4E9F5; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(28,27,24,0.04); }
.bg-accent .btn-secondary { color: var(--white); border-color: rgba(251,250,247,0.4); }
.bg-accent .btn-secondary:hover { border-color: var(--white); background: rgba(251,250,247,0.1); }
.btn-ghost { background: transparent; color: var(--blue); padding: 8px 0; border-radius: 0; font-weight: 600; }
.btn-ghost:hover { color: var(--blue-deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- Branded photography ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--stone);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.05);
}
.photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(14,13,11,0.5), rgba(33,69,166,0.28) 55%, rgba(184,147,90,0.14));
  mix-blend-mode: multiply;
}
.photo-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-size: 0.8rem;
  color: rgba(251,250,247,0.92);
  background: linear-gradient(0deg, rgba(22,38,61,0.75), transparent);
}
.cat-photo { aspect-ratio: 4/3; margin-bottom: 18px; }
.section-photo { aspect-ratio: 16/9; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,250,247,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 9px; height: 9px;
  background: var(--brass);
  display: inline-block;
  transform: rotate(45deg);
  position: relative;
  top: -1px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 0 0; background: var(--paper); flex-direction: column; justify-content: flex-start; padding: 32px 28px; gap: 4px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 68px 0 84px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 0.92rem; color: var(--text-muted); max-width: 46ch;
}
.route-fig { border: 1px solid var(--line); background: var(--white); padding: 22px; border-radius: var(--radius-sm); }
.route-caption { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.route-caption strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid > .route-fig { order: -1; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip .stat {
  padding: 26px 22px;
  border-left: 1px solid var(--line);
}
.stat-strip .stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .desc { font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2n+1) { border-left: none; }
  .stat-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- Grid / cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } .grid-5 { grid-template-columns: repeat(2, 1fr); } .grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-5, .grid-6 { grid-template-columns: 1fr; } }

.badge-new {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(33,69,166,0.08);
  border: 1px solid rgba(33,69,166,0.25);
  padding: 3px 9px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
  letter-spacing: 0.01em;
}
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
@media (max-width: 640px) { .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.check-list .tick { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 30px 28px;
}
.card-link { text-decoration: none; display: block; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--blue); }
.card-link:hover .card { border-color: var(--blue); }
a.card-link { color: inherit; }

.cat-card { display: flex; flex-direction: column; height: 100%; }
.cat-card .cat-index { font-family: var(--font-serif); color: var(--brass); font-size: 0.9rem; margin-bottom: 14px; }
.cat-card h4 { margin-bottom: 10px; }
.cat-card p { font-size: 0.94rem; margin-bottom: 0; flex-grow: 1; }
.cat-card .cat-range { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 0.84rem; color: var(--text-muted); }

/* ---------- Two-path (how it works) ---------- */
.path-card { border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); overflow: hidden; }
.path-head { padding: 28px 30px; border-bottom: 1px solid var(--line-soft); }
.path-head .label { margin-bottom: 10px; }
.path-steps { list-style: none; margin: 0; padding: 0; }
.path-steps li { display: flex; gap: 18px; padding: 22px 30px; border-bottom: 1px solid var(--line-soft); }
.path-steps li:last-child { border-bottom: none; }
.step-num { font-family: var(--font-serif); font-size: 1.3rem; color: var(--brass); min-width: 30px; line-height: 1.3; }
.step-body h4 { font-size: 1.02rem; margin-bottom: 4px; }
.step-body p { font-size: 0.92rem; margin: 0; }

/* ---------- Pricing ---------- */
.pricing-table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.tier-row { display: grid; grid-template-columns: 1.1fr 0.7fr 1.6fr; gap: 24px; padding: 26px 30px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.tier-row:last-child { border-bottom: none; }
.tier-row.head { background: var(--stone); font-weight: 600; color: var(--ink); font-size: 0.86rem; padding: 16px 30px; }
.tier-name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }
.tier-fee { font-family: var(--font-serif); font-size: 1.6rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.tier-desc { font-size: 0.92rem; color: var(--text-body); margin: 0; }
@media (max-width: 700px) {
  .tier-row { grid-template-columns: 1fr; gap: 6px; }
  .tier-row.head { display: none; }
  .tier-fee { margin: 4px 0; }
}

.mechanic-box { border: 1px solid var(--line); border-left: 3px solid var(--brass); background: var(--white); padding: 26px 28px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.mechanic-box h4 { margin-bottom: 10px; }

/* ---------- Compliance ---------- */
.trust-panel { border: 1px solid var(--line); background: var(--white); padding: 40px; border-radius: var(--radius-sm); }
.trust-panel .divider { width: 46px; height: 2px; background: var(--brass); margin: 0 0 22px; }

/* ---------- Founder / why us ---------- */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-panel { border: 1px solid var(--line); background: var(--white); padding: 30px; border-radius: var(--radius-sm); }
.founder-panel .role { font-size: 0.82rem; text-transform: none; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.founder-panel + .founder-panel { margin-top: 18px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-body);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 18px; }
.form-status { font-weight: 600; }
.form-status.error { color: #A5433A; }
.form-status.pending { color: var(--blue); }
.form-status.success { color: var(--blue); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(251,250,247,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer .brand { color: var(--white); }
footer p { color: rgba(251,250,247,0.62); font-size: 0.92rem; }
footer h5 { color: rgba(251,250,247,0.9); font-family: var(--font-sans); font-size: 0.82rem; font-weight: 600; margin: 0 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 11px; }
footer a { color: rgba(251,250,247,0.7); text-decoration: none; font-size: 0.92rem; }
footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(251,250,247,0.14); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(251,250,247,0.5); }

/* ---------- Page hero (secondary pages) ---------- */
.page-hero { padding: 56px 0 60px; border-bottom: 1px solid var(--line-soft); }
.page-hero .label { margin-bottom: 16px; }
.page-hero h1 { font-size: var(--step-3); margin-bottom: 16px; }
.page-hero p.lede { margin-bottom: 0; }

/* ---------- Misc ---------- */
.divider-rule { border: none; border-top: 1px solid var(--line); margin: 0; }
.kicker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.kicker-list li { font-size: 0.9rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.kicker-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }

.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Comparison table ---------- */
.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 130px 190px;
  align-items: center;
}
.compare-row + .compare-row { border-top: 1px solid var(--line-soft); }
.compare-row.head {
  background: var(--ink);
}
.compare-row.head .compare-cell { padding: 16px 24px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em; }
.compare-row.head .compare-claim-cell { color: rgba(251,250,247,0.6); }
.compare-row.head .compare-us { color: var(--white); }
.compare-row.head .compare-them { color: rgba(251,250,247,0.6); }
.compare-cell { padding: 22px 24px; }
.compare-claim-cell strong { display: block; color: var(--ink); font-size: 0.98rem; margin-bottom: 3px; }
.compare-claim-cell span { display: block; font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }
.compare-mark { display: flex; align-items: center; justify-content: center; }
.compare-us-cell { background: rgba(33,69,166,0.04); }
@media (max-width: 760px) {
  .compare-row { grid-template-columns: 1fr auto auto; }
  .compare-cell { padding: 16px; }
  .compare-row.head .compare-claim-cell { display: none; }
}
@media (max-width: 560px) {
  .compare-table .compare-row.head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-mark { justify-content: flex-start; gap: 8px; padding-top: 0; }
  .compare-mark::before { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
  .compare-us::before { content: 'Baltiqo'; }
  .compare-them::before { content: 'Typical agents'; }
  .compare-mark { flex-direction: row-reverse; justify-content: flex-end; }
}
