/* STEMWorkflowsAI site styles
   Layout: navy header and hero, alternating white / ice bands, navy closing band.
   Colors and type follow the STEMWorkflowsAI Brand Guide v1.0 (Oct 2026). */

:root {
  /* Brand palette */
  --navy: #1A1F3A;
  --navy-2: #252C52;      /* raised panels on navy */
  --cyan: #00DBFF;        /* mark and accents on navy only, never text on white */
  --teal: #0D7E9E;        /* links, buttons, accent text on white */
  --teal-dark: #09627B;
  --ice: #EFF9FB;
  --white: #FFFFFF;

  /* Neutrals biased toward navy */
  --ink: #1A1F3A;
  --muted: #4B5573;
  --line: #D5E3EA;
  --on-navy-muted: #B9C3DD;
  --line-navy: #39416B;

  /* Traffic Light Framework only */
  --tl-red: #C93C3C;
  --tl-yellow: #E3AE1F;
  --tl-green: #23895A;

  /* Type */
  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);

  --radius: 6px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--navy); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }
.measure { max-width: 62ch; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(56px, 8vw, 96px); }
.band-ice { background: var(--ice); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy a:not(.btn) { color: var(--cyan); }
.band-navy .lede, .band-navy .muted { color: var(--on-navy-muted); }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.band-navy .eyebrow, .hero .eyebrow { color: var(--cyan); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--line-navy);
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--white); }
.brand svg { height: 22px; width: auto; flex: none; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.nav a { color: var(--white); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { color: var(--cyan); }
.nav .btn { font-size: 0.9rem; padding: 9px 14px; }
@media (max-width: 640px) {
  .site-header { position: static; }
  .nav { width: 100%; justify-content: space-between; gap: 8px 14px; }
  .nav a { font-size: 0.9rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 14px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--white); color: var(--navy); }
.btn-ghost { border-color: var(--line-navy); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(48px, 7vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy { display: grid; gap: 1.25rem; min-width: 0; }
.hero .lede { color: var(--on-navy-muted); }
.hero-tag { font-family: var(--display); font-weight: 700; color: var(--cyan); font-size: var(--step-1); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.page-hero { background: var(--navy); color: var(--white); padding-block: clamp(44px, 6vw, 72px); }
.page-hero .lede { color: var(--on-navy-muted); }

/* ---------- The chain (signature element) ----------
   Three rings joined by a line, one per step of the 3-Step Chain. */
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.chain-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  padding-bottom: 22px;
}
.chain-step:last-child { padding-bottom: 0; }
.chain-step::before {           /* connector line */
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 4px;
  background: var(--cyan);
}
.chain-step:last-child::before { display: none; }
.ring {
  width: 34px;
  height: 34px;
  border: 4px solid var(--cyan);
  border-radius: 50%;
  background: var(--navy);
  position: relative;
  z-index: 1;
}
.chain-card {
  background: var(--navy-2);
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.chain-card h3 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); }
.chain-card .role { color: var(--on-navy-muted); font-size: var(--step--1); margin-top: 2px; }
.chain-card .prompt {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--white);
  border-left: 2px solid var(--line-navy);
  padding-left: 12px;
}
.chain-caption { color: var(--on-navy-muted); font-size: var(--step--1); margin-top: 14px; }

/* Light version of the chain, used on white or ice */
.chain-light .ring { background: var(--white); border-color: var(--teal); }
.chain-light .chain-step::before { background: var(--teal); }
.chain-light .chain-card { background: var(--white); border-color: var(--line); }
.chain-light .chain-card h3 { color: var(--teal); }
.chain-light .chain-card .role { color: var(--muted); }
.chain-light .chain-card .prompt { color: var(--ink); border-left-color: var(--line); }

/* ---------- Grids and panels ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.points { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.points li { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--teal); }
.points strong { font-family: var(--display); font-size: 1.05rem; }

.fw-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.fw-card .fw-name { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.fw-card .fw-steps { font-weight: 600; color: var(--teal); font-size: 0.95rem; }
.fw-card a { font-weight: 600; margin-top: auto; }

/* Before / after prompt comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.prompt-box {
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid;
  gap: 10px;
  min-width: 0;
}
.prompt-box .tag { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.prompt-box.strong { border: 2px solid var(--teal); }
.prompt-box.strong .tag { color: var(--teal); }
.prompt-box blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.prompt-box .note { font-size: var(--step--1); color: var(--muted); }

/* CARE letters */
.care { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 860px) { .care { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .care { grid-template-columns: minmax(0, 1fr); } }
.care li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.care .letter { font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--teal); }
.care .word { font-family: var(--display); font-weight: 700; }

/* Traffic Light zones (the only place red/yellow/green appear) */
.zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .zones { grid-template-columns: minmax(0, 1fr); } }
.zone { background: var(--white); border: 1px solid var(--line); border-top: 8px solid var(--zone); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.zone.red { --zone: var(--tl-red); }
.zone.yellow { --zone: var(--tl-yellow); }
.zone.green { --zone: var(--tl-green); }
.zone .zone-name { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.zone .mode { font-weight: 600; }
.zone ul { margin: 4px 0 0; padding-left: 1.1rem; color: var(--muted); }

/* Members / locked panel */
.locked {
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  background: var(--white);
}
.locked .eyebrow { display: inline-flex; align-items: center; gap: 8px; }

/* Framework section on the Frameworks page */
.fw-section { display: grid; gap: 1.5rem; scroll-margin-top: 90px; }
.fw-section + .fw-section { margin-top: clamp(56px, 8vw, 88px); padding-top: clamp(56px, 8vw, 88px); border-top: 1px solid var(--line); }

/* Checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.checks li::before {
  content: "";
  width: 18px; height: 18px; margin-top: 4px;
  border: 3px solid var(--teal);
  border-radius: 50%;
}
.band-navy .checks li::before { border-color: var(--cyan); }

/* ---------- Forms ---------- */
.signup {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  min-width: 0;
}
.signup h3 { font-size: var(--step-1); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #A9B8C7;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus { outline: 3px solid var(--cyan); outline-offset: 1px; border-color: var(--teal); }
.signup .btn { width: 100%; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.form-status { font-size: 0.95rem; font-weight: 600; color: var(--teal-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }

/* ---------- Prose (privacy) ---------- */
.prose { display: grid; gap: 1rem; max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5rem; }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding-block: 48px; border-top: 1px solid var(--line-navy); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer-grid .brand { margin-bottom: 10px; }
.footer-grid p { max-width: 46ch; font-size: 0.95rem; }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a { color: var(--white); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--cyan); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-navy); font-size: var(--step--1); }
