/*
 * Natus Energy — main stylesheet
 *
 * LOCKED to the Tone Interiors palette (Session 196 part 4, 4 May 2026).
 * Ivory-dominant, light-fresh-airy register. Charcoal text. Coffee accents
 * used sparingly. Slightly rounded corners only — never pill-shaped.
 * Footer is the one dark element (charcoal bg) for grounding.
 *
 * Do NOT regress to navy/bronze (FMB Platform Default) without explicit
 * Graeme override. Do NOT regress to the Session 196 part 2 deep-blue+green.
 */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--c-ivory); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--c-charcoal);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: var(--c-coffee); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-quick) var(--ease-out); }
a:hover, a:focus-visible { color: var(--c-bronze-deep); }
:focus-visible { outline: 2px solid var(--c-coffee); outline-offset: 3px; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: var(--weight-bold); line-height: var(--lh-tight); margin: 0 0 var(--s-4) 0; letter-spacing: -0.01em; color: var(--c-charcoal); }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); margin-bottom: var(--s-5); }
h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); letter-spacing: 0; }
h4 { font-size: var(--t-h4); margin-bottom: var(--s-3); letter-spacing: 0; }
p { margin: 0 0 var(--s-4) 0; color: var(--c-charcoal); }
ul, ol { margin: 0 0 var(--s-4) 0; padding-left: 1.4rem; color: var(--c-charcoal); }
li { margin-bottom: var(--s-2); }

/* ── Layout: bands and containers ──────────────────────────────────────── */
/* Light-throughout. Visual rhythm via ivory ↔ stone alternation. */
.band { padding: var(--s-9) var(--s-5); background: var(--c-ivory); color: var(--c-charcoal); }
.band--alt { background: var(--c-stone); }
.band--dark { background: var(--c-charcoal); color: var(--c-ivory); }
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: var(--c-ivory); }
.band--dark p { color: var(--c-ivory); }
.band--alt h1, .band--alt h2, .band--alt h3, .band--alt h4 { color: var(--c-charcoal); }

.container { max-width: var(--w-content); margin: 0 auto; }
.container--narrow { max-width: var(--w-narrow); margin: 0 auto; }
.container--wide { max-width: var(--w-wide); margin: 0 auto; }

/* ── Site header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(232, 226, 216, 0.94);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--c-bronze-border);
  color: var(--c-charcoal);
}
.site-header__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.site-header__logo {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
  color: var(--c-charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-header__logo span { color: var(--c-coffee); }
.site-nav { display: none; }
.site-nav a {
  color: var(--c-forest);
  text-decoration: none;
  margin-right: var(--s-5);
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--c-coffee); }
.site-nav a.is-current { color: var(--c-coffee); }
.site-header__cta {
  background: var(--c-charcoal);
  color: var(--c-ivory);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: 0.95rem;
  transition: background var(--t-quick) var(--ease-out);
}
.site-header__cta:hover, .site-header__cta:focus-visible {
  background: var(--c-forest);
  color: var(--c-ivory);
}

@media (min-width: 720px) {
  .site-nav { display: flex; align-items: center; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--c-ivory);
  color: var(--c-charcoal);
  padding: var(--s-10) var(--s-5) var(--s-9) var(--s-5);
  overflow: hidden;
  border-bottom: 1px solid var(--c-bronze-border);
}
.hero__inner {
  max-width: var(--w-wide);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: transparent;
  border: 1px solid var(--c-bronze-border-h);
  color: var(--c-coffee);
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-md); /* slightly rounded only — pill-shapes forbidden by Tone spec */
  margin-bottom: var(--s-5);
}
.hero h1 {
  font-size: var(--t-h1-l);
  line-height: var(--lh-tight);
  margin-bottom: var(--s-5);
  max-width: 18ch;
  color: var(--c-charcoal);
}
.hero h1 .stab--accent { color: var(--c-coffee); }
.hero h1 .stab--block { display: block; }
.hero__sub {
  font-size: var(--t-lead);
  color: var(--c-forest);
  max-width: 60ch;
  line-height: 1.45;
  margin-bottom: var(--s-7);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 1px solid var(--c-bronze-border);
}
.hero__proof-item .number {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 1.5vw + 1rem, 2.6rem);
  font-weight: var(--weight-bold);
  color: var(--c-coffee);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hero__proof-item .label {
  color: var(--c-forest);
  font-size: var(--t-small);
  margin-top: var(--s-2);
  line-height: 1.4;
  max-width: 28ch;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--r-md); /* slightly rounded — never pill */
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background var(--t-quick) var(--ease-out), border-color var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out);
  cursor: pointer;
  font-family: var(--f-body);
  line-height: 1.2;
}
.btn--primary { background: var(--c-charcoal); color: var(--c-ivory); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--c-forest); color: var(--c-ivory); }
.btn--ghost { background: transparent; color: var(--c-charcoal); border-color: var(--c-bronze-border-h); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--c-coffee); color: var(--c-coffee); background: var(--c-bronze-glow); }
.btn--dark-on-light { background: var(--c-charcoal); color: var(--c-ivory); }
.btn--dark-on-light:hover, .btn--dark-on-light:focus-visible { background: var(--c-forest); color: var(--c-ivory); }
/* Inverted button for use INSIDE band--dark sections */
.band--dark .btn--primary { background: var(--c-ivory); color: var(--c-charcoal); }
.band--dark .btn--primary:hover, .band--dark .btn--primary:focus-visible { background: var(--c-stone); color: var(--c-charcoal); }
.band--dark .btn--ghost { color: var(--c-ivory); border-color: rgba(232, 226, 216, 0.45); }
.band--dark .btn--ghost:hover, .band--dark .btn--ghost:focus-visible { border-color: var(--c-coffee); color: var(--c-coffee); background: rgba(124, 108, 88, 0.16); }

