/* ============================================================
   Self-Compassion NYC — Subway Plum design system
   v1 — 2026-05-19
   Palette anchored to the logo (designed by Mike's son).
   Three subway-bullet accents quote MTA Standards Manual line colors.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — sampled directly from scnyc_logov2.png */
  --plum:        #7715D5;   /* logo outer ring + wordmark */
  --plum-deep:   #5511A0;   /* darker variant for text/hover */
  --plum-soft:   #A569E6;   /* lighter variant for eyebrows */
  --cream:       #F8F2E8;   /* page canvas */
  --cream-soft:  #FDF8EE;
  --charcoal:    #1F1F1F;   /* body text */
  --charcoal-soft: #4A4A4A;
  --rule:        #E6DCC9;   /* hairlines on cream */

  /* Subway-circle accents — sampled from the three logo circles */
  --mta-yellow:  #F4B714;   /* N circle — warm amber. "Coaching" tier */
  --mta-red:     #CA4068;   /* Y circle — rose magenta. "8-week course" tier */
  --mta-blue:    #0A8DF1;   /* C circle — cyan blue. "Custom" tier */
  --logo-coral:  #C27073;   /* SC heart — extra accent */

  /* Type */
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale (modular, mobile-first) */
  --fs-xs:   0.8125rem;   /* 13 */
  --fs-sm:   0.9375rem;   /* 15 */
  --fs-base: 1.0625rem;   /* 17 */
  --fs-md:   1.1875rem;   /* 19 */
  --fs-lg:   1.5rem;      /* 24 */
  --fs-xl:   2rem;        /* 32 */
  --fs-2xl:  2.5rem;      /* 40 */
  --fs-3xl:  3.25rem;     /* 52 */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-7:  3rem;
  --sp-8:  4rem;
  --sp-9:  6rem;
  --sp-10: 8rem;

  /* Layout */
  --maxw: 1180px;
  --maxw-prose: 68ch;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-base: 280ms;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(31,31,31,0.06), 0 1px 3px rgba(31,31,31,0.04);
  --shadow-md: 0 4px 14px rgba(74,46,90,0.10), 0 2px 4px rgba(31,31,31,0.04);
  --shadow-lg: 0 18px 40px rgba(74,46,90,0.16);
}

@media (min-width: 768px) {
  :root {
    --fs-base: 1.125rem;    /* 18 */
    --fs-md:   1.25rem;     /* 20 */
    --fs-lg:   1.75rem;     /* 28 */
    --fs-xl:   2.5rem;      /* 40 */
    --fs-2xl:  3.25rem;     /* 52 */
    --fs-3xl:  4.25rem;     /* 68 */
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a {
  color: var(--plum);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--plum-deep); }

/* Subway-bullet accents on hover */
a.accent-link:hover { color: var(--mta-blue); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: normal;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-family: var(--font-sans); font-weight: 600; color: var(--charcoal); letter-spacing: 0; }

p, ul, ol { margin: 0 0 var(--sp-4); }
p { max-width: var(--maxw-prose); }

/* Focus ring (accessible everywhere) */
:focus-visible {
  outline: 3px solid var(--mta-yellow);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plum);
  color: var(--cream);
  padding: var(--sp-3) var(--sp-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--sp-6); }
}
.section {
  padding: var(--sp-8) 0;
}
@media (min-width: 768px) {
  .section { padding: var(--sp-9) 0; }
}
.section-tight { padding: var(--sp-7) 0; }

