/* Safety 1st CDL Training Academy LLC — orange / red / black theme */

:root {
  --black: #0a0a0b;
  --ink: #121214;
  --panel: #18181b;
  --line: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --cream: #f3efe4;
  --muted: #a1a1aa;
  --orange: #ff6a00;
  --orange-hot: #ff8a1f;
  --red: #e3121b;
  --red-deep: #b30d14;
  --grad: linear-gradient(100deg, var(--orange) 0%, var(--red) 100%);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --header-h: 100px;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}
h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
h3 { font-size: 1.6rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 0.9rem;
}
.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(227, 18, 27, 0.4); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
}
.brand picture { display: block; flex: 0 0 auto; }
.brand img { width: 84px; height: auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5)); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}
.brand-name small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--orange);
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}
.site-nav a { text-decoration: none; }
.site-nav > ul > li > a {
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--white);
  padding-block: 0.5rem;
  position: relative;
}
.site-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: -1rem;
  min-width: 200px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 0.55rem 1rem; font-size: 0.92rem; }
.dropdown a:hover { color: var(--orange); }

.nav-cta { padding: 0.6em 1.3em; font-size: 1rem; white-space: nowrap; flex: none; } /* never squeeze Apply Now onto two lines */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero video banner ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  /* Fallback when the video hasn't loaded */
  background:
    radial-gradient(ellipse at 75% 30%, rgba(255, 106, 0, 0.28), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(227, 18, 27, 0.22), transparent 50%),
    var(--black);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.15) 35%, rgba(10, 10, 11, 0.85) 100%);
}
.hero-content {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 3rem;
}
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.88;
  color: var(--white);
  margin: 0;
}
.hero-card {
  flex: 0 0 auto;
  width: min(100%, 340px);
  padding: 1.5rem;
  background: var(--grad);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.hero-card p { margin: 0 0 1.25rem; font-size: 0.98rem; line-height: 1.5; }
.hero-card-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---------- Scrolling word banner (two rows, opposite directions) ---------- */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(6px);
  padding-block: 0.9rem;
  display: grid;
  gap: 0.35rem;
  overflow: hidden;
}
.marquee-row { overflow: hidden; }
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-track--rev { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span,
.marquee-track i {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}
.marquee-track span { color: var(--cream); }
.marquee-row:nth-child(2) .marquee-track span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 228, 0.7);
}
.marquee-track i { color: var(--orange); padding-inline: 1.1em; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); background: var(--black); }
.section-dark { background: var(--ink); border-block: 1px solid var(--line); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.prose p { margin: 0 0 1.1rem; color: #d4d4d8; font-size: 1.05rem; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }

.value-card,
.course-card,
.info-block {
  position: relative;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.value-card:hover,
.course-card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 0, 0.6); }
.value-card p,
.course-card p { color: #c4c4cc; margin: 0; font-size: 0.97rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.testimonial blockquote { position: relative; flex: 1; margin: 0; padding-top: 2.4rem; }
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.6rem;
  left: -0.1rem;
  font: 800 4.5rem/1 var(--font-display);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.testimonial blockquote p { margin: 0; color: #d4d4d8; font-size: 1.02rem; line-height: 1.65; }
.testimonial figcaption { display: flex; align-items: center; gap: 0.85rem; }
.testimonial figcaption strong { display: block; color: var(--white); }
.testimonial figcaption span span { display: block; font-size: 0.88rem; color: var(--orange); }
.testimonial-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font: 700 1.05rem/1 var(--font-display);
  letter-spacing: 0.04em;
}
.value-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.course-card { display: flex; flex-direction: column; gap: 0.6rem; }
.course-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad);
}
.course-card h3 { margin: 0; }
.course-meta {
  color: var(--orange) !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.text-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
}
.text-link:hover { color: var(--orange-hot); }
.course-card .btn-types { margin-top: auto; }
.course-card .btn-types + .text-link { margin-top: 0; }
.btn-types {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255, 106, 0, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 106, 0, 0.08);
  color: var(--white);
  font: 600 0.82rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-types:hover { background: rgba(255, 106, 0, 0.2); border-color: var(--orange); }
