/* Exposure Recon — public page.
 *
 * Deliberately separate from style.css, which dresses the staff console. Two
 * audiences, two jobs: the console is a dark tool for someone who uses it all
 * day, this is a light page that has five seconds to convince a stranger.
 * Sharing one stylesheet would mean every change to one risking the other.
 *
 * Every value here was measured off kamadeyle.com rather than chosen, so the
 * page reads as the same company. The site's signature is full-bleed
 * alternating colour bands and a warm tan body text -- unusual, and most of
 * why it feels like theirs.
 */

@font-face {
  font-family: "Lufga";
  src: url("/fonts/Lufga-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Lufga";
  src: url("/fonts/Lufga-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Superclarendon";
  src: url("/fonts/Superclarendon-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #21364C;        /* Cloud Burst — headings, dark bands, buttons */
  --tan: #9D755C;         /* body text, alternating bands, button borders */
  --teal: #406C7E;        /* Bismark — the closing band */
  --swirl: #C7BEB8;       /* button text on navy */
  --botticelli: #D6DCE9;  /* pale blue, for rules and panels on navy */
  --paper: #ffffff;
  --shell: #f6f4f2;       /* a hair off white, for inset panels */

  --ok: #2f7d4f;
  --warn: #b9762a;
  --bad: #b4342c;

  --sans: "Lufga", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Superclarendon", Georgia, "Times New Roman", serif;
  --wide: 1200px;
}

* { box-sizing: border-box; }

/* The `hidden` attribute only sets display:none at the UA level, so any class
   rule with its own display wins -- which put the report modal on screen at
   page load, over the hero, before anyone had scanned anything. Stated once
   here so no future `display:` can reintroduce it. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  /* Their body colour is the warm tan, not grey. It is the single most
     identifying thing about the site. */
  color: var(--tan);
  /* 16px, where the site runs 14. A prospect has to read findings here, and
     Kelly's standing note is to err larger. Deliberate deviation. */
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--navy); }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.25; }
h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
h4 { font-size: 19px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); }

/* --- bands ---------------------------------------------------------------
   The site alternates full-bleed colour sections. Each band owns its own
   text colours so a card or a heading never has to know which band it is
   sitting in. */

.band { padding: 64px 24px; }
.band > .inner { max-width: var(--wide); margin: 0 auto; }

.band-navy { background: var(--navy); color: var(--botticelli); }
.band-navy h1, .band-navy h3, .band-navy h4 { color: var(--paper); }
.band-navy h2 { color: var(--tan); }

.band-tan { background: var(--tan); color: var(--navy); }
.band-tan h1, .band-tan h2, .band-tan h3, .band-tan h4 { color: var(--navy); }

.band-teal { background: var(--teal); color: var(--paper); }
.band-teal h1, .band-teal h2, .band-teal h3, .band-teal h4 { color: var(--paper); }

/* --- header --------------------------------------------------------------- */

.sitehead {
  height: 80px; background: var(--paper);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, .1);
  position: sticky; top: 0; z-index: 20;
}
.sitehead > .inner {
  max-width: var(--wide); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; gap: 18px;
}
.sitehead img { height: 40px; width: auto; display: block; }
.wordmark {
  font-family: var(--serif); font-size: 19px; color: var(--navy);
  padding-left: 18px; border-left: 1px solid rgba(33, 54, 76, .18);
  white-space: nowrap;
}
.headlink {
  margin-left: auto; font-size: 14px; font-weight: 600;
  color: var(--tan); text-decoration: none; white-space: nowrap;
}
.headlink:hover { color: var(--navy); }

/* --- hero ----------------------------------------------------------------
   The form IS the hero. Anything that pushes it below the fold is costing
   conversions to look tidy. */

.hero { padding: 68px 24px 72px; }
.hero > .inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { margin-bottom: 18px; }
.hero .promise { font-size: 19px; max-width: 620px; margin: 0 auto 32px; }

