/* ==============================================================
   VITA HEALTH 365 — Crafted Design System (Hims-inspired)
   Shared across index.html, programs/*, legal/*
   ============================================================== */
:root{
  /* Surfaces */
  --cream: #F2EBDC;
  --cream-2: #EFE6D2;
  --paper: #FBF7EE;
  --white: #FFFFFF;
  /* Brand */
  --forest: #2C3D2A;
  --forest-2: #3F5236;
  --moss: #6B7F5A;
  --terracotta: #C8674C;
  --peach: #E8B88A;
  --butter: #E9D9A6;
  /* Ink */
  --ink: #1B1F18;
  --ink-2: #3A3F35;
  --muted: #80847A;
  --border: rgba(27,31,24,.12);
  --border-2: rgba(27,31,24,.06);
  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  /* Layout */
  --container: 1280px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 14px;
  --pill: 999px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* Headings */
h1,h2,h3,h4{
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  color: var(--forest);
  line-height: 1.05;
}
h1{font-size: clamp(44px, 7vw, 96px); line-height: .98}
h2{font-size: clamp(32px, 4.5vw, 60px)}
h3{font-size: clamp(24px, 2.6vw, 36px)}
h4{font-size: clamp(20px, 2vw, 26px); font-variation-settings: "opsz" 32}

.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  font-weight: 500;
}

/* Layout */
.container{max-width: var(--container); margin: 0 auto; padding: 0 var(--pad)}
section{padding: clamp(64px, 10vw, 140px) 0}
.divider{height:1px;background:var(--border-2)}
.tightsection{ padding: clamp(40px, 5vw, 72px) 0}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 16px 28px; border-radius: var(--pill);
  font-weight:500; font-size:15px; letter-spacing:.01em;
  border:1px solid transparent; transition: all .2s ease;
  cursor:pointer;
}
.btn-primary{ background: var(--forest); color: var(--paper) }
.btn-primary:hover{ background: var(--forest-2); transform: translateY(-1px) }
.btn-ghost{ background: transparent; color: var(--forest); border-color: var(--forest) }
.btn-ghost:hover{ background: var(--forest); color: var(--paper) }
.btn-cream{ background: var(--paper); color: var(--forest) }
.btn-cream:hover{ background: var(--white) }
.btn-terra{ background: var(--terracotta); color: var(--paper) }
.btn-terra:hover{ background: #B05038 }
.btn-arrow::after{ content:"→"; font-family: var(--sans); font-weight: 400 }
.btn-block{ width: 100% }

/* Top nav */
.nav{
  position: sticky; top:0; z-index: 1000;
  background: rgba(242,235,220,.85);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border-2);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding: 22px 0; gap: 24px}
.brand{
  font-family: var(--serif); font-weight:500; font-size: 28px; color:var(--forest);
  font-variation-settings:"opsz" 64; letter-spacing:-.015em;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.brand .num{font-style: italic; color: var(--terracotta); font-weight:400; font-size: 30px}
.nav-links{display:flex; gap: 36px; align-items:center; font-size:15.5px; color: var(--ink-2); font-weight: 450}
.nav-links a{padding: 8px 0; transition: color .15s ease}
.nav-links a:hover{color: var(--forest)}
.lang-pill{
  font-size: 12px; letter-spacing:.08em; text-transform:uppercase;
  border:1px solid var(--border); padding: 6px 12px; border-radius: var(--pill); color:var(--ink-2);
}
.nav-cta{display:flex; gap:14px; align-items:center}
.nav-cta .btn { font-size: 14.5px; padding: 14px 22px }
@media (max-width: 880px){
  .nav-links{display:none}
  .brand{ font-size: 22px; white-space: nowrap } .brand .num{ font-size: 24px }
  .nav .container{ padding-left: 24px; padding-right: 20px }
  .nav-row{ padding: 14px 0 }
  .nav-cta{ display:none }
  .menu-toggle{ padding: 8px 4px 8px 12px }
}

/* Breadcrumb */
.crumbs{ padding: 22px 0 0; font-size: 13px; color: var(--ink-2) }
.crumbs a{ color: var(--moss) }
.crumbs a:hover{ color: var(--forest) }
.crumbs .sep{ margin: 0 8px; color: var(--muted) }

/* HERO */
.hero{ position:relative; padding: clamp(60px, 9vw, 140px) 0 clamp(60px, 9vw, 120px); overflow:hidden }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items:end }
@media (max-width: 960px){ .hero-grid{ grid-template-columns: 1fr } }
.hero h1 em{ font-style: italic; color: var(--terracotta); font-weight: 300; white-space: nowrap }
/* Smart line-balancing for major headings — prevents lonely orphan words
   like "in." or "do." from dropping to their own line on supporting browsers. */
