/* The Eleven Octave Method — Eleven Octaves LLC */

:root {
  /* Dark warm palette, sampled from the founder portrait */
  --bg: oklch(0.168 0.008 62);
  --bg-2: oklch(0.213 0.010 62);
  --bg-3: oklch(0.258 0.011 62);
  --bone: oklch(0.949 0.008 85);
  --bone-2: oklch(0.795 0.009 84);
  --bone-3: oklch(0.655 0.010 82);
  --brass: oklch(0.745 0.112 72);
  --brass-2: oklch(0.665 0.122 68);
  --rule: oklch(0.949 0.008 85 / 0.14);
  --rule-soft: oklch(0.949 0.008 85 / 0.07);
  --shadow: 0 24px 60px -28px oklch(0 0 0 / 0.75);

  --font-display: 'Zodiak', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1.0625rem;
  --text-lg: 1.2rem;
  --text-xl: 1.55rem;
  --text-2xl: clamp(1.85rem, 1.2rem + 2.4vw, 2.8rem);
  --text-hero: clamp(2.2rem, 1.1rem + 5.2vw, 4.1rem);

  --measure: 34rem;
  --wide: 70rem;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --bar-h: 4.4rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.09; margin: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brass); text-decoration: none; border-bottom: 1px solid oklch(0.745 0.112 72 / 0.32); }
a:hover { border-bottom-color: var(--brass); }

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

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--bone); color: var(--bg); padding: 0.6rem 1rem; border: 0; border-radius: var(--radius-sm); }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.35rem; }
.wrap.narrow { max-width: 44rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule-soft); background: var(--bg); position: relative; z-index: 20; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--bone); border: 0; }
.brand svg { color: var(--brass); flex: none; }
.brand__mark { width: 2.05rem; height: 2.05rem; flex: none; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-size: 1.06rem; line-height: 1.15; display: flex; flex-direction: column; }
.brand__name small { font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); margin-top: 0.22rem; }
.head-link { font-size: var(--text-sm); color: var(--bone-2); border: 0; }
.head-link:hover { color: var(--brass); }

/* Sections */
.s-mid { padding: clamp(3.6rem, 7vw, 6.4rem) 0; border-top: 1px solid var(--rule-soft); }
.s-tight { padding: clamp(2.6rem, 4vw, 3.6rem) 0; }
.s-wide { padding: clamp(4.4rem, 9vw, 8rem) 0; }
.s-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.s-head h2 { font-size: var(--text-2xl); margin-bottom: 1.1rem; }
.s-head p { color: var(--bone-2); max-width: var(--measure); }

.eyebrow { font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); margin: 0 0 1.1rem; font-weight: 500; }
.eyebrow--brass { color: var(--brass); }

/* Hero */
.hero { padding: clamp(2.8rem, 6vw, 5.4rem) 0 clamp(2.6rem, 5vw, 4rem); }
.hero__grid { display: grid; gap: clamp(2.2rem, 4vw, 3.4rem); align-items: center; }
.hero h1 { font-size: var(--text-hero); margin-bottom: 1.5rem; max-width: 22ch; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero__lede { font-size: var(--text-lg); color: var(--bone-2); max-width: 36rem; line-height: 1.55; }
.hero__origin { margin: 1.4rem 0 0; padding-left: 0.95rem; border-left: 2px solid var(--brass); font-size: var(--text-sm); color: var(--bone-3); line-height: 1.55; max-width: 32rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.8rem 0 0; font-size: var(--text-sm); color: var(--bone-3); }
.hero__meta span { position: relative; padding-left: 0.9rem; }
.hero__meta span::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }

.portrait { position: relative; }
.portrait img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); max-height: 20rem; object-fit: cover; object-position: 50% 18%; }
.portrait figcaption { margin-top: 0.85rem; font-size: var(--text-xs); color: var(--bone-3); line-height: 1.5; }
.portrait figcaption b { color: var(--bone-2); font-weight: 500; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--brass); color: oklch(0.16 0.008 60);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  border: 1px solid var(--brass); border-radius: var(--radius-sm);
  transition: background 0.18s ease, transform 0.18s ease;
  text-align: center;
}
.btn:hover { background: oklch(0.8 0.108 74); border-color: oklch(0.8 0.108 74); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--rule); font-weight: 500; }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--bone-3); }
.btn--block { width: 100%; margin-top: auto; }
.offer__fine + * { margin-top: 0; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-note { font-size: var(--text-sm); color: var(--bone-3); }

/* Qualifier list */
.qualify { display: grid; gap: 1.6rem; }
.qualify__col { background: var(--bg-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-md); padding: 1.7rem 1.6rem; }
.qualify__col h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.qualify__col ul { list-style: none; margin: 0; padding: 0; }
.qualify__col li { position: relative; padding-left: 1.6rem; margin-bottom: 0.85rem; color: var(--bone-2); font-size: var(--text-sm); line-height: 1.55; }
.qualify__col li:last-child { margin-bottom: 0; }
.qualify__col li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.72rem; height: 2px; background: var(--brass); }
.qualify__col--no li::before { background: var(--bone-3); }