.scanform { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.scanform input[type="text"] {
  flex: 1 1 340px; max-width: 420px; min-width: 0;
  padding: 15px 18px; font: 400 17px/1.3 var(--sans);
  color: var(--navy); background: var(--paper);
  border: 2px solid rgba(33, 54, 76, .22); border-radius: 3px;
}
.scanform input[type="text"]::placeholder { color: rgba(33, 54, 76, .4); }
.scanform input[type="text"]:focus { outline: none; border-color: var(--tan); }

/* Their button, measured: navy fill, Swirl text, 2px tan border, 3px radius,
   and the serif — which is the distinctive part. */
.btn {
  display: inline-block; cursor: pointer;
  background: var(--navy); color: var(--swirl);
  border: 2px solid var(--tan); border-radius: 3px;
  padding: 13px 28px; font: 400 19px/1.2 var(--serif);
  text-decoration: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: #2b455f; color: var(--paper); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-light {
  background: var(--paper); color: var(--navy); border-color: var(--navy);
}
.btn-light:hover:not(:disabled) { background: var(--shell); color: var(--navy); }

.reassure {
  margin-top: 22px; font-size: 14.5px; color: var(--tan);
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.reassure span:not(:last-child)::after { content: " ·"; opacity: .5; }

.progress { max-width: 460px; margin: 26px auto 0; }
.progress-bar {
  height: 4px; background: rgba(33, 54, 76, .12);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 8%; background: var(--tan); transition: width .4s ease;
}
.progress-text { margin-top: 10px; font-size: 14px; }

.error {
  max-width: 620px; margin: 24px auto 0; padding: 13px 16px;
  background: #fdf1f0; border: 1px solid #e7bdb9; border-radius: 3px;
  color: var(--bad); font-size: 15px;
}

/* --- cards --------------------------------------------------------------
   Flat tan panels on navy with navy text and square corners, which is how
   the services grid on kamadeyle.com is built. */

/* Measured off the services grid on kamadeyle.com: 45px/30px padding, a
   centered icon with 30px beneath it, a centered Lufga Semibold h4 at 18px
   with 10px under it, and left-aligned body copy. The centred icon over a
   centred title over left-aligned prose is the combination that makes them
   read as his -- getting the colours right without it was not enough. */
.cards { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--tan); color: var(--navy); padding: 45px 30px;
  display: flex; flex-direction: column;
}
.card-icon {
  display: block; margin: 0 auto 30px; color: var(--navy);
}
/* Navy, and stated with enough specificity to beat the band's own heading
   colour. A card is a light panel sitting on a dark band, so it does not
   inherit the band's text colours -- which is exactly why the band rules and
   the card rules have to disagree deliberately rather than by accident. */
.card h4, .band-navy .card h4, .band-teal .card h4 {
  color: var(--navy);
  font-size: 18px; text-align: center; margin: 0; padding: 0 0 10px;
}
/* 15px where his is 14. Close enough to read as the same, one notch kinder. */
.card p { font-size: 15px; }

.band-tan .card { background: var(--paper); }

.lede-wide { max-width: 720px; }
.band h2 { margin-bottom: 14px; }
.band .sub { margin-bottom: 34px; max-width: 720px; }

/* --- results -------------------------------------------------------------- */

.results { padding: 58px 24px 70px; }
.results > .inner { max-width: var(--wide); margin: 0 auto; }

.result-head {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid rgba(33, 54, 76, .14);
}
.result-head h2 { font-family: var(--sans); font-weight: 600; font-size: 28px; }
.result-meta { margin-left: auto; font-size: 14px; text-align: right; }

.score-row {
  display: grid; gap: 22px; grid-template-columns: 240px 1fr;
  margin-top: 28px;
}
.score-card {
  background: var(--navy); color: var(--paper);
  padding: 26px; text-align: center;
}
.score-card .label {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--swirl);
}
.score-card .grade {
  font-family: var(--serif); font-size: 72px; line-height: 1;
  margin: 6px 0 4px; color: var(--paper);
}
.score-card .out-of { font-size: 14px; color: var(--botticelli); }

