/* Subtrade Capital Corp. — site styles (tokens: assets/css/scc-tokens.css) */
:root {
  --moss: var(--scc-moss);
  --moss-dark: var(--scc-moss-900);
  --copper: var(--scc-copper);
  --terracotta: var(--scc-terracotta);
  --limestone: var(--scc-limestone);
  --espresso: var(--scc-espresso);
  --white: var(--scc-white);
  --surface: var(--scc-bg-alt);
  --surface-2: var(--scc-limestone-200);
  --border: var(--scc-line);
  --text: var(--scc-text);
  --text-2: var(--scc-text-muted);
  --text-3: var(--scc-mute);
  --green: var(--scc-moss);
  --green-bg: var(--scc-moss-050);
  --red: var(--scc-terracotta);
  --red-bg: var(--scc-terracotta-100);
  --accent-bg: var(--scc-copper-100);
  --radius: var(--scc-radius);
  --font-display: var(--scc-font-display);
  --font-body: var(--scc-font-text);
  --max: 1080px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--scc-size-body);
  line-height: var(--scc-leading-body);
  color: var(--text);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--moss-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--scc-leading-tight);
  color: var(--espresso);
  margin: 0 0 0.75rem;
  letter-spacing: var(--scc-track-display);
}
h1 { font-size: var(--scc-size-h1); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
strong { font-weight: 600; }

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header — limestone ground (matches logo lockup plate) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--scc-limestone);
  color: var(--moss);
  border-bottom: 1px solid var(--scc-line);
}
.site-header a { color: var(--moss); text-decoration: none; }
.site-header a:hover { color: var(--scc-moss-900); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand-logo {
  height: 52px;
  width: auto;
  max-width: min(260px, 60vw);
  display: block;
}
.brand-mark { display: none; } /* legacy */
.brand-text { display: none; } /* lockup PNG carries wordmark */


.nav-toggle {
  display: none;
  background: var(--scc-moss);
  border: 1px solid var(--scc-moss);
  color: var(--scc-copper);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--scc-tap-min);
}
.nav-toggle:hover {
  background: var(--scc-moss-900);
  border-color: var(--scc-moss-900);
  color: var(--scc-limestone);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0;
  color: var(--moss);
  opacity: 0.92;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; color: var(--scc-moss-900); }
.site-nav .nav-cta {
  background: var(--scc-moss);
  color: var(--scc-copper) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  opacity: 1;
  letter-spacing: 0.12em;
}
.site-nav .nav-cta:hover {
  background: var(--scc-moss-900);
  color: var(--scc-limestone) !important;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--scc-limestone);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0;
    border-bottom: 1px solid var(--scc-line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--scc-line);
  }
  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: none;
  }
}

/* Hero — Deep Moss + watermark mark */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--moss);
  color: var(--limestone);
  padding: 4rem 0 4.25rem;
}
.hero-watermark {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: min(48vw, 420px);
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}
.hero-watermark img { width: 100%; height: auto; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  color: var(--limestone);
  margin-bottom: 1.1rem;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--limestone);
  box-shadow: inset 0 -0.12em 0 var(--copper);
  padding-bottom: 0.05em;
}
.hero .lead { font-size: var(--scc-size-lead); max-width: 40rem; color: #D8D2C6; margin-bottom: 1rem; }
.hero .lead strong { color: var(--limestone); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.85rem; }

/* Eyebrows / section labels — Moss/Espresso for body-size text (copper only ≥24px) */
.section-label,
.scc-eyebrow {
  font-family: var(--font-display);
  font-size: var(--scc-size-eyebrow);
  font-weight: 600;
  letter-spacing: var(--scc-track-eyebrow);
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 0.5rem;
}
.hero .section-label,
.page-hero .section-label,
.section--moss .section-label,
.cta-band .section-label {
  color: var(--limestone);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--moss);
  color: var(--limestone);
  padding: 2.75rem 0 2.5rem;
}
.page-hero h1 { color: var(--limestone); }
.page-hero .subhead {
  font-size: 1.15rem;
  color: var(--limestone); /* not copper-on-moss */
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.75rem;
  opacity: 0.92;
}
.page-hero .lead { color: #D8D2C6; max-width: 42rem; }
.page-hero .container { position: relative; z-index: 1; }

/* Buttons — square */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  min-height: var(--scc-tap-min);
}
.btn--primary {
  background: var(--copper);
  color: #fff;
}
.btn--primary:hover { background: var(--scc-copper-900); color: #fff; }
.btn--secondary {
  background: transparent;
  border-color: rgba(242,237,228,.55);
  color: var(--limestone);
}
.btn--secondary:hover { border-color: #fff; color: #fff; }
.btn--outline {
  background: transparent;
  border-color: var(--moss);
  color: var(--moss);
}
.btn--outline:hover { background: var(--moss); color: var(--limestone); }
.btn--ghost {
  background: transparent;
  color: var(--moss);
  border: none;
  padding-left: 0;
  padding-right: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.btn--ghost:hover { color: var(--moss-dark); }

/* Sections */
.section { padding: 3.25rem 0; }
.section--alt { background: var(--surface); }
.section--moss { background: var(--moss); color: var(--limestone); }
.section--moss h2, .section--moss h3 { color: var(--limestone); }
.section--moss p, .section--moss li { color: #D8D2C6; }
.section-intro { max-width: 40rem; color: var(--text-2); margin-bottom: 1.5rem; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* Icon feature row */
.icon-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem 1rem;
  margin: 2rem 0 0.5rem;
  list-style: none;
  padding: 0;
}
.icon-row li {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.icon-row img, .icon-row svg {
  width: 56px;
  height: 56px;
}
.icon-row span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
}
@media (max-width: 760px) {
  .icon-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .icon-row { grid-template-columns: repeat(2, 1fr); }
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative;
  padding: 1rem 0 1rem 3.25rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--moss);
  color: var(--limestone);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.steps strong {
  display: block;
  font-family: var(--font-display);
  color: var(--espresso);
  margin-bottom: 0.25rem;
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.55rem 0 0.55rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--moss);
  border-radius: var(--radius);
  background: var(--white);
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 640px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-in { border-top: 3px solid var(--moss); }
.scope-out { border-top: 3px solid var(--terracotta); }
.scope-in h3 { color: var(--moss); }
.scope-out h3 { color: var(--espresso); }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 760px) { .bio-grid { grid-template-columns: 1fr; } }
.bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.bio-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--limestone);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.bio-card h3 { margin-bottom: 0.15rem; font-size: 1.2rem; }
.bio-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--moss);
  margin-bottom: 1rem;
}
.bio-card p { font-size: 0.95rem; color: var(--text-2); }