/* Steps */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.1rem; padding: 1.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.step:last-child { border-bottom: 0; }
.step__n { font-family: var(--font-display); font-size: 1.35rem; color: var(--brass); line-height: 1.2; }
.step h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }
.step p { color: var(--bone-2); max-width: var(--measure); margin: 0; }

/* Offers */
.offers { display: grid; gap: 1.5rem; }
.offer { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-md); padding: 1.9rem 1.7rem; }
.offer--lead { border-color: oklch(0.745 0.112 72 / 0.42); background: linear-gradient(180deg, oklch(0.745 0.112 72 / 0.07), transparent 45%), var(--bg-2); }
.offer__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.offer__top h3 { font-size: 1.42rem; }
.offer__price { font-family: var(--font-display); font-size: 2rem; color: var(--brass); line-height: 1; }
.offer__tag { font-size: var(--text-xs); letter-spacing: 0.13em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.85rem; font-weight: 500; }
.offer__fine { font-size: var(--text-xs); color: var(--bone-3); text-align: center; margin: 0.75rem 0 0; }
.offer__meta { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-3); margin: 0.75rem 0 1.35rem; }
.offer ul { list-style: none; margin: 0 0 1.35rem; padding: 0; }
.offer li { position: relative; padding-left: 1.6rem; margin-bottom: 0.7rem; color: var(--bone); font-size: var(--text-sm); line-height: 1.55; }
.offer li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.72rem; height: 2px; background: var(--brass); }
.offer > p { color: var(--bone-2); font-size: var(--text-sm); margin-bottom: 1.6rem; }

.muted { color: var(--bone-3); font-size: var(--text-sm); }
.honest { border-left: 2px solid var(--brass); padding: 0.15rem 0 0.15rem 1.15rem; margin-top: 1.8rem; }
.honest p { color: var(--bone-2); font-size: var(--text-sm); }
.honest strong { color: var(--bone); font-weight: 500; }

/* Scope */
.scope__grid { display: grid; gap: 1.6rem; }
.scope__block { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule-soft); }
.scope__block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.scope__block h3 { font-size: 1.18rem; margin-bottom: 0.7rem; }
.scope__block p { color: var(--bone-2); font-size: var(--text-sm); margin: 0; }
.crisis { background: var(--bg-3); border: 1px solid var(--rule-soft); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; }
.crisis p { font-size: var(--text-sm); color: var(--bone); margin: 0; }
.crisis strong { color: var(--brass); font-weight: 500; }

/* Story */
.story__grid { display: grid; gap: clamp(2rem, 4vw, 3.4rem); align-items: start; }
.story__body h2 { font-size: var(--text-2xl); margin-bottom: 1.35rem; }
.story__body p { color: var(--bone-2); }
.story__body p strong { color: var(--bone); font-weight: 500; }
.story__photo img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pull { font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.4vw, 1.75rem); line-height: 1.3; color: var(--bone); border-left: 2px solid var(--brass); padding-left: 1.25rem; margin: 2rem 0; }

.facts { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.facts li { display: grid; gap: 0.2rem 1.2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--rule-soft); }
.facts b { font-size: var(--text-xs); letter-spacing: 0.11em; text-transform: uppercase; color: var(--bone-3); font-weight: 500; }
.facts span { color: var(--bone-2); font-size: var(--text-sm); }

/* FAQ */
.faq { border-top: 1px solid var(--rule-soft); }
.faq details { border-bottom: 1px solid var(--rule-soft); }
.faq summary { cursor: pointer; list-style: none; padding: 1.25rem 2.4rem 1.25rem 0; font-family: var(--font-display); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.15rem; font-family: var(--font-body); font-size: 1.4rem; color: var(--brass); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.4rem; }
.faq details p { color: var(--bone-2); font-size: var(--text-sm); max-width: var(--measure); }