.btn-types:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Program pop-ups (vehicle types, hazmat classes, safety equipment) */
.program-dialog {
  width: min(92vw, 880px);
  max-height: 88vh;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
}
.program-dialog::backdrop { background: rgba(0, 0, 0, 0.82); }
.program-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.program-dialog-head .course-meta { margin: 0 0 0.25rem; }
.program-dialog h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.program-dialog-lead { margin: 0.75rem 0 1.5rem; color: #c4c4cc; }
.program-dialog-close {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.program-dialog > .btn { margin-top: 1.5rem; }
.type-grid,
.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.type-grid li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
}
.type-grid span { color: #a9a9b2; font-size: 0.92rem; }
.hazmat-grid li { isolation: isolate; display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: center; align-content: center; }
.hazmat-grid li > span:last-child { grid-column: 2; }
.hazmat-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  color: var(--white) !important;
  font: 800 1.3rem/1 var(--font-display);
}
.hazmat-num::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad);
  border-radius: 3px;
  transform: rotate(45deg) scale(0.86);
}
.gear-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gear-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gear-grid img { width: 104px; height: 104px; margin-bottom: 0.35rem; }
.gear-grid span { color: #a9a9b2; font-size: 0.88rem; }
@media (max-width: 600px) {
  .type-grid { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .gear-grid img { width: 80px; height: 80px; }
}

.info-block ul { list-style: none; margin: 0; padding: 0; }
.info-block li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: #d4d4d8;
  font-size: 0.97rem;
}
.info-block li:last-child { border-bottom: 0; }
.info-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 0.3em; }
.cta-band p { margin: 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.anchor-only { display: block; height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 3px solid var(--red); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h3 { font-size: 1.15rem; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 1rem; }
.site-footer p,
.site-footer address { color: #b4b4bc; font-size: 0.95rem; font-style: normal; margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; color: #d4d4d8; }
.site-footer a:hover { color: var(--orange); }
.footer-brand img { width: 140px; height: auto; margin-bottom: 1rem; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem !important; color: var(--white) !important; text-transform: uppercase; }
.footer-bottom {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.footer-credit { text-align: right; margin-left: auto; }
@media (max-width: 900px) { .footer-credit { text-align: left; margin-left: 0; } }
.footer-bottom p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Info packet signup (top of footer) */
.info-packet {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem 2.5rem;
  padding: 1.75rem 2rem;
  margin-bottom: 3.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
}
.info-packet h3 { margin-bottom: 0.35rem; }
.site-footer .info-packet-copy p { margin: 0; }
.info-packet-fields { display: flex; gap: 0.75rem; }
.info-packet input {
  font: inherit;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--black);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  width: 15rem;
}
.info-packet input[name="name"] { width: 11rem; }
.info-packet input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.info-packet button { white-space: nowrap; }
.info-packet button:disabled { opacity: 0.6; cursor: wait; }
.site-footer .info-packet-msg { grid-column: 1 / -1; margin: 0; font-weight: 600; color: var(--white); }
.site-footer .info-packet-msg.is-error { color: #ff8a80; }
.info-packet .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.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; }
@media (max-width: 1080px) {
  .info-packet { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .info-packet { padding: 1.4rem 1.2rem; }
  .info-packet-fields { flex-direction: column; }
  .info-packet input, .info-packet input[name="name"] { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Full menu needs about 1250px; below that it moves behind the menu button */
@media (max-width: 1250px) {
  .nav-toggle { display: block; position: relative; z-index: 2; }
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(10, 10, 11, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav > ul { flex-direction: column; align-items: center; gap: 1.25rem; }
  .site-nav > ul > li > a { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; text-transform: uppercase; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; padding: 0.25rem 0 0; text-align: center; min-width: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 900px) {
  .hero-content { flex-direction: column; align-items: flex-start; }
  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-name { font-size: 1.1rem; }
  :root { --header-h: 76px; }
  .brand img { width: 56px; }
  .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .hero-card { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .value-card, .course-card { transition: none; }
}

/* Keep hero text readable over bright video frames */
.hero .eyebrow,
.hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }

/* Homepage: the big logo sits in the hero (.hero-logo, in place of the old "TWC & VA-Approved" line), so the
   small header logo stays hidden while the page is at the top and slides in once the header turns solid. */
.brand picture { transition: width 0.3s ease, opacity 0.3s ease; width: 84px; overflow: hidden; }
.brand { transition: gap 0.3s ease; }
.page-home .site-header:not(.is-scrolled) .brand picture { width: 0; opacity: 0; }
.page-home .site-header:not(.is-scrolled) .brand { gap: 0; }
@media (max-width: 560px) {
  .brand picture { width: 56px; }
}

/* Sized by screen height as well as width so the headline and marquee still fit on short laptop screens */
.hero-logo { display: block; margin: 0 0 1.1rem; }
/* "TWC & VA-Approved" line, under the headline */
.hero .hero-tagline { margin: 1.1rem 0 0; }
.hero-logo img {
  display: block;
  width: clamp(150px, min(30vh, 26vw), 320px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
}
@media (max-width: 560px) {
  .hero-logo img { width: clamp(150px, min(24vh, 48vw), 190px); }
}

/* Keep the logo visible above the open mobile menu */
.brand { position: relative; z-index: 2; }

/* ---------- Meet the owner ---------- */
.owner { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.owner::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.12), transparent 65%);
  pointer-events: none;
}
.owner-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.owner-card {
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
  text-align: center;
}
.owner-photo {
  width: 160px;
  aspect-ratio: 1;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad);
}
.owner-photo span,
.owner-photo img {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--ink);
  object-fit: cover;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--white);
}
.owner-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--white);
}
.owner-role {
  margin: 0.2rem 0 1.5rem;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.owner-facts {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.owner-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.owner-facts span { font-size: 0.8rem; color: var(--muted); }
.owner-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.owner-tags li {
  padding: 0.3em 0.8em;
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 999px;
  font-size: 0.78rem;
  color: #e4e4e7;
}
.owner-quote {
  margin: 1.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--orange);
}
.owner-quote p { margin: 0 0 1.1rem; color: #d4d4d8; font-size: 1.05rem; }
.owner-quote p:first-child::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.35em;
  margin-right: 0.15em;
  color: var(--orange);
}
.owner-quote footer {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

@media (max-width: 900px) {
  .owner-grid { grid-template-columns: 1fr; }
  .owner-card { max-width: 420px; }
}

/* ---------- Inner pages ---------- */
.page-inner .site-header { background: rgba(10, 10, 11, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255, 106, 0, 0.22), transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(227, 18, 27, 0.16), transparent 50%),
    var(--black);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 800; color: var(--white); margin: 0; }
.page-hero-lead { margin: 1rem 0 0; max-width: 52ch; color: #d4d4d8; font-size: 1.1rem; }
.page-hero .btn { margin-top: 1.5rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal p, .legal li, .legal address { color: #d4d4d8; font-size: 1.02rem; line-height: 1.7; }
.legal p { margin: 0 0 1rem; }
.legal h2 { font-size: clamp(1.6rem, 4vw, 2rem); color: var(--white); margin: 2.5rem 0 0.9rem; }
.legal h3 { font-size: 1.2rem; color: var(--orange); margin: 1.5rem 0 0.5rem; }
.legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.45rem; }
.legal li::marker { color: var(--orange); }
.legal address { font-style: normal; }
.legal a { color: var(--orange); }
.legal-updated { font-size: 0.9rem !important; color: var(--muted) !important; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- SFTA Life gallery ---------- */
.gallery-section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.gallery-empty { color: var(--muted); font-size: 1.1rem; text-align: center; padding-block: 3rem; }
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1rem;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #000;
}
.gallery-item img { height: 100%; object-fit: cover; }
.gallery-item video { height: auto; object-fit: contain; }
.gallery-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-photo img { transition: transform 0.4s ease; }
.gallery-photo:hover img { transform: scale(1.03); }
.gallery-photo:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.gallery-caption { margin: 0; padding: 0.75rem 1rem; font-size: 0.92rem; color: #d4d4d8; }

.lightbox {
  max-width: min(92vw, 1400px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.9); }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; border-radius: var(--radius); }
.lightbox-caption { margin: 0.75rem 0 0; text-align: center; color: var(--cream); }
.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Meet the owner page ---------- */
/* Home page: portrait photo in place of the stat card */
.owner-portrait {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius);
}
.owner-portrait img { display: block; width: 100%; height: auto; }
.owner-portrait figcaption { padding: 1rem 1.25rem; text-align: center; }
.owner-portrait figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
}
.owner-portrait figcaption span {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .owner-portrait { max-width: 420px; }
  /* Square crop on phones so the heading isn't pushed a full screen down */
  .owner-portrait img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
}
.owner-cta { margin-top: 0.5rem; }
.owner-photos { border-top: 1px solid var(--line); }
.owner-photos h2 { margin-bottom: 2rem; }
.owner-teaser { margin: 0 0 1.75rem; color: #d4d4d8; font-size: 1.05rem; max-width: 60ch; }
#owner .owner-grid { align-items: center; }
/* Owner photos are tall studio portraits: show them whole, centered */
.owner-photos .gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 400px));
  justify-content: center;
  gap: 1.5rem;
}
.owner-photos .gallery-item { border: 2px solid var(--orange); border-radius: 24px; }
.owner-photos .gallery-item img { aspect-ratio: 2 / 3; object-position: top; }
.owner-photos h2 { text-align: center; }
.owner-photos .eyebrow { text-align: center; }

/* ---------- About: academy lobby photo ---------- */
.about-split { align-items: center; }
.about-split h2 { margin-bottom: 1.5rem; }
.about-photo {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--orange);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(255, 106, 0, 0.12);
}
.about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .about-photo { max-width: 520px; } }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 106, 0, 0.5); }
.footer-credit a:hover { color: var(--orange); }