.section-divider {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* Subway-bullet eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--mta-yellow);
  box-shadow: 0 0 0 2px var(--cream);
}
.eyebrow.eyebrow-red::before    { background: var(--mta-red); }
.eyebrow.eyebrow-blue::before   { background: var(--mta-blue); }
.eyebrow.eyebrow-yellow::before { background: var(--mta-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1.2;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  text-decoration: none;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}

.btn-primary {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.btn-primary:hover { background: var(--plum-deep); color: var(--cream); border-color: var(--plum-deep); }

.btn-secondary {
  background: transparent;
  color: var(--plum);
  border-color: var(--plum);
}
.btn-secondary:hover { background: var(--plum); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--plum);
  border-color: transparent;
  padding-left: var(--sp-2);
  padding-right: var(--sp-2);
}
.btn-ghost:hover { color: var(--plum-deep); text-decoration: underline; }

.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 242, 232, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: rgba(248, 242, 232, 0.97);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  gap: var(--sp-4);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--plum-deep);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-md);
  white-space: nowrap;
}
.nav-brand span { white-space: nowrap; }
.nav-brand img { height: 72px; width: auto; }
.nav-list {
  display: none;
  list-style: none;
  margin: 0; padding: 0;
  gap: var(--sp-5);
}
.nav-list a {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-list a:hover { color: var(--plum); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--mta-yellow);
  border-radius: 2px;
}
.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--plum-deep);
}
.nav-toggle:hover { border-color: var(--plum); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 960px) {
  .nav-list { display: flex; }
  .nav-cta  { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile drawer */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--rule);
  padding: var(--sp-4) 0 var(--sp-5);
}
.nav-mobile.is-open { display: block; }
.nav-mobile ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.nav-mobile a {
  display: block;
  padding: var(--sp-3) 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.nav-mobile a:hover { color: var(--plum); }
.nav-mobile .btn { margin-top: var(--sp-4); width: 100%; }
@media (min-width: 960px) {
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-8) 0 var(--sp-7);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: var(--sp-9) 0 var(--sp-8); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-8); }
}
.hero-lede {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-style: italic;
  color: var(--charcoal-soft);
  max-width: 36ch;
}
.hero h1 {
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.hero-sub {
  font-size: var(--fs-md);
  color: var(--charcoal-soft);
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.hero-art {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(252,204,10,0.18), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(0,57,166,0.14), transparent 50%),
    linear-gradient(160deg, rgba(74,46,90,0.06), rgba(74,46,90,0.02));
  padding: var(--sp-6);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art img {
  max-height: 100%;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero-subway-stripe {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}
.hero-subway-stripe span {
  width: 14px; height: 14px; border-radius: 50%;
}
.hero-subway-stripe .y { background: var(--mta-yellow); }
.hero-subway-stripe .r { background: var(--mta-red); }
.hero-subway-stripe .b { background: var(--mta-blue); }

/* ---------- Authority strip ---------- */
.authority {
  background: var(--cream-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-6) 0;
}
.authority-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: start;
}
@media (min-width: 600px)  { .authority-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .authority-list { grid-template-columns: repeat(3, 1fr); } }
.authority-item {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  line-height: 1.5;
}
.authority-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--plum-deep);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}
.authority-bullet {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-top: 7px;
  background: var(--mta-yellow);
}
.authority-item:nth-child(2) .authority-bullet { background: var(--mta-red); }
.authority-item:nth-child(3) .authority-bullet { background: var(--mta-blue); }
.authority-item:nth-child(4) .authority-bullet { background: var(--mta-yellow); }
.authority-item:nth-child(5) .authority-bullet { background: var(--mta-red); }
.authority-item:nth-child(6) .authority-bullet { background: var(--mta-blue); }

/* ---------- Three-pillar MSC ---------- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 768px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) {
  .pillar:hover { transform: none; }
}
.pillar-num {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-style: italic;
  color: var(--plum-soft);
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.pillar h3 {
  margin-bottom: var(--sp-3);
}
.pillar p {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin: 0;
}

/* ---------- Calculator teaser ---------- */
.calc-teaser {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-6);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .calc-teaser { padding: var(--sp-8); }
}
.calc-teaser h2 { color: var(--cream); margin-bottom: var(--sp-3); }
.calc-teaser p { color: rgba(248,242,232,0.85); max-width: 56ch; }
.calc-teaser .btn-primary {
  background: var(--mta-yellow);
  color: var(--plum-deep);
  border-color: var(--mta-yellow);
}
.calc-teaser .btn-primary:hover {
  background: var(--cream);
  color: var(--plum-deep);
  border-color: var(--cream);
}
.calc-teaser::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(252,204,10,0.10);
  pointer-events: none;
}