h1, h2, h3 { text-wrap: balance }
.hero .lede{ margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 48ch }
.hero .ctas{ margin-top: 36px; display:flex; gap: 12px; flex-wrap:wrap }
.hero .meta{ margin-top: 36px; display:flex; gap: 32px; font-size: 13px; color: var(--ink-2); flex-wrap:wrap }
.hero .meta .dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--terracotta); margin-right:8px; vertical-align:middle }
.hero-art{
  aspect-ratio: 4/5; border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(232,184,138,.55), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(107,127,90,.45), transparent 55%),
    linear-gradient(135deg, var(--peach), var(--moss));
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(27,31,24,.35);
}
.hero-art > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius: inherit; }
.hero-art .frame{ position:absolute; inset: 24px; border:1px solid rgba(255,255,255,.45); border-radius: 18px }
.hero-art .badge{
  position:absolute; left: 28px; bottom: 28px;
  background: var(--paper); color:var(--forest); padding: 12px 16px; border-radius: 12px;
  font-size: 13px; letter-spacing:.02em; box-shadow: 0 10px 20px -8px rgba(27,31,24,.25)
}
.hero-art .badge .ind{ display:inline-flex; gap:6px; align-items:center; color: var(--moss); font-weight:500; font-size:11px; letter-spacing:.16em; text-transform:uppercase }
.hero-art .badge .ind::before{ content:""; width:8px; height:8px; border-radius:50%; background:#22A45D; box-shadow: 0 0 0 4px rgba(34,164,93,.18) }

/* Hero variants for program pages */
.hero-art.peach{ background: linear-gradient(160deg, var(--peach), var(--terracotta)) }
.hero-art.cream{ background: linear-gradient(160deg, var(--butter), var(--peach)) }
.hero-art.charcoal{ background: linear-gradient(160deg, #4a5a3f, #1A2418) }
.hero-art.dust{ background: linear-gradient(160deg, #d4c2a4, #8a7a5e) }
.hero-art.mossy{ background: linear-gradient(160deg, var(--moss), var(--forest)) }
.hero-art .ribbon{ position:absolute; left:24px; top:24px; padding: 8px 12px; background: var(--paper); color: var(--forest); border-radius: 10px; font-size: 12px; letter-spacing:.1em; text-transform: uppercase}

/* Trust strip */
.trust{ background: var(--paper); padding: 22px 0; border-top:1px solid var(--border-2); border-bottom:1px solid var(--border-2)}
.trust-row{ display:flex; gap: 36px; align-items:center; justify-content: space-between; flex-wrap:wrap; color: var(--ink-2); font-size: 13px}
.trust-item{ display:flex; gap:10px; align-items:center }
.trust-item .ico{ width: 22px; height: 22px; border-radius:50%; border:1px solid var(--border); display:inline-flex; align-items:center; justify-content:center; font-size: 11px; color: var(--moss) }

/* Programs grid */
.programs .head{ display:flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap:wrap; margin-bottom: 60px }
.programs .head p{ max-width: 56ch; color: var(--ink-2) }
.prog-grid{ display:grid; grid-template-columns: repeat(12, 1fr); gap: 24px }
.prog{
  grid-column: span 4;
  background: var(--paper);
  border:1px solid var(--border-2);
  border-radius: 24px;
  padding: 32px;
  display:flex; flex-direction:column; gap: 18px;
  min-height: 360px;
  transition: transform .25s ease, box-shadow .25s ease;
  position:relative; overflow:hidden;
  cursor: pointer;
}
.prog:hover{ transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(27,31,24,.35) }
.prog .ic{
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cream-2); display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-size: 22px; color: var(--forest);
}
.prog h3{ font-size: 28px; line-height: 1.05 }
.prog p{ color: var(--ink-2); font-size: 15.5px }
.prog .arrow{ margin-top: auto; font-size: 14px; color: var(--forest); font-weight:500 }
.prog.feature{ grid-column: span 8; background: linear-gradient(160deg, var(--forest), #1d2a1c); color: var(--paper); border:none }
.prog.feature h3{ color: var(--paper); font-size: 36px }
.prog.feature p{ color: rgba(255,255,255,.78) }
.prog.feature .ic{ background: rgba(255,255,255,.12); color: var(--peach) }
.prog.feature .arrow{ color: var(--peach) }
/* s3 modifier — used on the bottom row when 4 cards share the 12-col grid */
.prog.s3{ grid-column: span 3; min-height: 320px; padding: 28px }
.prog.s3 h3{ font-size: 24px }
.prog.s3 p{ font-size: 14.5px }
.prog .tag{
  position:absolute; top: 24px; right: 24px;
  background: var(--butter); color: var(--forest);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--pill);
}
.prog.feature .tag{ background: var(--peach) }
@media (max-width: 980px){
  .prog{ grid-column: span 6; min-height: 300px }
  .prog.s3{ grid-column: span 6; min-height: 280px }
  .prog.feature{ grid-column: span 12 }
}
@media (max-width: 600px){ .prog, .prog.s3{ grid-column: span 12 } }

/* Coming-soon state — the card is rendered but non-interactive. Used
   for programs not yet publicly bookable (e.g. Digital Wellness while
   we're still polishing). The underlying URL still resolves for
   internal testing. */
.prog.coming-soon{
  cursor: default; opacity: .78;
  transition: none;
}
.prog.coming-soon:hover{ transform: none; box-shadow: none; opacity: .85 }
.prog.coming-soon .arrow.muted{
  color: var(--muted); font-style: italic; font-weight: 400;
}

/* Programs intro on home (richer overview) */
.prog-intro{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); margin-top: clamp(36px, 5vw, 56px); margin-bottom: 72px; align-items: start }
@media (max-width: 900px){ .prog-intro{ grid-template-columns: 1fr } }
.prog-intro .why-list{ list-style: none; display:flex; flex-direction: column; gap: 14px; margin-top: 20px }
.prog-intro .why-list li{ display:flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px }
.prog-intro .why-list li .num{
  font-family: var(--serif); color: var(--terracotta); font-size: 22px; line-height: 1; flex: 0 0 auto; width: 28px;
  font-variation-settings:"opsz" 64;
}

/* How it works */
.howto-row{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items:start }
@media (max-width: 900px){ .howto-row{ grid-template-columns: 1fr } }
.steps{ display:flex; flex-direction: column; gap: 12px }
.step{
  display:grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid var(--border-2);
}
.step:last-child{ border-bottom: 1px solid var(--border-2) }
.step .n{
  font-family: var(--serif); font-size: 30px; color: var(--terracotta);
  font-variation-settings:"opsz" 32; line-height: 1; padding-top: 4px;
}
.step h4{ margin-bottom: 6px }
.step p{ color: var(--ink-2); font-size: 15.5px }

/* Why us */
.why-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px }
.why-card{ padding: 28px; background: var(--paper); border-radius: 18px; border:1px solid var(--border-2) }
.why-card .num{ font-family:var(--serif); font-size: 40px; color:var(--terracotta); font-variation-settings:"opsz" 64 }
.why-card h4{ margin: 8px 0; font-size: 22px }
.why-card p{ color: var(--ink-2); font-size: 14.5px }
@media (max-width: 980px){ .why-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 540px){ .why-grid{ grid-template-columns: 1fr } }

/* Stories */
.stories blockquote{
  font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); line-height: 1.2; color: var(--forest);
  font-variation-settings:"opsz" 64; max-width: 28ch; margin: 0 0 28px;
}
.stories blockquote em{ color: var(--terracotta); font-style: italic; font-weight: 300 }
.stories .who{ font-size: 13px; color: var(--moss); letter-spacing:.06em }
.stories-grid{ display:grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items:center }
@media (max-width: 900px){ .stories-grid{ grid-template-columns: 1fr } }
.story-art{
  aspect-ratio: 5/6; border-radius: 24px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(200,103,76,.45), transparent 60%),
    linear-gradient(160deg, #d8a37a 0%, #6b7f5a 100%);
}
.story-art > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius: inherit; }
.disclaimer{ font-size: 12px; color: var(--muted); margin-top: 20px }

/* Big CTA / Booking section */
.bigcta{ background: var(--forest); color: var(--paper) }
.bigcta h2{ color: var(--paper); max-width: 18ch }
.bigcta h2 em{ color: var(--peach); font-style: italic; font-weight: 300 }
.bigcta-row{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: end }
@media (max-width: 880px){ .bigcta-row{ grid-template-columns: 1fr } }
.bigcta .form-card{
  background: var(--paper); color: var(--ink); border-radius: 24px;
  padding: 32px;
}
.bigcta .form-card label{ display:block; font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--moss); margin-bottom: 8px}
.bigcta .form-card input, .bigcta .form-card select{
  width:100%; border:1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  background: var(--cream); font-family: var(--sans); font-size: 15px; color: var(--ink);
  margin-bottom: 18px;
}
.bigcta .form-card .row{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px }
.bigcta small{ display:block; font-size: 12px; color: var(--muted); margin-top: 6px }

/* Resources */
.res-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px }
.res-card{ background: var(--cream); border-radius: 20px; padding: 28px; border:1px solid var(--border-2)}
.res-card .cat{ font-size: 11px; color: var(--terracotta); letter-spacing: .14em; text-transform:uppercase }
.res-card h4{ margin: 12px 0 8px; font-size: 22px; line-height:1.15 }
.res-card .by{ font-size: 12.5px; color: var(--muted); margin-top: 16px }
@media (max-width: 880px){ .res-grid{ grid-template-columns: 1fr } }

/* FAQ */
.faq-list{ max-width: 820px; margin: 0 auto }
.faq-item{ border-top: 1px solid var(--border-2); padding: 22px 0 }
.faq-item:last-child{ border-bottom: 1px solid var(--border-2) }
.faq-q{ display:flex; justify-content:space-between; align-items:flex-start; gap: 24px; cursor:pointer }
.faq-q h4{ font-size: 20px; color: var(--forest) }
.faq-q .plus{ font-family: var(--serif); font-size: 28px; color: var(--terracotta); line-height: 1 }
.faq-a{ color: var(--ink-2); font-size: 15.5px; margin-top: 12px; max-width: 65ch }

