/* ============================================================
   CTH Brand System — Climate Impact Calculator
   The ONLY color authority for this app (Manual de Marca, Jan 2024).
   No colors outside the §21 palette except functional DQS amber/red.
   ============================================================ */

:root {
  /* ── Official CTH palette (§21.1) ── */
  --cth-deep-blue:    #0C498A;   /* Primary — CTAs, headings, nav, active states */
  --cth-light-cyan:   #B2EEFA;   /* Backgrounds, form section fills, hero tint */
  --cth-light-green:  #9DC384;   /* Earth element — positive results, sector tags */
  --cth-forest-green: #669348;   /* Supporting earth — bars, secondary accents */
  --cth-sky-blue:     #69B5FA;   /* Supporting water — info states, links */

  /* ── Derived text colors (darkest shade of same ramp) ── */
  --cth-deep-blue-text: #0C498A;
  --cth-cyan-text:      #0C498A;   /* deep blue on cyan bg */
  --cth-green-text:     #3B5E22;   /* dark green on green bg */
  --cth-forest-text:    #2D3D1A;

  /* ── Semantic mappings ── */
  --color-primary:      var(--cth-deep-blue);
  --color-primary-bg:   #E6F1FA;   /* 10% tint of deep blue */
  --color-accent:       var(--cth-light-green);
  --color-surface:      var(--cth-light-cyan);
  --color-surface-2:    #F0FAFE;   /* very light cyan for alternating rows */

  /* ── Quality score colors (within palette + functional exceptions) ── */
  --dqs-high:     var(--cth-forest-green);  /* 80–100 */
  --dqs-medium:   var(--cth-sky-blue);      /* 60–79  */
  --dqs-low:      #D97706;                  /* 40–59  — amber, functional only */
  --dqs-very-low: #DC2626;                  /* <40    — red, functional only */

  /* ── Neutrals (greyscale only — not chromatic, brand-safe) ── */
  --ink:        #11202F;   /* near-black body text, deep-blue tinted */
  --ink-soft:   #44566A;   /* secondary text */
  --ink-faint:  #7A8Aa0;   /* placeholder / smart-default hints */
  --line:       #D6E3EE;   /* hairline borders, cyan-tinted grey */
  --line-soft:  #E9F2F8;
  --paper:      #FFFFFF;
  --paper-2:    #F7FBFE;

  /* ── Typography ── */
  --font-body:    'Open Sans', 'PT Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:    'Open Sans', sans-serif;
  --font-tag:     'PT Sans', sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.75rem;

  /* ── Spacing ── */
  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4.5rem;

  /* ── Radii ── */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   22px;
  --r-full: 9999px;

  /* ── Shadows (neutral, brand-safe) ── */
  --shadow-sm: 0 1px 2px rgba(12, 73, 138, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(12, 73, 138, 0.18);
  --shadow-lg: 0 18px 40px -12px rgba(12, 73, 138, 0.22);

  /* ── Layout ── */
  --max-width: 1120px;
  --nav-height: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, var(--color-surface-2) 0%, transparent 60%),
    var(--paper-2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cth-deep-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--cth-deep-blue);
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

.tagline {
  font-family: var(--font-tag);
  font-style: italic;
  color: var(--cth-deep-blue);
}

.result-number {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cth-deep-blue);
  letter-spacing: -0.02em;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.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;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cth-forest-green);
}

