/* ==========================================================================
   RITUAL — Home Option A · "Sanctuary"
   Full-bleed atmospheric hero, calm centred rhythm, generous air.
   ========================================================================== */

/* ── Hero ────────────────────────────────────────────────────── */
.a-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-offset) + clamp(3.5rem, 7vw, 6rem)) var(--gutter) clamp(4rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--espresso);
}
/* Slow-drifting brand gradient — homepage hero only (login keeps the WebGL
   shader). ponytail: animates background-position → full-hero CPU repaint each
   frame; fine for a flat 40s gradient, move to a transformed oversized
   pseudo-element if a device shows jank. */
.a-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg,
    #EFAF71 0%,    /* terracotta */
    #5A9EA2 33%,   /* teal pop   */
    #D9B68C 66%,   /* linen      */
    #4A3127 100%); /* espresso   */
  background-size: 300% 300%;
  animation: a-hero-drift 40s linear infinite;
}
@keyframes a-hero-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }  /* ping-pong: no seam at loop */
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .a-hero__bg { animation: none; background-position: 50% 50%; }
}
.a-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 100% at 50% 46%, rgba(22,19,17,0.0) 0%, rgba(22,19,17,0.18) 62%, rgba(18,15,13,0.42) 100%),
    linear-gradient(180deg, rgba(18,15,13,0.22) 0%, rgba(22,19,17,0.0) 38%, rgba(18,15,13,0.30) 100%);
}
.a-hero__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 56rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.a-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
}
.a-hero__logo {
  width: min(82vw, 30rem);
  height: auto;
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
  filter: drop-shadow(0 2px 20px rgba(18,15,12,0.42));
}
.a-hero__title {
  font-size: clamp(1.6rem, 2.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: var(--off-white);
  margin-bottom: 1.1rem;
  text-shadow: 0 1px 16px rgba(18,15,12,0.5);
}
.a-hero__sub {
  font-size: var(--t-lead);
  line-height: var(--lh-loose);
  color: rgba(245,242,236,0.84);
  max-width: 40ch;
  margin: 0 0 2.4rem;
  text-shadow: 0 1px 14px rgba(18,15,12,0.42);
}
.a-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.a-hero__note {
  margin-top: 1.75rem;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(245,242,236,0.82);
  text-shadow: 0 1px 12px rgba(18,15,12,0.55);
}
/* Sign in (secondary) + the in-studio block are desktop-only; below 768px the
   sticky bottom bar surfaces sign-in and booking instead. */
.a-hero__signin,
.a-hero__studio { display: none; }
@media (min-width: 768px) {
  .a-hero__signin { display: inline-flex; }
  .a-hero__studio {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.55rem; margin-top: 1.6rem;
  }
}
.a-hero__studio-kicker {
  margin: 0;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(245,242,236,0.7);
}
.a-hero__cue {
  position: absolute; left: 50%; bottom: 2rem; z-index: 2;
  transform: translateX(-50%);
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(245,242,236,0.5));
  animation: a-cue 2.6s ease-in-out infinite;
}
@keyframes a-cue { 0%,100% { opacity: 0.3; height: 30px; } 50% { opacity: 0.7; height: 48px; } }
@media (max-width: 620px) {
  .a-hero__logo { width: min(74vw, 18rem); margin-bottom: 1.4rem; }
  .a-hero__title {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    margin-bottom: 0.9rem;
  }
  .a-hero__sub { margin-bottom: 1.9rem; }
  .a-hero__actions { width: 100%; max-width: 22rem; flex-direction: column; align-items: stretch; }
  .a-hero__actions .btn { width: 100%; }
}

/* "Preview the library" hero anchor lands clear of the fixed navbar */
#product-preview { scroll-margin-top: calc(var(--navbar-offset) + 1rem); }

/* ── Section header ──────────────────────────────────────────── */
.a-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.a-head .eyebrow { margin-bottom: 1rem; }
.a-head h2 { margin-bottom: 1rem; }
.a-head p { color: var(--sand-muted); font-size: 0.98rem; }
.a-head--left { text-align: left; margin-left: 0; }