/* ---------- Chat assistant widget ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; font-family: var(--font-body); }
.chat-launcher {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: var(--white);
  font: 600 15px/1 var(--font-body);
  box-shadow: 0 10px 30px rgba(227, 18, 27, 0.35);
  transition: transform 0.15s ease;
}
.chat-launcher:hover { transform: translateY(-2px); }
.chat-launcher svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.chat.is-open .chat-launcher { display: none; }

.chat-panel {
  display: flex; flex-direction: column;
  width: 370px; height: min(580px, calc(100vh - 40px)); height: min(580px, calc(100dvh - 40px));
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--black); border-bottom: 2px solid var(--orange);
}
.chat-head div { flex: 1; line-height: 1.25; }
.chat-head strong { display: block; color: var(--white); font: 700 19px/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
.chat-head span { font-size: 12px; color: var(--muted); }
.chat-close { background: none; border: 0; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.chat-close:hover { color: var(--white); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; background: var(--panel); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--grad); color: var(--white); border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--orange-hot); text-decoration: underline; text-underline-offset: 2px; }
.chat-user a { color: var(--white); }
.chat-typing { display: flex; gap: 5px; padding: 14px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: chat-dot 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-contact { display: grid; gap: 8px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.chat-contact p { margin: 0; line-height: 1.45; }
.chat-contact label { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); }
.chat-contact input { font: inherit; font-size: 16px; color: var(--white); background: var(--black); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.chat-contact input:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.chat-contact-error { color: #fca5a5; font-size: 13px; }
.chat-contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.chat-contact-actions [type=submit] { font: 700 14px/1 var(--font-body); color: var(--white); background: var(--grad); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.chat-contact-actions [type=submit]:disabled { opacity: 0.5; cursor: wait; }
.chat-contact-skip { font: inherit; font-size: 13px; color: var(--muted); background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chat-contact-skip:hover { color: var(--white); }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.chat-suggest:not(:empty) { padding-bottom: 12px; }
.chat-suggest button {
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--orange-hot); border: 1px solid rgba(255, 106, 0, 0.5);
  font: 500 13px/1.2 var(--font-body);
}
.chat-suggest button:hover { background: rgba(255, 106, 0, 0.12); }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--black); }
.chat-form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px;
  background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: 10px;
  font: 16px/1.4 var(--font-body);
}
.chat-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.chat-form button {
  flex: none; width: 42px; height: 42px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--grad); color: var(--white); display: grid; place-items: center;
}
.chat-form button:disabled { opacity: 0.5; cursor: wait; }
.chat-form button svg { width: 20px; height: 20px; fill: currentColor; }
.chat-note { margin: 0; padding: 0 12px 10px; background: var(--black); font-size: 11.5px; color: var(--muted); }
.chat-note a { color: var(--muted); }

@media (max-width: 560px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-launcher { padding: 14px; }
  .chat-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .chat.is-open { inset: 0; }
  .chat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; } }
.footer-bottom .footer-legal { order: 3; flex-basis: 100%; font-size: 0.75rem; opacity: 0.8; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Leave room so the chat button doesn't cover the last footer line */
.footer-bottom { padding-bottom: 88px; }

