/* Elkhorn Growth: round 3 (FABLE-ROUND3-PLAN.md + GUSTAVO-FIXES-2026-11-23.md), built in place in v2.
   Loaded last on every page. Transforms and opacity only for motion; loops run only on screen and under html.has-motion. */

/* ================= Header (item 8): clear over the hero, then brand-green glass ================= */
.bar {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .4s, border-color .4s, backdrop-filter .4s, -webkit-backdrop-filter .4s;
}
.bar.is-scrolled {
  background: rgba(10, 56, 47, .78); border-bottom-color: rgba(249, 244, 234, .10);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav a { opacity: .92; }
@media (max-width: 960px) {
  /* Mobile header matches desktop: clear over the hero (rules above). Do not force a solid
     brand-green bar — that created a visible band and edge against the darker hero. */
  .nav { background: rgba(8, 43, 36, .98); }
  /* Hero runs up under the clear bar, same treatment as the 961px+ rule below. */
  .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(40px + var(--header-h)); }
}
@media (max-width: 760px) {
  .hero { padding-top: calc(44px + var(--header-h)); }
}
/* Over cream the cream bar still wins (same rules as color.css, restated after the green ones) */
body.nav-on-cream .bar { background: rgba(249, 244, 234, .9); border-bottom-color: rgba(10, 56, 47, .12); }
@media (max-width: 960px) {
  body.nav-on-cream .bar { background: rgba(249, 244, 234, .96); }
  body.nav-on-cream .nav { background: rgba(249, 244, 234, .98); }
}
/* Desktop: the hero runs up under the clear bar. The hero's content centre moves down by half the bar height,
   so the mark mask's vertical stops move by the same 34 px (761–960 px keeps the old stops). */