.callout {
  background: var(--accent-bg);
  border-left: 4px solid var(--copper);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.25rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-band {
  background: var(--espresso);
  color: var(--limestone);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--limestone); }
.cta-band p { color: #C9BDB0; max-width: 36rem; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--espresso);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--espresso);
}
.form-group .hint { font-size: 0.8rem; color: var(--text-3); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: var(--scc-focus-ring);
  outline-offset: var(--scc-focus-offset);
  border-color: var(--moss);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  grid-column: 1 / -1;
  margin: 0.5rem 0 1rem;
}
.checkbox-row input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.checkbox-row label { font-size: 0.9rem; font-weight: 400; color: var(--text-2); }
.form-actions { grid-column: 1 / -1; margin-top: 0.5rem; }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 1rem;
}

/* Footer — Deep Moss */
.site-footer {
  background: var(--moss);
  color: #D5DBD8;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}
.site-footer a { color: var(--limestone); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; } }
.footer-brand .footer-logo {
  display: block;
  max-width: min(100%, 340px);
  margin-bottom: 0.85rem;
}
.footer-brand .footer-logo img { width: 100%; height: auto; }
.footer-brand .fname {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--limestone);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.footer-brand .endorse {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--limestone);
  margin-bottom: 0.75rem;
  opacity: 0.85;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--limestone);
  margin-bottom: 0.85rem;
  opacity: 0.7;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-legal {
  border-top: 1px solid rgba(242,237,228,.15);
  padding-top: 1.25rem;
  font-size: 0.8rem;
  color: #ABB7B2;
}
.footer-legal p { margin-bottom: 0.6rem; max-width: 52rem; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.75rem; }

.disclaimer-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-2);
  margin-top: 2rem;
}
.disclaimer-box p:last-child { margin-bottom: 0; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-muted { color: var(--text-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.hint { font-weight: 400; color: var(--text-3); font-size: 0.8rem; }

.tool-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}
.tool-frame .tool-root { max-width: none; }
.tools-frame {
  width: min(100% - 1rem, 900px);
  margin: 1.5rem auto 0;
}
.tool-root {
  background: var(--limestone);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0 1rem;
  overflow: hidden;
}
.tool-root .wrap { max-width: 820px; }
@media (max-width: 640px) {
  .tools-frame { width: 100%; margin: 1rem 0 0; }
  .tool-root { border-radius: 0; border-left: none; border-right: none; }
}


/* Apply form: out-of-scope gate */
.not-a-fit {
  display: none;
  background: var(--red-bg);
  border: 1px solid var(--terracotta);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--espresso);
}
.not-a-fit.is-visible { display: block; }
.not-a-fit h3 { color: var(--espresso); margin-top: 0; font-size: 1.15rem; }
.not-a-fit p:last-child { margin-bottom: 0; }
.form-card.is-blocked .form-actions { display: none; }
.draft-banner {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--espresso);
  margin-bottom: 1.5rem;
}
.draft-banner strong { color: var(--espresso); }


/* Homepage explainer video */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 1.5rem auto 0.75rem;
  aspect-ratio: 16 / 9;
  background: var(--scc-moss-900, #22382E);
  border: 1px solid var(--scc-line, #D8D2C7);
  overflow: hidden;
}
.video-embed video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-legal {
  font-size: 0.85rem;
  max-width: 40rem;
  margin-top: 0.75rem;
}
