/* ============================================================
   ARKE — shared motion layer (v2)
   Loaded on every redesigned page after styles.css. Holds the
   tokens and pieces that the home page and interior pages share.
   ============================================================ */

:root {
  --cream: #f4f1e9;
  --sky-mid: #5e87b8;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Lenis owns smoothing when active */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* No horizontal page scroll from off-screen scene elements */
main { overflow-x: clip; }

/* ---- Drifting fractal clouds (SVG filter, no images) ---- */
.cloudlayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cloudlayer svg {
  position: absolute;
  top: -12%; left: -12%;
  width: 124%; height: 124%;
  animation: cloudDrift 80s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes cloudDrift {
  from { transform: translate(0, 0) scale(1.02); }
  to   { transform: translate(5%, -2.5%) scale(1.07); }
}

/* ---- Word-fill text ([data-paint]) ---- */
.pimg {
  display: inline-block;
  width: 1.7em; height: 0.82em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.1em;
  margin: 0 0.06em;
}
.pimg img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Pill window inside a headline ---- */
.arch {
  display: inline-block;
  flex: none;
  width: 1.4em; height: 0.82em;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}
.arch img, .arch video {
  position: absolute; left: 0; top: -12%;
  width: 100%; height: 124%;
  object-fit: cover;
}

/* ============================================================
   Big quote on dark sections (word-fill)
   ============================================================ */
.q-text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6.4vw, 108px); line-height: 1; letter-spacing: -0.005em;
  text-align: center; max-width: 1200px; margin: 0 auto clamp(70px, 10vw, 120px);
  color: var(--cloud);
}
.q-text .accent-italic { font-size: 0.95em; color: #cfe2f8; }

/* ============================================================
   Closing line (masked line reveal)
   ============================================================ */
.closer { background: var(--sky-mist); padding: var(--section-pad) var(--gutter); text-align: center; overflow: hidden; }
.closer-big {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(42px, 8.2vw, 150px); line-height: 0.92; letter-spacing: -0.01em; color: var(--ink);
}
.closer-big .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.closer-big .in { display: inline-block; }
.closer-big .accent-italic { font-size: 0.92em; color: var(--sky-mid); }
.closer-small { font-family: var(--font-accent); font-style: italic; font-size: clamp(22px, 2.6vw, 34px); color: var(--sky-deep); margin: 26px 0 36px; }

/* ---- Videos: the generated clips carry a corner watermark in their bottom
   strip — every video is sized 125%+ tall from the top so that strip is never
   in frame. Never remove this. ---- */
.lab-media video, .gcard-media video, .idx-thumb video, .idx-preview video, .nextg-media > video, .gb-media video {
  top: 0 !important; bottom: auto !important; height: 125% !important;
}
.idx-thumb { position: relative; }
.idx-thumb video { position: absolute; left: 0; width: 100%; object-fit: cover; }
.gx-photo > video, .std-media > video { top: -8% !important; height: 145% !important; }
.h-stage video.is-tall { height: 125% !important; }

/* ---- Hero fact chips: plain text with ticks, not buttons ---- */
.hero-chips { gap: 0; row-gap: 10px; }
.chip {
  background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px; letter-spacing: 0.16em;
  text-shadow: 0 1px 14px rgba(34, 60, 92, 0.35);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  gap: 8px;
}
.chip:first-child { border-left: 0; }
.chip::before {
  content: '✓'; width: auto; height: auto;
  background: none; border-radius: 0;
  font-size: 12px; letter-spacing: 0;
}
.gx-hero .chip:first-child { padding-left: 0; }

/* ---- Free / Paid guide labels on clickable cards: arrow shows it's a link ---- */
a .status::after, .idx-row .idx-status::after { content: ' →'; letter-spacing: 0; }

/* ---- Floating CTA dock (appears after the hero) ---- */
.dock {
  position: fixed; left: 50%; bottom: 18px; z-index: 90;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -18px rgba(22, 33, 46, 0.45);
  color: var(--ink); text-decoration: none;
  font-size: 12.5px; font-weight: 400;
  transform: translate(-50%, 160%);
  transition: transform 0.6s var(--ease-out);
}
.dock.show { transform: translate(-50%, 0); }
.dock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--action-blue); box-shadow: 0 0 0 4px rgba(43, 127, 255, 0.18); }
.dock-btn {
  background: var(--action-blue); color: var(--cloud);
  padding: 11px 20px; border-radius: 100px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: box-shadow 0.3s ease;
}
.dock:hover .dock-btn { box-shadow: 0 10px 24px -10px rgba(43, 127, 255, 0.7); }

