/* ============================================================
   Barre Chord Wizard landing sections: hero image + intro text.
   Sits between the site header and the app (main.wrap).
   Uses the same design tokens as the page-test theme in styles.css.
   ============================================================ */

/* ===== Hero: v0 treatment — full-bleed image, text superimposed
   bottom-center, image fades into the dark page background.
   Tokens and type (Cinzel / EB Garamond) come from the v0 page. ===== */
/* v0 design tokens (globals.css), shared by the sections ported from the v0 page */
.page-test{
  --v0-bg: oklch(0.17 0.02 60);          /* dark warm brown page background */
  --v0-fg: oklch(0.92 0.03 85);          /* warm cream foreground */
  --v0-primary: oklch(0.78 0.13 78);     /* antique gold */
  --v0-primary-fg: oklch(0.2 0.03 60);
  --v0-secondary: oklch(0.32 0.05 260);  /* dark slate blue */
}

.page-test .landing-hero{
  background: var(--v0-bg);
  text-align: center;
}

.page-test .hero-media{
  position: relative;
  overflow: hidden;
  max-width: 1080px;   /* rein the artwork in; slightly wider than the 980px app column */
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
}
@media (min-width: 1116px){
  .page-test .hero-media{ border-radius: 10px; margin-top: 14px; }
}
.page-test .hero-media img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* readability + fade into page (v0) */
.page-test .hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--v0-bg) 2%, transparent 45%),
    linear-gradient(to bottom, rgba(10,7,3,0.55) 0%, transparent 30%);
}

