/* ============================================================================
   caldavera.ai - the single style point.

   Every brand value the site uses lives once, in :root below. Colours mirror the
   product design system (dashboard/static/css/tokens.css) and the brand
   guidelines. To restyle the site, edit the tokens here and nowhere else; rules
   below reference tokens with var(--name) only.
   ============================================================================ */

:root {
  /* -- Brand core ------------------------------------------------------------ */
  --ink: #003453;            /* navy: structure, headings, body on light */
  --ink-2: #4A6B7E;          /* secondary ink */
  --navy: #003452;           /* solid brand navy (logo source of truth) */
  --navy-deep: #00263D;
  --canvas: #F4F8FA;         /* cool light ground */
  --surface: #FFFFFF;
  --line: rgba(0, 52, 83, .14);
  --line-2: rgba(0, 52, 83, .09);

  /* Orange is spent on ONE element per screen. Text in the orange family uses
     --orange-text (AAA on light); --orange is fills/CTAs only. */
  --orange: #E06A2B;
  --orange-hover: #CF5D22;
  --orange-text: #B24E1B;
  --orange-tint: #FBE9DE;

  /* On navy grounds */
  --on-navy: #E8F1F6;
  --on-navy-2: #9FB6C1;
  --line-navy: rgba(232, 241, 246, .14);
  --orange-on-navy: #F08A50;

  /* -- Elevation (navy-tinted) ---------------------------------------------- */
  --shadow: 0 1px 2px rgba(0, 38, 61, .06), 0 8px 28px rgba(0, 38, 61, .09);
  --shadow-lg: 0 1px 3px rgba(0, 38, 61, .08), 0 24px 60px rgba(0, 38, 61, .16);
  --shadow-navy: 0 24px 60px rgba(0, 10, 20, .5);

  /* -- Radii ---------------------------------------------------------------- */
  --r-sm: 10px; --r: 12px; --r-card: 16px; --r-lg: 18px; --r-xl: 20px; --r-pill: 999px;

  /* -- Type ----------------------------------------------------------------- */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

  /* -- Gradients ------------------------------------------------------------ */
  --grad-hero: linear-gradient(155deg, #003453 0%, #012A42 48%, #001526 100%);
  --grad-flame: linear-gradient(90deg, #FFB94A, #FF8700, #EC2600);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8F1F6; --ink-2: #9FB6C1;
    --canvas: #03202F; --surface: #072B3E;
    --line: rgba(232, 241, 246, .14); --line-2: rgba(232, 241, 246, .09);
    --orange-text: #F08A50; --orange-tint: rgba(224, 106, 43, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 1px 3px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  }
}

/* -- Reset ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { text-wrap: balance; }

/* -- Shared atoms ----------------------------------------------------------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.wm { font-weight: 800; letter-spacing: -.02em; }
.dot { color: var(--orange); }

.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--orange-text); margin: 0 0 16px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 650; font-size: 14.5px;
  border-radius: var(--r); padding: 11px 20px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s;
}
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 1px 2px rgba(224, 106, 43, .4); }
.btn.primary:hover { background: var(--orange-hover); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.ghost-navy { background: transparent; border-color: var(--line-navy); color: var(--on-navy); }
.btn.ghost-navy:hover { border-color: var(--on-navy); }
.btn:active { transform: translateY(1px); }

a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px;
}

/* -- Header ----------------------------------------------------------------- */
/* Light sticky header used on interior pages. */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 32px; height: 66px; }
.nav .brand { font-size: 20px; }
.nav nav { margin-left: auto; }
.nav ul {
  display: flex; gap: 26px; list-style: none; margin: 0; padding: 0;
  font-size: 14.5px; color: var(--ink-2);
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); }
.nav ul a[aria-current="page"] { font-weight: 650; }
.nav .btn { flex: none; }

/* Hero-embedded nav (home): white on navy, no border. */
.hero .nav .brand { color: #fff; }
.hero .nav ul { color: var(--on-navy-2); }
.hero .nav ul a:hover { color: #fff; }

/* -- Navy hero -------------------------------------------------------------- */
.hero {
  position: relative; background: var(--grad-hero); color: var(--on-navy);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(224, 106, 43, .30), rgba(224, 106, 43, 0) 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.flameline { width: 64px; height: 4px; border-radius: 3px; background: var(--grad-flame); margin: 0 0 22px; }
.hero .eyebrow { color: var(--orange-on-navy); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.03; margin: 0 0 20px;
}
.hero .lead { font-size: 17px; color: var(--on-navy-2); max-width: 480px; margin: 0 0 30px; }
.hero .lead b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Home hero split layout */
.hero-split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 70px 0 92px;
}
/* Short interior hero */
.hero-lite { padding: 56px 0 64px; text-align: left; }
.hero-lite h1 { max-width: 720px; }
.hero-lite .lead { max-width: 560px; }

/* Floating live finding on navy */
.float {
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-navy);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-navy);
}
.float .ft {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-navy); font-family: var(--mono);
  font-size: 12px; color: var(--on-navy-2);
}
.float .live {
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 10px rgba(224, 106, 43, .9); animation: pulse 1.6s ease-in-out infinite;
}
.float .fbody { padding: 18px; }
.float .fcl { font-family: var(--mono); font-size: 12px; color: var(--orange-on-navy); margin: 0 0 8px; }
.float h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #fff; }
.float p { margin: 0; font-size: 13.5px; color: var(--on-navy-2); }
.float .frow {
  display: flex; gap: 8px; align-items: center; padding: 12px 18px;
  border-top: 1px solid var(--line-navy); font-size: 12px; color: var(--on-navy-2);
}
.chip-navy {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--orange-on-navy); background: rgba(224, 106, 43, .16);
  border-radius: var(--r-pill); padding: 3px 10px;
}
@keyframes pulse { 50% { opacity: .35; } }

