/* API Processor — Ledger Mist theme */
:root {
  --ink: #0e1c28;
  --ink-soft: #3a4f5c;
  --mist: #e4eef2;
  --paper: #f7fafb;
  --surface: #ffffff;
  --line: rgba(14, 28, 40, 0.12);
  --teal: #1a9f8c;
  --teal-deep: #0f6f62;
  --teal-glow: rgba(26, 159, 140, 0.18);
  --gold: #c4a35a;
  --danger: #b42318;
  --ok: #0f6f62;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(14, 28, 40, 0.08);
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(228, 238, 242, 0.9), rgba(247, 250, 251, 0.95)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 22px,
      rgba(14, 28, 40, 0.025) 22px,
      rgba(14, 28, 40, 0.025) 23px
    );
  background-attachment: fixed;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin: 0 0 0.65em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #fde8e6;
  color: var(--danger);
  border-bottom: 1px solid #f3b6b0;
  font-size: 0.95rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 251, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 6px;
  background:
    linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 55%, var(--gold) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
  left: 0;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: #1a3040;
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: #f4f8fa;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 28, 40, 0.88) 0%, rgba(14, 28, 40, 0.55) 48%, rgba(14, 28, 40, 0.25) 100%),
    linear-gradient(0deg, rgba(14, 28, 40, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.25rem 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 550;
  max-width: 22ch;
  color: #e8f3f1;
  margin-bottom: 0.75rem;
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero .hero-support {
  max-width: 34rem;
  color: rgba(244, 248, 250, 0.86);
  font-size: 1.08rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

.hero .btn-row {
  animation: riseIn 0.9s 0.32s var(--ease) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

/* Trust strip */
.trust-strip {
  background: var(--ink);
  color: rgba(247, 250, 251, 0.88);
  padding: 1.35rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: left;
}

.trust-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.trust-grid span {
  font-size: 0.9rem;
  color: rgba(247, 250, 251, 0.7);
}

@media (max-width: 800px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Featured / content blocks */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-muted {
  background: linear-gradient(160deg, #dfecef, #f7fafb 60%);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.media-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 280px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.04);
}

.program-list {
  display: grid;
  gap: 1.25rem;
}

.program-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.15rem;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.program-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.program-item img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.program-item-body {
  padding: 1rem 1rem 1rem 0;
}

.program-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.program-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 620px) {
  .program-item {
    grid-template-columns: 1fr;
  }

  .program-item img {
    min-height: 160px;
  }

  .program-item-body {
    padding: 0 1rem 1rem;
  }
}

.benefit-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: benefit;
}

.benefit {
  padding-top: 1rem;
  border-top: 2px solid var(--teal);
  counter-increment: benefit;
}

.benefit::before {
  content: counter(benefit, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
}

.benefit h3 {
  font-size: 1.2rem;
}

.benefit p {
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 800px) {
  .benefit-rail {
    grid-template-columns: 1fr;
  }
}

/* Quotes */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  background: var(--surface);
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote p {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

.quote footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.quote-wide {
  padding: 1.75rem;
}

.rating {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.price-tier.featured {
  background: linear-gradient(165deg, #0e1c28, #163445);
  color: #f4f8fa;
  border-color: transparent;
  transform: translateY(-6px);
}

.price-tier.featured a {
  color: #9fe3d6;
}

.price-tier h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  margin: 0.6rem 0;
}

.price-amount span {
  font-size: 0.95rem;
  font-family: var(--font-body);
  opacity: 0.75;
}

.price-tier ul {
  flex: 1;
  margin-bottom: 1.25rem;
  color: inherit;
}

.price-tier.featured ul {
  color: rgba(244, 248, 250, 0.88);
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-tier.featured {
    transform: none;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-teaser {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.blog-teaser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
}

.blog-teaser time {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.blog-teaser h3 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.45rem;
}

.blog-teaser p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 1.25rem 0 2rem;
}

/* Course detail */
.module-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.module-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.75rem;
}

.module-list strong {
  font-family: var(--font-display);
  color: var(--teal-deep);
}

.faq details {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.instructor img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 560px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.form-status {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
}

.form-status--ok {
  background: #e7f6f2;
  border-color: #9fd5c8;
  color: var(--ok);
}

.form-status--err {
  background: #fde8e6;
  border-color: #f3b6b0;
  color: var(--danger);
}

.contact-aside {
  background: var(--ink);
  color: rgba(247, 250, 251, 0.9);
  padding: 1.75rem;
}

.contact-aside a {
  color: #9fe3d6;
}

.contact-aside h2 {
  color: #fff;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: #e8f1f4;
  font-family: var(--font-display);
  font-weight: 650;
}

/* Footer */
.site-footer {
  background: #0b1620;
  color: rgba(247, 250, 251, 0.78);
  margin-top: 4rem;
  padding: 3.5rem 1.25rem 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr) 1.2fr;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.site-footer a {
  color: rgba(247, 250, 251, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #9fe3d6;
}

.footer-contact p {
  font-size: 0.92rem;
}

.footer-base {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  max-width: 520px;
  margin-right: auto;
  background: var(--ink);
  color: rgba(247, 250, 251, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  animation: riseIn 0.5s var(--ease) both;
}

.cookie-banner-inner {
  padding: 1.15rem 1.2rem;
}

.cookie-banner p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
}

.cookie-banner a {
  color: #9fe3d6;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cookie-banner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Page heroes (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
}

.page-hero .lede {
  margin-top: 0.5rem;
}

.band {
  background: linear-gradient(120deg, rgba(26, 159, 140, 0.12), transparent 55%),
    var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band {
  background: var(--ink);
  color: #f4f8fa;
  padding: 3.5rem 0;
  text-align: left;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 18ch;
}

.cta-band p {
  color: rgba(244, 248, 250, 0.8);
  max-width: 34rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(26, 159, 140, 0.08);
}

.case-study {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.case-study h3 {
  font-size: 1.35rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: start;
  padding: 5rem 0;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  letter-spacing: -0.05em;
  margin-bottom: 0.2rem;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
