/* True Cost Control marketing site.
   Hand-written, no framework and no build step: the whole page is one HTML file, one stylesheet and
   two images, so it serves from a CDN in a single round trip and costs nothing to host.
   Palette is the product's own, from clients/costseer/client.json. */

:root {
  --ink:        rgb(17, 24, 39);   /* TCC secondary */
  --ink-2:      #3f4757;
  --ink-3:      #6b7383;
  --primary:    #2563EB;           /* TCC primary */
  --primary-dk: #1b4fd1;
  --accent:     #3B82F6;           /* TCC tertiary */
  --paper:      #ffffff;
  --band:       #f5f7fb;
  --line:       #e3e8f2;
  --wrap:       1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; object-fit: contain; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand img { display: block; height: 30px; width: auto; flex: 0 0 auto; }
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--primary); }
.cta-sm {
  background: var(--ink); color: #fff !important; padding: 9px 16px;
  border-radius: 7px; font-weight: 600 !important;
}
.cta-sm:hover { background: var(--primary); }
@media (max-width: 780px) { .nav nav a:not(.cta-sm) { display: none; } }

/* ── type ────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; letter-spacing: -.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.04; }
h1 em { font-style: normal; color: var(--primary); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.14; margin-bottom: 14px; }
h3 { font-size: 1.16rem; line-height: 1.3; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.section-lede { font-size: 1.08rem; color: var(--ink-2); max-width: 66ch; margin-bottom: 34px; }
.footnote { color: var(--ink-3); font-size: .95rem; max-width: 74ch; margin-top: 26px; }

section { padding: 84px 0; }
.band { background: var(--band); border-block: 1px solid var(--line); }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: 92px 0 76px; }
.hero .lede { margin-top: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.btn {
  display: inline-block; background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 600; padding: 13px 24px; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17,24,39,.16);
}
.btn:hover { background: var(--primary-dk); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary); }

/* the cost build-up: the product's own arithmetic, as the hero image */
.stack { margin-top: 52px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.stack-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 15px 22px; border-bottom: 1px solid var(--line);
}
.stack-row:last-child { border-bottom: 0; }
.stack-row span { color: var(--ink-3); font-size: .93rem; }
.stack-row b { font-variant-numeric: tabular-nums; font-size: 1.06rem; font-weight: 600; }
.stack-row.total { background: var(--ink); }
.stack-row.total span { color: #b9c2d4; }
.stack-row.total b { color: #fff; font-size: 1.32rem; }

/* ── grids ───────────────────────────────────────────────────────────── */
.grid-3, .grid-4 { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.grid-4 article p, .grid-3 article p { color: var(--ink-2); font-size: .98rem; margin: 0; }

.pillars article { border-top: 3px solid var(--primary); padding-top: 18px; }
.pillars .num { font: 600 12px/1 var(--sans); letter-spacing: .14em; color: var(--ink-3); }
.pillars h3 { margin-top: 10px; }

blockquote {
  margin: 40px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent);
  background: #fff; border-radius: 0 10px 10px 0;
  font-family: var(--serif); font-size: 1.14rem; color: var(--ink);
}
blockquote cite { display: block; margin-top: 10px; font: 400 .9rem var(--sans); color: var(--ink-3); font-style: normal; }

/* ── capabilities ────────────────────────────────────────────────────── */
.cap { border-top: 1px solid var(--line); padding: 34px 0; }
.cap:first-of-type { border-top: 0; padding-top: 8px; }
.cap-lede { color: var(--primary); font-family: var(--serif); font-size: 1.06rem; margin-bottom: 14px; }
.cap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 820px) { .cap ul { grid-template-columns: 1fr; } }
.cap li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: .99rem; }
.cap li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.cap li b { color: var(--ink); font-weight: 600; }
.pill {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  background: var(--accent); color: #fff; font: 600 11px/1 var(--sans);
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 20px;
}
.roadmap { opacity: .96; }

/* ── benefits ────────────────────────────────────────────────────────── */
.benefits article { border-left: 3px solid var(--accent); padding-left: 16px; }
.benefits b { display: block; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 4px; }

/* ── engagement ──────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0 0 42px; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.step-n {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  display: grid; place-items: center; font: 600 14px/1 var(--sans);
}
.steps h3 { font-size: 1.04rem; }
.steps h3 em { display: block; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
.steps p { margin: 8px 0 0; color: var(--ink-2); font-size: .94rem; }
.commercial article { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }

/* ── closer + footer ─────────────────────────────────────────────────── */
.closer { background: var(--ink); color: #fff; text-align: center; }
.closer h2 { color: #fff; }
.closer .lede { color: #c3cbdb; margin-inline: auto; }
.closer .hero-cta { justify-content: center; }
.closer .btn { background: #fff; color: var(--ink); }
.closer .btn:hover { background: var(--accent); color: #fff; }

footer { padding: 40px 0; border-top: 1px solid var(--line); }
/* align-items defaults to stretch in a column flex container, which stretched the logo to the full
   width of the footer while its height stayed 25px -- unrecognisable. flex-start keeps every child,
   the image included, at its natural width. */
.foot-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot-inner img { height: 25px; width: auto; flex: 0 0 auto; }
.foot-inner p { margin: 0; color: var(--ink-2); }
.fine { color: var(--ink-3); font-size: .88rem; }

/* --- contact form -------------------------------------------------------- */
/* Lives inside .closer, which is the one dark band on the page, so the fields
   are drawn as light-on-dark rather than inheriting the page defaults. */

.contact-form {
  max-width: 640px;
  margin: 34px auto 0;
  text-align: left;
}

.contact-form[hidden] { display: none; }

.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.field { margin: 0 0 16px; }

.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: #c3cbdb;
  margin-bottom: 6px;
}

.field .opt { font-weight: 400; color: #8a93a6; }

.field input,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: .98rem;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s, background .15s;
}

.field textarea { resize: vertical; min-height: 108px; }

.field input::placeholder,
.field textarea::placeholder { color: #6b7383; }

.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .25);
}

/* The honeypot. Moved out of view rather than hidden, because a script that
   skips display:none fields will still find and fill this one. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions { margin: 22px 0 0; }
.form-actions .btn { width: 100%; justify-content: center; text-align: center; }
.form-actions .btn[disabled] { opacity: .55; cursor: default; }
.closer .form-actions .btn[disabled]:hover { background: #fff; color: var(--ink); }

.form-status { margin: 12px 0 0; font-size: .9rem; min-height: 1.2em; color: #c3cbdb; }
.form-status.is-error { color: #ffb4a8; }

.form-thanks {
  margin: 0;
  padding: 26px 0;
  font-family: var(--serif);
  font-size: 1.28rem;
  color: #fff;
  text-align: center;
}

.contact-form .legal { margin: 16px 0 0; color: #8a93a6; font-size: .76rem; }
.contact-form .legal a { color: #c3cbdb; }


@media (max-width: 620px) {
  .field-pair { grid-template-columns: 1fr; }
}

/* Google permits hiding the floating badge where the attribution wording
   appears next to the submit control instead. It does -- in .legal, under the
   button. If that wording ever goes, this rule has to go with it. */
.grecaptcha-badge { visibility: hidden; }