/* -- Light sections --------------------------------------------------------- */
.band { padding: 76px 0; }
.band.tight { padding: 56px 0; }
.sec-head { max-width: 640px; margin: 0 0 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.sec-head p { color: var(--ink-2); margin: 0; font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow); padding: 26px 24px;
}
.card .ic {
  width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--orange-tint);
  color: var(--orange-text); display: grid; place-items: center; font-weight: 800; margin-bottom: 16px;
}
.card .n { font-family: var(--mono); font-size: 12px; color: var(--orange-text); }
.card h3 { font-size: 18px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -.01em; }
.card h3:first-child { margin-top: 0; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.card p + p { margin-top: 10px; }

/* Two-column feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.split p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 14px; }
.split p b { color: var(--ink); font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 30px; font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg);
}
.checklist li b { color: var(--ink); font-weight: 650; }

/* Proof strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip .wrap { display: flex; gap: 48px; flex-wrap: wrap; padding: 26px 28px; align-items: center; justify-content: center; }
.strip .item { font-size: 14.5px; color: var(--ink-2); }
.strip .item b { color: var(--ink); font-weight: 700; }
/* Four evenly-spaced claims stay on one row on desktop, 2-up then 1-up below. */
.strip.quad .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; text-align: center; }

/* Callout / quote-style honesty statement */
.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--r-card); box-shadow: var(--shadow); padding: 30px 32px; max-width: 780px;
}
.callout p { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; }
.callout p b { font-weight: 700; }
.callout .by { display: block; margin-top: 14px; font-size: 13px; color: var(--ink-2); }

/* CTA band */
.cta-band { text-align: center; padding: 84px 0; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 14px; }
.cta-band p { color: var(--ink-2); font-size: 17px; margin: 0 auto 26px; max-width: 520px; }
.cta-band .hero-cta { justify-content: center; }

/* -- Report specimen (how-it-works centerpiece) ----------------------------- */
.report {
  max-width: 900px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden;
}
.report .rhead { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.report .rhead .brand { font-size: 16px; }
.report .rhead .meta { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-align: right; }
.report .rtitle { padding: 26px 26px 6px; }
.report .rtitle .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-text); font-weight: 700; }
.report .rtitle h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.report .rtitle p { margin: 0; color: var(--ink-2); font-size: 14px; }
.rstrip { display: flex; gap: 34px; flex-wrap: wrap; padding: 18px 26px 22px; border-bottom: 1px solid var(--line); }
.rstrip .s b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.rstrip .s span { font-size: 12px; color: var(--ink-2); }
.rstrip .s.attn b { color: var(--orange-text); }
.rstrip .note { margin-left: auto; align-self: center; font-size: 12px; color: var(--ink-2); max-width: 210px; text-align: right; }
.rows { padding: 6px 0; }
.rrow { display: grid; grid-template-columns: 90px 1fr 140px; gap: 16px; align-items: center; padding: 14px 26px; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.rrow .cl { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.rrow .obs h4 { margin: 0 0 3px; font-size: 14.5px; font-weight: 650; }
.rrow .obs p { margin: 0; font-size: 13px; color: var(--ink-2); }
.state { justify-self: end; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--r-pill); padding: 4px 12px; white-space: nowrap; }
.state.ok { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.state.attn { color: var(--orange-text); background: var(--orange-tint); }
.rfoot { padding: 16px 26px; font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.rfoot .dm { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.specimen-note { text-align: center; font-size: 13px; color: var(--ink-2); margin: 18px auto 0; max-width: 520px; }

/* -- Stations (how-it-works process) ---------------------------------------- */
.stations { display: grid; gap: 18px; max-width: 820px; }
.station { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 22px 24px; }
.station .num { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.station h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.station p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* -- Co-brand lockup (partners) --------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px 20px; }
.lockup .mark { width: 34px; height: 34px; border-radius: var(--r-sm); background: #2F6B4F; color: #fff; display: grid; place-items: center; font-weight: 800; }
.lockup .n { font-weight: 800; font-size: 16px; letter-spacing: -.01em; line-height: 1.2; }
.lockup .pb { font-size: 12px; color: var(--ink-2); }

/* -- Contact form ----------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.field { margin: 0 0 18px; }
.field label { display: block; font-size: 13px; font-weight: 650; margin: 0 0 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0; }
.contact-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 26px 26px; }
.contact-aside h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.contact-aside p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.contact-aside a.mail { font-family: var(--mono); font-size: 13.5px; color: var(--orange-text); }

/* -- Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; }
.site-footer .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { font-size: 15px; }
.site-footer nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); }
.site-footer .pl { margin-left: auto; font-size: 13px; color: var(--ink-2); }

/* -- Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 60px; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .form-grid { grid-template-columns: 1fr; gap: 28px; }
  /* Header wraps to two lines: brand + CTA on top, links beneath, all reachable
     without a JS menu. */
  .nav { height: auto; flex-wrap: wrap; padding: 12px 0; gap: 10px 16px; }
  .nav .brand { margin-right: auto; }
  .nav .btn { order: 2; }
  .nav nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .nav nav ul { gap: 20px; font-size: 14px; }
  .strip.quad .wrap { grid-template-columns: 1fr 1fr; }
  .rrow { grid-template-columns: 1fr; gap: 6px; }
  .state { justify-self: start; }
  .rstrip .note { margin-left: 0; text-align: left; }
  .site-footer .pl { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