/* ---------- Services grid ---------- */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 768px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--mta-yellow);
  border-radius: var(--radius);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) {
  .service-card:hover { transform: none; }
}
.service-card.tier-red    { border-top-color: var(--mta-red); }
.service-card.tier-blue   { border-top-color: var(--mta-blue); }
.service-card h3 { margin-bottom: var(--sp-3); }
.service-card .price {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--plum-deep);
  font-weight: 600;
  margin: 0 0 var(--sp-2);
}
.service-card .price-note {
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--sp-4);
}
.service-card p { font-size: var(--fs-sm); color: var(--charcoal-soft); margin-bottom: var(--sp-5); }
.service-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials (placeholder) ---------- */
.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
.testimonial {
  background: transparent;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
  color: var(--charcoal-soft);
  font-style: italic;
  font-family: var(--font-serif);
}
.testimonial small {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-soft);
}

/* ---------- Science snippet ---------- */
.science {
  background: var(--cream-soft);
  border-radius: var(--radius);
  padding: var(--sp-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}
@media (min-width: 768px) {
  .science { grid-template-columns: 1fr 1fr; padding: var(--sp-8); }
}
.science blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--plum-deep);
  line-height: 1.4;
  border-left: 3px solid var(--mta-red);
  padding-left: var(--sp-5);
}
.science cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  letter-spacing: 0.02em;
  border-left: none;
  padding-left: 0;
}

/* ---------- Email signup ---------- */
.signup {
  background: var(--plum-deep);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
}
@media (min-width: 768px) {
  .signup { padding: var(--sp-8); }
}
.signup h2 { color: var(--cream); }
.signup p {
  color: rgba(248,242,232,0.82);
  margin: 0 auto var(--sp-5);
}
.signup-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 520px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  .signup-form { flex-direction: row; }
}
.signup-form input[type="email"] {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(248,242,232,0.25);
  background: rgba(248,242,232,0.06);
  color: var(--cream);
  font: inherit;
  font-size: var(--fs-base);
}
.signup-form input::placeholder { color: rgba(248,242,232,0.55); }
.signup-form input:focus {
  outline: 3px solid var(--mta-yellow);
  outline-offset: 2px;
  border-color: var(--mta-yellow);
}
.signup-form .btn-primary {
  background: var(--mta-yellow);
  color: var(--plum-deep);
  border-color: var(--mta-yellow);
}
.signup-form .btn-primary:hover {
  background: var(--cream);
  color: var(--plum-deep);
  border-color: var(--cream);
}
.signup-note {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(248,242,232,0.6);
}
.signup-status {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  min-height: 1.4em;
}
.signup-status.is-success { color: var(--mta-yellow); }
.signup-status.is-error   { color: #FFB4AE; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-soft);
  border-top: 4px solid var(--plum);
  padding: var(--sp-8) 0 var(--sp-6);
  margin-top: var(--sp-9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 36ch;
}
.footer-brand img {
  width: 96px;
  height: 74px;        /* 96 * 319/415 = 73.79 -> 74 preserves the source ratio */
  max-width: none;     /* override global img max-width:100% */
  object-fit: contain;
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin: 0;
}
.footer h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum);
  line-height: 1.2;
  margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.footer a:hover { color: var(--plum); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  align-items: flex-start;
  justify-content: space-between;
  color: var(--charcoal-soft);
  font-size: var(--fs-xs);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; align-items: center; }
}
.footer-subway {
  display: flex;
  gap: var(--sp-2);
}
.footer-subway span {
  width: 10px; height: 10px; border-radius: 50%;
}
.footer-subway .y { background: var(--mta-yellow); }
.footer-subway .r { background: var(--mta-red); }
.footer-subway .b { background: var(--mta-blue); }