@media (min-width: 961px) {
  .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(56px + var(--header-h)); min-height: calc(100svh - 176px + var(--header-h)); }
  .hero .mark-stage {
    -webkit-mask-image:
      linear-gradient(90deg, transparent calc(50% + 33.5vw), #000 calc(50% + 38.5vw)),
      linear-gradient(180deg, transparent calc(50% + 10.5vw - 70px), #000 calc(50% + 10.5vw - 22px)),
      linear-gradient(90deg, transparent calc(50% + 280px), #000 calc(50% + 350px));
            mask-image:
      linear-gradient(90deg, transparent calc(50% + 33.5vw), #000 calc(50% + 38.5vw)),
      linear-gradient(180deg, transparent calc(50% + 10.5vw - 70px), #000 calc(50% + 10.5vw - 22px)),
      linear-gradient(90deg, transparent calc(50% + 280px), #000 calc(50% + 350px));
  }
}

/* ================= Sub-pages (FAQ, Privacy, Terms) ================= */
.page-title { font: 500 clamp(36px, 4.6vw, 60px)/1.04 var(--font-ui); letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.page-section { padding-top: 72px; min-height: 60vh; }
.subpage .page-section h1 + p.fine { margin-top: 14px; }

/* ================= Plan card footers (item 1): fit line under the hairline, button pinned to the bottom ================= */
.plan-foot { display: flex; flex-direction: column; gap: 14px; justify-content: normal; }
.plan-foot .fit { margin: 0; }
.plan-foot .pill { margin-top: auto; }
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 961px) {
    .plan-body { flex: 1 1 auto; }
    .plan-foot { min-height: 156px; }
  }
}

/* ================= FX 2: sheen and arrow on Ember booking buttons (hover / keyboard focus, once, no loop) ================= */
.pill.ember { position: relative; overflow: hidden; }
.pill.ember::after {
  content: ""; position: absolute; top: -2px; bottom: -2px; left: 0; width: 35%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .12) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-130%) skewX(-18deg);
}
.pill.ember span[aria-hidden="true"] { display: inline-block; transition: transform .2s ease; }
@media (hover: hover) {
  .pill.ember:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform .6s cubic-bezier(.3, .6, .2, 1); }
  .pill.ember:hover span[aria-hidden="true"] { transform: translateX(3px); }
}
.pill.ember:focus-visible::after { transform: translateX(330%) skewX(-18deg); transition: transform .6s cubic-bezier(.3, .6, .2, 1); }
.pill.ember:focus-visible span[aria-hidden="true"] { transform: translateX(3px); }

/* ================= FX 3: How it works timeline track and rings (round 5 animation: css/round5.css) ================= */
.timeline-line {
  background: repeating-linear-gradient(90deg, rgba(232, 197, 122, .7) 0 8px, transparent 8px 16px);
  transform-origin: 0 50%; transform: scaleX(var(--p, 1));
}
.timeline .t-step::before {
  content: "" !important; position: absolute; width: 24px; height: 24px; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(232, 197, 122, .8); box-shadow: 0 0 0 4px rgba(205, 150, 53, .14), 0 0 18px rgba(205, 150, 53, .35);
  background: none; opacity: 1; transition: opacity .3s ease; inset: auto;
}
@media (min-width: 961px) {
  .timeline .t-step::before { top: -32px; left: 19px; }
}
@media (max-width: 960px) {
  .timeline { position: relative; padding-left: 36px; }
  .timeline-line {
    display: block; position: absolute; left: 12px; top: 32px; bottom: 40px; width: 2px; height: auto; right: auto;
    background: repeating-linear-gradient(180deg, rgba(232, 197, 122, .7) 0 8px, transparent 8px 16px);
    transform-origin: 50% 0; transform: scaleY(var(--p, 1));
  }
  .t-step { position: relative; }
  .t-step::after {
    content: ""; position: absolute; top: 26px; left: -29px; width: 12px; height: 12px; border-radius: 50%;
    background: #040C0A; border: 2px solid #E8C57A;
  }
  .timeline .t-step::before { top: 20px; left: -35px; }
}

/* ================= FX 5: plan accent bars draw in ================= */
[data-theme="cream"] .plan::before { transform-origin: 0 50%; transition: transform .7s cubic-bezier(.33, 1, .68, 1); }
html.has-motion .plans:not(.bars-in) .plan::before { transform: scaleX(0); }
.plans .plan:nth-child(2)::before { transition-delay: .12s; }
.plans .plan:nth-child(3)::before { transition-delay: .24s; }

/* ================= Book: dawn ending (FX 6) and the calendar (item 5) ================= */
#book { position: relative; overflow: hidden; isolation: isolate; padding-bottom: 180px; }
#book > .wrap { position: relative; z-index: 1; }
.book-dawn {
  position: absolute; left: 0; right: 0; bottom: 0; height: 72%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 45%);
          mask-image: linear-gradient(180deg, transparent 0, #000 45%);
}
.book-dawn .field-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44% 46% at 50% 100%, rgba(255, 138, 107, .46), transparent 72%),
    radial-gradient(ellipse 92% 62% at 50% 108%, rgba(31, 165, 140, .40), transparent 74%),
    radial-gradient(ellipse 30% 30% at 84% 100%, rgba(111, 220, 196, .14), transparent 70%);
}
/* Text stays on opaque cards over the glow */
.book-cta-card, #book .form { position: relative; }
.form.is-leaving { opacity: 0; transition: opacity .2s ease; }
.book-grid.is-booking { grid-template-columns: 1fr; }
.book-grid.is-booking .book-cta-card { display: none; }
.cal-panel {
  max-width: 920px; margin-inline: auto; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px;
}
.cal-panel:focus { outline: none; }
.cal-panel.is-entering { animation: eg-cal-in .45s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes eg-cal-in { from { opacity: 0; transform: translateY(24px); } }
.cal-status { margin: 2px 4px 14px; color: var(--cream); font-size: var(--fs-17); }
.cal-status:focus, .cal-status:focus-visible { outline: none; } /* focus is moved here by script so screen readers hear the line; it is not a control */
.cal-status a { color: #E8C57A; }
.cal-frame { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(249, 244, 234, .16); }
.cal-frame iframe { display: block; width: 100%; min-height: 680px; }
.cal-panel .fine { margin: 12px 4px 2px; }
@media (max-width: 640px) {
  .cal-panel { padding: 10px; }
  .cal-frame iframe { min-height: 760px; }
}
