/* ============================================================================
   CarbVer — Marketing Site Styles (skeleton)
   landing/assets/css/landing.css

   Step 1 scope ONLY:
     - modern reset
     - typographic base using tokens
     - container + 12/8/4 grid helpers
     - sticky nav shell (no scroll behaviour yet — that lands with landing.js)
     - footer shell
     - focus ring + reduced-motion baseline

   NO hero, NO cards, NO sections. Those land in Step 2, one at a time.
   ============================================================================ */

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring-light);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.on-dark :focus-visible { outline-color: var(--focus-ring-dark); }

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

/* --- Base ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-on-light);
  background-color: var(--dawn-violet);
  background-image: url("../images/carbver5.svg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --- Type ramp ----------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
}
h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}
.figure {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-figure);
  line-height: var(--lh-figure);
  font-variant-numeric: tabular-nums;
}
.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  font-weight: var(--fw-medium);
  color: var(--text-muted-on-light);
}
.on-dark, .on-dark .caption { color: var(--text-on-dark); }
.on-dark .caption, .on-dark .muted { color: var(--text-muted-on-dark); }

.muted { color: var(--text-muted-on-light); }

p { max-width: 68ch; }

/* --- Container + grid ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--side-margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--col-gap);
}
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  :root { --side-margin: 24px; }
}
@media (max-width: 767px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  :root { --side-margin: 16px; }
  .display { font-size: 40px; line-height: 44px; }
  h1, .h1  { font-size: 32px; line-height: 38px; }
  h2, .h2  { font-size: 24px; line-height: 30px; }
  h3, .h3  { font-size: 18px; line-height: 26px; }
}

/* --- Nav (shell only) ---------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--nav-h-desktop);
  background: var(--surface-light);
  color: var(--text-on-light);
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease);
  border-bottom: 1px solid var(--border-on-light);
}
.site-nav.is-scrolled {
  box-shadow: 0 1px 0 rgba(38,35,43,0.04), 0 8px 24px -16px rgba(38,35,43,0.18);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
}
.site-nav__brand svg {
  height: 28px;
  width: auto;
  fill: currentColor;
}

.site-nav__brand img {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  object-fit: contain;
}

.site-nav__links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
}
.site-nav__links a:hover { color: var(--dawn-violet); }

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
}

/* Primary button (nav CTA; reused later) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
  font-weight: var(--fw-semibold);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--dawn-violet);
  color: #fff;
}
.btn--primary:hover { background: #3F2BC2; }
.btn--primary:active { transform: translateY(1px); }

/* Nav on mobile: hide centre links, keep brand + CTA */
@media (max-width: 767px) {
  .site-nav { height: var(--nav-h-mobile); }
  .site-nav__links { display: none; }
  .site-nav__actions .btn span { display: none; } /* leave icon-only if used later */
}

/* --- Footer (shell only) ------------------------------------------------- */
.site-footer {
  background: var(--night);
  color: var(--text-on-dark);
  padding-block: var(--space-9);
}
.site-footer .container { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--col-gap); }
.site-footer__brand { grid-column: span 3; }
.site-footer__brand svg { height: 28px; width: auto; fill: currentColor; margin-bottom: var(--space-4); }
.site-footer__col { grid-column: span 2; }
.site-footer h4 {
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted-on-dark);
  margin-bottom: var(--space-4);
}
.site-footer ul { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer a:hover { color: var(--violet-light); }
.site-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-on-dark);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-caption);
  color: var(--text-muted-on-dark);
}
@media (max-width: 1199px) {
  .site-footer .container { grid-template-columns: repeat(8, 1fr); }
  .site-footer__brand { grid-column: span 8; }
  .site-footer__col { grid-column: span 2; }
}
@media (max-width: 767px) {
  .site-footer .container { grid-template-columns: repeat(4, 1fr); }
  .site-footer__brand { grid-column: span 4; }
  .site-footer__col { grid-column: span 2; }
  .site-footer__legal { flex-direction: column; gap: var(--space-2); }
}


/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  background: transparent;
  color: var(--text-on-dark);
  padding-block: var(--space-9) var(--space-8);
  overflow: hidden;
  min-height: auto;
}
@media (min-width: 1200px) {
  .hero { padding-block: var(--space-8) var(--space-7); }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(18,16,26,0.45), rgba(18,16,26,0));
  pointer-events: none;
}
.hero__watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: auto;
  opacity: 0.07;
  fill: #FFFFFF;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  align-items: center;
  row-gap: var(--space-8);
}
.hero__copy    { grid-column: 1 / span 6; }
.hero__visual  { grid-column: 7 / span 6; position: relative; }

.hero__copy .display { margin-bottom: var(--space-5); }
.hero__sub {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-muted-on-dark);
  max-width: 52ch;
  margin-bottom: var(--space-6);
}