/* Footer */
footer{ background: #1A2418; color: rgba(255,255,255,.75); padding: 80px 0 32px }
footer h5{ color: var(--peach); font-family: var(--sans); font-size: 12px; text-transform:uppercase; letter-spacing:.14em; margin-bottom: 16px; font-weight:500 }
.foot-grid{ display:grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px }
.foot-grid a{ display:block; padding: 4px 0; color: rgba(255,255,255,.7); font-size: 14px}
.foot-grid a:hover{ color: var(--paper) }
.foot-brand .brand{ color: var(--paper); font-size: 28px }
.foot-brand p{ font-size: 14px; max-width: 36ch; margin-top: 14px; color: rgba(255,255,255,.6) }
.emergency{ background: rgba(200,103,76,.15); border:1px solid rgba(200,103,76,.4); border-radius: 14px; padding: 18px; margin-top: 28px; color: var(--peach); font-size: 14px }
.emergency a{ display: inline; padding: 0; color: var(--peach) }
.bottombar{ display:flex; justify-content: space-between; align-items: center; flex-wrap:wrap; gap:16px;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 60px; padding-top: 28px; font-size: 12px; color: rgba(255,255,255,.5)}
.licenses{ display:flex; gap: 12px; flex-wrap:wrap }
.licenses span{ border:1px solid rgba(255,255,255,.18); padding: 4px 10px; border-radius: var(--pill) }
@media (max-width: 980px){ .foot-grid{ grid-template-columns: 1fr 1fr; } .foot-brand{ grid-column: span 2 } }

/* Program detail PDP */
.pdp-hero{ display:grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items:center; padding-top: 56px}
@media (max-width: 900px){ .pdp-hero{ grid-template-columns: 1fr } }
.pdp-hero .badge{ display:inline-flex; gap:8px; align-items:center;
  background: var(--butter); color: var(--forest); padding: 6px 14px; border-radius:var(--pill);
  font-size: 12px; letter-spacing:.1em; text-transform: uppercase; margin-bottom: 24px }
.pdp-hero .badge.warn{ background: #F4D6C2; color: #7c3a26 }
.pdp-art{
  aspect-ratio: 4/5; border-radius: 24px;
  background: linear-gradient(160deg, var(--moss), var(--forest));
  position: relative; overflow:hidden;
}
.pdp-art > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius: inherit; }
.pdp-art.peach{ background: linear-gradient(160deg, var(--peach), var(--terracotta)) }
.pdp-art.cream{ background: linear-gradient(160deg, var(--butter), var(--peach)) }
.pdp-art.charcoal{ background: linear-gradient(160deg, #4a5a3f, #1A2418) }
.pdp-art.dust{ background: linear-gradient(160deg, #d4c2a4, #8a7a5e) }
.pdp-art .ribbon{ position:absolute; left:24px; top:24px; padding: 8px 12px; background: var(--paper); color: var(--forest); border-radius: 10px; font-size: 12px; letter-spacing:.1em; text-transform: uppercase}

.feature-cols{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px }
@media (max-width: 880px){ .feature-cols{ grid-template-columns: 1fr } }
.feature-cols .f{ padding: 28px; background: var(--paper); border-radius: 20px; border: 1px solid var(--border-2) }
.feature-cols .f .ic{ width: 44px; height: 44px; border-radius:50%; background: var(--cream-2); display:flex; align-items:center; justify-content:center; color: var(--forest); font-family: var(--serif); font-size: 18px; margin-bottom: 18px }
.feature-cols .f h4{ font-size: 22px; margin-bottom: 6px }
.feature-cols .f p{ color: var(--ink-2); font-size: 15px }

.notice{
  background: #F4E1C7;
  border: 1px solid #D9B886;
  color: #5a3b1a;
  padding: 20px 24px; border-radius: 16px; font-size: 14.5px; line-height: 1.5;
  display:flex; gap: 14px; align-items: flex-start;
}
.notice .ico{ flex: 0 0 auto; width: 24px; height: 24px; border-radius:50%; background: #C8674C; color:#fff; display:flex; align-items:center; justify-content:center; font-weight: 700 }

/* Pricing snapshot */
.snapshot{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px }
@media (max-width: 800px){ .snapshot{ grid-template-columns: 1fr 1fr } }
.snap{ background: var(--paper); padding: 22px; border-radius: 14px; border: 1px solid var(--border-2)}
.snap .l{ font-size: 12px; letter-spacing: .1em; text-transform:uppercase; color: var(--moss) }
.snap .v{ font-family: var(--serif); font-size: 28px; color: var(--forest); margin-top: 6px; font-variation-settings:"opsz" 64 }
.snap .v small{ font-family: var(--sans); font-size: 13px; color: var(--ink-2) }

/* Mini stat row */
.stats{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 60px }
@media (max-width: 880px){ .stats{ grid-template-columns: 1fr 1fr } }
.stat{ padding: 28px; background: var(--paper); border-radius: 18px; border:1px solid var(--border-2)}
.stat .n{ font-family: var(--serif); font-size: 48px; color: var(--forest); font-variation-settings:"opsz" 144; line-height:1}
.stat .l{ font-size: 13px; color: var(--ink-2); margin-top: 8px}

/* Anchor offset */
[id]{ scroll-margin-top: 80px }

/* ======= BOOKING (per-program page bottom) ======= */
.booking{ background: var(--paper); border-top: 1px solid var(--border-2)}
.booking .hd{ text-align:center; max-width: 720px; margin: 0 auto 56px }
.booking-grid{ display:grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 4vw, 56px); align-items: stretch }
@media (max-width: 980px){ .booking-grid{ grid-template-columns: 1fr } }

/* Calendar mock */
.calbox{ background: var(--cream); border:1px solid var(--border-2); border-radius: 24px; padding: 28px }
.calbox h4{ font-size: 22px; margin-bottom: 4px }
.calbox .month{
  display:flex; justify-content: space-between; align-items: center; margin-top: 14px; margin-bottom: 16px;
}
.calbox .month .arrows{ display:flex; gap: 6px }
.calbox .arrows button{
  width: 32px; height: 32px; border-radius: 50%; border:1px solid var(--border);
  background: var(--paper); color: var(--forest); cursor:pointer; font-size: 16px; line-height: 1;
}
.calbox .arrows button:hover{ background: var(--forest); color: var(--paper); border-color: var(--forest) }
.calbox .month .label{ font-family: var(--serif); font-size: 22px; color: var(--forest); font-variation-settings: "opsz" 32 }
.cal-grid{ display:grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow{ font-size: 11px; color: var(--muted); text-align:center; padding: 4px 0; letter-spacing: .12em; text-transform: uppercase }
.cal-grid .day{
  aspect-ratio: 1/1; display:flex; align-items:center; justify-content:center;
  border-radius: 10px; font-size: 14px; color: var(--ink-2);
  background: var(--paper); border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  position: relative;
}
.cal-grid .day.empty{ background: transparent; cursor: default }
.cal-grid .day.dim{ color: var(--muted); cursor: not-allowed; background: transparent }
.cal-grid .day:hover:not(.empty):not(.dim){ background: var(--cream-2); border-color: var(--border) }
.cal-grid .day.has::after{ content:""; position:absolute; bottom: 5px; width:4px; height:4px; border-radius:50%; background: var(--terracotta) }
.cal-grid .day.selected{ background: var(--forest); color: var(--paper); font-weight: 500; border-color: var(--forest) }
.cal-grid .day.today{ box-shadow: inset 0 0 0 1px var(--terracotta) }

.slots-label{ display:flex; justify-content: space-between; align-items: end; margin: 24px 0 12px }
.slots-label .small{ font-size: 12px; color: var(--muted) }
.slots{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px }
.slots button{
  background: var(--paper); color: var(--ink-2); border: 1px solid var(--border);
  padding: 12px 8px; font-size: 14px; border-radius: var(--pill); cursor:pointer; font-family: var(--sans);
  transition: all .15s ease;
}
.slots button:hover{ background: var(--cream-2) }
.slots button.selected{ background: var(--forest); color: var(--paper); border-color: var(--forest) }
.slots button[disabled]{ color: var(--muted); background: transparent; border-style: dashed; cursor: not-allowed }
@media (max-width: 540px){ .slots{ grid-template-columns: repeat(2, 1fr) } }

/* Booking form fields */
.bookform{ background: var(--cream); border:1px solid var(--border-2); border-radius: 24px; padding: 28px }
.bookform h4{ font-size: 22px; margin-bottom: 12px }
.bookform label{ display:block; font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--moss); margin: 16px 0 6px }
/* font-size kept at 16px so iOS Safari does not auto-zoom on focus.
   Anything under 16px triggers the readability zoom and breaks the
   booking-flow layout on mobile. */
.bookform input, .bookform select, .bookform textarea{
  width: 100%; border: 1px solid var(--border); background: var(--paper); padding: 14px 16px;
  border-radius: 12px; font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.bookform textarea{ min-height: 96px; resize: vertical }
.bookform .row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px }
/* Pillrow — equal-width grid cells across every viewport so a 3-pill
   "Visit type / Preferred language" row always reads as one tidy line
   on phones and never as one orphan pill wrapping below on desktop.
   auto-fit + minmax(90px, 1fr) means 4+ pill rows (e.g. Regenerative's
   "Indication area") wrap into the next row at equal widths too. */
.bookform .pillrow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.bookform .pillrow label {
  all: unset;
  cursor: pointer;
  display: block;
  width: 100%;
}
.bookform .pillrow input { display: none; }
.bookform .pillrow span,
.bookform .pillrow input:checked + span {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: var(--pill);
  font-size: 13.5px;
  text-align: center;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bookform .pillrow input:checked + span {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.bookform .summary{
  background: var(--paper); border-radius: 14px; border:1px solid var(--border-2);
  padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); margin-top: 14px;
  display:flex; gap: 8px; align-items:center;
}
.bookform .summary .pill{ background: var(--cream-2); padding: 4px 10px; border-radius: var(--pill); color: var(--forest); font-weight: 500 }
.bookform .agree{ font-size: 12px; color: var(--muted); margin-top: 14px }

/* Telehealth two-tier visit-category picker (see assets/telehealth-categories.js) */
.cat-picker { margin-top: 4px; }
.cat-step1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}
@media (min-width: 540px) {
  .cat-step1 { grid-template-columns: 1fr 1fr; }
}
.cat-card {
  all: unset;
  cursor: pointer;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.cat-card:hover { border-color: var(--moss); background: var(--cream); }
.cat-card:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44,61,42,.12);
}
.cat-card.selected {
  border-color: var(--forest);
  background: var(--cream);
  box-shadow: 0 0 0 2px rgba(44,61,42,.08);
}
.cat-card-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  color: var(--forest);
  font-variation-settings: "opsz" 32;
}
.cat-card-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.cat-warning {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FEF2F0;
  border: 1px solid #E8A49A;
  color: #7c3a26;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.cat-step2 {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-step2 label { all: unset; cursor: pointer; }
.cat-step2 input { display: none; }
.cat-step2 span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 13.5px;
}
.cat-step2 input:checked + span {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
.cat-step2-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 560px) {
  .cat-step2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
  .cat-step2 label, .cat-step2 span, .cat-step2 input:checked + span {
    width: 100%; box-sizing: border-box; text-align: center; padding-left: 8px; padding-right: 8px;
  }
}

/* Booking photo upload (Step 3) — drop zone + thumbnail grid. Only
   renders when the category picker resolves to photoAllowed=true. */
.photo-section { margin-top: 10px; }
.photo-section #photoSectionHint:not(:empty)::before { content: " — "; }
.photo-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  margin-top: 4px;
}
.photo-dropzone:hover, .photo-dropzone.drag-over {
  border-color: var(--forest);
  background: var(--cream);
}
.photo-dropzone:focus-visible {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(44,61,42,.12);
}
.photo-dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--forest);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 44px;
  text-align: center;
  flex-shrink: 0;
}
.photo-dropzone-text { display: flex; flex-direction: column; gap: 2px; }
.photo-dropzone-text strong { color: var(--forest); font-weight: 500; font-size: 14px; }
.photo-dropzone-or { color: var(--muted); font-size: 12.5px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.photo-grid:empty { display: none; }
.photo-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-thumb.uploading { opacity: 0.55; }
.photo-thumb .spinner {
  position: absolute; top: 50%; left: 50%;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--forest);
  animation: photo-spin .8s linear infinite;
}
.photo-thumb .delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(27,31,24,.7);
  color: white;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s ease;
}
.photo-thumb .delete-btn:hover { background: var(--terracotta); }
.photo-thumb .photo-err {
  position: absolute; inset: 0;
  background: rgba(200,103,76,.92);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  line-height: 1.4;
}

