/* Prosper Coach Academy funnel. One stylesheet for every page.
   DESIGN.md is the authority: change a token there first, then here.
   World: soft, light, editorial. Off-white ground, large Bodoni headlines
   with one italic accent phrase, full-width color bands between sections,
   warm natural-light photos. Taken from the client's own slide deck. */

/* ---------- faces (self-hosted, see assets/fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodonimoda-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/bodonimoda-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("/assets/fonts/lato-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* deck colors, sampled from the slides */
  --blush: #e4ad95;
  --blue: #859dad;
  --charcoal: #4e4d4b;
  --sage: #92a28c;
  --bg: #f5f4f2;
  --card: #fffcf8;
  --blush-tint: #f5e9e2;
  --blue-tint: #e3e8ed;
  --grey-tint: #e4e4e3;

  /* deepened for text, so headlines and links can be read (DESIGN.md) */
  --blush-deep: #c37858; /* 3.1:1 on the ground: display text only */
  --blush-text: #a45b3b; /* 4.6:1: small text and links */
  --blue-deep: #738ea1;  /* 3.1:1: display text only */
  --blue-text: #587283;  /* 4.6:1: small text and links */
  --blue-band: #7691a3;  /* band fill that carries white display text at 3.3:1 */

  --ink: #3b3a38;
  --ink-soft: #6d6a66;
  --hairline: rgba(78, 77, 75, 0.16);
  --error: #a8322a;

  /* THE HEADLINE SWITCH. One line decides every headline's color.
     Ruled 2026-09-30: Option A, var(--blush-deep). The deck's exact value,
     var(--blush), is too faint for text and stays for fills only. */
  --headline: var(--blush-deep);

  --radius-card: 18px;
  --radius-pill: 999px;
  --gutter: 1.25rem;
  --measure: 40rem;
  --wide: 68rem;
  --section-pad: clamp(3rem, 9vw, 5.5rem);

  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --sans: "Lato", "Avenir Next", "Segoe UI", sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
main {
  flex: 1;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--blue-text);
}
::selection {
  background: var(--blush);
  color: var(--ink);
}
:focus-visible {
  outline: 2.5px solid var(--blue-text);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- type ---------- */
h1,
h2,
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--headline);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 8.5vw, 4rem);
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.12;
}
h1 em,
h2 em,
.display em {
  font-style: italic;
}
h2.blue {
  color: var(--blue-deep);
}
h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  font-weight: 700;
}
.lead {
  font-size: clamp(1.1rem, 3.4vw, 1.3rem);
  line-height: 1.5;
}
.label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.small,
.fine-print {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- layout ---------- */
.masthead {
  padding: 1.25rem var(--gutter) 0;
  text-align: center;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark em {
  font-style: italic;
}
.section {
  padding: var(--section-pad) var(--gutter);
}
.section-inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.section-inner.wide {
  max-width: var(--wide);
}
.center {
  text-align: center;
  align-items: center;
}

/* hero: words first, photo second; side by side from tablet up */
.hero {
  padding: clamp(2rem, 7vw, 4rem) var(--gutter) var(--section-pad);
}
.hero-inner {
  max-width: var(--wide);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}
@media (min-width: 52rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
  }
}

/* ---------- signature: the band ----------
   The deck's divider slides: a full-width field of color, one display line,
   a hairline rule above and below. */
.band {
  padding: clamp(3.25rem, 10vw, 6rem) var(--gutter);
  text-align: center;
  color: #ffffff;
  background: var(--blue-band);
}
.band.blush {
  background: var(--blush);
  color: var(--ink);
}
.band-inner {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem) 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 55%, transparent);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.band h2,
.band .display {
  color: inherit;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.08;
}
.band p {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--blush);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(59, 58, 56, 0.55);
}
.btn:active {
  transform: none;
  box-shadow: none;
}
.btn.dark {
  background: var(--charcoal);
  color: #ffffff;
}
.btn.quiet {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn.block {
  width: 100%;
}
.text-link {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- next-session chip ---------- */
.session {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-card);
  background: var(--blue-tint);
  align-self: flex-start;
}
.center .session {
  align-self: center;
}
.session strong {
  font-size: 1.1rem;
}
.when {
  font-size: 1.15rem;
}

/* ---------- form ---------- */
.form-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--hairline), 0 22px 44px -30px rgba(59, 58, 56, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.field label {
  font-weight: 700;
  font-size: 0.9rem;
}
.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(78, 77, 75, 0.35);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zooming the page on focus */
}
.field input::placeholder {
  color: #8f8c87;
}
.field input:focus-visible {
  outline: 2.5px solid var(--blue-text);
  outline-offset: 1px;
  border-color: var(--blue-text);
}
.field .hint {
  display: none;
  font-size: 0.875rem;
  color: var(--error);
}
.field.is-invalid input {
  border-color: var(--error);
}
.field.is-invalid .hint {
  display: block;
}
.form-error {
  display: none;
  font-size: 0.9rem;
  color: var(--error);
}
.form-error.is-shown {
  display: block;
}

/* ---------- lists and cards ---------- */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.checklist li {
  position: relative;
  padding-left: 1.9rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.32em;
  width: 0.5rem;
  height: 0.95rem;
  border: solid var(--blue-text);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}

