/* ==========================================================================
   Coda Piano School — elevation layer (2026-11-05)
   Loads AFTER styles.css + homepage-video.css. Additive, surgical polish:
   premium CTAs, a lead-first "free trial" block near the top, tighter rhythm.
   ========================================================================== */

/* --- Reusable premium buttons ------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55em;
  font:600 13px/1 Manrope,sans-serif;letter-spacing:.09em;text-transform:uppercase;
  padding:17px 28px;border-radius:999px;border:1px solid transparent;cursor:pointer;
  transition:transform .22s ease,box-shadow .22s ease,background .22s ease,color .22s ease,border-color .22s ease;
  white-space:nowrap;
}
.btn span{font-size:1.15em;line-height:0;transition:transform .22s ease}
.btn-primary{background:var(--gold);color:#171717;box-shadow:0 12px 30px rgba(228,173,19,.26)}
.btn-primary:hover,.btn-primary:focus-visible{transform:translateY(-2px);box-shadow:0 18px 42px rgba(228,173,19,.38);outline:none}
.btn-primary:hover span{transform:translateX(3px)}
.btn-ghost{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.42);color:#fff;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.btn-ghost:hover,.btn-ghost:focus-visible{border-color:var(--gold);color:var(--gold);transform:translateY(-2px);outline:none}
.btn:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
@media(max-width:800px){.btn{padding:14px 22px;font-size:12px}}

/* --- Hero headline: add a primary call to action under the H1 ----------- */
.hero-cta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:clamp(18px,2vw,26px)}
@media(max-width:800px){.hero-cta-row{margin-top:16px;gap:10px}.hero-cta-row .btn{flex:1 1 auto;min-width:0}}