/* ---------- Upcoming class start dates (homepage, managed in /admin/classes) ---------- */
.class-dates { margin-top: 3.5rem; scroll-margin-top: 110px; }
.class-dates-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
}
.class-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.class-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.class-card.is-full { opacity: 0.6; }
.class-cal {
  grid-row: span 2;
  display: grid;
  justify-items: center;
  width: 62px;
  padding: 0.45rem 0;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}
.class-cal strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.class-info p { margin: 0; }
.class-program { font-weight: 700; color: #fff; }
.class-when, .class-extra { color: #c4c4cc; font-size: 0.92rem; }
.class-status {
  justify-self: start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.class-status.status-filling { border-color: rgba(255, 106, 0, 0.6); color: var(--orange-hot); }
.class-status.status-full { border-color: var(--line); color: var(--muted); }
.class-dates-cta { margin: 1.5rem 0 0; }
@media (max-width: 480px) {
  .class-grid { grid-template-columns: 1fr; }
}

/* ---------- Student payments ---------- */
.pay-section { padding-top: clamp(2.5rem, 6vw, 4rem); }
.pay-section h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--white); margin: 0 0 0.35rem; }
.pay-step { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.pay-step p { margin: 0; color: #d4d4d8; max-width: 60ch; }
.pay-step strong { color: var(--white); }
.pay-step-num {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--grad); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
}
#report { margin-top: clamp(3rem, 7vw, 4.5rem); }
.pay-soon-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  margin: clamp(2rem, 5vw, 3rem) 0 1rem; color: var(--white); font-size: 1.5rem;
}
.pay-soon-badge {
  padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--orange);
  color: var(--orange); font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
}
.pay-card--soon { border-top-color: rgba(255, 106, 0, 0.45); }
.pay-card--soon h3 { color: #d4d4d8; }
.pay-card--soon .pay-note { margin-top: auto; }
.pay-methods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
/* Payments page: staff can add any number of payment options, so the cards are split into balanced rows
   (4 cards = 4 or 2+2, 5 = 3+2, never 3+1). views/payments.ejs works out the columns for each screen size
   (--c4 wide, --c3 laptop, --c2 tablet); phones get one column. Cards stay at most 420px wide. */
.pay-section .pay-methods:not(.oc-list) {
  --c: var(--c4, 3);
  grid-template-columns: repeat(var(--c), minmax(0, 1fr));
  max-width: calc(var(--c) * 420px + (var(--c) - 1) * 1.25rem);
}
@media (max-width: 1100px) { .pay-section .pay-methods:not(.oc-list) { --c: var(--c3, 3); } }
@media (max-width: 820px) { .pay-section .pay-methods:not(.oc-list) { --c: var(--c2, 2); } }
@media (max-width: 560px) { .pay-section .pay-methods:not(.oc-list) { --c: 1; max-width: none; } }
.pay-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: 12px;
}
.pay-card h3 { margin: 0; color: var(--white); font-size: 1.8rem; }
.pay-card p { margin: 0; color: #d4d4d8; }
.pay-handle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.6rem 0.75rem; background: var(--black); border: 1px solid var(--line); border-radius: 8px;
}
.pay-handle span { font-weight: 600; font-size: 1.15rem; color: var(--white); overflow-wrap: break-word; flex: 1 1 0; min-width: 0; }
.pay-copy {
  flex: none; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--orange);
  background: transparent; color: var(--orange-hot); font: 600 0.85rem var(--font-body); cursor: pointer;
}
.pay-copy:hover { background: var(--orange); color: var(--white); }
.pay-recipient strong { color: var(--white); }
.pay-note { font-size: 0.92rem; color: var(--muted) !important; }
.pay-qr { margin: 0.25rem 0 0; }
.pay-qr svg { display: block; width: 132px; height: 132px; border-radius: 8px; }
.pay-qr figcaption { margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.pay-warning {
  margin: 1.5rem 0 0; padding: 0.9rem 1.1rem; border-left: 3px solid var(--red);
  background: rgba(227, 18, 27, 0.08); color: #d4d4d8; border-radius: 0 8px 8px 0;
}
.pay-warning strong { color: var(--white); }
.pay-warning a, .pay-fine a, .pay-link { color: var(--orange); }
.pay-form { max-width: 760px; padding: clamp(1.25rem, 4vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.pay-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-bottom: 1.5rem; }
.pay-fields > label, .pay-method-pick legend { display: block; font-weight: 600; color: var(--white); font-size: 0.95rem; }
.pay-fields > label > input, .pay-fields > label > .pay-amount { margin-top: 0.4rem; }
.pay-wide, .pay-method-pick { grid-column: 1 / -1; }
.optional { font-weight: 400; color: var(--muted); }
.pay-form input[type=text], .pay-form input[type=tel], .pay-form input[type=email], .pay-form input[type=date] {
  width: 100%; padding: 0.75rem 0.85rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--black); color: var(--white); font: 400 1rem var(--font-body); color-scheme: dark;
}
.pay-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.pay-amount { position: relative; display: block; }
.pay-amount > span { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.pay-amount input { padding-left: 1.7rem !important; }
.pay-method-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pay-method-pick legend { margin-bottom: 0.5rem; padding: 0; }
.pay-radio { position: relative; }
.pay-radio input { position: absolute; opacity: 0; }
.pay-radio span {
  display: inline-block; padding: 0.6rem 1.1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d4d4d8; font-weight: 600; cursor: pointer;
}
.pay-radio input:checked + span { background: var(--grad); border-color: transparent; color: var(--white); }
.pay-radio input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.pay-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pay-error { margin: 0 0 1.25rem; padding: 0.8rem 1rem; border-radius: 8px; background: rgba(227, 18, 27, 0.12); border: 1px solid rgba(227, 18, 27, 0.5); color: #fecaca; }
.pay-fine { margin: 1rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 560px) {
  .pay-fields { grid-template-columns: 1fr; }
  .pay-qr { display: none; } /* already on the phone; the button opens the app */
}

.nowrap { white-space: nowrap; }

/* Online classes */
.oc-list { margin: 1.25rem 0 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } /* room for more class cards */
.oc-list .pay-card h3 { font-size: 1.6rem; }
.oc-notify { max-width: 460px; margin: clamp(3rem, 7vw, 4.5rem) auto 0; text-align: center; }
.oc-notify .pay-step { flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.oc-notify .pay-step p { margin-inline: auto; }
.oc-form { max-width: 460px; margin-inline: auto; padding: 1.25rem 1.5rem; text-align: left; }
.oc-form .pay-fields { grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1.1rem; }
.oc-form input[type=text], .oc-form input[type=tel], .oc-form input[type=email] { padding: 0.6rem 0.75rem; }