@keyframes photo-spin { to { transform: rotate(360deg); } }

.photo-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FEF2F0;
  border: 1px solid #E8A49A;
  color: #7c3a26;
  border-radius: 10px;
  font-size: 13px;
}

/* Medication-cost disclosure — appears under every pricing surface
   to clarify that Vita Health 365's fee covers consultation + Rx but
   not medication itself. Tuned to read as quiet legal copy (matches
   the .legal-note vibe in payment.html) rather than an alarming
   warning box, so it doesn't clash with the site's calm typography. */
.medication-notice {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border-2);
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
}
.medication-notice strong { color: var(--ink-2); font-weight: 500; }
.medication-notice .heading {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 6px;
}
/* Multilingual disclosure — each notice carries three sibling blocks
   (en / ko / zh). The site's language switcher flips the data-lang
   attribute on <html>, so we toggle visibility purely in CSS — no JS
   wiring needed for this. English is the default until/unless the user
   picks 한국어 or 中文. */
.medication-notice [data-lang] { display: none; }
.medication-notice [data-lang="en"] { display: block; }
html[data-lang="ko"] .medication-notice [data-lang="en"] { display: none; }
html[data-lang="ko"] .medication-notice [data-lang="ko"] { display: block; }
html[data-lang="zh"] .medication-notice [data-lang="en"] { display: none; }
html[data-lang="zh"] .medication-notice [data-lang="zh"] { display: block; }

/* Pricing tiers (used on subpages) */
.tier-mini{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px}
@media (max-width: 800px){ .tier-mini{ grid-template-columns: 1fr } }
.tier-mini .t{ background: var(--paper); border-radius: 18px; border: 1px solid var(--border-2); padding: 24px; }
.tier-mini .t .price{ font-family: var(--serif); font-size: 36px; color: var(--forest); margin: 6px 0 4px }
.tier-mini .t .desc{ font-size: 13.5px; color: var(--ink-2)}
.tier-mini .t.featured{ background: var(--forest); color: var(--paper); border-color: var(--forest)}
.tier-mini .t.featured .price{ color: var(--paper)}
.tier-mini .t.featured .desc{ color: rgba(255,255,255,.78)}

/* ──────────────────────────────────────────────────────────────────────
   Digital Wellness ("Quiet Minutes")
   A softer sub-skin layered over the medical site's tokens. Same fonts,
   warmer palette, slower motion. Lives at /digital-wellness/*.
   ────────────────────────────────────────────────────────────────────── */
:root{
  --qm-ivory:  #FAF6EE;
  --qm-peach:  #F4D6C2;
  --qm-blush:  #E8C4B8;
  --qm-sage:   #A8B89F;
  --qm-ink:    #2B2A26;
  --qm-quiet:  rgba(43,42,38,0.60);   /* single secondary text color */
  --qm-mute:   rgba(43,42,38,0.45);   /* tertiary / placeholder */
  --qm-peach-ink: #B25C3D;            /* brand accent for em + tel links */
  --qm-card:   #FFFBF2;
  --qm-border: rgba(43,42,38,0.10);

  /* Unified type scale used across every QM page. */
  --qm-font-sans: 'Noto Sans KR', 'Noto Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --qm-fs-xs:    12px;     /* caption / footer-disclaimer-mobile */
  --qm-fs-sm:    13px;     /* small body / consent text / nav links / chat note */
  --qm-fs-base:  15px;     /* body input / chat composer / form fields */
  --qm-fs-md:    16px;     /* lede / large body */
  --qm-eyebrow:  12.5px;   /* uppercase labels */
  --qm-tracking-eyebrow: .16em;
  --qm-lh-tight: 1.35;
  --qm-lh-body:  1.7;
  --qm-lh-small: 1.6;
}
.qm-body{
  background: var(--qm-ivory);
  color: var(--qm-ink);
  font-family: var(--qm-font-sans);
  font-size: var(--qm-fs-base);
  line-height: var(--qm-lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Inherit the unified sans everywhere unless a rule explicitly opts into
   the serif (headings, brand mark, duration buttons, chat reply). */
.qm-body button, .qm-body input, .qm-body select, .qm-body textarea,
.qm-body a, .qm-body p, .qm-body span, .qm-body div, .qm-body label,
.qm-body li, .qm-body small{ font-family: inherit; }

/* Korean / Chinese should never break mid-syllable-group. `keep-all`
   keeps CJK runs intact while still allowing wraps at spaces and CJK
   punctuation — fixes things like "지/금" breaking across lines. */
.qm-body h1, .qm-body h2, .qm-body h3,
.qm-body .qm-eyebrow, .qm-body .qm-foot-disclaimer,
.qm-body .qm-hero .lede, .qm-body .qm-check, .qm-body p{
  word-break: keep-all; overflow-wrap: normal;
}
.qm-body *{ transition: opacity .5s ease, transform .5s ease, background .5s ease, color .5s ease; }
.qm-wrap{ max-width: 760px; margin: 0 auto; padding: 0 24px; }
.qm-wrap.wide{ max-width: 1080px; }
.qm-nav{ padding: 28px 0; display:flex; justify-content:space-between; align-items:center; font-size: var(--qm-fs-sm); line-height: 1.4 }
.qm-nav .brand{ font-family: var(--serif); font-size: 22px; color: var(--qm-ink); text-decoration:none; letter-spacing:-.01em; line-height: 1 }
.qm-nav .brand small{ font-size: var(--qm-fs-xs); letter-spacing: var(--qm-tracking-eyebrow); text-transform:uppercase; color: var(--qm-quiet); margin-left: 10px; font-weight: 500; }
.qm-nav a.qm-link{ color: var(--qm-quiet); text-decoration:none; margin-left: 18px; font-size: var(--qm-fs-sm); font-weight: 400; }
.qm-nav a.qm-link:hover{ color: var(--qm-ink); }

/* Mobile nav — stack the brand on its own row, centered, with the
   back-link + language switcher on a second row below. The desktop
   space-between cram looks crowded on phones because the brand has
   a serif name + uppercase "BY VITA HEALTH 365" small. */
@media (max-width: 640px){
  .qm-nav{
    padding: 22px 0 18px;
    flex-direction: column; align-items: center; gap: 10px;
    text-align: center;
  }
  .qm-nav .brand{ display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.1 }
  .qm-nav .brand small{ margin-left: 0 }
  .qm-nav > nav{ display: flex; align-items: center; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .qm-nav a.qm-link{ margin-left: 0 }
  .qm-nav .qm-lang{ margin-left: 0 }
}
.qm-hero{ padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); text-align: center; }
.qm-hero h1{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.15;
  letter-spacing: -0.015em; margin: 0 auto; max-width: 18ch;
  color: var(--qm-ink);
}
.qm-hero h1 em{ font-style: italic; color: var(--qm-peach-ink); font-weight: 300; }
.qm-hero .lede{
  margin: 22px auto 0; max-width: 56ch;
  color: var(--qm-quiet); font-size: var(--qm-fs-md);
  line-height: var(--qm-lh-body); font-weight: 400;
}
.qm-eyebrow{
  font-size: var(--qm-eyebrow); letter-spacing: var(--qm-tracking-eyebrow);
  text-transform: uppercase; color: var(--qm-quiet); font-weight: 500;
  display:inline-block; margin-bottom: 18px;
}
.qm-eyebrow.larger{ font-size: 14px; margin-bottom: 20px }
.qm-card{
  background: var(--qm-card);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--qm-border);
}
.qm-card h2{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3vw, 30px); line-height: 1.25;
  color: var(--qm-ink);
}
.qm-card p{ font-size: var(--qm-fs-sm); color: var(--qm-quiet); line-height: var(--qm-lh-small); }
.qm-row{ display:grid; gap: 14px }
.qm-row.cols-2{ grid-template-columns: 1fr 1fr; }
@media (max-width: 600px){ .qm-row.cols-2{ grid-template-columns: 1fr } }
.qm-field label{
  display:block; font-size: var(--qm-fs-xs);
  letter-spacing: .12em; text-transform:uppercase;
  color: var(--qm-quiet); font-weight: 500; margin-bottom: 8px;
}
.qm-field input,
.qm-field select{
  width: 100%; height: 48px;
  padding: 0 14px;
  background: var(--qm-ivory); border: 1px solid var(--qm-border);
  border-radius: 14px; font-family: inherit;
  font-size: var(--qm-fs-base); line-height: 1.4;
  color: var(--qm-ink);
  box-sizing: border-box;
}
/* Native <select> renders with its own arrow + line-height — strip the
   browser chrome so its box height matches the inputs exactly. */
