/* ============================================
   COMPONENTS
   Page-specific styling
   ============================================ */

/* ===== Site header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--whisper);
  background: rgba(243, 241, 236, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) 0;
  gap: var(--s-5);
}

.site-mark {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.site-mark__logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

.site-mark__text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--w-regular);
  letter-spacing: var(--ls-snug);
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}

.site-mark__text em {
  font-style: italic;
  color: var(--sage);
  font-size: 0.7em;
  margin: 0 0.05em;
}

.site-nav {
  display: flex;
  gap: var(--s-6);
}

.site-nav a {
  font-family: var(--font-eyebrow);
  font-size: var(--t-tiny);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--muted);
}

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

@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-mark__text { font-size: 1rem; }
}

/* ===== Hero ===== */

.hero {
  padding: var(--s-8) 0 var(--s-9);
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Subtle paper-grain background texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(92, 107, 92, 0.045) 0%, transparent 60%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(139, 74, 48, 0.025) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Optional atmospheric image - only for Version B */
.hero--with-image {
  background-image: url('../images/hero_atmosphere.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(243, 241, 236, 0.35) 0%, rgba(243, 241, 236, 0.55) 60%, rgba(243, 241, 236, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero--with-image .hero__inner {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .hero {
    padding: var(--s-8) 0 var(--s-9);
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
}

.hero__inner {
  text-align: center;
  max-width: var(--measure-page);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 var(--s-3);
}

/* Logo + wordmark lockup at top */
.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.1s forwards;
}

.hero__logo {
  width: 64px;
  height: 64px;
}

@media (min-width: 768px) {
  .hero__logo {
    width: 80px;
    height: 80px;
  }
}

.hero__wordmark-text {
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  color: var(--ink);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  letter-spacing: var(--ls-snug);
  line-height: 1;
}

.hero__wordmark-text em {
  font-style: italic;
  color: var(--sage);
  font-size: 0.7em;
  margin: 0 0.1em;
}

/* Headline - the dominant element */
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: var(--w-light);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 auto var(--s-6);
  max-width: 36ch;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.3s forwards;
}

.hero__headline em {
  font-style: italic;
  color: var(--sage);
  font-weight: var(--w-light);
}

/* Subheading - large, present, supports the headline */
.hero__sub {
  font-family: var(--font-body);
  font-size: var(--t-lead);
  font-weight: var(--w-regular);
  font-style: italic;
  line-height: 1.4;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto var(--s-6);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.5s forwards;
}

@media (max-width: 767px) {
  .hero__sub {
    font-size: var(--t-lead);
  }
}

/* Conditions list - readable, not hidden */
.hero__conditions {
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: var(--w-regular);
  color: var(--ink);
  max-width: 1020px;
  margin: 0 auto var(--s-7);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.65s forwards;
}

.hero__conditions-label {
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: var(--s-3);
}

/* Divider */
.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  margin: 0 auto var(--s-6);
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 0.8s forwards;
}

.hero__divider-line {
  width: 3rem;
  height: 1px;
  background: var(--rule);
}

.hero__divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}

/* CTA group */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out) 0.9s forwards;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Larger CTAs in hero context */
.hero__cta .btn {
  padding: var(--s-4) var(--s-7);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
}

/* ===== Section: The work ===== */

.work-intro {
  background: var(--paper);
  border-top: 1px solid var(--whisper);
}

.work-intro__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;
}

.work-intro__eyebrow {
  margin-bottom: var(--s-5);
}