/* ── Cards / grids ─────────────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: var(--t-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-coffee);
  margin-bottom: var(--s-4);
  font-weight: var(--weight-medium);
}
.band--dark .section-eyebrow { color: var(--c-coffee); }

.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--c-forest); max-width: 60ch; }
.band--dark .lead { color: var(--c-text-on-dark-muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  margin-top: var(--s-7);
}
.grid-3--tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: var(--s-7); margin-top: var(--s-7); }

.card {
  padding: var(--s-6);
  background: var(--c-stone);
  border: 1px solid var(--c-bronze-border);
  border-radius: var(--r-md); /* slightly rounded only */
  color: var(--c-charcoal);
  transition: transform var(--t-norm) var(--ease-out), box-shadow var(--t-norm) var(--ease-out), border-color var(--t-norm) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  border-color: var(--c-bronze-border-h);
}
.band--alt .card { background: var(--c-ivory); border-color: var(--c-bronze-border); }
.band--alt .card:hover { background: #FBF8F2; border-color: var(--c-bronze-border-h); }
.band--dark .card {
  background: rgba(232, 226, 216, 0.06);
  border-color: rgba(232, 226, 216, 0.16);
  color: var(--c-ivory);
}
.band--dark .card h3 { color: var(--c-ivory); }
.band--dark .card p { color: var(--c-text-on-dark-muted); }
.band--dark .card:hover {
  background: rgba(232, 226, 216, 0.10);
  border-color: var(--c-coffee);
  box-shadow: var(--sh-bronze);
}
.card h3 { margin-top: 0; color: var(--c-charcoal); }
.card p { color: var(--c-charcoal); }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bronze-glow);
  border: 1px solid var(--c-bronze-border-h);
  color: var(--c-coffee);
  border-radius: var(--r-md);
  margin-bottom: var(--s-4);
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: var(--weight-bold);
}
.band--dark .card__icon {
  background: rgba(124, 108, 88, 0.18);
  border-color: rgba(232, 226, 216, 0.16);
  color: var(--c-coffee);
}

