/* ============================================================
   studio teneo — ebook funnel
   Palette + Public Sans taken from "The Teneo Method".
   Flat editorial layout: no cards, no panels, no boxes.
   Orange is an accent only.
   ============================================================ */

:root {
  /* brand palette */
  --orange: #FC5000;
  --cream: #FFFCF2;          /* brand paper — kept for the book page itself */
  --paper: #EFF1F1;          /* page ground: cool neutral grey */
  --stone: #C4BDB3;
  --ink: #2D2D2D;
  --ink-soft: #454545;

  /* derived from the palette */
  --orange-deep: #D84400;                 /* button hover */
  --orange-25: rgba(252, 80, 0, .30);     /* the low-opacity accent */
  --orange-tint: rgba(252, 80, 0, .27);   /* the real orange, 27% over the ground */
  --ink-mute: #7B7E7E;                    /* neutral grey for small text */
  --line: #DFE2E2;                        /* soft hairline on the cool ground */
  --white: #FFFFFF;

  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(45, 45, 45, .05), 0 6px 18px rgba(45, 45, 45, .05);
  --shadow-page: 0 24px 60px rgba(45, 45, 45, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }

/* ---------- rhythm ---------- */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.sec { padding: 74px 0; }
.sec + .sec > .wrap { border-top: 1px solid var(--line); padding-top: 74px; }
/* the dark section is its own divider — no hairline above or after it */
.sec + .sec--ink > .wrap,
.sec--ink + .sec > .wrap { border-top: 0; padding-top: 0; }

.bar { padding: 30px 0 0; }
.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--ink);
  text-decoration: none;
}

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
h1 {
  font-weight: 900;                 /* Public Sans Black */
  font-size: clamp(2.15rem, 4.4vw, 4.1rem);
  line-height: .99;
  letter-spacing: -.038em;          /* tight, editorial */
}
h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.08; }
h3 { font-weight: 700; font-size: 1.05rem; }
h1 em, h2 em { font-style: italic; color: var(--orange); }   /* the guide's own accent */

/* ---------- line breaking ----------
   `balance` evens out short blocks (headings, list items) so no single word
   is left hanging; `pretty` keeps longer paragraphs from ending on an orphan.
   Both degrade to normal wrapping in browsers that don't support them. */
h1, h2, h3 { text-wrap: balance; }

/* the rules under headings are gone, so restore that breathing room */
h1 + *, h2 + * { margin-top: 28px; }
.part li > span,
.stat__lbl,
.optin__head { text-wrap: balance; }
p, .lead, li { text-wrap: pretty; }

/* each sentence starts on its own line, and wraps naturally within itself */
.lines > span { display: block; }

.lead { margin: 24px 0 0; font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; }
.muted { color: var(--ink-mute); }
.small { font-size: .88rem; }

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow em { font-style: normal; color: var(--orange); }

/* small chip, no box — just a dot and text */
.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* ---------- hero ---------- */
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 80px;
  align-items: center;
}
.hero__copy { min-width: 0; }

.byline {
  margin: 20px 0 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-mute);
  max-width: 52ch;
}
.byline strong { color: var(--ink); font-weight: 700; }

/* ---------- the ask ---------- */
.optin { margin-top: 32px; max-width: 430px; }
.optin__head { margin: 0 0 14px; font-weight: 800; font-size: 1.05rem; color: var(--ink); }

.field { position: relative; margin-bottom: 10px; }
.field__icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-mute);
  pointer-events: none;
}
.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 15px 18px 15px 46px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--pill);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--ink-mute); }
.input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-25);
}