.work-intro__heading {
  font-size: var(--t-h2);
  margin-bottom: var(--s-7);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.work-intro__heading em {
  font-style: italic;
  color: var(--sage);
}

.work-intro__body {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  max-width: 50rem;
  margin: 0 auto;
}

.work-intro__body p + p {
  margin-top: var(--s-4);
}

.work-intro__body .interlude {
  font-style: italic;
  color: var(--sage);
  text-align: center;
  font-size: var(--t-lead);
  margin: var(--s-6) auto;
  max-width: var(--measure);
}

/* ===== Section: Framework preview ===== */

.framework {
  background: var(--cream-deep);
  position: relative;
  scroll-margin-top: 5rem;
}

.framework__inner {
  max-width: var(--measure-page);
  margin: 0 auto;
}

.framework__header {
  text-align: center;
  max-width: var(--measure);
  margin: 0 auto var(--s-9);
}

.framework__heading {
  font-size: var(--t-h2);
  margin-bottom: var(--s-5);
}

.framework__heading em {
  font-style: italic;
  color: var(--sage);
}

.framework__heading sup {
  font-size: 0.4em;
  font-style: normal;
  vertical-align: super;
  margin-left: 0.1em;
  font-family: var(--font-eyebrow);
  font-weight: 600;
  color: var(--quiet);
}

.framework__intro {
  font-size: var(--t-body);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

.framework__stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  max-width: var(--measure-wide);
  margin: 0 auto var(--s-8);
  counter-reset: stage;
}

@media (min-width: 768px) {
  .framework__stages {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--s-4);
    max-width: var(--measure-page);
  }
}

.stage {
  position: relative;
  padding: var(--s-5);
  text-align: center;
  border-top: 1px solid var(--rule);
  counter-increment: stage;
}

@media (min-width: 768px) {
  .stage {
    border-top: none;
    border-left: 1px solid var(--rule);
    padding: var(--s-3) var(--s-4);
  }
  .stage:first-child {
    border-left: none;
  }
}

.stage__number {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: var(--s-3);
}

.stage__name {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: var(--lh-tight);
}

.stage__desc {
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--muted);
  line-height: var(--lh-relaxed);
}

.framework__cta {
  text-align: center;
}

/* ===== Book image ===== */

.book-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: transform 0.6s var(--ease-out);
}

.guide-visual:hover .book-image {
  transform: translateY(-4px) rotate(-0.5deg);
}

@media (max-width: 767px) {
  .book-image {
    max-width: 320px;
  }
}

/* ===== Section: The guide ===== */

.guide-feature {
  background: var(--cream);
  border-top: 1px solid var(--whisper);
  scroll-margin-top: 5rem;
}

.guide-feature__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  max-width: var(--measure-page);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .guide-feature__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--s-9);
  }
}

.guide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-text__eyebrow {
  margin-bottom: var(--s-4);
}

.guide-text__heading {
  font-size: var(--t-h2);
  margin-bottom: var(--s-5);
  line-height: var(--lh-tight);
}

.guide-text__heading em {
  font-style: italic;
  color: var(--sage);
}

.guide-text__body {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: var(--s-6);
}

.guide-text__body p + p {
  margin-top: var(--s-4);
}

.guide-text__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  padding: var(--s-5) 0;
  border-top: 1px solid var(--whisper);
  border-bottom: 1px solid var(--whisper);
}

.guide-text__meta-item {
  display: flex;
  flex-direction: column;
}

.guide-text__meta-label {
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: var(--s-1);
}

.guide-text__meta-value {
  font-family: var(--font-display);
  font-size: var(--t-body);
  color: var(--ink);
}

/* ===== Section: Free reading ===== */

.free-reading {
  background: var(--cream-deep);
  position: relative;
}

.free-reading__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;
}

.free-reading__eyebrow {
  margin-bottom: var(--s-4);
}

.free-reading__heading {
  font-size: var(--t-h2);
  margin-bottom: var(--s-5);
  line-height: var(--lh-tight);
}

.free-reading__heading em {
  font-style: italic;
  color: var(--sage);
}

.free-reading__body {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: var(--s-7);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.free-reading__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  max-width: var(--measure-wide);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .free-reading__items {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-6);
  }
}

.free-item {
  background: var(--paper);
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--whisper);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.free-item__label {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--s-4);
}

.free-item__title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-style: italic;
  color: var(--ink);
  margin-bottom: var(--s-3);
  line-height: var(--lh-snug);
}