/* ── Disciplines ─────────────────────────────────────────────── */
.a-disc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 760px) { .a-disc-grid { grid-template-columns: 1fr; } }
.a-disc {
  background: var(--off-white);
  border: 1px solid var(--sage-border);
  border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.a-disc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.a-disc__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(111,126,102,0.16);
  color: var(--sage-accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.a-disc h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.a-disc p { font-size: 0.9rem; color: var(--sand-muted); line-height: var(--lh-loose); }

/* ── Instructor split ────────────────────────────────────────── */
.a-instructor { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .a-instructor { grid-template-columns: 1fr; gap: 2rem; } }
.a-instructor__photo {
  position: relative; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--sand);
}
.a-instructor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.a-instructor__name { font-size: clamp(2rem, 3.5vw, 2.75rem); margin-bottom: 0.4rem; }
.a-instructor__cred {
  font-family: var(--font-caps);
  font-size: 0.66rem; letter-spacing: var(--track-wider);
  text-transform: uppercase; color: var(--sage-accent);
  margin-bottom: 1.5rem;
}
.a-instructor__bio { color: var(--sand-muted); font-size: 0.98rem; line-height: var(--lh-loose); margin-bottom: 1.5rem; max-width: 46ch; }
.a-tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.a-tag {
  font-family: var(--font-caps);
  font-size: 0.62rem; letter-spacing: var(--track-wide);
  text-transform: uppercase; color: var(--sand-muted);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 0.45em 0.9em;
}

/* ── Pricing ─────────────────────────────────────────────────── */
.billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--off-white); margin: 0 auto 2.75rem; }
.billing__opt {
  font-family: var(--font-caps); font-size: 0.66rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  background: transparent; border: none; cursor: pointer; color: var(--sand-muted);
  padding: 0.65em 1.4em; border-radius: var(--r-sm); white-space: nowrap;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.billing__opt.is-active { background: var(--espresso); color: var(--off-white); }
.billing__save { color: var(--sage-accent); margin-left: 0.4em; }

.a-pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.75rem); max-width: 780px; margin: 0 auto; align-items: stretch; }
@media (max-width: 640px) { .a-pricing-grid { grid-template-columns: 1fr; } .a-plan--featured { order: -1; } }
.a-plan {
  position: relative;
  background: var(--off-white);
  border: 1.5px solid var(--espresso);
  border-radius: var(--r);
  padding: clamp(2rem, 3.5vw, 2.75rem);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.a-plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.a-plan--featured { background: var(--espresso); border-color: var(--espresso); box-shadow: var(--shadow-md); }
.a-plan--featured:hover { border-color: var(--sand); box-shadow: var(--shadow-lg); }
.a-plan__badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--sand); color: var(--espresso);
  font-family: var(--font-caps); font-size: 0.58rem; letter-spacing: var(--track-wider);
  text-transform: uppercase; padding: 0.4em 1.2em; border-radius: var(--r-sm); white-space: nowrap;
}
.a-plan__name {
  font-family: var(--font-caps); font-size: 0.72rem; letter-spacing: var(--track-wider);
  text-transform: uppercase; color: var(--espresso); margin-bottom: 1.4rem;
}
.a-plan--featured .a-plan__name { color: var(--sand); }
.a-plan__price { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.25rem); line-height: 1; letter-spacing: 0.02em; color: var(--espresso); }
.a-plan--featured .a-plan__price { color: var(--off-white); }
.a-plan__period { font-size: 0.82rem; color: var(--espresso); opacity: 0.72; margin-top: 0.5rem; margin-bottom: 1.6rem; }
.a-plan--featured .a-plan__period { color: var(--off-white); }
.a-plan__save {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--sand);
  margin: -1rem 0 1.6rem;
}
.a-plan__divider { border: none; border-top: 1px solid var(--border-light); margin: 0 0 1.6rem; }
.a-plan--featured .a-plan__divider { border-color: rgba(245,242,236,0.16); }
.a-plan__feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; flex: 1; }
.a-plan__feats li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; }
.a-plan--featured .a-plan__feats li { color: rgba(245,242,236,0.88); }
.a-plan__check { flex-shrink: 0; width: 17px; height: 17px; color: var(--sand-deep); }
.a-plan--featured .a-plan__check { color: var(--sand); }
.a-pricing-trust { text-align: center; margin-top: 2rem; font-size: 0.84rem; letter-spacing: 0; color: var(--sand-muted); }