.btn {
  font: inherit;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .4px;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  border-radius: var(--pill);
  padding: 15px 26px;
  background: var(--orange);
  color: var(--white);
  transition: background .15s ease, transform .05s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.btn:hover { background: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn--block { display: block; width: 100%; }
.btn--quiet { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--quiet:hover { background: var(--ink); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; }

.optin__congruence { margin: 14px 2px 0; font-size: .84rem; font-weight: 600; color: var(--ink-soft); }
.optin__note { margin: 8px 2px 0; font-size: .78rem; color: var(--ink-mute); }
.formmsg { margin: 10px 2px 0; font-size: .85rem; font-weight: 600; }
.formmsg--err { color: #b3200f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* inline capture, used on the dark section */
.inline-optin {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--pill);
  padding: 6px 6px 6px 0;
  max-width: 460px;
  margin: 0 auto;
}
.inline-optin .field { flex: 1 1 auto; margin: 0; min-width: 0; }
.inline-optin .input { box-shadow: none; padding-right: 8px; }
.inline-optin .input:focus { box-shadow: none; }
.inline-optin .btn { padding: 13px 24px; font-size: .9rem; }

/* the 4-up contents row collapses before the rest of the page does */
@media (max-width: 1180px) { .parts { grid-template-columns: 1fr 1fr; gap: 34px 48px; } }

/* ============================================================
   the ebook preview — chapter 02, as it appears in the guide
   ============================================================ */
.preview { display: flex; justify-content: center; }

/* a stack of real pages, seen face on, with two peeking out behind */
.stack {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 2482 / 3510;
}
.page {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
}
.page--back  { transform: rotate(-6deg) translate(-5%, -2%);  box-shadow: 0 10px 26px rgba(45,45,45,.13); }
.page--mid   { transform: rotate(4deg)  translate(4.5%, -1%);  box-shadow: 0 12px 30px rgba(45,45,45,.13); }
.page--front { transform: none; box-shadow: var(--shadow-page); }

/* the sheets behind sit back: the cream stock shows through their photos,
   so they read as paper rather than as grey slabs */
.page--back .page__photo { opacity: .42; }
.page--mid  .page__photo { opacity: .55; }
.page--back .page__num,   .page--mid .page__num   { opacity: .55; }
.page--back .page__title, .page--mid .page__title { opacity: .5; }
.page__num {
  position: absolute;
  top: 15.8%; left: 14.3%;
  margin: 0;
  font-weight: 800;
  font-size: 8.4rem;
  line-height: .8;
  letter-spacing: -.04em;
  color: var(--orange-25);
  user-select: none;
}
.page__title {
  position: absolute;
  top: 26.5%; left: 14.3%; right: 10%;
  margin: 0;
  font-weight: 800;
  font-style: italic;
  font-size: 1.42rem;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--orange);
}
/* Placement read straight off the PDF's image matrix for this page:
   3385.6506 0 0 -5030.0205 -15.2440681 4551.8389 cm, in a 2482 x 3510 page box.
   The page crops the right 26% (head, arms) and the bottom 21% (bare floor). */
.page__photo {
  position: absolute;
  max-width: none;
  object-fit: fill;
  filter: grayscale(1);
}
/* chapter 02 — matrix from PDF page 5 */
.page--front .page__photo { left:  -0.61%; top: -13.62%; width: 136.41%; height: 143.31%; }
/* chapter 03 — matrix from PDF page 7 */
.page--mid .page__photo   { left: -75.67%; top:  -0.57%; width: 181.63%; height: 190.69%; }
/* chapter 04 — matrix from PDF page 9 */
.page--back .page__photo  { left: -48.82%; top: -10.61%; width: 148.75%; height: 156.31%; }

/* ---------- contents list ---------- */
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 44px; margin: 46px 0 0; }
.part { margin: 0; }
.part__name {
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--orange);
}
.part ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.part li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}
.part li::before {
  content: counter(ch, decimal-leading-zero);
  counter-increment: ch;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-mute);
  opacity: .55;
}
.parts { counter-reset: ch; }

/* ---------- credentials ---------- */
/* flex, not equal-width columns — equal columns make the gaps look uneven
   because the three labels are very different lengths */
.stats { display: flex; flex-wrap: wrap; gap: 64px; margin-top: 34px; }
.stat__num {
  display: block;
  font-weight: 800;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat--hero .stat__num { color: var(--orange); }
.stat__lbl {
  display: block;
  margin-top: 7px;
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink-mute);
}

/* ---------- dark closing section, full bleed ---------- */
.sec--ink { background: var(--ink); color: var(--stone); text-align: center; }
.sec--ink h2, .sec--ink h3 { color: var(--cream); }
.sec--ink .eyebrow { color: var(--stone); }
.sec--ink p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.sec--ink .optin__note { color: var(--stone); opacity: .75; }