/* Close */
.close { text-align: center; border-top: 1px solid var(--rule-soft); background: linear-gradient(180deg, oklch(0.745 0.112 72 / 0.05), transparent 60%); }
.close h2 { font-size: var(--text-2xl); max-width: 32ch; margin: 0 auto 1.2rem; }
.close p { color: var(--bone-2); max-width: 40rem; margin: 0 auto; }
.close .btn-row { justify-content: center; flex-direction: column; }

.close__mark { width: clamp(5.5rem, 11vw, 8rem); height: auto; margin: 0 auto 1.9rem; opacity: 0.92; }

/* Sticky action bar */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: oklch(0.132 0.006 60 / 0.96);
  border-top: 1px solid var(--rule);
  backdrop-filter: blur(10px);
  padding: 0.7rem 1.1rem;
  transform: translateY(120%);
  transition: transform 0.28s ease;
}
.cta-bar.is-on { transform: translateY(0); }
.cta-bar__in { max-width: var(--wide); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-bar__txt { font-size: var(--text-sm); color: var(--bone-2); line-height: 1.35; }
.cta-bar__txt b { display: block; color: var(--bone); font-weight: 500; font-family: var(--font-display); font-size: 1.02rem; }
.cta-bar .btn { min-height: 2.9rem; padding: 0 1.15rem; font-size: 0.94rem; flex: none; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule-soft); padding: 2.6rem 0 calc(2.6rem + var(--bar-h)); }
.site-foot__in { display: grid; gap: 1.6rem; }
.site-foot p { font-size: var(--text-sm); color: var(--bone-3); }
.site-foot strong { color: var(--bone-2); font-weight: 500; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; }
.site-foot nav a { font-size: var(--text-sm); color: var(--bone-2); border: 0; }
.site-foot nav a:hover { color: var(--brass); }

/* Legal pages */
.legal { padding: clamp(2.6rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: var(--text-2xl); margin-bottom: 0.9rem; }
.legal__date { font-size: var(--text-sm); color: var(--bone-3); margin-bottom: 2.2rem; }
.legal__toc { background: var(--bg-2); border: 1px solid var(--rule-soft); border-radius: var(--radius-md); padding: 1.2rem 1.35rem; margin-bottom: 2.6rem; }
.legal__toc p { font-size: var(--text-xs); letter-spacing: 0.11em; text-transform: uppercase; color: var(--bone-3); margin-bottom: 0.7rem; }
.legal__toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 1.6rem; }
.legal__toc li { font-size: var(--text-sm); margin-bottom: 0.35rem; break-inside: avoid; }
.legal h2 { font-size: 1.32rem; margin: 2.6rem 0 0.9rem; scroll-margin-top: 1.5rem; }
.legal p, .legal li { color: var(--bone-2); }
.legal p { max-width: 40rem; }
.legal ul, .legal ol.body { max-width: 40rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal strong { color: var(--bone); font-weight: 500; }

/* Three-up pricing: price sits under the name so long product names never
   collide with the number at any width. */
.offers--three .offer__top { display: block; }
.offers--three .offer__top h3 { font-size: 1.28rem; line-height: 1.2; }
.offers--three .offer__price { margin-top: 0.45rem; }

/* ---- Contact capture ---- */
.capture { border-top: 1px solid var(--line); }
.form { margin-top: 2.2rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem 1.5rem; }
.form__row { margin-bottom: 1.15rem; }
.form__row label { display: block; font-size: var(--text-sm); color: var(--bone); font-weight: 500; margin-bottom: 0.45rem; }
.form__opt, .form__req { font-weight: 400; color: var(--bone-3); font-size: 0.82rem; text-transform: none; letter-spacing: 0; }
.form__req { color: var(--brass-2); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; padding: 0.78rem 0.9rem; font: inherit; font-size: 0.98rem; color: var(--bone);
  background: var(--bg); border: 1px solid var(--line); border-radius: 3px; transition: border-color 0.15s ease;
}
.form textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; display: block; }
.form input::placeholder, .form textarea::placeholder { color: var(--bone-3); opacity: 0.75; line-height: 1.5; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brass) 22%, transparent); }
.form__hint { margin-top: 0.5rem; font-size: 0.8rem; color: var(--bone-3); }
.consent { margin: 1.5rem 0 1.6rem; display: grid; gap: 1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; cursor: pointer; }
.check input { margin: 0.1rem 0 0; width: 1.35rem; height: 1.35rem; accent-color: var(--brass); flex: none; }
.check span { font-size: 0.86rem; line-height: 1.5; color: var(--bone-2); }
.check b { color: var(--bone); font-weight: 500; }
.check a { color: var(--brass-2); }
.form__fine { margin-top: 1rem; font-size: 0.82rem; line-height: 1.5; color: var(--bone-3); }
.form__msg:empty { display: none; }
.form__msg { margin-top: 1rem; font-size: 0.88rem; line-height: 1.5; color: var(--brass-2); border-left: 2px solid var(--brass); padding-left: 0.85rem; }
.form__msg.is-bad { color: var(--bone-2); border-left-color: var(--bone-3); }