.qm-field select{
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--qm-quiet) 50%),
                    linear-gradient(135deg, var(--qm-quiet) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.qm-field input:focus, .qm-field select:focus{ outline: 2px solid var(--qm-blush); outline-offset: 1px; border-color: transparent; }
.qm-field-hint{
  font-size: var(--qm-fs-xs); color: var(--qm-quiet);
  margin-top: 8px; line-height: var(--qm-lh-small);
}

/* Returning-member CTA — sits above the signup card. Slimmed: just the
   prompt + a Start button that routes to /digital-wellness/signin/.
   The full phone-OTP flow lives there, not inline, so this stays calm. */
.qm-signin{
  background: var(--qm-card);
  border: 1px solid var(--qm-border);
  border-radius: 20px;
  padding: 18px 22px;
  margin: 0 auto 22px;
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.qm-signin-prompt{
  flex: 1; min-width: 240px;
  color: var(--qm-quiet);
  /* Match .qm-hero .lede so the returning-member CTA reads at the same
     visual weight as the lead paragraph above it. */
  font-size: var(--qm-fs-md); line-height: var(--qm-lh-body);
}
.qm-signin-prompt strong{ color: var(--qm-ink); font-weight: 600 }
.qm-signin .qm-btn{
  text-decoration: none;
  white-space: nowrap;
}
.qm-check{
  display:flex; gap: 10px; align-items: flex-start;
  font-size: var(--qm-fs-sm); color: var(--qm-quiet);
  line-height: var(--qm-lh-small);
}
.qm-check input{ margin-top: 3px; flex: 0 0 auto; width: 16px; height: 16px; accent-color: var(--qm-peach-ink) }
.qm-check a{ color: var(--qm-peach-ink); text-decoration: underline; text-underline-offset: 3px }
.qm-check strong{ color: var(--qm-ink); font-weight: 600 }
.qm-btn{
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
  padding: 14px 26px; border-radius: 999px;
  font-size: var(--qm-fs-base); line-height: 1;
  background: var(--qm-ink); color: var(--qm-ivory);
  transition: opacity .25s ease, transform .25s ease;
}
.qm-btn:hover{ opacity: .88 }
.qm-btn:disabled{ opacity: .5; cursor: not-allowed }
.qm-btn.ghost{ background: transparent; color: var(--qm-ink); border: 1px solid var(--qm-border); }
.qm-btn.small{ padding: 10px 18px; font-size: var(--qm-fs-sm) }
.qm-err{ color: #a64327; font-size: var(--qm-fs-sm); min-height: 1em; margin-top: 6px }
.qm-foot-disclaimer{
  margin: 64px auto 32px; text-align:center; color: var(--qm-quiet);
  font-size: var(--qm-fs-sm); line-height: var(--qm-lh-small);
  max-width: 80ch; padding: 0 16px; font-weight: 400;
}
.qm-foot-disclaimer a{ color: var(--qm-peach-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap }
@media (max-width: 720px){ .qm-foot-disclaimer{ font-size: var(--qm-fs-xs); max-width: 56ch } }

/* Language switcher (Quiet Minutes nav) */
.qm-lang{ position: relative; display: inline-block; margin-left: 16px }
.qm-lang-btn{
  background: transparent; border: 1px solid var(--qm-border);
  padding: 7px 14px; border-radius: 999px;
  font-family: inherit; font-size: var(--qm-fs-sm);
  color: var(--qm-ink); font-weight: 500;
  cursor: pointer; line-height: 1; display:inline-flex; align-items:center; gap:6px;
}
.qm-lang-btn:hover{ background: var(--qm-card) }
.qm-lang-menu{
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--qm-card); border: 1px solid var(--qm-border); border-radius: 14px;
  box-shadow: 0 18px 40px -22px rgba(43,42,38,.25);
  padding: 6px; min-width: 140px; display: none; z-index: 50;
}
.qm-lang-menu.open{ display: block }
.qm-lang-menu a{
  display:block; padding: 9px 14px; border-radius: 10px;
  font-size: var(--qm-fs-sm); color: var(--qm-ink); text-decoration: none; font-weight: 400;
}
.qm-lang-menu a:hover{ background: var(--qm-ivory) }
.qm-lang-menu a.active{ background: var(--qm-peach); color: var(--qm-ink); font-weight: 500 }

/* Wave-dot loader — calm, friendly, brand peach */
.qm-loader{ display:inline-flex; gap: 10px; justify-content:center; align-items:center }
.qm-loader span{
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--qm-peach-ink); opacity: .4;
  animation: qmWave 1.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.qm-loader span:nth-child(1){ animation-delay: 0s }
.qm-loader span:nth-child(2){ animation-delay: .18s }
.qm-loader span:nth-child(3){ animation-delay: .36s }
.qm-loader span:nth-child(4){ animation-delay: .54s }
@keyframes qmWave {
  0%, 60%, 100% { transform: translateY(0); opacity: .35 }
  30%           { transform: translateY(-12px); opacity: 1 }
}
.qm-overlay{
  position: fixed; inset: 0; background: rgba(250,246,238,0.96);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 28px; z-index: 9998;
  opacity: 0; transition: opacity .4s ease;
  font-family: var(--qm-font-sans);
}
.qm-overlay.show{ display: flex; opacity: 1 }
.qm-overlay .label{
  color: var(--qm-ink); font-size: clamp(18px, 2.4vw, 22px);
  font-family: var(--serif); font-weight: 300;
  letter-spacing: -.005em; line-height: 1.3;
  text-align: center; max-width: 26ch;
}
.qm-overlay .qm-loader span{ width: 14px; height: 14px }
@media (prefers-reduced-motion: reduce){
  .qm-loader span{ animation: none; opacity: .55 }
}

/* DOB triple input */
.qm-dob{
  display:grid; grid-template-columns: 88px 88px 1fr; gap: 10px;
}
.qm-dob input{
  text-align: center; font-variant-numeric: tabular-nums;
}
.qm-dob input::-webkit-outer-spin-button,
.qm-dob input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qm-dob input { -moz-appearance: textfield; }

/* Category picker */
.qm-cat-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 24px }
@media (max-width: 880px){ .qm-cat-grid{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 500px){ .qm-cat-grid{ grid-template-columns: 1fr } }
.qm-cat{
  cursor:pointer; padding: 28px 24px; border-radius: 20px; border: 1px solid var(--qm-border);
  background: var(--qm-card); text-align: left;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  /* Equal heights across the row + consistent internal rhythm. */
  display: flex; flex-direction: column;
  min-height: 200px;
  font-family: inherit;
  word-break: keep-all;
}
.qm-cat:hover{ transform: translateY(-3px); border-color: var(--qm-blush) }
.qm-cat.active{ background: var(--qm-peach); border-color: var(--qm-peach) }
.qm-cat .name{
  font-family: var(--serif); font-weight: 300;
  font-size: 24px; line-height: 1.2; margin-bottom: 12px;
  color: var(--qm-ink); letter-spacing: -.01em;
}
.qm-cat .blurb{
  font-size: var(--qm-fs-sm); color: var(--qm-quiet);
  line-height: var(--qm-lh-small); word-break: keep-all;
}
.qm-dur-row{ display:flex; gap: 12px; margin-top: 18px; flex-wrap:wrap; justify-content:center }
.qm-dur-btn{
  height: 56px; padding: 0 30px; border-radius: 999px;
  border: 1px solid var(--qm-border); background: var(--qm-card);
  font-family: var(--serif); font-size: 22px; font-weight: 300;
  cursor: pointer; min-width: 120px; color: var(--qm-ink);
  letter-spacing: -.01em; line-height: 1;
}
.qm-dur-btn:hover{ border-color: var(--qm-blush) }
.qm-dur-btn.active{ background: var(--qm-ink); color: var(--qm-ivory); border-color: var(--qm-ink) }
.qm-start-row{ text-align:center; margin-top: 24px }
/* Start button visually pairs with the duration buttons above — same
   height, deeper padding, and the brand ink fill so it reads as the
   primary action on the row. */
.qm-start-row .qm-btn{
  height: 56px; padding: 0 36px; font-size: 16px; font-weight: 500;
}

/* Step labels on the picker — same scale as eyebrows, slightly larger,
   centered above each step. */
.qm-step-label{
  font-size: 14px; letter-spacing: var(--qm-tracking-eyebrow);
  text-transform: uppercase; color: var(--qm-quiet);
  font-weight: 500; margin-bottom: 18px; text-align: center;
}
/* Picker hero (the personalized greeting block) — consistent rhythm
   with the hero on the landing page. */
.qm-picker-hero{
  padding: clamp(36px, 6vw, 72px) 0 16px;
  max-width: 820px; margin: 0 auto; text-align: center;
}
.qm-picker-headline{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.2;
  margin: 0 auto; max-width: 26ch;
  word-break: keep-all; overflow-wrap: normal;
  color: var(--qm-ink); letter-spacing: -.01em;
}
.qm-picker-headline em{ font-style: italic; color: var(--qm-peach-ink); font-weight: 300 }
.qm-picker-headline strong{ font-weight: 400 }
.qm-step{ margin-top: 28px }
.qm-step + .qm-step{ margin-top: 14px }

/* Session player */
.qm-session{ min-height: 100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding: 100px 20px 60px; gap: 28px; background: var(--qm-ivory) }
.qm-session .headline{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.2; text-align:center;
  max-width: 26ch; color: var(--qm-ink);
  word-break: keep-all; overflow-wrap: normal;
  letter-spacing: -.01em;
}
.qm-cat-eyebrow{
  font-size: var(--qm-eyebrow); letter-spacing: var(--qm-tracking-eyebrow);
  text-transform: uppercase; color: var(--qm-quiet);
  font-weight: 500; margin: 0;
}
/* Orb + progress ring container. The ring's stroke sweeps in sync with
   the breathing phase so the user always sees exactly how long is left
   in inhale / hold / exhale — fixes the "I don't know when to exhale"
   problem from the old version where only the orb scaled. */
.qm-orb-wrap{
  position: relative;
  width: clamp(180px, 26vw, 260px); height: clamp(180px, 26vw, 260px);
  display: flex; align-items: center; justify-content: center;
}
.qm-orb-ring{
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: rotate(-90deg); pointer-events: none; overflow: visible;
}
.qm-orb-ring .track{
  fill: none; stroke: var(--qm-border); stroke-width: 3;
}
.qm-orb-ring .sweep{
  fill: none; stroke: var(--qm-peach-ink); stroke-width: 5;
  stroke-linecap: round;
  /* 2π · r where r = 110 ≈ 691.15 */
  stroke-dasharray: 691.15;
  stroke-dashoffset: 691.15;
  transition: stroke-dashoffset 0s linear, stroke 0.4s ease;
}
.qm-orb-ring.inhale  .sweep{ stroke: var(--qm-peach-ink) }
.qm-orb-ring.hold    .sweep{ stroke: var(--qm-sage) }
.qm-orb-ring.exhale  .sweep{ stroke: var(--qm-blush) }
.qm-orb{
  width: clamp(150px, 22vw, 220px); height: clamp(150px, 22vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFEAD4, #F4D6C2 60%, #E8C4B8 100%);
  box-shadow: 0 24px 60px -28px rgba(178,92,61,.35), inset 0 0 32px rgba(255,255,255,.4);
  display:flex; align-items:center; justify-content:center;
  /* Transition duration is overridden per-phase via inline style so the
     orb scales over exactly inhale / hold / exhale seconds. */
  transition: transform 4s cubic-bezier(0.25,0.1,0.25,1), filter 4s cubic-bezier(0.25,0.1,0.25,1);
}
.qm-orb.inhale{ transform: scale(1.08); filter: blur(2px) }
.qm-orb.exhale{ transform: scale(0.78); filter: blur(0px) }
.qm-orb.hold{ transform: scale(1.08); filter: blur(2px) }
@media (prefers-reduced-motion: reduce){
  .qm-orb-ring .sweep{ transition: none !important; stroke-dashoffset: 0 }
}
.qm-clock{
  font-family: var(--serif);
  font-size: clamp(56px, 10vw, 124px);
  font-weight: 400;
  color: var(--qm-ink);
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.qm-clock .colon{ display:inline-block; opacity: .65; animation: qmColonBlink 1.5s ease-in-out infinite }
@keyframes qmColonBlink { 0%, 100%{ opacity: .35 } 50%{ opacity: .9 } }
.qm-breath-label{
  font-size: var(--qm-eyebrow); color: var(--qm-quiet);
  letter-spacing: var(--qm-tracking-eyebrow); text-transform: uppercase;
  font-weight: 500; min-height: 1em;
}

/* Chat-style composer — a single rounded capsule that holds the
   textarea and the send button as one calm input. The empathic reply
   sits above it as a soft bubble, so the page reads top-to-bottom:
   reply (when present) → composer → privacy note. */
.qm-chat{ width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 14px }
.qm-chat-reply{
  align-self: flex-start; max-width: 100%;
  background: var(--qm-card); border: 1px solid var(--qm-border);
  border-radius: 22px 22px 22px 6px;
  padding: 18px 22px;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: var(--qm-fs-md); line-height: var(--qm-lh-body);
  color: var(--qm-ink);
  opacity: 0; transform: translateY(6px);
  display: none;
}
.qm-chat-reply.show{
  display: block; opacity: 1; transform: translateY(0);
  transition: opacity .9s ease, transform .9s ease;
}
.qm-chat-reply.error{
  font-family: var(--qm-font-sans); font-style: normal; font-weight: 400;
  font-size: var(--qm-fs-sm); color: #a64327;
  background: rgba(166,67,39,0.05); border-color: rgba(166,67,39,0.2);
}
.qm-chat-composer{
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--qm-card); border: 1px solid var(--qm-border);
  border-radius: 24px; padding: 10px 10px 10px 22px;
  transition: border-color .25s ease;
}
.qm-chat-composer:focus-within{ border-color: var(--qm-blush) }
.qm-chat-composer textarea{
  flex: 1; min-height: 28px; max-height: 220px;
  border: none; background: transparent; outline: none; resize: none;
  font-family: inherit; font-size: var(--qm-fs-base); line-height: var(--qm-lh-small);
  color: var(--qm-ink); padding: 10px 0;
}
.qm-chat-composer textarea::placeholder{ color: var(--qm-mute) }
.qm-chat-send{
  flex: 0 0 auto;
  border: none; cursor: pointer; font-family: inherit; font-weight: 500;
  background: var(--qm-ink); color: var(--qm-ivory);
  padding: 12px 22px; border-radius: 999px;
  font-size: var(--qm-fs-sm); line-height: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.qm-chat-send:hover{ opacity: .88 }
.qm-chat-send:disabled{ opacity: .5; cursor: not-allowed }
.qm-chat-note{
  font-size: var(--qm-fs-xs); color: var(--qm-quiet);
  text-align: center; line-height: var(--qm-lh-small);
}
.qm-controls{ display:flex; gap: 12px; flex-wrap:wrap; justify-content:center; margin-top: 8px }

/* Safety overlay */
.qm-safety{
  position: fixed; inset: 0; background: rgba(43,42,38,0.92);
  display:flex; align-items:center; justify-content:center; z-index: 9999;
  padding: 24px;
}
.qm-safety .panel{
  background: var(--qm-ivory); border-radius: 24px;
  padding: 40px; max-width: 520px; width: 100%;
  text-align: center; color: var(--qm-ink);
}
.qm-safety h2{ font-family: var(--serif); font-weight: 300; font-size: 28px; margin-bottom: 14px; line-height: 1.25; color: var(--qm-ink) }
.qm-safety p{ color: var(--qm-quiet); line-height: var(--qm-lh-body); font-size: var(--qm-fs-base); margin-bottom: 24px }
.qm-safety ul{ list-style: none; padding: 0; margin: 0 0 28px; display:flex; flex-direction:column; gap: 10px }
.qm-safety ul li{ font-size: var(--qm-fs-base); line-height: var(--qm-lh-small) }
.qm-safety ul a{ color: var(--qm-peach-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }
.qm-safety .actions{ display:flex; gap: 10px; justify-content:center; flex-wrap: wrap }

@media (prefers-reduced-motion: reduce){
  .qm-orb, .qm-orb.inhale, .qm-orb.exhale, .qm-orb.hold{ transition: none; transform: none; filter: none }
  .qm-clock .colon{ animation: none; opacity: .4 }
  .qm-body *{ transition: none }
}

/* Multilingual visibility — Quiet Minutes uses the same html[data-lang] flip.
   The `.qm-lang-menu` dropdown also uses `data-lang` on its links as a
   routing attribute, so we explicitly exclude it (otherwise switching to
   ko/zh would hide the other-language picks from the menu itself). */
.qm-i18n [data-lang]:not(.qm-lang-menu [data-lang]){ display:none }
.qm-i18n [data-lang="en"]:not(.qm-lang-menu [data-lang]){ display: inline }
html[data-lang="ko"] .qm-i18n [data-lang="en"]:not(.qm-lang-menu [data-lang]){ display: none }
html[data-lang="ko"] .qm-i18n [data-lang="ko"]:not(.qm-lang-menu [data-lang]){ display: inline }
html[data-lang="zh"] .qm-i18n [data-lang="en"]:not(.qm-lang-menu [data-lang]){ display: none }
html[data-lang="zh"] .qm-i18n [data-lang="zh"]:not(.qm-lang-menu [data-lang]){ display: inline }
/* Lang menu items are always visible regardless of current language. */
.qm-lang-menu a[data-lang]{ display: block }

/* Legal page */
.legal{ display:grid; grid-template-columns: 280px 1fr; gap: 64px; padding-top: 80px}
@media (max-width: 900px){ .legal{ grid-template-columns: 1fr } }
.legal aside{ position: sticky; top: 100px; align-self: start; height: fit-content }
.legal aside .toc-title{ font-size: 12px; letter-spacing: .14em; color: var(--moss); text-transform: uppercase; margin-bottom: 16px}
.legal aside ul{ list-style: none; display:flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--border); padding-left: 16px }
.legal aside a{ font-size: 14px; color: var(--ink-2); padding: 4px 0; display:block }
.legal aside a:hover, .legal aside a.active{ color: var(--forest) }
.legal aside a.active{ font-weight: 500 }
.legal article h2{ font-size: 36px; margin-bottom: 14px }
.legal article h3{ font-size: 22px; margin-top: 32px; margin-bottom: 12px; font-family: var(--sans); font-weight: 600; color: var(--forest); letter-spacing: 0 }
.legal article p{ color: var(--ink-2); font-size: 15.5px; margin-bottom: 14px}
.legal article ul{ margin: 0 0 14px 22px; color: var(--ink-2); font-size: 15.5px }
.legal article ul li{ margin-bottom: 6px }
.legal article .meta{ font-size: 13px; color: var(--muted); margin-bottom: 36px }
@media (max-width: 900px){
  .legal{ gap: 32px; padding-top: 32px }
  .legal aside{ position: static; top: auto }
}

/* About section */
.about-grid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.about-art{ aspect-ratio: 5/4 }
@media (max-width: 880px){
  .about-grid{ grid-template-columns: 1fr; gap: 40px }
  .about-art{ aspect-ratio: 4/3; order: -1 }
}

/* ==============================================================
   ENHANCEMENTS — Mobile menu, accessibility, cookie banner,
   scroll animations, language switcher, back-to-top, print
   ============================================================== */

/* Mobile menu */
.menu-toggle { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.menu-toggle span { display:block; width:22px; height:2px; background:var(--forest); margin:5px 0; transition: all .24s cubic-bezier(0.22,1,0.36,1); }
@media (max-width: 880px) {
  .menu-toggle { display:block; }
  .nav.menu-open {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background: var(--cream); backdrop-filter:none;
    border-bottom:none; overflow-y:auto; -webkit-overflow-scrolling:touch;
  }
  .nav.menu-open .nav-row {
    flex-wrap:wrap; align-content:start; min-height:100vh;
    padding-top:14px; padding-bottom:14px;
  }
  .nav-links {
    display:none; order:3; width:100%;
    flex-direction:column; align-items:center; gap:28px;
    font-size:24px; padding:48px 0 32px;
  }
  .nav-links.open { display:flex; }
  .nav.menu-open .nav-cta {
    display:flex; order:4; width:100%;
    flex-direction:column; align-items:center; gap:14px;
    padding:16px 0 calc(32px + env(safe-area-inset-bottom));
    border-top:1px solid var(--border-2);
  }
  .nav.menu-open .nav-cta .btn { font-size:17px; padding:16px 40px; width:100%; max-width:320px; text-align:center }
  .nav.menu-open .nav-cta .lang-switcher { display:block }
  .menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .menu-toggle.open span:nth-child(2) { opacity:0; }
  .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Skip to content (accessibility) */
.skip-link {
  position:absolute; top:-100%; left:16px; background:var(--forest); color:var(--paper);
  padding:12px 24px; border-radius:0 0 var(--radius) var(--radius); z-index:200;
  font-size:14px; font-weight:500; transition: top .2s;
}
.skip-link:focus { top:0; }

/* Cookie banner */
.cookie-banner {
  position:fixed; bottom:0; left:0; right:0; z-index:999;
  background:var(--forest); color:var(--paper); padding:20px var(--pad);
  transform: translateY(100%); transition: transform .4s cubic-bezier(0.22,1,0.36,1);
  border-top: 1px solid rgba(255,255,255,.1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container); margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cookie-banner p { font-size:14px; color:rgba(255,255,255,.8); max-width:60ch; }
.cookie-banner p a { text-decoration:underline; color:var(--peach); }
.cookie-btns { display:flex; gap:10px; flex-shrink:0; }
.cookie-btns button {
  padding:10px 20px; border-radius:var(--pill); font-size:13px; font-weight:500;
  cursor:pointer; border:1px solid rgba(255,255,255,.3); font-family:var(--sans);
  transition: all .2s;
}
.cookie-btns .accept { background:var(--paper); color:var(--forest); border-color:var(--paper); }
.cookie-btns .accept:hover { background:var(--white); }
.cookie-btns .decline { background:transparent; color:var(--paper); }
.cookie-btns .decline:hover { background:rgba(255,255,255,.1); }

/* Scroll-based animations (respect prefers-reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity:0; transform:translateY(24px); transition: opacity .6s cubic-bezier(0.22,1,0.36,1), transform .6s cubic-bezier(0.22,1,0.36,1); }
  .fade-in.visible { opacity:1; transform:translateY(0); }
  .fade-in-delay-1 { transition-delay: .1s; }
  .fade-in-delay-2 { transition-delay: .2s; }
  .fade-in-delay-3 { transition-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity:1; transform:none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Language switcher dropdown */
.lang-switcher { position:relative; }
.lang-switcher .lang-btn {
  font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  border:1px solid var(--border); padding:8px 14px; border-radius:var(--pill); color:var(--ink-2);
  background:transparent; cursor:pointer; font-family:var(--sans);
  display:flex; align-items:center; gap:6px;
}
.lang-switcher .lang-btn:hover { border-color:var(--forest); color:var(--forest); }
.lang-switcher .lang-dropdown {
  display:none; position:absolute; top:calc(100% + 8px); right:0;
  background:var(--paper); border:1px solid var(--border); border-radius:14px;
  padding:8px 0; min-width:160px; box-shadow:0 12px 32px -8px rgba(27,31,24,.2);
  z-index:60;
}
.lang-switcher .lang-dropdown.open { display:block; }
.lang-switcher .lang-dropdown a {
  display:block; padding:10px 18px; font-size:14px; color:var(--ink-2);
}
.lang-switcher .lang-dropdown a:hover { background:var(--cream); color:var(--forest); }
.lang-switcher .lang-dropdown a.active { color:var(--forest); font-weight:500; }

/* Back to top button */
.back-to-top {
  position:fixed; bottom:28px; right:28px; z-index:90;
  width:44px; height:44px; border-radius:50%; border:1px solid var(--border);
  background:var(--paper); color:var(--forest); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:18px; box-shadow:0 4px 12px rgba(27,31,24,.12);
  opacity:0; pointer-events:none; transition: opacity .3s, transform .3s;
  transform: translateY(12px);
}
.back-to-top.visible { opacity:1; pointer-events:all; transform:translateY(0); }
.back-to-top:hover { background:var(--forest); color:var(--paper); border-color:var(--forest); }

/* Focus styles (accessibility) */
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* ============== STYLED SELECT + DATE INPUTS ============== */
.bookform select,
.flow-card select,
.lookup-card select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M3.5 5.25 7 8.75l3.5-3.5' stroke='%232C3D2A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 44px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.bookform select:hover,
.flow-card select:hover,
.lookup-card select:hover { border-color: var(--moss); }
.bookform select:focus,
.flow-card select:focus,
.lookup-card select:focus {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44,61,42,.1);
}
.bookform select option,
.flow-card select option,
.lookup-card select option {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  padding: 10px;
}
/* Disabled placeholder option */
.bookform select option[value=""],
.flow-card select option[value=""],
.lookup-card select option[value=""] { color: var(--muted); }

/* Date input — match select / text-input height and padding */
.bookform input[type="date"],
.bookform input[type="month"],
.flow-card input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--sans);
  cursor: pointer;
  color: var(--ink);
  /* Calendar icon area */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><rect x='2.5' y='3.5' width='11' height='10' rx='1.5' stroke='%232C3D2A' stroke-width='1.4'/><path d='M2.5 6.5h11M5 2v3M11 2v3' stroke='%232C3D2A' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
.bookform input[type="date"]::-webkit-calendar-picker-indicator,
.flow-card input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0; cursor: pointer; position: absolute; right: 0; width: 44px; height: 100%;
}
.bookform input[type="date"]::-webkit-datetime-edit-fields-wrapper { color: var(--ink); }
.bookform input[type="date"]:invalid { color: var(--muted); }

/* Visit-grid: keep DOB + gender side-by-side, but stack on mobile */
.bookform .row3 { display:grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
@media (max-width: 540px) { .bookform .row3 { grid-template-columns: 1fr } }

/* ============== CUSTOM DATE-OF-BIRTH PICKER ============== */
.date-field { position: relative; }
.date-field > input[type="text"] {
  /* Display field — same look as other text inputs */
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><rect x='2.5' y='3.5' width='11' height='10' rx='1.5' stroke='%232C3D2A' stroke-width='1.4'/><path d='M2.5 6.5h11M5 2v3M11 2v3' stroke='%232C3D2A' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
}
.date-field > input[type="text"]::placeholder { color: var(--muted); }

.dp-popup {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  z-index: 60;
  width: 300px; max-width: calc(100vw - 32px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 40px -10px rgba(27,31,24,.25);
  display: none;
  font-family: var(--sans);
  user-select: none;
}
.dp-popup.open {
  display: block;
  animation: dpFade .18s ease;
}
@keyframes dpFade { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

.dp-header {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.dp-header button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--cream);
  color: var(--forest);
  cursor: pointer;
  font-size: 16px;
  font-family: var(--sans);
  line-height: 1;
  transition: background .15s ease, border-color .15s ease;
}
.dp-header button:hover:not(:disabled) {
  background: var(--forest); color: var(--paper); border-color: var(--forest);
}
.dp-header button:disabled { opacity: .3; cursor: not-allowed; }

.dp-jumps {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6px;
}
.dp-jumps select {
  width: 100%;
  padding: 7px 24px 7px 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--forest);
  background-color: var(--cream);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5 6 7.5l3-3' stroke='%232C3D2A' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  text-align: center;
  text-align-last: center;
}
.dp-jumps select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(44,61,42,.12);
}

.dp-dows {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
  margin-bottom: 4px;
}
.dp-dows span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 4px 0;
  font-weight: 500;
}

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-grid button {
  aspect-ratio: 1 / 1;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13.5px;
  cursor: pointer;
  padding: 0;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.dp-grid button:hover:not(:disabled) {
  background: var(--cream-2);
  border-color: var(--border);
}
.dp-grid button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .5;
}
.dp-grid button.empty { visibility: hidden; cursor: default; }
.dp-grid button.today { box-shadow: inset 0 0 0 1px var(--terracotta); color: var(--terracotta); font-weight: 500; }
.dp-grid button.selected, .dp-grid button.selected:hover {
  background: var(--forest); color: var(--paper); border-color: var(--forest);
  font-weight: 500;
}

.dp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
}
.dp-footer button {
  background: transparent;
  border: none;
  color: var(--terracotta);
  font-family: var(--sans);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: underline;
}
.dp-footer button:hover { background: rgba(200,103,76,.08); }
.dp-footer .hint { font-size: 11px; color: var(--muted); }

/* Below-field error message for under-18 */
.field-error-msg {
  font-size: 12.5px; color: var(--terracotta);
  margin-top: 6px; line-height: 1.4;
  display: none;
}
.field-error-msg.show { display: block; }

@media (max-width: 540px) {
  .dp-popup { width: 280px; padding: 14px; }
  .dp-grid button { font-size: 12.5px; }
}

/* Form validation feedback */
.bookform input:invalid:not(:placeholder-shown) { border-color: var(--terracotta); }
.bookform input:valid:not(:placeholder-shown) { border-color: var(--moss); }
.bookform input:focus, .bookform select:focus, .bookform textarea:focus {
  border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(44,61,42,.1);
}
.form-error { animation: shake .4s ease; }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-4px)} 40%,80%{transform:translateX(4px)} }