/* ---------- tinted accent section: orange at 25% ---------- */
.sec--tint {
  position: relative;
  overflow: hidden;
  /* the tint fades up into the page ground instead of butting against it */
  background: linear-gradient(180deg,
    rgba(252, 80, 0, 0)    0%,
    rgba(252, 80, 0, .05) 18%,
    rgba(252, 80, 0, .13) 34%,
    rgba(252, 80, 0, .21) 50%,
    var(--orange-tint)    68%,
    var(--orange-tint)   100%);
  padding: 120px 0 64px;
}
/* one photo, full width, dropped right back so the type stays the subject */
.sec--tint::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("backdrop.jpg") 52% 56% / cover no-repeat;
  filter: grayscale(1) contrast(1.04);
  opacity: .18;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 72%);
          mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 72%);
}
/* scrim across the text side so the copy never sits on a dark patch */
.sec--tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    #F3C6B0 0%,
    rgba(243, 198, 176, .9) 34%,
    rgba(243, 198, 176, .3) 62%,
    rgba(243, 198, 176, 0) 84%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 72%);
          mask-image: linear-gradient(180deg, transparent 0%, transparent 22%, #000 72%);
}
@media (max-width: 860px) {
  .sec--tint::before { background-position: 52% 52%; opacity: .15; }
  .sec--tint::after {
    background: linear-gradient(180deg,
      rgba(243, 198, 176, .94) 0%,
      rgba(243, 198, 176, .88) 60%,
      rgba(243, 198, 176, .7) 100%);
  }
}
.sec--tint > .wrap { position: relative; z-index: 1; }
.sec--tint > .wrap { border-top: 0; padding-top: 0; }
.sec + .sec--tint > .wrap { border-top: 0; padding-top: 0; }
.sec--tint + .sec > .wrap { border-top: 0; padding-top: 0; }
.sec--tint .stat__lbl,
.sec--tint .eyebrow { color: var(--ink-soft); opacity: .8; }
.sec--tint .muted { color: var(--ink-soft); }
.sec--tint .muted + .muted { margin-top: 16px; }

/* ---------- thank-you ---------- */
.ty { text-align: center; }
.ty .lead, .ty p { margin-left: auto; margin-right: auto; }
/* hierarchy under the thank-you headline: quiet admin note, then the pitch */
.ty__note {
  margin: 16px auto 0;
  max-width: 54ch;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
/* no cap: 80ch landed within a pixel of the text width, so any font-metric
   difference tipped it onto two lines. The .wrap padding constrains it. */
.ty__pitch { margin-top: 32px; max-width: none; }
.ty .lead + .lead { margin-top: 18px; }
.ty .tag { justify-content: center; }
.ty__actions { margin: 34px auto 0; max-width: 330px; display: grid; gap: 12px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 44px; }
.duo p, .trio p { margin: .5rem 0 0; }

/* ---------- booking ---------- */
.calembed { width: 100%; min-height: 640px; overflow: auto; }
.calembed--empty { min-height: 0; }
.calembed__fallback { margin: 0; }
.calembed__fallback[hidden] { display: none; }

@media (max-width: 980px) {
  .calembed { min-height: 560px; }
}

/* ---------- footer ---------- */
.foot { padding: 26px 0 46px; color: var(--ink-mute); font-size: .82rem; }
.foot > .wrap { border-top: 1px solid var(--line); padding-top: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sec { padding: 54px 0; }
  .sec + .sec > .wrap { padding-top: 54px; }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { order: -1; }
  .optin { max-width: none; }
  .parts, .duo, .trio { grid-template-columns: 1fr; gap: 30px; }
  .stats { gap: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .sec { padding: 42px 0; }
  .sec + .sec > .wrap { padding-top: 42px; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.25rem); }
  .stack { max-width: 268px; }
  .page__num { font-size: 6rem; }
  .page__title { font-size: 1.05rem; }
  .stats { flex-direction: column; gap: 26px; }
  .inline-optin { flex-direction: column; align-items: stretch; border-radius: 18px; padding: 10px; gap: 10px; }
  .inline-optin .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page--back, .page--mid { transform: none; opacity: 0; }
}

/* ============================================================
   EDITORIAL LAYER
   Magazine furniture: a masthead rail, section indices, column
   rules, a photo backdrop, a drop cap and a folio.
   ============================================================ */

/* ---------- masthead rail ---------- */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.masthead__meta {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.masthead__meta span { color: var(--stone); padding: 0 4px; }
@media (max-width: 720px) {
  .masthead { flex-direction: column; align-items: flex-start; gap: 10px; }
  .masthead__meta { white-space: normal; }
}

/* ---------- column rules through the contents ---------- */
.parts { position: relative; }
.part { position: relative; padding-left: 26px; }
.part::before {
  content: "";
  position: absolute;
  left: 0; top: 2px; bottom: 2px;
  width: 1px;
  background: var(--stone);
  opacity: .75;
}
@media (max-width: 980px) {
  .part { padding-left: 20px; }
}

/* ---------- folio ---------- */
.folio {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
@media (max-width: 560px) { .folio { display: none; } }

/* the tinted band sets its own padding — the generic .sec breakpoints below
   would otherwise win on source order and drop the heading into the fade */
@media (max-width: 980px) { .sec--tint { padding: 92px 0 54px; } }
@media (max-width: 560px) { .sec--tint { padding: 72px 0 44px; } }