/* --- Lead-first "free trial" block (moved to the top of the page) -------- */
.trial{
  padding-top:clamp(54px,6vw,86px);
  padding-bottom:clamp(58px,6.5vw,96px);
  background:linear-gradient(180deg,#201f1d 0%,#1b1a18 100%);
  border-top:1px solid rgba(228,173,19,.28);
}
.trial .contact-lead{margin-bottom:clamp(34px,4vw,54px);align-items:center}
.trial .contact-title h2{margin-top:18px}
/* Factual trust points beneath the invitation copy */
.trial-points{list-style:none;margin:28px 0 6px;padding:0;display:grid;gap:13px}
.trial-points li{position:relative;padding-left:26px;color:#d2cfc6;font-size:14.5px;line-height:1.5}
.trial-points li::before{content:"";position:absolute;left:2px;top:7px;width:8px;height:8px;background:var(--gold);transform:rotate(45deg)}
.trial .contact-info a[href^="tel:"]{font:400 clamp(26px,3vw,38px)/1 Unbounded,sans-serif;letter-spacing:-.03em;color:#fff;margin-top:6px}
.trial .contact-info a[href^="tel:"]:hover{color:var(--gold)}

/* Form and invitation sit open on the page (no card box around them) */
.trial .contact-grid{align-items:start}
.trial .contact-info{justify-content:flex-start}
.trial .contact-info>a{align-self:flex-start;max-width:100%}
/* Cloudflare check stays invisible unless a visitor must interact with it */
.contact .cf-turnstile{min-height:0}
/* Thank-you panel shown after an inquiry is sent */
.trial .contact-form-status[data-status="success"]{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;align-items:center;margin:4px 0 0;padding:24px 26px;border:1px solid rgba(228,173,19,.38);border-radius:14px;background:linear-gradient(135deg,rgba(228,173,19,.12),rgba(228,173,19,.03) 60%);box-shadow:0 18px 40px rgba(0,0,0,.28);color:#c9c5ba;font-size:15px;font-weight:400;line-height:1.6;letter-spacing:0;animation:contact-success-in .5s cubic-bezier(.2,.8,.2,1) both}
.contact-success-icon{grid-row:1/3;align-self:start;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--gold);color:#171717;box-shadow:0 0 0 6px rgba(228,173,19,.14)}
.contact-success-icon svg{width:22px;height:22px}
.contact-success-title{display:block;grid-column:2;color:#fff;font-size:clamp(19px,1.6vw,24px);font-weight:600;line-height:1.25;letter-spacing:-.015em}
.contact-success-text{display:block;grid-column:2;max-width:62ch}
@keyframes contact-success-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.trial .contact-form-status[data-status="success"]{animation:none}}
@media(max-width:600px){.trial .contact-form-status[data-status="success"]{gap:6px 14px;padding:20px 18px;font-size:14px}.contact-success-icon{width:36px;height:36px;box-shadow:0 0 0 5px rgba(228,173,19,.14)}.contact-success-icon svg{width:18px;height:18px}}
.trial .contact-info>a[href*="maps"]:hover{color:var(--gold)}

/* --- FAQ, now a standalone section at the foot of the page -------------- */
.faq-standalone{margin-top:0;padding:clamp(64px,7vw,104px) var(--pad);border-top:0;background:#151413}
.faq-standalone.contact-faq{border-top:0}
@media(max-width:800px){.faq-standalone{padding:52px var(--pad)}}
.faq-standalone{padding-top:clamp(48px,5vw,76px);padding-bottom:clamp(48px,5vw,76px)}
.faq-standalone .contact-faq-heading{display:block;margin-bottom:clamp(22px,2.4vw,36px)}
.faq-standalone .contact-faq-heading .micro{margin:0 0 clamp(12px,1.2vw,18px)}
.faq-standalone .contact-faq-heading h3{font-size:clamp(30px,4.6vw,86px);line-height:1.08}
@media(min-width:1000px){.faq-standalone .contact-faq-heading h3{white-space:nowrap}}
@media(max-width:800px){.faq-standalone{padding:44px var(--pad)}.faq-standalone .contact-faq-heading h3{font-size:clamp(30px,8.5vw,44px)}}

/* --- Tighter, more confident vertical rhythm (compact) ------------------ */
.about{padding-top:clamp(56px,6vw,78px);padding-bottom:clamp(70px,7vw,96px)}
.programs{padding-top:clamp(56px,6vw,78px);padding-bottom:clamp(64px,6.5vw,88px)}
.lessons-pricing{padding-bottom:clamp(22px,2.6vw,36px)}
/* Lessons & Rates heading lives inside the white card, which sits right under the photo */
.programs.lessons-pricing{padding-top:0}
.lessons-pricing .lesson-overview{padding-top:clamp(30px,3.2vw,46px)}
.lesson-overview .lessons-title-lockup{margin:0 0 clamp(16px,1.8vw,26px)}
.lesson-overview .lessons-title-lockup h2{display:flex;flex-wrap:wrap;align-items:center;gap:0 .2em;margin:0;color:var(--ink);font-size:clamp(32px,4.2vw,60px)}
.lesson-overview .lessons-title-word{display:inline}
.lesson-overview .lessons-rate-line{color:#a57800}
.lesson-overview .lesson-metronome{filter:none}
.lesson-overview .lesson-metronome-pendulum .metronome-line{stroke:var(--ink)}
.lesson-overview .lesson-metronome-pendulum .metronome-gold{fill:var(--ink)}
/* Group class text matches the private lesson text size */
.group-overview .group-copy-row .group-copy{font-size:inherit;line-height:1.75}
.group-tuition{padding-top:clamp(26px,3vw,44px);padding-bottom:clamp(56px,6vw,84px);background:var(--ink)}
.group-tuition-head h2{margin-top:12px}
.group-tuition{padding-bottom:clamp(40px,4vw,58px)}

/* Recitals: headline level with a wider, shorter paragraph; tighter benefit boxes */
.recitals{padding-top:clamp(40px,4.5vw,62px);padding-bottom:clamp(44px,4.5vw,64px)}
.recital-title h2{margin:18px 0 0;font-size:clamp(32px,4.5vw,64px);line-height:1.02}
.recital-title p{margin:0;font-size:15.5px;line-height:1.65;max-width:62ch}
.recital-cards{margin-top:clamp(28px,3vw,40px)}
.recital-cards div{min-height:0;padding:22px 28px 22px 0}
.recital-cards b{font-size:clamp(16px,1.35vw,19px);margin-bottom:10px}
.recital-cards span{font-size:14px;line-height:1.55;display:block}
.recital-gallery{padding-top:26px}
@media(min-width:801px){
  .recital-title{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,72px)}
}
.about-intro{margin:clamp(40px,4vw,58px) 0 clamp(44px,4.5vw,66px)}
.about .stat{margin-top:clamp(44px,5vw,60px)}
.private-tuition-head{margin-top:clamp(56px,6vw,84px)}
.lessons-title-lockup{margin:clamp(40px,4vw,56px) 0}

/* Slightly restrain the largest display sizes so more content is visible   */
.about h2,.programs h2,.young h2,.pricing h2,.contact h2,
.group-tuition-head h2{font-size:clamp(40px,5.4vw,78px)}

/* --- Elevated price + level cards --------------------------------------- */
.price-card,.group-level-card{border-radius:16px;transition:transform .25s ease,box-shadow .25s ease}
.price-card.gold.popular{box-shadow:0 26px 60px rgba(228,173,19,.22)}
.price-card:hover,.group-level-card:hover{transform:translateY(-4px)}
.price-card.gold:hover{box-shadow:0 30px 66px rgba(228,173,19,.3)}
.price-card:not(.gold):hover{box-shadow:0 26px 60px rgba(0,0,0,.4)}
.price-card>a,.group-level-card>a{display:inline-flex;align-items:center;gap:.5em;font-weight:600;letter-spacing:.06em;text-transform:uppercase;font-size:12px}
.price-card>a:hover span,.group-level-card>a:hover span{transform:translateX(3px)}
.price-card>a span,.group-level-card>a span{transition:transform .2s ease}

/* --- Header: make the trial CTA a solid pill --------------------------- */
/* Same pill as the hero's "Book a free trial", slightly smaller, after Q&A */
.header-cta.btn{border:0;padding:13px 21px;font-size:12px;box-shadow:0 8px 22px rgba(228,173,19,.22)}
.header-cta.btn span{color:#171717}
@media(max-width:1180px) and (min-width:800.02px){
  .header-cta.btn{display:inline-flex;padding:10px 15px;font-size:11px;letter-spacing:.06em}
}
@media(max-width:800px){.header-cta.btn{display:none}}
/* Narrow tablets (801-960px): compact the bar so logo, phone, menu and CTA all fit */
@media(max-width:960px) and (min-width:800.02px){
  .header{gap:12px;padding-left:20px;padding-right:20px}
  .wordmark span{display:none}
  .header-phone{padding:8px 11px;font-size:12px;gap:6px}
  .header-phone svg{display:none}
  :root .header nav{gap:10px}
  :root .header nav a{font-size:10.5px}
  .header-cta.btn{padding:9px 12px;font-size:10.5px;letter-spacing:.04em}
}

/* --- Always-visible phone number in the fixed header ------------------- */
.header-phone{
  display:inline-flex;align-items:center;gap:9px;flex:0 0 auto;
  padding:10px 17px;border:1px solid rgba(228,173,19,.6);border-radius:999px;
  color:#fff;font:600 15px/1 Manrope,sans-serif;letter-spacing:.02em;white-space:nowrap;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease;
}
.header-phone svg{width:16px;height:16px;flex:0 0 auto;fill:var(--gold);transition:fill .2s ease}
.header-phone:hover,.header-phone:focus-visible{background:var(--gold);border-color:var(--gold);color:#171717}
.header-phone:hover svg,.header-phone:focus-visible svg{fill:#171717}
.header-phone:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
@media(max-width:1180px) and (min-width:801px){.header-phone{padding:8px 13px;font-size:13px}}
@media(max-width:800px){
  .header{gap:12px}
  .header-phone{margin-left:auto;padding:9px 13px;font-size:14px;gap:7px}
  .menu{margin-left:0;flex:0 0 auto}
}
@media(max-width:400px){
  .header{gap:8px;padding-left:14px;padding-right:14px}
  .wordmark{gap:7px}
  .wordmark-logo{width:70px}
  .wordmark span{font-size:9.5px}
  .header-phone{padding:8px 10px;font-size:12.5px;gap:6px}
  .header-phone svg{width:14px;height:14px}
  .menu{width:40px;height:40px;padding:6px}
  .menu span{margin:7px 0}
}
@media(max-width:360px){.header-phone svg{display:none}}
@media(max-width:340px){
  .wordmark span{display:none}
  .header-phone{font-size:11.5px;padding:7px 8px}
}

/* --- Recital gallery frame: softer, more premium shadow ----------------- */
.recital-frame{box-shadow:10px 10px 0 rgba(255,255,255,.85),0 18px 40px rgba(0,0,0,.18)}
@media(max-width:800px){.recital-frame{box-shadow:7px 7px 0 rgba(255,255,255,.85)}}

@media(prefers-reduced-motion:reduce){
  .btn,.btn span,.price-card,.group-level-card,.header-cta{transition:none}
}

/* ==========================================================================
   Feedback pass (2026-11-05): remove the floating rail, compact the cards.
   ========================================================================== */

/* Hide the floating vertical section label ("CONTACT" / "ABOUT CODA" tab) */
:root .section-rail{display:none}

/* Compact tuition cards: drop the tall min-heights and tighten the interior */
.price-card,.group-level-card{min-height:0;padding:clamp(26px,2.3vw,36px)}
.price-card h3,.group-level-card h3{margin:14px 0 18px;font-size:clamp(24px,2.9vw,37px)}
.amount,.group-amount{font-size:clamp(46px,5vw,76px)}
.price-card ul,.group-level-card ul{margin:10px 0;padding:16px 0}
.price-card li,.group-level-card li{padding:6px 0}
.price-card>a,.group-level-card>a{padding-top:15px}
.price-grid,.group-level-grid{gap:18px}
.private-tuition-head{margin-top:clamp(48px,5vw,72px)}
.group-tuition-head{margin-bottom:clamp(28px,3vw,42px)}
.popular-badge{top:22px;right:22px}
.trial .contact-info{gap:16px}
.trial .trial-points{margin:6px 0 4px;gap:14px}
.trial .trial-points li{line-height:1.55}
.trial .trial-points b{color:#fff;font-weight:700}

/* Form fields read clearly as "type here": filled, bordered, rounded */
.trial label{display:block;color:#f0ede5;font-weight:600;font-size:13px;letter-spacing:.1em}
.trial input:not(.contact-honeypot),.trial textarea{
  margin-top:9px;padding:15px 16px;
  background:#3a3935;border:1px solid #67635b;border-radius:10px;
  color:#fff;font:16px/1.4 Manrope,sans-serif;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35);
  transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease;
}
.trial textarea{min-height:124px;resize:vertical}
.trial input:not(.contact-honeypot):hover,.trial textarea:hover{border-color:#8a867c}
.trial input:not(.contact-honeypot):focus,.trial textarea:focus{
  border-color:var(--gold);background:#413f3a;
  box-shadow:0 0 0 3px rgba(228,173,19,.28),inset 0 1px 2px rgba(0,0,0,.35);
}
.trial .contact-form-status:empty{display:none}
.trial button[type="submit"]{border-radius:10px;text-align:center;font-weight:700;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.trial button[type="submit"]:hover{transform:translateY(-2px);box-shadow:0 14px 32px rgba(228,173,19,.3)}
/* One-line card titles ("30 minutes weekly", "Beginner Foundations") */
.price-card h3,.group-level-card h3{margin:10px 0 12px;font-size:clamp(22px,2.4vw,32px);line-height:1.15}
.amount,.group-amount{font-size:clamp(44px,4.6vw,68px);line-height:1}
.price-card .per-lesson{margin-top:6px}
/* About statement: one sentence on two lines at every width. */
.about .stat{display:block;font:400 clamp(22px,4.4vw,60px)/1.15 Unbounded,sans-serif;letter-spacing:-.05em}
.about .stat strong,.about .stat span{display:inline;font:inherit;letter-spacing:inherit}

/* Headline band: the header already shows the trial button above 800px, so drop the duplicate and tighten the band. */
@media(min-width:801px){
  .hero-cta-row{display:none}
  .hero-headline{padding-top:clamp(14px,1.3vw,20px);padding-bottom:clamp(14px,1.3vw,20px)}
}