/* ---------- Section header ---------- */
.section-head {
  text-align: left;
  max-width: var(--maxw-prose);
  margin-bottom: var(--sp-5);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p {
  color: var(--charcoal-soft);
  font-size: var(--fs-md);
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.container-narrow {
  max-width: 800px;
}
.lede {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  color: var(--charcoal);
  margin-bottom: var(--sp-5);
}

/* ============================================================
   Calculator — landing / items / results
   ============================================================ */
.calc-section { background: var(--cream-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.calc-app { padding: var(--sp-6) 0; }
.calc-state-title { margin-bottom: var(--sp-3); }

/* Landing chooser */
.calc-picker {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin: var(--sp-6) 0;
}
@media (min-width: 720px) {
  .calc-picker { grid-template-columns: 1fr 1fr; }
}
.calc-card {
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.calc-card:hover { border-color: var(--plum); transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .calc-card:hover { transform: none; } }
.calc-card:disabled { opacity: 0.5; cursor: progress; }
.calc-card-eyebrow { margin-bottom: var(--sp-1); }
.calc-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--plum-deep);
  line-height: 1.2;
}
.calc-card-meta {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
}
.calc-card-cta {
  margin-top: auto;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--plum);
}
.calc-privacy {
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  border-left: 3px solid var(--mta-yellow);
  padding-left: var(--sp-4);
  margin-top: var(--sp-5);
}

/* Item screen */
.calc-itemhead { margin-bottom: var(--sp-5); }
.calc-instructions {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin-bottom: var(--sp-4);
}
.calc-progress {
  background: var(--rule);
  border-radius: var(--radius-pill);
  height: 8px;
  overflow: hidden;
}
.calc-progress-bar {
  height: 100%;
  background: var(--plum);
  transition: width var(--t-base) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .calc-progress-bar { transition: none; }
}
.calc-itembox {
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.calc-itemtext {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--plum-deep);
  line-height: 1.35;
  margin-bottom: var(--sp-5);
  max-width: none;
}
.calc-likert {
  border: 0; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 600px) {
  .calc-likert { grid-template-columns: repeat(5, 1fr); }
}
.calc-likert-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--cream-soft);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.calc-likert-option:hover { border-color: var(--plum-soft); background: var(--cream); }
.calc-likert-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc-likert-option:has(input:checked) {
  border-color: var(--plum);
  background: var(--cream);
  box-shadow: 0 0 0 2px var(--plum) inset;
}
.calc-likert-option:has(input:focus-visible) {
  outline: 3px solid var(--mta-yellow);
  outline-offset: 2px;
}
.calc-likert-bubble {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--plum-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--plum-deep);
}
.calc-likert-option:has(input:checked) .calc-likert-bubble {
  background: var(--plum);
  color: var(--cream);
  border-color: var(--plum);
}
.calc-likert-label {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
}
@media (min-width: 600px) {
  .calc-likert-option { flex-direction: column; gap: var(--sp-2); text-align: center; padding: var(--sp-4) var(--sp-2); }
  .calc-likert-label { font-size: var(--fs-xs); }
}
.calc-itemnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3);
}