/* Confirmation state */
.booking-grid .confirm-card { animation: fadeUp .5s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* Loading button state */
button[disabled] { opacity:.6; cursor:not-allowed; }
.btn:active:not([disabled]) { transform: scale(.97); }

/* Nav active state */
.nav-links a.active { color: var(--forest); font-weight: 500; }

/* Smooth transitions for interactive elements */
.bookform input, .bookform select, .bookform textarea {
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cal-grid .day { user-select: none; -webkit-user-select: none; }

/* ============== PROGRAMS DROPDOWN MENU ============== */
.has-submenu { position: relative; }
.has-submenu > a { display: inline-flex; align-items: center; gap: 4px; }
.has-submenu > a::after {
  content: "▾"; font-size: 10px; opacity: .6;
  transition: transform .2s ease;
}
.has-submenu.open > a::after { transform: rotate(180deg); }
/* Invisible hover bridge — extends trigger's hoverable area down so
   the submenu doesn't close when the cursor crosses the gap below the
   trigger label. */
.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%; left: -32px; right: -32px;
  height: 22px;
  pointer-events: none;
}
.has-submenu:hover::after,
.has-submenu.open::after,
.has-submenu:focus-within::after {
  pointer-events: auto;
}
.submenu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--paper); border: 1px solid var(--border);
  border-radius: 16px; padding: 10px;
  min-width: 280px; opacity: 0; visibility: hidden;
  pointer-events: none;
  box-shadow: 0 16px 40px -12px rgba(27,31,24,.18);
  transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  z-index: 60;
}
.has-submenu:hover .submenu,
.has-submenu.open .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity .2s ease, transform .2s ease, visibility 0s 0s;
}
.submenu a {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--ink); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0; transition: background .15s ease, color .15s ease;
}
.submenu a:hover, .submenu a:focus-visible {
  background: var(--cream); color: var(--forest); outline: none;
}
.submenu a .sub-desc {
  display: block; font-size: 12px; color: var(--muted); font-weight: 400;
  margin-top: 2px; letter-spacing: 0;
}
/* Submenu placeholder entry — same shape as a real link, but non-clickable
   and faded. Used for programs that aren't publicly bookable yet. */