.muted { color: var(--ink-soft); }

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  padding: 0 var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { display: block; }
.nav-links { display: flex; align-items: center; gap: var(--sp-md); }
.nav-links a { color: var(--cth-deep-blue); font-weight: 600; font-size: var(--fs-sm); }
.nav-links a.nav-signin { color: var(--ink-soft); }
.nav-signup {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--cth-deep-blue);
  border-radius: var(--r-full);
}
.nav-signup:hover { background: var(--color-primary-bg); text-decoration: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--cth-deep-blue);
  border-radius: var(--r-full);
  background: transparent;
  color: var(--cth-deep-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-toggle:hover { background: var(--cth-deep-blue); color: #fff; }
.lang-toggle .globe { font-size: 0.9rem; }

/* ============================================================
   Layout shell
   ============================================================ */
.page-content {
  flex: 1;
  padding: var(--sp-2xl) 0 var(--sp-3xl);
}

/* ============================================================
   Buttons
   ============================================================ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.85rem 1.6rem;
  background: var(--cth-deep-blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s, background 0.2s;
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.cta-primary:hover {
  background: #0a3d75;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.cta-primary:focus-visible { outline: 3px solid var(--cth-sky-blue); outline-offset: 3px; }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 0.85rem 1.6rem;
  background: transparent;
  color: var(--cth-deep-blue);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-base);
  border: 1.5px solid var(--cth-deep-blue);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-decoration: none;
}
.cta-secondary:hover { background: var(--color-primary-bg); text-decoration: none; }
.cta-secondary:focus-visible { outline: 3px solid var(--cth-sky-blue); outline-offset: 3px; }

.btn-block { width: 100%; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  box-shadow: var(--shadow-sm);
}
.card-cyan {
  background: linear-gradient(160deg, var(--cth-light-cyan) 0%, var(--color-surface-2) 100%);
  border-color: #9ddff0;
}
.card-soft { background: var(--paper-2); }

/* ============================================================
   Form inputs
   ============================================================ */
label, .field-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-xs);
  color: var(--ink);
}
.field-hint { font-size: var(--fs-xs); color: var(--ink-faint); margin-top: 4px; }
.field-req { color: var(--dqs-low); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cth-deep-blue);
  box-shadow: 0 0 0 3px rgba(12, 73, 138, 0.16);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230C498A' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-lg);
}
.field { margin-bottom: var(--sp-lg); }
.field-grid .field { margin-bottom: 0; }

/* checkbox / pill group */
.check-group { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.check-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.16s, background 0.16s;
}
.check-pill input { width: auto; accent-color: var(--cth-deep-blue); }
.check-pill:has(input:checked) {
  border-color: var(--cth-deep-blue);
  background: var(--color-primary-bg);
  color: var(--cth-deep-blue);
  font-weight: 600;
}

/* ============================================================
   Form sections
   ============================================================ */
.form-section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  box-shadow: var(--shadow-sm);
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--line-soft);
}
.section-num {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: var(--cth-deep-blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.form-section-head h2 { font-size: var(--fs-xl); margin-bottom: 2px; }
.form-section-head .section-sub { font-size: var(--fs-sm); color: var(--ink-soft); }

/* ============================================================
   Sector tab selector
   ============================================================ */
.sector-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-sm);
}
.sector-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.9rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.16s, background 0.16s, transform 0.12s;
}
.sector-tab .sector-ico { font-size: 1.4rem; line-height: 1; }
.sector-tab:hover { border-color: var(--cth-sky-blue); transform: translateY(-1px); }
.sector-tab.active {
  border-color: var(--cth-deep-blue);
  background: var(--color-primary-bg);
  color: var(--cth-deep-blue);
  box-shadow: inset 0 0 0 1px var(--cth-deep-blue);
}

/* ============================================================
   Operational data blocks (sector-adaptive)
   ============================================================ */
.sector-block { display: none; }
.sector-block.active { display: block; }
.op-field {
  padding: var(--sp-md);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--paper-2);
  margin-bottom: var(--sp-md);
}
.op-field-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.op-help {
  display: inline-grid; place-items: center;
  width: 18px; height: 18px;
  border-radius: var(--r-full);
  background: var(--cth-sky-blue);
  color: #fff;
  font-size: 11px; font-weight: 700;
  cursor: help;
}

/* ── Confidence selector ── */
.conf-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-sm);
  flex-wrap: wrap;
}
.conf-row .conf-label { font-size: var(--fs-xs); color: var(--ink-soft); margin-right: 4px; }
.conf-btn {
  padding: 0.35rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s;
}
.conf-btn:hover { border-color: var(--cth-sky-blue); }
.conf-btn[data-conf="measured"].active {
  background: var(--cth-forest-green); border-color: var(--cth-forest-green); color: #fff;
}
.conf-btn[data-conf="estimated"].active {
  background: var(--cth-sky-blue); border-color: var(--cth-sky-blue); color: #fff;
}
.conf-btn[data-conf="assumed"].active {
  background: var(--dqs-low); border-color: var(--dqs-low); color: #fff;
}

/* ============================================================
   olca-tag badge
   ============================================================ */