.section-cards { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.section-card {
  background: var(--shell); padding: 20px;
  border-left: 3px solid var(--tan);
}
.section-card .t {
  font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 4px;
}
.section-card .s { font-size: 14px; }
.section-card-muted { opacity: .62; border-left-color: rgba(33, 54, 76, .25); }

.statgrid {
  display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr);
  margin: 30px 0 0;
}
.stat {
  border: 1px solid rgba(33, 54, 76, .14); padding: 20px; background: var(--paper);
}
.stat .n {
  display: block; font-family: var(--serif); font-size: 34px;
  line-height: 1.1; color: var(--navy);
}
.stat .l { font-size: 13.5px; }
.stat.urgent { border-color: var(--bad); }
.stat.urgent .n { color: var(--bad); }
.stat.warn { border-color: var(--warn); }
.stat.warn .n { color: var(--warn); }

.warnings { margin: 24px 0 0; padding-left: 20px; font-size: 15px; }

/* The offer. Sits inside the results so it arrives at the moment the number
   has landed, not before it means anything. */
.locked {
  margin-top: 34px; background: var(--navy); color: var(--botticelli);
  padding: 34px 32px;
}
.locked h3 { color: var(--paper); margin-bottom: 12px; }
.locked p { max-width: 640px; }
.locked .btn { margin-top: 10px; }

/* --- check tables --------------------------------------------------------- */

.panel { margin-top: 38px; }
.panel h3 { margin-bottom: 6px; }
.panel .sub { font-size: 15px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; }
.checks { width: 100%; border-collapse: collapse; font-size: 15px; }
.checks td {
  padding: 12px 14px 12px 0; vertical-align: top;
  border-bottom: 1px solid rgba(33, 54, 76, .1);
}
.checks tr:last-child td { border-bottom: none; }
.checks .check-name { color: var(--navy); font-weight: 600; min-width: 160px; }
.pill {
  display: inline-block; white-space: nowrap; font-size: 12.5px;
  font-weight: 600; padding: 3px 10px; border-radius: 20px;
  border: 1px solid currentColor;
}
.st-pass { color: var(--ok); }
.st-warn, .st-fail { color: var(--bad); }
.st-info { color: var(--tan); }

.note-muted { margin-top: 16px; font-size: 14px; opacity: .85; }

/* --- modal ---------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(33, 54, 76, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  /* A short viewport -- a phone in landscape, or a laptop with a long
     domain-match hint -- would otherwise cut off the submit button with no
     way to reach it. */
  overflow-y: auto;
}
.modal-box {
  background: var(--paper); max-width: 480px; width: 100%;
  padding: 30px 30px 26px; position: relative;
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal-box h3 { margin-bottom: 10px; }
.modal-box .sub { font-size: 15px; margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 24px; line-height: 1; color: var(--tan); cursor: pointer;
}
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 13.5px; font-weight: 600;
  color: var(--navy); margin-bottom: 5px;
}
.field input {
  width: 100%; padding: 12px 14px; font: 400 16px/1.3 var(--sans);
  color: var(--navy); background: var(--paper);
  border: 2px solid rgba(33, 54, 76, .22); border-radius: 3px;
}
.field input:focus { outline: none; border-color: var(--tan); }
.field .hint { font-size: 13px; margin-top: 5px; }
/* The honeypot. Off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-done { color: var(--ok); font-weight: 600; }

/* --- footer --------------------------------------------------------------- */

.sitefoot { background: var(--navy); color: var(--botticelli); padding: 40px 24px; }
.sitefoot > .inner {
  max-width: var(--wide); margin: 0 auto;
  display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
  font-size: 14px;
}
.sitefoot a { color: var(--swirl); }
.sitefoot .build { margin-left: auto; opacity: .6; font-size: 12.5px; }

/* --- narrow --------------------------------------------------------------
   One breakpoint, and it collapses the grids rather than reflowing them.
   A grid item wider than its track overflows instead of wrapping, which is
   the failure this avoids by not trying to be clever. */

@media (max-width: 900px) {
  .cards, .section-cards { grid-template-columns: 1fr 1fr; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .score-row { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

@media (max-width: 560px) {
  .band { padding: 46px 20px; }
  .hero { padding: 44px 20px 50px; }
  .cards, .section-cards, .statgrid { grid-template-columns: 1fr; }
  h1 { font-size: 27px; }
  .hero .promise { font-size: 17px; }
  .wordmark { display: none; }
  .scanform input[type="text"], .scanform .btn { flex: 1 1 100%; max-width: none; }
  .result-meta { margin-left: 0; text-align: left; }
}
