/* ==========================================================================
  STYLE
   ========================================================================== */

body.letter {
  background: #ffffff;
}

/* Full-width colour bands. Each band re-points the palette tokens, so every
   component inside a band picks up its colours without extra rules. ------- */

.letter_band {
  padding: clamp(56px, 9vw, 96px) clamp(16px, 5vw, 40px);
  background: #ffffff;
}

.letter_band--ruled {
  padding-top: 0;
}

.letter_band--ruled > .letter_sheet {
  padding-top: clamp(48px, 8vw, 80px);
  border-top: 1px solid var(--color-border);
}

.letter_band--compact {
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: clamp(40px, 6vw, 56px);
}

.letter_band--gray {
  background: #f4f2ed;
  --color-border: #e0dbcf;
}

.letter_band--gold {
  background: #f6ecd2;
  --color-border: #e2cf9f;
}

.letter_band--dark {
  background: #0f1b2d;
  --color-text: #f3efe7;
  --color-text-muted: #c3cbd6;
  --color-text-faint: #8c99ad;
  --color-border: #2a3b52;
  --color-accent: #c89b3c;
  --color-accent-strong: #e0b655;
  --color-alert-strong: #d8695c;
}

.letter .btn--primary {
  color: #fffdf8;
}

.letter_band--dark .btn--primary {
  color: #16130a;
}

.letter_sheet {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

.letter_sheet p {
  max-width: none;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.75;
  margin: 0 0 1.4em;
}

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

.letter_sheet h1,
.letter_sheet h2,
.letter_sheet h3,
.letter_sheet h4 {
  color: var(--color-text);
}

/* Beats the ".letter_sheet p" color rule above when a placeholder marker
   (shared with the rest of the site, see style.css) is applied straight to
   a paragraph rather than a nested span, e.g. the consultant bio line. */
.letter_sheet .fill-me {
  color: var(--color-alert-strong);
}

/* Letterhead ---------------------------------------------------------------- */

.letter_head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 56px);
}

.letter_sheet .letter_brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.letter_brand span {
  color: var(--color-accent);
}

.letter_pulse {
  width: clamp(140px, 30vw, 190px);
  height: auto;
  margin: 18px auto 0;
  display: block;
}

.letter_pulse path {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}

.letter_pulse circle {
  fill: var(--color-accent-strong);
}

/* Title block --------------------------------------------------------------- */

.letter_titleblock {
  text-align: center;
  padding-bottom: clamp(36px, 6vw, 56px);
  border-bottom: 1px solid var(--color-border);
}

.letter_sheet .letter_kicker {
  max-width: 34ch;
  margin: 0 auto 1.6rem;
  font-style: italic;
  font-size: clamp(1.3125rem, 1.1rem + 1vw, 1.625rem);
  line-height: 1.5;
  color: var(--color-text-faint);
}

.letter_title {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(2.375rem, 1.5rem + 5.5vw, 4.75rem);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* Body copy ----------------------------------------------------------------- */

.letter_body {
  padding-top: clamp(36px, 6vw, 56px);
}

.letter_sheet .letter_punch {
  font-family: var(--font-display);
  font-size: clamp(1.3125rem, 1.1rem + 0.8vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text);
}

.letter_sheet .letter_gap {
  margin-top: 2rem;
}

.letter_sheet .letter_aside {
  margin-top: 2rem;
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text-faint);
}

.letter_h3 {
  margin: 2.6rem 0 1rem;
  font-size: clamp(1.4375rem, 1.2rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
}

.letter_minus {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--color-alert-strong);
  background: #fbf6f4;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--color-text);
}

.letter_minus li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.4rem;
}

.letter_minus li::before {
  content: "\2212";
  position: absolute;
  left: 0;
  font-style: normal;
  font-weight: 600;
  color: var(--color-alert-strong);
}

.letter_h2 {
  max-width: 26ch;
  margin: 0 0 1.4rem;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.letter_sheet .letter_p--dropcap::first-letter {
  float: left;
  margin: 0.05em 0.07em 0 0;
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 600;
  line-height: 0.85;
  color: var(--color-accent-strong);
}

/* Symptoms ------------------------------------------------------------------ */

.letter_symptoms {
  list-style: none;
  margin: 1.8rem 0 0;
  padding: 0;
}

.letter_symptoms li {
  position: relative;
  padding: 1.1rem 0 1.1rem 1.6rem;
  border-top: 1px solid var(--color-border);
}

.letter_symptoms li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.65rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-alert-strong);
}