.olca-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-full);
  background: var(--cth-deep-blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ============================================================
   Sector / field tags
   ============================================================ */
.field-tag {
  display: inline-block;
  margin: 3px 4px 0 0;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-full);
  background: var(--cth-light-green);
  color: var(--cth-green-text);
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* ============================================================
   DQS badge + nudge
   ============================================================ */
.dqs-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-full);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #fff;
  background: var(--ink-soft);
}
.dqs-badge.dqs-high     { background: var(--dqs-high); }
.dqs-badge.dqs-medium   { background: var(--dqs-medium); }
.dqs-badge.dqs-low      { background: var(--dqs-low); }
.dqs-badge.dqs-very_low { background: var(--dqs-very-low); }
.dqs-badge.dqs-very-low { background: var(--dqs-very-low); }

.dqs-improve {
  margin-top: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border: 1px dashed var(--dqs-low);
  border-radius: var(--r-md);
  background: #FEF6EC;
  color: var(--ink);
  font-size: var(--fs-sm);
}
.dqs-improve strong { color: var(--dqs-low); }

/* ============================================================
   Live quality bar (sticky panel)
   ============================================================ */
.quality-panel {
  position: sticky;
  bottom: var(--sp-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-lg);
  box-shadow: var(--shadow-md);
}
.quality-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
}
.quality-head .q-title { font-family: var(--font-head); font-weight: 700; color: var(--cth-deep-blue); font-size: var(--fs-sm); }
.quality-head .q-num { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-lg); color: var(--cth-deep-blue); }
.quality-head .q-num small { font-size: var(--fs-sm); color: var(--ink-faint); font-weight: 600; }
.quality-track {
  height: 12px;
  border-radius: var(--r-full);
  background: var(--line-soft);
  overflow: hidden;
}
#quality-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--r-full);
  background: var(--dqs-very-low);
  transition: width 0.35s ease, background 0.35s ease;
}
.quality-note { margin-top: var(--sp-sm); font-size: var(--fs-xs); color: var(--ink-soft); }

/* ============================================================
   Landing hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-2xl);
  align-items: center;
  padding: var(--sp-xl) 0 var(--sp-2xl);
}
.hero-headline {
  font-size: var(--fs-4xl);
  line-height: 1.08;
  white-space: pre-line;
  margin: var(--sp-sm) 0 var(--sp-md);
}
.hero-sub { font-size: var(--fs-md); color: var(--ink-soft); max-width: 38ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-md); margin: var(--sp-lg) 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: var(--sp-lg); margin-top: var(--sp-lg); }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-soft); }
.trust-badge .check { color: var(--cth-forest-green); font-weight: 700; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: var(--sp-lg); }
.hero-logo { max-width: 280px; }
.hero .tagline { font-size: var(--fs-lg); }

/* ============================================================
   Processing screen
   ============================================================ */
.proc-wrap { max-width: 640px; margin: 0 auto; }
.proc-steps { list-style: none; counter-reset: step; }
.proc-step {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) 0;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s;
}
.proc-step:last-child { border-bottom: none; }
.proc-step .step-dot {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: var(--r-full);
  border: 2px solid var(--line);
  display: grid; place-items: center;
  font-size: var(--fs-xs); font-weight: 700;
  background: var(--paper);
}
.proc-step.active { color: var(--cth-deep-blue); font-weight: 600; }
.proc-step.active .step-dot { border-color: var(--cth-deep-blue); color: var(--cth-deep-blue); }
.proc-step.done { color: var(--cth-forest-text); }
.proc-step.done .step-dot { background: var(--cth-forest-green); border-color: var(--cth-forest-green); color: #fff; }
.proc-track {
  height: 8px; margin-top: var(--sp-xl);
  border-radius: var(--r-full);
  background: var(--line-soft);
  overflow: hidden;
}
.proc-bar {
  height: 100%; width: 0%;
  background: var(--cth-deep-blue);
  border-radius: var(--r-full);
  transition: width 0.5s ease;
}

/* ============================================================
   Results
   ============================================================ */
.result-hero { position: relative; text-align: center; padding: var(--sp-2xl) var(--sp-xl); }
.result-hero .olca-tag { position: absolute; top: var(--sp-lg); right: var(--sp-lg); }
.result-number { font-size: clamp(3.5rem, 9vw, 6rem); display: block; line-height: 1; margin: var(--sp-md) 0 var(--sp-sm); }
.result-unit { font-size: var(--fs-lg); color: var(--ink-soft); font-weight: 600; }
.result-method-line { margin-top: var(--sp-md); font-size: var(--fs-sm); color: var(--ink-soft); }
.result-method-line button.method-q {
  border: none; background: var(--cth-sky-blue); color: #fff;
  width: 20px; height: 20px; border-radius: var(--r-full);
  font-weight: 700; cursor: pointer; font-size: 12px;
}
.ef-disclaimer {
  margin-top: var(--sp-md);
  padding: var(--sp-sm) var(--sp-md);
  border-radius: var(--r-md);
  background: #FEF6EC;
  border: 1px solid var(--dqs-low);
  color: var(--ink);
  font-size: var(--fs-xs);
}
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); margin-top: var(--sp-xl); }
.results-actions { display: flex; flex-wrap: wrap; gap: var(--sp-md); margin-top: var(--sp-xl); }
.cross-sell { display: flex; flex-wrap: wrap; gap: var(--sp-md); margin-top: var(--sp-lg); }
.cross-sell a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.6rem 1.1rem; border-radius: var(--r-full);
  background: var(--color-surface-2); border: 1px solid var(--line);
  font-weight: 600; font-size: var(--fs-sm);
}
.cross-sell a:hover { background: var(--color-primary-bg); text-decoration: none; }