/* "What's inside": a colored tag and its description, one row each */
.pillars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pillar {
  display: grid;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--grey-tint);
}
.pillar-tag {
  padding: 0.7rem 1.1rem;
  background: var(--charcoal);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
}
.pillar p {
  padding: 0.9rem 1.1rem 1rem;
}
.pillar.blue {
  background: var(--blue-tint);
}
.pillar.blue .pillar-tag {
  background: var(--blue-band);
}
.pillar.blush {
  background: var(--blush-tint);
}
.pillar.blush .pillar-tag {
  background: var(--blush);
  color: var(--ink);
}
@media (min-width: 36rem) {
  .pillar {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    align-items: stretch;
  }
  .pillar-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-card);
    text-align: center;
  }
  .pillar p {
    padding: 1.1rem 1.4rem;
  }
}

/* then vs now: a founder's story beside her portrait */
.story {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.story-copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}
.story-copy h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.15;
  color: var(--headline);
}
.story-copy h3 em {
  font-style: italic;
}
.story-copy .label {
  font-style: italic;
  letter-spacing: 0.08em;
}
.story-copy ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.1rem;
  list-style: disc;
}
@media (min-width: 44rem) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 3rem;
  }
  .story.flip {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }
  .story.flip .story-copy {
    order: 2;
  }
}

/* testimonial */
.quote {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: 0 0 0 1px var(--hairline);
}
.quote p {
  font-style: italic;
}
.quote cite {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--blue-deep);
}

/* FAQ: native details, no script */
.faq details {
  border-top: 1px solid var(--hairline);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--blush-text);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  padding: 0 0 1.15rem;
}

/* photos: square corners, the way the deck frames them */
.photo img {
  width: 100%;
  background: var(--grey-tint);
}
.photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ---------- landing page ---------- */
/* Phone: words, then the form, then the photo. From tablet width the form
   sits beside the words and stays in view while the hero scrolls. */
.hero-inner {
  grid-template-areas:
    "copy"
    "form"
    "photo";
}
.hero-copy {
  grid-area: copy;
}
.hero-form {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  scroll-margin-top: 1rem;
}
.hero-photo {
  grid-area: photo;
}
@media (min-width: 52rem) {
  .hero-inner {
    grid-template-areas:
      "copy form"
      "photo form";
    align-items: start;
  }
  .hero-form {
    position: sticky;
    top: 1.25rem;
  }
}
.form-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}
.form-micro {
  font-size: 0.9rem;
  text-align: center;
  color: var(--ink-soft);
}
.form-card .fine-print {
  font-size: 0.78rem;
  line-height: 1.5;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
  box-shadow: none;
}
.section.tint {
  background: var(--blush-tint);
}
.section.tight {
  padding-top: 0;
}

/* the doubts, in her own voice */
.doubts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.doubts li {
  padding: 0.55rem 0 0.55rem 1rem;
  border-left: 3px solid var(--blush);
  font-style: italic;
}

/* how coaching works: numbered in the display face */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 0 1.2rem 3.4rem;
  border-top: 1px solid var(--hairline);
}
.steps li:last-child {
  border-bottom: 1px solid var(--hairline);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.2rem;
  top: 1rem;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--headline);
}
.steps h3 {
  margin-bottom: 0.3rem;
}

.hosts {
  gap: clamp(2.5rem, 7vw, 4rem);
}
.hosts-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

/* ---------- confirmation pages ---------- */
.confirm {
  padding-top: clamp(2rem, 7vw, 4rem);
}
.confirm .section-inner {
  gap: 1.1rem;
}
.calendar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.signoff {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  color: var(--blue-deep);
}
.signoff span {
  display: block;
  font-size: 0.6em;
}
.narrow-photo {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

/* ---------- phone field (intl-tel-input, restyled to match .field input) ----------
   The library's own stylesheet is added by assets/phone-field.js BEFORE this
   file, so these rules win on source order. No flag images are used. */
:root {
  --iti-border-color: rgba(78, 77, 75, 0.35);
  --iti-border-width: 1.5px;
  --iti-hover-color: var(--blue-tint);
  --iti-country-selector-bg: #ffffff;
  --iti-icon-color: var(--ink-soft);
}
.iti {
  width: 100%;
}
.iti__country-container .iti__selected-country {
  border-radius: 12px 0 0 12px;
}
.iti__selected-dial-code {
  color: var(--ink);
}
.iti__dropdown-content {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 22px 44px -24px rgba(59, 58, 56, 0.55);
  color: var(--ink);
  overflow: hidden;
}
.iti__country-list {
  background: var(--card);
  color: var(--ink);
}
.iti__country.iti__highlight,
.iti__country:hover {
  background: var(--blue-tint);
}
.iti__dial-code {
  color: var(--ink-soft);
}
.field .iti__search-input,
.iti__search-input {
  min-height: 2.9rem;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field .iti__search-input:focus-visible {
  outline-offset: -2px;
}

/* ---------- review-mode pieces (gone by launch) ---------- */
.placeholder {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem var(--gutter) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.placeholder .note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.placeholder .actions {
  margin-top: 0.75rem;
}
.slot {
  margin-top: 0.75rem;
  padding: 1.5rem 1.25rem;
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius-card);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */
.footer {
  padding: 1.75rem var(--gutter) 2.25rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer a {
  color: inherit;
}
.footer .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