/* ── Features bento ──────────────────────────────────────────── */
.a-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 760px) { .a-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .a-bento { grid-template-columns: 1fr; } }
.a-feat { padding: clamp(1.5rem, 2.5vw, 2rem); border: 1px solid var(--border-light); border-radius: var(--r); background: var(--parchment); }
.a-feat__icon { width: 30px; height: 30px; color: var(--sand-muted); margin-bottom: 1.1rem; }
.a-feat h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.a-feat p { font-size: 0.86rem; color: var(--sand-muted); line-height: var(--lh-loose); }

/* ── Library preview ─────────────────────────────────────────── */
.a-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.chip {
  font-family: var(--font-caps); font-size: 0.64rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  background: transparent; border: 1px solid var(--sage-border); color: var(--sand-muted);
  padding: 0.6em 1.1em; border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.chip:hover { border-color: var(--espresso); color: var(--espresso); }
.chip.is-active { background: var(--espresso); border-color: var(--espresso); color: var(--off-white); }
.a-rows { display: flex; flex-direction: column; gap: 0.75rem; max-width: 820px; margin: 0 auto; }
.a-row {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--off-white); border: 1px solid var(--sage-border);
  border-radius: var(--r); padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  cursor: pointer;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.a-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.a-row__thumb {
  width: 96px; aspect-ratio: 16/10; flex-shrink: 0; border-radius: var(--r-sm);
  overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245,242,236,0.85);
}
.a-row__thumb svg { width: 22px; height: 22px; }
.a-row__body { flex: 1; min-width: 0; }
.a-row__title { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.a-row__meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.a-badge {
  font-family: var(--font-caps); font-size: 0.58rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--sand-muted);
}
.a-badge--disc { color: var(--sage-accent); }
.a-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }
.a-row__dur { font-family: var(--font-caps); font-size: 0.66rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--sand-muted); white-space: nowrap; }
.a-lib-cta { text-align: center; margin-top: 2.5rem; }
.a-lib-cta a {
  font-family: var(--font-caps); font-size: 0.7rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  color: var(--sage-accent); border-bottom: 1px solid var(--sage-border); padding-bottom: 3px;
}
.a-lib-cta a:hover { color: var(--espresso); border-color: var(--espresso); }

/* ── Testimonials ────────────────────────────────────────────── */
.a-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 820px) { .a-testi-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.a-testi {
  background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex; flex-direction: column;
}
.a-testi__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--sand); margin-bottom: 0.5rem; }
.a-testi__quote { font-size: 0.96rem; line-height: var(--lh-loose); color: var(--espresso); flex: 1; margin-bottom: 1.75rem; }
.a-testi__author { display: flex; align-items: center; gap: 0.85rem; }
.a-testi__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--sand); color: var(--espresso);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-caps); font-size: 0.7rem; letter-spacing: 0.05em;
}
.a-testi__name { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.03em; }
.a-testi__role { font-family: var(--font-caps); font-size: 0.58rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: var(--sand-muted); }

/* ── FAQ ─────────────────────────────────────────────────────── */
.a-faq { max-width: 720px; margin: 0 auto; }
.a-faq details { border-bottom: 1px solid var(--border); }
.a-faq summary {
  list-style: none; cursor: pointer; user-select: none;
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.03em;
  padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: color var(--fast) var(--ease);
}
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary:hover { color: var(--sand-muted); }
.a-faq summary::after { content: '+'; font-family: var(--font-display); font-size: 1.5rem; color: var(--sand-muted); line-height: 1; transition: transform var(--fast) var(--ease); }
.a-faq details[open] summary::after { transform: rotate(45deg); }
.a-faq__body { padding: 0 0 1.6rem; font-size: 0.92rem; color: var(--sand-muted); line-height: var(--lh-loose); max-width: 60ch; }

/* ── Final CTA ───────────────────────────────────────────────── */
.a-cta { text-align: center; }
.a-cta__mark { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(185,169,155,0.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 2.5rem; font-family: var(--font-caps); font-size: 1.15rem; color: var(--sand); }
.a-cta h2 { color: var(--off-white); font-size: clamp(2.1rem, 4.4vw, 3.35rem); line-height: 1.08; margin-bottom: 1rem; }
.a-cta p { color: rgba(245,242,236,0.6); margin-bottom: 2.5rem; }
.a-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.a-cta .a-cta__note { margin-top: 1.75rem; font-family: var(--font-caps); font-size: 0.62rem; letter-spacing: var(--track-wide); text-transform: uppercase; color: rgba(245,242,236,0.78); }