/* Results screen */
.calc-resultshead { margin-bottom: var(--sp-6); }
.calc-score-card {
  background: var(--plum);
  color: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-7);
  text-align: center;
  margin-bottom: var(--sp-6);
}
.calc-score-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.calc-score-num {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--mta-yellow);
}
.calc-score-of {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: rgba(248,242,232,0.6);
}
.calc-score-band {
  display: inline-block;
  margin-left: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.calc-band-low      { background: var(--mta-blue);   color: var(--cream); }
.calc-band-moderate { background: var(--mta-yellow); color: var(--plum-deep); }
.calc-band-high     { background: var(--mta-red);    color: var(--cream); }
.calc-score-interp {
  color: rgba(248,242,232,0.92);
  max-width: 56ch;
  margin: 0 auto;
  font-size: var(--fs-md);
  line-height: 1.5;
}

.calc-subscales {
  margin-bottom: var(--sp-7);
}
.calc-subscale-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.calc-subscale {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--sp-3);
}
@media (min-width: 600px) {
  .calc-subscale { grid-template-columns: 200px 1fr 60px; }
}
.calc-subscale-label {
  font-size: var(--fs-sm);
  color: var(--charcoal);
  font-weight: 500;
}
.calc-subscale-label small {
  font-size: 0.75em;
  color: var(--charcoal-soft);
  font-weight: 400;
}
.calc-subscale-bar-wrap {
  position: relative;
  height: 14px;
  background: var(--rule);
  border-radius: var(--radius-pill);
  overflow: hidden;
  grid-column: 1 / -1;
}
@media (min-width: 600px) {
  .calc-subscale-bar-wrap { grid-column: auto; }
}
.calc-subscale-bar {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width var(--t-base) var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .calc-subscale-bar { transition: none; }
}
.calc-subscale-score {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--plum-deep);
  text-align: right;
}
.calc-caveat {
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  border-left: 3px solid var(--mta-blue);
  padding-left: var(--sp-4);
}

/* CTA cards on results */
.calc-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
@media (min-width: 768px) {
  .calc-cta-grid { grid-template-columns: 1.2fr 1fr; }
}
.calc-cta-card {
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-top: 4px solid var(--mta-yellow);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.calc-cta-card--alt { border-top-color: var(--mta-blue); }
.calc-cta-card h3 { margin-bottom: var(--sp-3); }
.calc-cta-card p { font-size: var(--fs-sm); color: var(--charcoal-soft); margin-bottom: var(--sp-5); }
.calc-pdf-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.calc-pdf-form input[type="text"],
.calc-pdf-form input[type="email"] {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--cream-soft);
  font: inherit;
}
.calc-pdf-form input:focus {
  outline: 3px solid var(--mta-yellow);
  outline-offset: 2px;
  border-color: var(--plum);
}
.calc-form-status {
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  margin-top: var(--sp-2);
  min-height: 1.4em;
}
.calc-form-status.is-success { color: var(--plum); font-weight: 600; }
.calc-form-status.is-error   { color: var(--mta-red); font-weight: 600; }

.calc-retake {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.calc-cite {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
}
.calc-cite p { margin: 0 0 var(--sp-2); }
.calc-cite-apa { font-family: var(--font-serif); font-size: var(--fs-sm); color: var(--charcoal); }
.calc-cite-note { font-style: italic; }

/* Article list (Resources index) */
.article-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
}
@media (min-width: 768px) { .article-list { grid-template-columns: 1fr 1fr; } }
.article-card {
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--mta-yellow);
  border-radius: var(--radius);
  padding: 0;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.article-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .article-card:hover { transform: none; } }
.article-card-link {
  display: block;
  padding: var(--sp-6);
  text-decoration: none;
  color: inherit;
}
.article-card-link:hover { color: inherit; }
.article-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--plum-deep);
  margin: var(--sp-3) 0;
  line-height: 1.2;
}
.article-card-dek {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin-bottom: var(--sp-4);
}
.article-card-meta {
  display: block;
  font-size: var(--fs-xs);
  color: var(--plum);
  font-weight: 500;
}
.article-card--placeholder {
  border-top-color: var(--mta-blue);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-style: italic;
  color: var(--charcoal);   /* WCAG: 14.8:1 on cream-soft */
}
.article-card--placeholder p { margin: 0; }
.article-card--placeholder .eyebrow { color: var(--plum); font-style: normal; }