@media (min-width: 640px) {
  .offers { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .form { padding: 2.2rem 2rem; }
  .offer:not(:has(.offer__tag))::before { content: ""; display: block; height: 2.1rem; }
  .qualify { grid-template-columns: 1fr 1fr; }
  .facts li { grid-template-columns: 8.5rem 1fr; align-items: baseline; }
  .close .btn-row { flex-direction: row; }
  .site-foot__in { grid-template-columns: 1fr auto; align-items: start; }
}

@media (min-width: 640px) and (max-width: 979px) {
  .offers--three .offer--lead { grid-column: 1 / -1; }
}

/* Tablets and large phones in landscape: face and promise share the first screen
   instead of the portrait pushing the headline below the fold. */
@media (min-width: 700px) and (max-width: 899px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .hero__copy { order: -1; }
  .hero h1 { font-size: clamp(2.1rem, 5.2vw, 2.9rem); }
  .portrait img { max-height: 25rem; }
}

/* Touch targets and minimum legible type on phones. */
@media (max-width: 899px) {
  /* A square portrait at full column width eats the whole screen before the
     story starts, so crop it to a landscape band above the text. */
  .story__photo img { max-height: 21rem; object-fit: cover; object-position: 50% 16%; }
  .head-link { padding: 0.7rem 0; }
  .site-foot nav { gap: 0.2rem 1.5rem; }
  .site-foot nav a { padding: 0.6rem 0; }
  .brand__name small { font-size: 0.75rem; letter-spacing: 0.1em; }
  .check { gap: 0.8rem; }
  .check input { margin-top: 0.05rem; }
}

/* Phones: the promise gets the first screen, the portrait sits directly under it.
   A full-height portrait above the headline pushed the offer off the fold. */
@media (max-width: 699px) {
  .hero__copy { order: -1; }
  .hero__grid { gap: 2rem; }
  .portrait img { max-height: 17rem; object-position: 50% 12%; }
  .hero__meta { margin-top: 1.4rem; gap: 0.45rem 1.2rem; }
  .hero h1 { font-size: clamp(2rem, 9.2vw, 2.6rem); }
}

@media (min-width: 980px) {
  .offers--three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .offers--three .offer { padding: 1.9rem 1.5rem; display: flex; flex-direction: column; }
  .offers--three .offer li { font-size: 0.87rem; }
  .offers--three .offer__top h3 { font-size: 1.24rem; }
  .offers--three .offer__meta { margin-bottom: 1.4rem; }
  /* Buttons line up along the bottom regardless of how long the copy runs. */
  .offers--three .offer .btn { margin-top: auto; }
  /* Equal footer height keeps the three buttons on one line. */
  .offers--three .offer__fine { min-height: 2.9em; }
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr); }
  .hero__copy { order: -1; }
  .portrait img { max-height: none; object-fit: fill; }
  .scope__grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .story__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .story__photo { position: sticky; top: 2.5rem; }
  .step { grid-template-columns: 4.5rem 1fr; gap: 1.6rem; }
}

@media (max-width: 560px) {
  .cta-bar__in { gap: 0.75rem; }
  .cta-bar__txt b { font-size: 0.95rem; }
  .cta-bar__txt span { display: none; }
  .legal__toc ol { columns: 1; }
}

/* ==========================================================================
   OFFER BUTTON — AWAITING CONFIGURATION
   An offer whose booking or checkout link is not set yet. It stays readable and
   keeps its shape, but reads as clearly not-yet-open rather than looking like a
   working button that does nothing. main.js redirects the click to the contact
   form and explains why.
   ========================================================================== */
.btn.is-pending {
  opacity: 0.62;
  cursor: not-allowed;
  border-style: dashed;
}
.btn.is-pending:hover,
.btn.is-pending:focus-visible {
  opacity: 0.78;
  transform: none;
}

/* Bot-protection widget, only present once a Turnstile site key is configured. */
.form__turnstile {
  margin: 0.35rem 0 1.15rem;
  min-height: 65px;
}