#narrative p { margin-bottom: var(--sp-md); color: var(--ink); }
.section-title { font-size: var(--fs-lg); margin-bottom: var(--sp-md); }

/* ── Breakdown chart ── */
#breakdown-chart { display: flex; flex-direction: column; gap: var(--sp-sm); }
.chart-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
.chart-row-label { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.chart-row-label .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-track { height: 18px; background: var(--line-soft); border-radius: var(--r-sm); overflow: hidden; }
.chart-fill { height: 100%; border-radius: var(--r-sm); }
.chart-fill.positive { background: var(--cth-forest-green); }
.chart-fill.negative { background: var(--cth-light-green); opacity: 0.7; }

/* ============================================================
   Modal (methodology)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 32, 47, 0.55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100; padding: var(--sp-lg);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--paper);
  border-radius: var(--r-lg);
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: var(--sp-xl);
  box-shadow: var(--shadow-lg);
}
.modal-close {
  float: right; border: none; background: none;
  font-size: var(--fs-xl); cursor: pointer; color: var(--ink-soft);
  line-height: 1;
}

/* ============================================================
   Odoo sync panel (confirmed)
   ============================================================ */
.odoo-panel {
  border: 2px solid #6D4AB8;   /* purple accent for Odoo per §17 (functional, ERP brand) */
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  background: #F8F5FE;
}
.odoo-panel h3 { color: #4A2F86; }
.odoo-row {
  display: flex; align-items: center; gap: var(--sp-md);
  padding: var(--sp-md) 0;
  border-bottom: 1px solid #E5DCF5;
}
.odoo-row:last-child { border-bottom: none; }
.odoo-row .odoo-check {
  flex: 0 0 auto; width: 24px; height: 24px;
  border-radius: var(--r-full);
  background: var(--cth-forest-green); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.odoo-row .odoo-meta { font-size: var(--fs-xs); color: var(--ink-faint); font-family: var(--font-head); }
.odoo-fallback {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  border-radius: var(--r-md);
  background: #FEF6EC; border: 1px solid var(--dqs-low);
  font-size: var(--fs-sm);
}

/* ============================================================
   Auth (save)
   ============================================================ */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-full);
  background: var(--paper);
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-base);
  color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn-google:hover { background: var(--paper-2); text-decoration: none; box-shadow: var(--shadow-sm); }
.auth-divider {
  display: flex; align-items: center; gap: var(--sp-md);
  margin: var(--sp-lg) 0; color: var(--ink-faint); font-size: var(--fs-sm);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.benefit-list { list-style: none; margin: var(--sp-md) 0; }
.benefit-list li { padding: 6px 0 6px 26px; position: relative; font-size: var(--fs-sm); color: var(--ink-soft); }
.benefit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cth-forest-green); font-weight: 700; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--sp-xl) 0;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-md); }
.site-footer a { color: var(--cth-deep-blue); }
.footer-olca { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: none; }
  .hero-ctas, .trust-row { justify-content: center; }
  .hero-visual { order: -1; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --fs-3xl: 2rem; --fs-4xl: 2.6rem; }
  .nav-links .nav-signin { display: none; }
  .result-hero .olca-tag {
    position: static; display: inline-flex; margin-bottom: var(--sp-md);
  }
  .form-section { padding: var(--sp-lg); }
  .container { padding: 0 var(--sp-md); }
}