/* ── Comparison table ──────────────────────────────────────────────────── */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s-6);
  font-size: 0.95rem;
  color: var(--c-charcoal);
}
.compare th, .compare td {
  padding: var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--c-bronze-border);
  vertical-align: top;
}
.compare th {
  font-family: var(--f-body);
  font-weight: var(--weight-bold);
  font-size: var(--t-small);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-forest);
  border-bottom: 2px solid var(--c-charcoal);
}
.compare th.is-natus, .compare td.is-natus { background: var(--c-bronze-glow); color: var(--c-charcoal); font-weight: var(--weight-medium); }
.compare td.tag-good { color: var(--c-coffee); font-weight: var(--weight-medium); }
.compare td.tag-bad { color: var(--c-pistachio); }
.compare tr:hover td { background: rgba(124, 108, 88, 0.04); }
.compare tr:hover td.is-natus { background: var(--c-bronze-glow); }

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form { max-width: 580px; margin-top: var(--s-6); }
.form__row { margin-bottom: var(--s-5); }
.form label { display: block; font-weight: var(--weight-medium); margin-bottom: var(--s-2); font-size: 0.95rem; color: var(--c-charcoal); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: var(--s-4);
  border: 1px solid var(--c-bronze-border-h);
  border-radius: var(--r-md);
  font-family: var(--f-body);
  font-size: 1rem;
  background: var(--c-stone);
  color: var(--c-charcoal);
  transition: border-color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
.form input::placeholder, .form textarea::placeholder { color: var(--c-pistachio); opacity: 0.85; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--c-coffee);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 108, 88, 0.16);
  background: var(--c-ivory);
}
.form textarea { min-height: 140px; resize: vertical; font-family: var(--f-body); }
.form .help { font-size: var(--t-small); color: var(--c-forest); margin-top: var(--s-2); }
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-coffee) 50%), linear-gradient(135deg, var(--c-coffee) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: var(--s-9); }

/* ── Footer (the one dark element — for grounding) ─────────────────────── */
.site-footer {
  background: var(--c-charcoal);
  color: var(--c-text-on-dark-muted);
  padding: var(--s-9) var(--s-5) var(--s-6) var(--s-5);
  font-size: 0.95rem;
}
.site-footer__inner { max-width: var(--w-wide); margin: 0 auto; }
.site-footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.site-footer h4 { color: var(--c-ivory); font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--f-body); margin-bottom: var(--s-4); }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: var(--s-2); }
.site-footer p { color: var(--c-text-on-dark-muted); }
.site-footer a { color: var(--c-text-on-dark-muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--c-coffee); text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid rgba(232, 226, 216, 0.12);
  padding-top: var(--s-5);
  font-size: var(--t-small);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  justify-content: space-between;
  color: var(--c-text-on-dark-muted);
}
.site-footer__attribution {
  text-align: center;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(232, 226, 216, 0.12);
}
.site-footer__attribution a {
  color: var(--c-pistachio);
  font-size: 0.75rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}
.site-footer__attribution a:hover, .site-footer__attribution a:focus-visible { color: var(--c-coffee); }

/* ── Utility ───────────────────────────────────────────────────────────── */
.tag { display: inline-block; padding: var(--s-1) var(--s-3); font-size: var(--t-tiny); letter-spacing: 0.06em; text-transform: uppercase; background: var(--c-bronze-glow); color: var(--c-coffee); border: 1px solid var(--c-bronze-border-h); border-radius: var(--r-md); font-weight: var(--weight-medium); }
.kbd { font-family: var(--f-mono); font-size: 0.85em; padding: 0 0.35em; border: 1px solid var(--c-bronze-border); border-radius: var(--r-sm); background: var(--c-stone); color: var(--c-charcoal); }
.numfig { font-family: var(--f-display); font-size: 2.4rem; font-weight: var(--weight-bold); color: var(--c-coffee); font-variant-numeric: tabular-nums; line-height: 1.1; }
.text-center { text-align: center; }
.mt-7 { margin-top: var(--s-7); }
.mt-5 { margin-top: var(--s-5); }
.muted { color: var(--c-forest); }
.band--dark .muted { color: var(--c-text-on-dark-muted); }
.skip-link { position: absolute; top: -40px; left: 8px; background: var(--c-coffee); color: var(--c-ivory); padding: 8px 12px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 8px; }