.page-test .hero-text{
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 56rem;
  padding: 0 24px 40px;
}
.page-test .hero-overline{
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--v0-primary);
}
.page-test .landing-hero h1{
  margin: .75rem 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  letter-spacing: .025em;
  font-size: 2.25rem;
  line-height: 1.1;
  color: var(--v0-fg);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  text-wrap: balance;
}
.page-test .hero-lede{
  margin: 1rem auto 0;
  max-width: 50rem;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: oklch(0.92 0.03 85 / .85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
  text-wrap: pretty;
}
@media (min-width: 640px){
  .page-test .hero-text{ padding-bottom: 56px; }
  .page-test .hero-overline{ font-size: .875rem; }
  .page-test .landing-hero h1{ font-size: 3.75rem; }
  .page-test .hero-lede{ font-size: 1.45rem; }
}
/* Phones: the 16:9 image is too short to hold the text, so let the text
   flow below it on the dark background instead of overlaying */
@media (max-width: 639px){
  .page-test .hero-text{
    position: relative; /* in flow, but stacks above the absolute overlay */
    padding: 18px 20px 30px;
  }
}

/* Keep the anchor target clear of the sticky nav bar */
#wizard-app{ scroll-margin-top: 64px; }

/* ===== Intro column on the cream background ===== */
.page-test .landing-intro{
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 18px 8px;
  color: var(--ink);
}
.page-test .landing-intro h2{
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--burgundy);
  font-size: clamp(24px, 3vw, 32px);
  text-align: center;
  margin: 0 0 22px;
}
.page-test .landing-intro p{
  font-size: 1.18rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

/* Seven barre types the Wizard understands */
/* Hint line: wording adapts to the input device */
.page-test .barre-types-hint{
  text-align: center;
  font-style: italic;
  font-size: .98rem;
  color: var(--ink);
  opacity: .72;
  margin: -10px 0 0;
}
.page-test .barre-types-hint .hint-hover{ display:none; }
@media (hover:hover){
  .page-test .barre-types-hint .hint-touch{ display:none; }
  .page-test .barre-types-hint .hint-hover{ display:inline; }
}

.page-test .barre-types{
  list-style:none;
  margin: 22px 0 26px;
  padding: 0;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.page-test .barre-types li{
  position: relative;
  background: var(--parchment);
  border: 1px solid var(--parchment-dk);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  text-align:center;
  box-shadow: 0 3px 10px rgba(43,27,18,.08);
}
.page-test .barre-type-btn{
  display:block;
  width: 100%;
  height: 100%;
  padding: 13px 16px;
  background: none;
  border: 0;
  border-radius: inherit;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.page-test .barre-type-btn:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
/* small info badge in the card corner: signals the card is tappable */
.page-test .barre-type-btn::after{
  content:"i";
  position:absolute;
  top: 5px;
  right: 7px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  line-height: 15px;
  text-align: center;
}
.page-test .barre-types li:hover .barre-type-btn::after,
.page-test .barre-types li.open .barre-type-btn::after{
  background: var(--gold);
  color: var(--parchment);
}

/* Explanation popover for each barre type */
.page-test .barre-tip{
  display:none;
  position:absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  width: min(400px, calc(100vw - 28px));
  background: #fffdf6;
  border: 1px solid var(--parchment-dk);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(43,27,18,.22);
  padding: 14px 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: .98rem;
  line-height: 1.55;
  text-align: left;
}
/* caret pointing up at the card */
.page-test .barre-tip::before{
  content:"";
  position:absolute;
  top: -8px;
  left: calc(50% - var(--tip-shift, 0px));
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  border-radius: 2px;
}
.page-test .barre-tip p{
  margin: 0 0 8px;
  font-size: inherit;
  line-height: inherit;
}
.page-test .barre-tip p:last-child{ margin-bottom: 0; }
.page-test .barre-tip ol{
  margin: 0;
  padding-left: 20px;
}
.page-test .barre-tip li{
  /* undo the card styling this would otherwise inherit from .barre-types li */
  position: static;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  text-align: left;
  padding: 0;
  margin: 0 0 6px;
}
.page-test .barre-tip li:last-child{ margin-bottom: 0; }

.page-test .barre-types li.open .barre-tip{ display:block; }
@media (hover:hover){
  .page-test .barre-types li:hover .barre-tip,
  .page-test .barre-types li:focus-within .barre-tip{ display:block; }
}
@media (max-width: 760px){
  .page-test .barre-types{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px){
  .page-test .barre-types{ grid-template-columns: 1fr; }
}

/* ===== Testimonial (v0 treatment) ===== */
.page-test .landing-testimonial{
  max-width: 48rem;               /* max-w-3xl */
  margin: 0 auto;
  padding: 0 24px 26px;
}
.page-test .landing-testimonial figure{
  position: relative;
  margin: 0;
  border-radius: 0.625rem;
  border: 3px solid oklch(0.78 0.13 78 / .55);
  /* v0's bg-secondary/40 as it composites over the dark page background */
  background: color-mix(in oklab, var(--v0-secondary) 40%, var(--v0-bg));
  padding: 2rem;                  /* p-8; sm:p-12 below */
  text-align: center;
}
.page-test .landing-testimonial .quote-mark{
  pointer-events: none;
  user-select: none;
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 4.5rem;              /* text-7xl */
  line-height: 1;
  color: oklch(0.78 0.13 78 / .4);
}
.page-test .landing-testimonial blockquote{
  position: relative;
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.25rem;             /* text-xl; sm:text-2xl below */
  line-height: 1.625;
  color: var(--v0-fg);
  text-wrap: pretty;
}
.page-test .landing-testimonial figcaption{
  margin-top: 1.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: var(--v0-primary);
}
@media (min-width: 640px){
  .page-test .landing-testimonial figure{ padding: 3rem; }
  .page-test .landing-testimonial blockquote{ font-size: 1.5rem; }
}

/* ===== Caution (classical guitarists only) ===== */
.page-test .landing-caution{
  max-width: 860px;
  margin: 8px auto 8px;
  padding: 0 18px 6px;
}
.page-test .landing-caution .caution-box{
  display:flex;
  gap: 14px;
  align-items:flex-start;
  background:#fdf0e4;
  border:1px solid #e8b98a;
  border-left:5px solid #c2410c;
  border-radius:10px;
  padding:16px 20px;
  font-size:1.02rem;
  line-height:1.6;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(43,27,18,.08);
}
.page-test .landing-caution .caution-icon{
  font-size: 1.3rem;
  line-height: 1.3;
}
.page-test .landing-caution strong{ color:#9a3412; }

/* ===== Gold flourish divider between sections ===== */
.page-test .flourish{
  display:flex;
  align-items:center;
  gap:14px;
  max-width: 420px;
  margin: 34px auto;
  color: var(--gold);
}
.page-test .flourish::before,
.page-test .flourish::after{
  content:"";
  flex:1;
  height:1px;
  background: linear-gradient(90deg, transparent, var(--gold-lt));
}
.page-test .flourish::after{
  background: linear-gradient(90deg, var(--gold-lt), transparent);
}
.page-test .flourish span{ font-size: 1.05rem; }