/* Article page (single) */
.article-hero {
  padding: var(--sp-8) 0 var(--sp-5);
  background: var(--cream-soft);
  border-bottom: 1px solid var(--rule);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.article-body {
  max-width: var(--maxw-prose);
}
.article-body p,
.article-body ul,
.article-body ol { font-size: var(--fs-md); }
.article-body h2 {
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xl);
}
.article-body h3 {
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.article-body blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 4px solid var(--mta-yellow);
  background: var(--cream-soft);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--plum-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body blockquote p { margin: 0; }
.article-practice {
  margin: var(--sp-6) 0;
  padding: var(--sp-6);
  border: 1.5px solid var(--rule);
  border-left: 4px solid var(--mta-red);
  border-radius: var(--radius);
  background: var(--cream);
}
.article-practice h3 {
  margin-top: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum-deep);   /* WCAG: 9.55:1 on cream */
}
.article-byline {
  margin: var(--sp-7) 0 var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-4);
  align-items: start;
}
.article-byline img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.article-byline-content h4,
.article-byline-name { font-family: var(--font-serif); font-weight: 600; color: var(--plum-deep); font-size: var(--fs-md); margin: 0 0 var(--sp-2); }
.article-byline-content p { font-size: var(--fs-sm); color: var(--charcoal-soft); margin: 0; }
.article-byline-content .btn { margin-top: var(--sp-3); }
.article-share {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
}
.article-share a {
  display: inline-block;
  margin-right: var(--sp-3);
  text-decoration: none;
  color: var(--plum);
  font-weight: 600;
}
.article-share a:hover { text-decoration: underline; }
.article-citations {
  margin-top: var(--sp-7);
  padding: var(--sp-5);
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
}
.article-citations h3 {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--plum);
  margin: 0 0 var(--sp-3);
}
.article-citations p { font-family: var(--font-serif); margin: 0 0 var(--sp-3); color: var(--charcoal); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-5);
  max-width: 640px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 600px) {
  .contact-row { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--charcoal);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--cream-soft);
  font: inherit;
  font-weight: 400;
  color: var(--charcoal);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--mta-yellow);
  outline-offset: 2px;
  border-color: var(--plum);
}
.contact-form button[type="submit"] { align-self: flex-start; }

/* PayPal Buy Now button form (lets the .btn-primary look match the rest) */
.paypal-form { margin: 0 0 var(--sp-2); }
.paypal-form .btn { width: 100%; }

/* Cal.com embed wrapper */
.cal-embed {
  min-height: 520px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--cream-soft);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
}
.cal-placeholder {
  text-align: center;
  padding: var(--sp-7) var(--sp-5);
  color: var(--charcoal-soft);
}
.cal-placeholder p { margin: 0 auto var(--sp-3); max-width: 44ch; }
.cal-placeholder strong { color: var(--plum-deep); }

/* FAQ */
.faq {
  border-bottom: 1px solid var(--rule);
  padding: var(--sp-4) 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--plum-deep);
  list-style: none;
  position: relative;
  padding-right: var(--sp-6);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 0;
  font-size: var(--fs-lg);
  color: var(--plum);
  transition: transform var(--t-fast) var(--ease);
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin-top: var(--sp-3);
  color: var(--charcoal-soft);
}

/* ============================================================
   Your SC Score! — tile chooser + single-page Likert form
   Phase 3 — 2026-05-20
   ============================================================ */

/* Suppress the browser-default focus outline on programmatically-focused state headings.
   Keyboard users still get a focus ring via :focus-visible. */
[data-state] h1[tabindex="-1"]:focus:not(:focus-visible),
[data-state] h2[tabindex="-1"]:focus:not(:focus-visible) {
  outline: none;
}

