/* Cloud Nerve AI — Celadon Ledger theme */
:root {
  --ink: #0f2922;
  --ink-soft: #2a4a40;
  --paper: #f4f8f5;
  --mist: #d8e8e0;
  --celadon: #3d7a6a;
  --celadon-deep: #2a5a4d;
  --brass: #9a7b4f;
  --brass-soft: #c4a86a;
  --surface: #ffffff;
  --line: rgba(15, 41, 34, 0.12);
  --danger: #8b3a3a;
  --ok: #2a5a4d;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --wide: 72rem;
  --radius: 2px;
  --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-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(216, 232, 224, 0.55) 0%, transparent 42%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 27px,
      rgba(15, 41, 34, 0.035) 27px,
      rgba(15, 41, 34, 0.035) 28px
    );
  min-height: 100vh;
}

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

a {
  color: var(--celadon-deep);
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.35rem, 5.5vw, 4rem);
  font-variation-settings: "SOFT" 40, "WONK" 0.4;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0 0 1rem;
}

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

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

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  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:
    radial-gradient(circle at 50% 32%, var(--brass-soft) 0 18%, transparent 19%),
    linear-gradient(160deg, var(--celadon) 0%, var(--ink) 100%);
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

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

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

.nav-list a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--brass);
}

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

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  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;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  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(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--celadon-deep);
  color: var(--paper);
}

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

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

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

.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 composition */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

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

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

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 41, 34, 0.92) 0%, rgba(15, 41, 34, 0.72) 42%, rgba(61, 122, 106, 0.35) 100%),
    linear-gradient(0deg, rgba(15, 41, 34, 0.55) 0%, transparent 45%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) var(--space) clamp(3rem, 8vw, 5rem);
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-line {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 32rem;
  color: rgba(244, 248, 245, 0.9);
  margin-bottom: 0.5rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.hero .btn-primary {
  background: var(--brass);
  color: var(--ink);
  animation: riseIn 0.9s var(--ease) 0.24s both;
}

.hero .btn-primary:hover {
  background: var(--brass-soft);
  color: var(--ink);
}

/* Page hero (inner pages) — still full-bleed */
.page-hero {
  position: relative;
  min-height: min(48vh, 28rem);
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
}

.page-hero .hero-content {
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.page-hero h1 {
  color: var(--paper);
  max-width: 16ch;
  margin: 0 0 0.75rem;
  animation: riseIn 0.8s var(--ease) both;
}

.page-hero .lede {
  color: rgba(244, 248, 245, 0.88);
  animation: riseIn 0.8s var(--ease) 0.1s both;
}

/* Proof strip */
.proof-strip {
  background: var(--ink);
  color: var(--mist);
  padding: 1.75rem 0;
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--brass-soft);
  font-weight: 560;
}

.proof-item span {
  font-size: 0.92rem;
  opacity: 0.85;
}

/* Featured deep dive */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.feature-visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.feature-visual img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.feature-visual:hover img {
  transform: scale(1.04);
}

.feature-copy h2 {
  margin-top: 0;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.module-list li {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.98rem;
}

.module-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.module-list .n {
  font-family: var(--font-display);
  color: var(--brass);
  font-weight: 600;
}

/* Benefits — not cards; rule-separated rows */
.benefit-rows {
  display: grid;
  gap: 0;
  margin-top: 2rem;
}

.benefit-row {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.benefit-row:last-child {
  border-bottom: 1px solid var(--line);
}

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

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

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.quote {
  border-left: 3px solid var(--celadon);
  padding: 0.25rem 0 0.25rem 1.25rem;
  max-width: 42rem;
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 450;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

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

.quote.short p {
  font-size: 1.05rem;
  font-family: var(--font-body);
}

/* Course / blog listings — interaction containers */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  height: 100%;
}

a.item:hover {
  border-color: var(--celadon);
  transform: translateY(-3px);
  color: inherit;
}

.item-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mist);
}

.item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

a.item:hover .item-media img {
  transform: scale(1.05);
}

.item-body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.item-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.item-meta {
  font-size: 0.82rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

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

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

.price-tier.featured {
  border-color: var(--celadon);
  background: linear-gradient(180deg, #eef6f2 0%, var(--surface) 40%);
}

.price-tier h3 {
  margin: 0 0 0.35rem;
}

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

.price-amount span {
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-soft);
}

.price-tier ul {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price-tier li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

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

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.address-block h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

/* Legal / prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.25rem 0;
}

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

.prose th {
  background: var(--mist);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  margin-top: 1.5rem;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

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

/* Case studies */
.case {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.case h3 {
  margin-top: 0;
}

.stars {
  color: var(--brass);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--mist);
  margin-top: clamp(3rem, 8vw, 5rem);
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--space);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  margin: 0 0 0.5rem;
}

.footer-tag {
  max-width: 28rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 2rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 0.85rem;
  font-weight: 600;
}

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

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

.footer-col a {
  color: var(--mist);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.65;
  border-top: 1px solid rgba(244, 248, 245, 0.12);
  padding-top: 1.25rem;
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(15, 41, 34, 0.08);
  animation: riseIn 0.5s var(--ease) both;
}

.cookie-banner-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.15rem var(--space);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.cookie-banner-text {
  margin: 0;
  flex: 1 1 18rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--celadon);
  line-height: 1;
  margin: 0;
}

/* Instructor */
.instructor {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

/* Outcomes */
.outcome-list {
  columns: 2;
  column-gap: 2rem;
  margin: 1.25rem 0 0;
  padding: 0 0 0 1.1rem;
}

.outcome-list li {
  break-inside: avoid;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

/* Blog article */
.article-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.article-cover {
  margin: 0 0 2.5rem;
  overflow: hidden;
  max-height: 28rem;
}

.article-cover img {
  width: 100%;
  height: 28rem;
  object-fit: cover;
}

/* Animations */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--space) 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;
    gap: 0.85rem;
  }

  .feature-split,
  .contact-layout,
  .price-grid,
  .proof-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .benefit-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .outcome-list {
    columns: 1;
  }

  .instructor {
    grid-template-columns: 5rem 1fr;
  }

  .instructor img {
    width: 5rem;
    height: 5rem;
  }
}

@media (max-width: 560px) {
  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }
}