.submenu .submenu-disabled {
  display: block; padding: 12px 14px; border-radius: 10px;
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0; cursor: default; user-select: none;
}
.submenu .submenu-disabled .sub-desc {
  display: block; font-size: 12px; color: var(--muted); font-weight: 400;
  margin-top: 2px; letter-spacing: 0; font-style: italic;
}
@media (max-width: 880px) {
  .submenu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: none; padding: 0;
    background: transparent; min-width: 0; margin-top: 8px;
  }
  .submenu a { font-size: 16px; padding: 8px 0; color: var(--ink-2); }
  .submenu a .sub-desc { display: none; }
  .has-submenu > a::after { display: none; }
  .nav-links .has-submenu { text-align: center; }
}

/* ============== HERO CTA LAYOUT (program pages) ============== */
.pdp-hero .ctas {
  margin-top: 36px;
  display: flex; gap: 16px; flex-wrap: wrap;
  align-items: center;
}
.pdp-hero .ctas .btn { flex: 0 0 auto; }
@media (max-width: 540px) {
  .pdp-hero .ctas { flex-direction: column; align-items: stretch; gap: 12px; }
  .pdp-hero .ctas .btn { width: 100%; justify-content: center; }
}

/* Slot too-soon visual differentiation */
.slots button[disabled] {
  position: relative;
}
.slots button[title="Need 30 minutes lead time"] {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
}

/* Print styles */
@media print {
  .nav, .cookie-banner, .back-to-top, .menu-toggle, footer { display:none !important; }
  body { background:#fff; color:#000; font-size:12pt; }
  section { padding:20px 0; }
  .container { max-width:100%; padding:0 20px; }
  a[href]:after { content:" (" attr(href) ")"; font-size:10pt; color:#666; }
}