.free-item__desc {
  font-size: var(--t-small);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  margin-bottom: var(--s-6);
  flex-grow: 1;
}

/* ===== Section: Work with me preview ===== */

.work-with {
  background: var(--paper);
  border-top: 1px solid var(--whisper);
}

.work-with__inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  text-align: center;
}

.work-with__eyebrow {
  margin-bottom: var(--s-4);
}

.work-with__heading {
  font-size: var(--t-h2);
  margin-bottom: var(--s-5);
  line-height: var(--lh-tight);
}

.work-with__heading em {
  font-style: italic;
  color: var(--sage);
}

.work-with__body {
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin-bottom: var(--s-7);
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--s-9) 0 var(--s-6);
}

.site-footer__inner {
  max-width: var(--measure-page);
  margin: 0 auto;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(243, 241, 236, 0.1);
}

@media (min-width: 768px) {
  .site-footer__main {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--s-7);
  }
}

.site-footer__brand-mark {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  color: var(--cream);
  font-style: italic;
  margin-bottom: var(--s-4);
  line-height: 1;
}

.site-footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(243, 241, 236, 0.65);
  max-width: 22rem;
  font-size: var(--t-small);
  line-height: var(--lh-relaxed);
}

.site-footer__col-heading {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--s-4);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  list-style: none;
}

.site-footer__links a {
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: rgba(243, 241, 236, 0.75);
  transition: color var(--d-quick) var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--cream);
}

.site-footer__bottom {
  padding-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer__copy,
.site-footer__url {
  font-family: var(--font-eyebrow);
  font-size: 0.7rem;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(243, 241, 236, 0.5);
}

.site-footer__url {
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: var(--ls-normal);
}

/* ===== Scroll-triggered reveals ===== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal--stagger.is-visible > *:nth-child(2) { transition-delay: 100ms; }
.reveal--stagger.is-visible > *:nth-child(3) { transition-delay: 200ms; }
.reveal--stagger.is-visible > *:nth-child(4) { transition-delay: 300ms; }
.reveal--stagger.is-visible > *:nth-child(5) { transition-delay: 400ms; }

.reveal--stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal--stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* ============================================
   MODAL — Decoder email capture
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: pointer;
  animation: modalBackdropFadeIn 0.25s ease-out;
}

@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal__panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: var(--s-7) var(--s-6) var(--s-6);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.15);
  animation: modalPanelSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.4, 1);
}

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

.modal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--quiet);
  cursor: pointer;
  padding: var(--s-2);
  transition: color 0.2s ease;
}

.modal__close:hover {
  color: var(--ink);
}

.modal__eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: var(--s-4);
}

.modal__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: var(--w-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0 0 var(--s-5);
}

.modal__title em {
  font-style: italic;
  color: var(--sage);
}

.modal__intro {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  margin: 0 0 var(--s-4);
}

.modal__form {
  margin-top: var(--s-6);
}

.modal__field {
  margin-bottom: var(--s-5);
}

.modal__label {
  display: block;
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: var(--s-2);
}

.modal__input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.modal__input:focus {
  outline: none;
  border-color: var(--sage);
}

.modal__input.is-error {
  border-color: var(--umber);
}

.modal__error {
  background: rgba(139, 74, 48, 0.08);
  border-left: 3px solid var(--umber);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--umber);
}

.modal__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4) var(--s-5);
  background: var(--umber);
  color: var(--cream);
  font-family: var(--font-eyebrow);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.modal__submit:hover {
  background: var(--umber-deep);
}

.modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal__fineprint {
  font-family: var(--font-eyebrow);
  font-size: var(--t-tiny);
  color: var(--quiet);
  text-align: center;
  margin: var(--s-4) 0 0;
}

.modal__fineprint a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.modal__fineprint a:hover {
  color: var(--sage-deep);
}

.modal__success {
  text-align: center;
  padding: var(--s-6) 0;
}

.modal__success-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: var(--w-regular);
  font-style: italic;
  color: var(--sage);
  margin: 0 0 var(--s-5);
}

.modal__success-text {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin: 0 0 var(--s-4);
}

.modal__success-signoff {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: var(--s-6);
}

@media (max-width: 480px) {
  .modal__panel {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
}

/* Body lock when modal open */
body.modal-open {
  overflow: hidden;
}


/* ============================================
   DECODER CTA SECTION — inline form, single lead magnet
   ============================================ */

.decoder-cta-section {
  background: var(--cream);
  position: relative;
  scroll-margin-top: 5rem;
}

.decoder-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
  max-width: var(--measure-page);
  margin: 0 auto;
  padding: var(--s-7) 0;
}