/* Tile chooser — landing state */
.scale-chooser-head {
  margin-bottom: var(--sp-5);
}
.scale-chooser-head h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: var(--plum-deep);
  margin: 0 0 var(--sp-3);
}
.scale-chooser-head p {
  font-size: var(--fs-md);
  color: var(--charcoal-soft);
  max-width: 60ch;
}
.scale-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}
@media (min-width: 720px) {
  .scale-tile-grid { grid-template-columns: 1fr 1fr; }
}
.scale-tile {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--cream-soft);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-6);
  cursor: pointer;
  transition: border-color var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  text-decoration: none;
  color: inherit;
  font-family: var(--font-sans);
}
.scale-tile:hover,
.scale-tile:focus-visible {
  border-color: var(--plum);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.scale-tile:disabled { opacity: 0.5; cursor: progress; }
.scale-tile-code {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: var(--sp-2);
}
.scale-tile h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--plum-deep);
  margin: 0 0 var(--sp-2);
  line-height: 1.2;
}
.scale-tile p {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin: 0 0 var(--sp-4);
  line-height: 1.5;
}
.scale-tile-meta {
  font-size: var(--fs-xs);
  color: var(--charcoal-soft);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Single-page form — Inter only, Fraunces just on H1 */
.scale-form,
.scale-form input,
.scale-form button,
.scale-form label,
.scale-form fieldset,
.scale-form legend,
.scale-form p,
.scale-form span {
  font-family: var(--font-sans);
}
.scale-form-head {
  margin-bottom: var(--sp-7);
}
.scale-form-head .eyebrow {
  margin-bottom: var(--sp-3);
}
.scale-form-head h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.05;
  color: var(--plum-deep);
  margin: 0 0 var(--sp-4);
}
.scale-form-intro {
  font-size: var(--fs-md);
  color: var(--charcoal-soft);
  max-width: 62ch;
  line-height: 1.55;
  margin: 0;
}
/* Column header showing the 1–5 anchors (sticky on scroll) */
.scale-likert-header {
  display: none; /* hidden on mobile; shown on ≥720px */
}
@media (min-width: 720px) {
  .scale-likert-header {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 320px);
    gap: var(--sp-4);
    align-items: end;
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-3);
    position: sticky;
    top: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--plum);
    z-index: 5;
  }
  .scale-likert-header-spacer { }
  .scale-likert-header-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--sp-1);
    text-align: center;
  }
  .scale-likert-header-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
    line-height: 1.15;
    color: var(--charcoal-soft);
  }
  .scale-likert-header-cell .scale-likert-num {
    font-size: var(--fs-sm);
    color: var(--plum);
    font-weight: 700;
  }
  .scale-likert-header-cell .scale-likert-label {
    font-size: 0.65rem;
    font-weight: 500;
  }
}

.scale-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each item: text on left, radio row on right (desktop); stacked (mobile) */
.scale-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast) var(--ease);
}
.scale-item:hover { background: var(--cream-soft); }
.scale-item.is-error {
  background: #FBEFEF;
  border-bottom-color: var(--mta-red);
}
@media (min-width: 720px) {
  .scale-item {
    grid-template-columns: 1fr minmax(280px, 320px);
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
  }
}
.scale-item-num {
  font-weight: 600;
  color: var(--plum);
  margin-right: var(--sp-2);
}
.scale-item-text {
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.45;
  margin: 0;
}
.scale-likert-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-1);
  border: 0;
  padding: 0;
  margin: 0;
}
.scale-likert-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-1);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--cream);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  text-align: center;
  min-height: 48px;
}
.scale-likert-option:hover { border-color: var(--plum-soft); }
.scale-likert-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.scale-likert-option:has(input:checked) {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--cream);
}
.scale-likert-option:has(input:focus-visible) {
  outline: 2px solid var(--plum);
  outline-offset: 2px;
}
.scale-likert-num {
  font-size: var(--fs-base);
  font-weight: 700;
  line-height: 1;
}
.scale-likert-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 2px;
}
/* On mobile, show 1–5 + tiny label inside each cell since header is hidden */
@media (max-width: 719px) {
  .scale-likert-option {
    flex-direction: column;
    padding: var(--sp-2) var(--sp-1);
    min-height: 60px;
  }
  .scale-likert-option::after {
    content: attr(title);
    display: none; /* keep cells compact; title shows on tap-hold */
  }
}
.scale-submit-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-6);
  margin-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.scale-submit-status {
  font-size: var(--fs-sm);
  color: var(--charcoal-soft);
  margin: 0;
}
.scale-submit-status.is-error {
  color: var(--mta-red);
  font-weight: 600;
}