.hero__form {
  display: flex;
  gap: var(--space-2);
  max-width: 520px;
  margin-bottom: var(--space-3);
}
.hero__form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-on-light);
  background: var(--surface-light);
  color: var(--text-on-light);
  font-size: var(--fs-ui);
  line-height: var(--lh-ui);
}
.hero__form input::placeholder { color: var(--text-muted-on-light); }
.hero__form input:focus-visible {
  outline: 2px solid var(--focus-ring-light);
  outline-offset: 2px;
  border-color: transparent;
}
.hero__micro { margin-bottom: var(--space-5); }

.hero__secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #FFFFFF;
  font-size: var(--fs-ui);
  font-weight: var(--fw-medium);
}
.hero__secondary:hover { opacity: 0.8; }

/* Placeholder product frame */
.product-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.45);
}
.product-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}


/* Screen-reader-only utility (if not already present) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Hero responsive */
@media (max-width: 1199px) {
  .hero__copy   { grid-column: 1 / -1; }
  .hero__visual { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hero { padding-block: var(--section-pad-mobile); }
  .hero__form { flex-direction: column; }
  .hero__form button { width: 100%; }
  .hero__watermark { width: 380px; right: -120px; opacity: 0.08; }
}

/* --- Surface card (see decisions.txt, Decision 001) ---------------------- */
/* Wrap any section that carries paragraphs, tables, forms or charts so it
   stays readable on the gradient background. */
.surface-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: var(--space-8);
  color: var(--text-on-light);
}
@media (max-width: 767px) {
  .surface-card { padding: var(--space-5); }
}

/* --- Standards bar ------------------------------------------------------- */
.standards-bar {
  padding-block: var(--space-9) var(--space-9);
}
.standards-bar__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  text-align: center;
  margin: 0 auto var(--space-8);
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.standards-bar__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 1000px;
  margin-inline: auto;
}
.standards-bar__list li { display: flex; }

.standards-bar__list a,
.standards-bar__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-6) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-light);
  color: var(--text-on-light);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 20px 40px -24px rgba(38,35,43,0.4);
  transition:
    transform var(--dur-base) var(--ease),
    box-shadow var(--dur-base) var(--ease);
  text-decoration: none;
}

.standards-bar__list a:hover,
.standards-bar__list a:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 28px 56px -28px rgba(38,35,43,0.55);
}


.standards-bar__label {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 28px;
  font-weight: var(--fw-semibold);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.standards-bar__note {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  color: var(--text-muted-on-light);
  font-weight: var(--fw-medium);
}

/* Third card: same visual treatment, only the note differs */
.standards-bar__item--coming {
  cursor: default;
}
.standards-bar__item--coming .standards-bar__note {
  color: var(--ember-coral);
  font-weight: var(--fw-semibold);
}

@media (max-width: 767px) {
  .standards-bar { padding-block: var(--space-7); }
  .standards-bar__list { grid-template-columns: 1fr; gap: var(--space-4); }
  .standards-bar__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
}

/* --- Contrast (Today vs With CarbVer) ----------------------------------- */
.contrast {
  padding-block: var(--space-9);
}
.contrast__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-semibold);
  color: #FFFFFF;
  text-align: center;
  margin: 0 auto var(--space-8);
  max-width: 28ch;
  letter-spacing: -0.01em;
}
.contrast__panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: stretch;
  max-width: 1080px;
  margin-inline: auto;
}

.contrast__panel {
  padding: var(--space-6) var(--space-6) var(--space-7);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.contrast__panel--today {
  background: rgba(255,255,255,0.55);
  color: var(--text-muted-on-light);
  border: 1px solid rgba(255,255,255,0.4);
}
.contrast__panel--with {
  background: var(--surface-light);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 20px 40px -24px rgba(38,35,43,0.4);
}

.contrast__panel-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
}
.contrast__panel--today .contrast__panel-title {
  color: var(--text-muted-on-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
}
.contrast__panel--with .contrast__panel-title {
  color: var(--dawn-violet);
}

.contrast__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.contrast__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.contrast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  margin-top: 1px;
}
.contrast__panel--today .contrast__icon {
  background: rgba(107,102,120,0.15);
  color: var(--text-muted-on-light);
}
.contrast__icon--check {
  background: rgba(31,157,107,0.15);
  color: var(--status-success);
}

/* Thin diagonal divider */
.contrast__divider {
  width: 1px;
  background: rgba(255,255,255,0.35);
  transform: skewX(-6deg);
  align-self: stretch;
  min-height: 200px;
}

@media (max-width: 767px) {
  .contrast { padding-block: var(--space-7); }
  .contrast__panels {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .contrast__divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    transform: none;
    background: rgba(255,255,255,0.35);
  }
  .contrast__title {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
  }
}