.decoder-cta__lead {
  max-width: var(--measure);
}

.decoder-cta__eyebrow {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: var(--s-5);
}

.decoder-cta__heading {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: var(--w-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0 0 var(--s-6);
}

.decoder-cta__heading em {
  font-style: italic;
  color: var(--sage);
}

.decoder-cta__body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--muted);
  margin: 0 0 var(--s-4);
}

.decoder-cta__body:last-child {
  margin-bottom: 0;
}

.decoder-cta__form-wrap {
  background: var(--paper);
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--whisper);
  max-width: 28rem;
  width: 100%;
  margin-left: auto;
}

.decoder-cta__form {
  margin: 0;
}

.decoder-cta__field {
  margin-bottom: var(--s-5);
}

.decoder-cta__label {
  display: block;
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: var(--s-2);
}

.decoder-cta__input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.decoder-cta__input:focus {
  outline: none;
  border-color: var(--sage);
}

.decoder-cta__input.is-error {
  border-color: var(--umber);
}

.decoder-cta__error {
  background: rgba(139, 74, 48, 0.08);
  border-left: 3px solid var(--umber);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--umber);
}

.decoder-cta__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4) var(--s-5);
  background: var(--umber);
  color: var(--cream);
  font-family: var(--font-eyebrow);
  font-size: var(--t-small);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-wide);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.decoder-cta__submit:hover {
  background: var(--umber-deep);
}

.decoder-cta__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.decoder-cta__fineprint {
  font-family: var(--font-eyebrow);
  font-size: var(--t-tiny);
  color: var(--quiet);
  text-align: center;
  margin: var(--s-4) 0 0;
}

.decoder-cta__fineprint a {
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.decoder-cta__fineprint a:hover {
  color: var(--sage-deep);
}

.decoder-cta__success {
  text-align: center;
  padding: var(--s-5) 0;
}

.decoder-cta__success-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: var(--w-regular);
  font-style: italic;
  color: var(--sage);
  margin: 0 0 var(--s-5);
}

.decoder-cta__success-text {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  margin: 0 0 var(--s-4);
}

.decoder-cta__success-signoff {
  font-family: var(--font-eyebrow);
  font-size: var(--t-eyebrow);
  font-weight: var(--w-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--quiet);
  margin-top: var(--s-6);
}

@media (max-width: 900px) {
  .decoder-cta__inner {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }

  .decoder-cta__form-wrap {
    margin-left: 0;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .decoder-cta__form-wrap {
    padding: var(--s-6) var(--s-5);
  }
}


/* ============================================
   ABOUT SECTION — homepage
   ============================================ */

.about {
  background: var(--cream-deep);
  border-top: 1px solid var(--whisper);
  scroll-margin-top: 5rem;
}

.about__inner {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.about__eyebrow {
  margin-bottom: var(--s-4);
}

.about__heading {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: var(--w-regular);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--ink);
  margin: 0 0 var(--s-7);
}

.about__heading em {
  font-style: italic;
  color: var(--sage);
}

.about__body {
  text-align: left;
}

.about__body p {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: var(--lh-loose);
  color: var(--ink);
  margin: 0 0 var(--s-5);
}

.about__body p:last-child {
  margin-bottom: 0;
}