@media (max-width: 600px) {
  .dock { font-size: 11.5px; gap: 10px; padding-left: 14px; width: max-content; max-width: calc(100vw - 32px); }
  .dock-label-long { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cloudlayer svg { animation: none; }
  .dock { transition: none; }
}

/* ---- Guide forms: name + email + button wrap nicely in the wide panels ---- */
.capture-panel .capture-form { flex-wrap: wrap; justify-content: center; }
.capture-panel .capture-form input { flex: 1 1 200px; min-width: 0; }
@media (max-width: 760px) {
  /* stacked form: the flex-basis would become a 200px height, keep fields their natural height */
  .capture-panel .capture-form input { flex: 0 0 auto; width: 100%; }
  .capture-panel .capture-form .btn { width: 100%; }
}

/* ---- Eyebrow labels: text only, no short rule beside them (site-wide) ---- */
.eyebrow::before, .eyebrow::after { content: none !important; display: none !important; }

/* ---- Yana's own footage: no watermark, so no crop. Sound button + tap-to-play player ---- */
.std-media > video.is-real { top: 0 !important; height: 100% !important; }
/* own clips show the whole 9:16 frame: the box takes the video's shape and fits the screen height */
.std-media.std-media--real { aspect-ratio: 9 / 16; max-height: none; width: min(100%, calc((100svh - 150px) * 9 / 16)); margin: 0 auto; }
.snd {
  position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--cloud); background: rgba(22, 33, 46, 0.38);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.snd:hover { transform: scale(1.06); background: rgba(22, 33, 46, 0.55); }
.snd .snd-on { display: none; } .snd.on .snd-on { display: inline; } .snd.on .snd-off { display: none; }
.tap-vid { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #b9d2ec, #eef4fb);
  box-shadow: 0 40px 70px -40px rgba(22, 33, 46, 0.5); }
.tap-vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tap-play { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(22,33,46,0) 55%, rgba(22,33,46,0.45)); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 28px; color: var(--cloud);
  font: 600 11px/1 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; }
.tap-play i { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--sky-deep);
  box-shadow: 0 16px 30px -12px rgba(22, 33, 46, 0.5); transition: transform 0.3s var(--ease-out); }
.tap-play:hover i { transform: scale(1.08); }
.tap-vid.playing .tap-play { display: none; }
.watch { background: var(--sky-mist); padding: var(--section-pad) var(--gutter); }
.watch-wrap { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.watch .tap-vid { max-width: 380px; width: 100%; justify-self: center; }
.watch p.lead { margin-top: 22px; }
@media (max-width: 760px) { .watch-wrap { grid-template-columns: 1fr; } .watch .tap-vid { max-width: 320px; } }

/* ---- Guides dropdown in the top menu ---- */
.nav-dd { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav-dd-btn { border: 0; background: none; color: var(--ink-soft); width: 22px; height: 22px; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  transition: transform 0.3s var(--ease-out), color 0.3s ease; }
.nav-dd:hover .nav-dd-btn, .nav-dd.open .nav-dd-btn { color: var(--ink); transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); min-width: 250px; z-index: 120;
  padding: 18px 20px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.94); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -28px rgba(22, 33, 46, 0.45);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.25s;
}
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }  /* hover bridge */
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s; }
.nav-dd-group { display: grid; gap: 2px; margin-bottom: 12px; }
.nav-dd-label { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }
.nav .nav-dd-menu a:not(.btn) { font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 6px 10px; margin: 0 -10px; border-radius: 10px; white-space: nowrap; }
.nav .nav-dd-menu a:not(.btn)::after { display: none; }
.nav .nav-dd-menu a:not(.btn):hover { background: var(--sky-mist); }
.nav .nav-dd-menu a[aria-current="page"] { color: var(--action-blue); }
.nav .nav-dd-menu a.nav-dd-all { display: flex; justify-content: space-between; margin-top: 2px; padding-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-deep); }
@media (max-width: 760px) {
  .nav-dd { flex-wrap: wrap; justify-content: center; width: 100%; }
  .nav-dd-btn { color: rgba(255, 255, 255, 0.9); }
  .nav-dd:hover .nav-dd-btn { transform: none; color: rgba(255, 255, 255, 0.9); }
  .nav-dd.open .nav-dd-btn { transform: rotate(180deg); color: var(--cloud); }
  .nav-dd-menu, .nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu {
    position: static; transform: none; width: 100%; min-width: 0; margin-top: 14px; padding: 0; background: none; border: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; text-align: center; display: none; opacity: 1; visibility: visible; }
  .nav-dd.open .nav-dd-menu { display: block; transform: none; }
  .nav-dd-menu::before { display: none; }
  .nav-dd-group { margin-bottom: 14px; }
  .nav-dd-label { color: var(--sky-light); }
  .nav .nav-dd-menu a:not(.btn) { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 14px; }
  .nav .nav-dd-menu a:not(.btn):hover { background: rgba(255, 255, 255, 0.1); }
  .nav .nav-dd-menu a[aria-current="page"] { color: var(--cloud); text-decoration: underline; text-underline-offset: 4px; }
  .nav .nav-dd-menu a.nav-dd-all { justify-content: center; gap: 8px; color: var(--sky-light); }
}

/* ---- Paid guide price above the Buy now button ---- */
.buy-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 6px 0 22px; }
.buy-price strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--cloud); letter-spacing: -0.01em; }
.buy-price span { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }

/* ---- Two weights per font only: Oswald 400/600, Montserrat 400/600 ---- */
b, strong { font-weight: 600; }
.modal-close, .gb-stepper button { font-family: var(--font-body); font-weight: 400; }