.letter_sheet .letter_symptoms p {
  margin: 0;
  color: var(--color-text);
}

/* Leaks --------------------------------------------------------------------- */

.letter_leaks {
  display: grid;
  gap: 1.9rem;
  margin-top: 2.2rem;
}

.letter_leak {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 18px;
  align-items: start;
}

.letter_leak-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(200, 155, 60, 0.12);
  color: var(--color-accent);
  font-size: 1.0625rem;
}

.letter_leak h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.letter_sheet .letter_leak p {
  margin: 0;
  font-size: 1.0625rem;
}

/* Session steps -------------------------------------------------------------- */

.letter_steps {
  margin-top: 2rem;
}

.letter_step {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 18px;
  padding: 1.6rem 0;
  border-top: 1px solid var(--color-border);
}

.letter_step:last-child {
  padding-bottom: 0;
}

.letter_step-index {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  color: var(--color-accent);
  padding-top: 0.2rem;
}

.letter_step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.letter_sheet .letter_step p {
  margin: 0;
  font-size: 1.0625rem;
}

/* Closing and calls to action ------------------------------------------------ */

.letter_close {
  margin-top: clamp(40px, 6vw, 56px);
  padding-top: clamp(32px, 5vw, 44px);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.letter_sheet .letter_close .letter_afterword {
  margin-top: 0;
}

.letter_sheet .letter_afterword {
  max-width: 34ch;
  margin: 0.8rem auto 0;
  font-style: italic;
  font-size: 1.375rem;
  color: var(--color-accent-strong);
}

.letter_actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 2.2rem;
}

.letter_sheet .letter_note {
  margin: 1.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-faint);
}

/* Foot of the sheet ---------------------------------------------------------- */

.letter_foot {
  text-align: center;
}

.letter_sheet .letter_foot-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.letter_foot-brand span {
  color: var(--color-accent);
}

.letter_sheet .letter_foot-bio {
  max-width: 40ch;
  margin: 0.9rem auto 0;
  font-size: 0.9375rem;
}

.letter_foot-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.8rem;
  margin-top: 1.3rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

.letter_foot-contact a {
  color: inherit;
  text-decoration: none;
}

.letter_foot-contact a:hover {
  color: var(--color-accent);
}

.letter_foot-contact i {
  width: 16px;
  margin-right: 7px;
  color: var(--color-accent);
}

.letter_legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 40px) 20px 40px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  text-align: center;
}

/* Session facts and price (dark band) ------------------------------------------ */

.letter_facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 1.6rem;
  padding: 0;
}

.letter_facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text);
}

.letter_facts i {
  color: var(--color-accent-strong);
}

.letter_price {
  margin: 2.4rem 0;
  padding: clamp(24px, 4vw, 32px);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.letter_sheet .letter_price-label {
  max-width: 44ch;
  margin: 0 auto 0.6rem;
  font-size: 1.0625rem;
}

.letter_sheet .letter_price-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--color-accent-strong);
}

/* Case studies ------------------------------------------------------------------ */

.letter_cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 1.6rem;
}

.letter_case {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fcfaf5;
}

.letter_sheet .letter_case-tag {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.letter_case h4 {
  margin: 0 0 0.6rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
}

.letter_sheet .letter_case p {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.letter_sheet .letter_case-result {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-text);
}

/* Value stack (gold band) -------------------------------------------------------- */

.letter_bonuses {
  display: grid;
  gap: 14px;
  margin: 1.8rem 0 0.6rem;
}

.letter_bonus {
  padding: 22px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fffdf8;
}

.letter_sheet .letter_bonus-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
}

.letter_bonus-value {
  color: var(--color-text-faint);
}

.letter_bonus h4 {
  margin: 0 0 0.45rem;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
}

.letter_sheet .letter_bonus p:last-child {
  font-size: 1.0625rem;
  line-height: 1.65;
}

.letter_math {
  margin-top: 2.6rem;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: #0f1b2d;
  color: #f3efe7;
}

.letter_sheet .letter_math-title {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e0b655;
}

.letter_math dl {
  margin: 0;
}

