/* CueClass site — panels: night bands (offline, closing CTA) with glyph fields, check list, tags,
   pricing, school box, notice, purchase form. */

/* ---------------------------------------------------------------- night bands */

.night {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--section) 0;
  color: var(--on-night);
  background: var(--night);
}

.section + .night,
.night + .section {
  margin-top: 0;
}

.night + .section {
  padding-top: var(--section);
}

.night h2,
.night h3 {
  color: var(--on-night);
}

.night p,
.night .fine,
.night .fine a,
.night .section-lead {
  color: var(--on-night-muted);
}

.night a {
  color: var(--on-night);
}

.night .eyebrow {
  color: #93c5fd;
}

.night .eyebrow::before {
  background: #93c5fd;
}

.night :focus-visible {
  outline-color: #93c5fd;
}

/* the field fills the band; content sits above it on solid-enough contrast (field glyphs are dim) */
.night > canvas[data-glyph-field] {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.night .wrap {
  position: relative;
}

.offline-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 960px) {
  .offline-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 96px;
    align-items: end;
  }
}

.plate-mark {
  display: none;
}

.check-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 18px 0 18px 36px;
  font-size: clamp(1.04rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(18px + 0.3em);
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.night .check-list li {
  color: var(--on-night);
  border-top-color: #243046;
}

.night .check-list li:last-child {
  border-bottom: 1px solid #243046;
}

.night .check-list li::before {
  border-color: #93c5fd;
}

/* closing call to action */
.finale {
  text-align: center;
}

.finale h2 {
  max-width: 14em;
  margin: 0 auto 18px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
}

.finale .lead {
  margin: 0 auto;
  color: var(--on-night-muted);
}

.finale .cta-row {
  justify-content: center;
  margin-top: 36px;
}

/* ---------------------------------------------------------------- tags */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 10px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border-radius: 999px;
}

/* ---------------------------------------------------------------- pricing */

.tray {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .tray {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 36px) clamp(22px, 2.6vw, 30px) clamp(24px, 2.6vw, 30px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.price-card h2,
.price-card h3 {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--muted);
}

.price-card ul {
  flex: 1;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding: 9px 0 9px 26px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(9px + 0.42em);
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 20px;
}

.amount {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.price-card.compact .amount {
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
}

.per,
.was {
  font-size: 1rem;
  color: var(--muted);
}

/* the recommended plan: brand outline and a small label */
.price-card.featured {
  border: 2px solid var(--brand);
}

.badge {
  position: absolute;
  top: -13px;
  left: 24px;
  margin: 0;
  padding: 2px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
}

.school-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding: 26px clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.school-box h2 {
  margin-bottom: 4px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.school-box p {
  margin: 0;
  color: var(--muted);
}

/* ---------------------------------------------------------------- notice */

.notice {
  position: relative;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(26px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
}

.notice h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.notice ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.notice li {
  margin-bottom: 6px;
}

.notice p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------- purchase form */

.buy-panel {
  max-width: 680px;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
}

.buy-panel h2:focus {
  outline: none;
}

.buy-panel h2:focus-visible {
  outline: 2px solid var(--brand);
}

fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 650;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.radio:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.radio:has(input:disabled) {
  color: var(--disabled-ink);
  background: var(--disabled-bg);
  border-style: dashed;
  cursor: not-allowed;
}

input[type="radio"],
.field.checkbox input {
  accent-color: var(--brand);
}

input[type="radio"] {
  width: 20px;
  height: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 650;
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--muted);
  border-radius: var(--r-sm);
}

.hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.field.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 5px;
}

.field.checkbox label {
  margin: 0;
  font-weight: 400;
}

.form-error {
  padding: 10px 14px;
  font-weight: 650;
  color: #8f1d1d;
  background: #fdecec;
  border: 1px solid #e6b3b3;
  border-radius: var(--r-sm);
}