.letter_math dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 0.75rem 0;
  border-bottom: 1px solid #2a3b52;
  font-size: 1.0625rem;
}

.letter_math dt {
  color: #c3cbd6;
}

.letter_math dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}

.letter_math .letter_math-total dt {
  color: #f3efe7;
  font-weight: 600;
}

.letter_math .letter_math-total s {
  color: #8c99ad;
  text-decoration-color: #d8695c;
  text-decoration-thickness: 2px;
}

.letter_sheet .letter_math-today {
  margin: 1.2rem 0 0;
  color: #c3cbd6;
}

.letter_sheet .letter_math-today strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #e0b655;
}

/* Booking steps and info (moved from the booking page) ------------------------ */

.letter_booksteps {
  margin-bottom: 2.4rem;
}

.letter_sheet .letter_booksteps p {
  margin: 0.15rem 0 0;
}

.letter_info {
  border-top: 1px solid var(--color-border);
}

.letter_info.detail-block:first-child {
  padding-top: 32px;
}

/* Final close (dark band) ------------------------------------------------------- */

.letter_outcomes {
  display: grid;
  gap: 14px;
  margin: 1.6rem 0 2rem;
}

.letter_outcome {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.letter_outcome--guarantee {
  border-color: var(--color-accent);
  background: rgba(200, 155, 60, 0.08);
}

.letter_outcome-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  padding-top: 0.3rem;
}

.letter_sheet .letter_outcome p {
  margin: 0;
  color: var(--color-text);
}

.letter_scarcity {
  margin-top: 2.2rem;
  padding: 20px 22px;
  border-left: 3px solid var(--color-alert-strong);
  background: rgba(255, 255, 255, 0.04);
}

.letter_sheet .letter_scarcity-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-alert-strong);
}

.letter_unsure {
  text-align: center;
}

.letter_unsure .letter_h3 {
  margin-top: 0;
}

.letter_unsure .letter_actions {
  margin-top: 1.4rem;
}

/* Reveal on scroll (letter.js adds .reveal-ready only when motion is allowed) --- */

.reveal-ready .letter_reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-ready .letter_reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Intro modal (opened on load by letter.js) ------------------------------------ */

body.intro-open {
  overflow: hidden;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

.intro {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text);
  overflow: visible;
}

.intro::backdrop {
  background: rgba(15, 27, 45, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.intro[open] {
  animation: intro-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.intro[open]::backdrop {
  animation: intro-fade 400ms ease both;
}

.intro.is-closing {
  animation: intro-out 380ms ease both;
}

.intro.is-closing::backdrop {
  animation: intro-fade 380ms ease reverse both;
}

@keyframes intro-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}

@keyframes intro-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.intro_card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 6vw, 44px) clamp(22px, 6vw, 44px) clamp(24px, 5vw, 32px);
  background: #fffdf8;
  border-radius: 10px;
  border-top: 4px solid var(--color-accent);
  box-shadow:
    0 30px 80px -20px rgba(15, 27, 45, 0.55),
    0 2px 6px rgba(15, 27, 45, 0.12);
}

.intro_x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-faint);
  font-size: 1.05rem;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.intro_x:hover {
  background: var(--color-bg-panel);
  color: var(--color-text);
}

.intro_eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.intro_title {
  margin: 0 0 0.9rem;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.intro_lede {
  margin: 0 0 1.6rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.intro_steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.intro_steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.intro_num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent-strong);
}

.intro_steps h3 {
  margin: 4px 0 0.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.intro_steps p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.intro_rule {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text);
}

.intro_start {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-text);
  color: #fffdf8;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.intro_start:hover {
  background: #0f1b2d;
  transform: translateY(-1px);
}

.intro_start i {
  color: var(--color-accent-strong);
}

.intro_x:focus-visible,
.intro_start:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 3px;
}

.intro_time {
  margin: 0.9rem 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

.intro_time i {
  margin-right: 4px;
}

/* Small screens ---------------------------------------------------------------- */

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

  .letter_outcome {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .letter_leak,
  .letter_step {
    grid-template-columns: 1fr;
  }

  .letter_leak-icon {
    margin-bottom: 0.7rem;
  }

  .letter_step-index {
    display: block;
    margin-bottom: 0.3rem;
  }

  .letter_actions .btn {
    width: 100%;
    justify-content: center;
  }
}
