:root {
  --help-accent-blue: #2f5f73;
  --help-accent-green: #3f6f54;
}

body.help-section-page {
  background-color: var(--surface-ivory);
  background-image: radial-gradient(circle, #ddd9d2 1px, transparent 1px);
  background-size: 22px 22px;
  min-height: 100vh;
}

.help-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 20px;
  min-height: 54px;
  background: var(--brand-maroon);
}

.help-brand-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 160px;
}

.help-brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  color: #fff;
}

.help-brand-sub {
  font-family: "Open Sans", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.help-brand-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.help-brand-actions::-webkit-scrollbar {
  display: none;
}

.help-brand-action {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.help-brand-action:hover,
.help-brand-action[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.help-gold-rule {
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--brand-maroon) 0%,
    var(--brand-gold) 30%,
    var(--brand-gold) 70%,
    var(--brand-maroon) 100%
  );
}

.help-page-layout {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
  display: grid;
  gap: 22px;
}

.help-hero,
.help-panel,
.help-card,
.help-form-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(107, 45, 91, 0.06),
    0 4px 18px rgba(107, 45, 91, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.05);
}

.help-hero {
  padding: 30px 26px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.help-kicker,
.help-section-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.help-hero h1 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  color: var(--text-dark);
}

.help-hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.help-panel {
  padding: 22px;
  display: grid;
  gap: 16px;
}

.help-panel-head {
  display: grid;
  gap: 6px;
}

.help-panel h2,
.help-form-card h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.help-panel-head p,
.help-form-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.help-list {
  display: grid;
  gap: 10px;
}

.help-item {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.help-item h3 {
  margin: 0 0 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.98rem;
  line-height: 1.35;
}

.help-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.help-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-card {
  padding: 18px;
  display: grid;
  gap: 9px;
  min-height: 132px;
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.help-card:hover,
.help-card:focus-visible {
  border-color: rgba(107, 45, 91, 0.28);
  box-shadow:
    0 3px 7px rgba(107, 45, 91, 0.08),
    0 6px 20px rgba(107, 45, 91, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.05);
}

.help-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(107, 45, 91, 0.1),
    0 3px 7px rgba(107, 45, 91, 0.08),
    0 6px 20px rgba(107, 45, 91, 0.1),
    0 16px 48px rgba(0, 0, 0, 0.05);
}

.help-card h2,
.help-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.help-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.help-form-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.help-request-form {
  display: grid;
  gap: 14px;
}

.help-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.help-request-form label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.help-request-form textarea {
  min-height: 140px;
  resize: vertical;
}

.help-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.help-form-actions .btn-primary {
  min-width: 160px;
  font-weight: 800;
}

.help-form-note,
.help-form-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-form-status.success {
  color: #1e6a23;
}

.help-form-status.error {
  color: var(--status-danger);
}

.help-hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.faq-benefits-list {
  display: grid;
  gap: 0;
}

.faq-benefit-section {
  padding: 18px 0;
  background: transparent;
}

.faq-benefit-section + .faq-benefit-section {
  border-top: 1px solid rgba(226, 222, 216, 0.85);
}

.faq-benefit-section h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.18;
  color: var(--text-dark);
}

.faq-benefit-section p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-benefit-section p + p {
  margin-top: 10px;
}

.faq-walkthrough {
  display: grid;
  gap: 24px;
}

.faq-parent-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.faq-flow-step,
.faq-classroom-flow {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.faq-classroom-flow {
  padding-top: 22px;
  border-top: 1px solid rgba(226, 222, 216, 0.85);
}

.faq-flow-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: start;
}

.faq-parent-flow .faq-flow-copy {
  min-height: 120px;
}

.faq-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-maroon);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
}

.faq-flow-copy h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.18;
  color: var(--text-dark);
}

.faq-flow-copy p {
  grid-column: 2;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.faq-shot {
  margin: 0;
  min-width: 0;
}

.faq-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(226, 222, 216, 0.95);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(107, 45, 91, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-phone-shot {
  width: min(100%, 260px);
  margin: 0 auto;
}

.faq-phone-shot img {
  border-radius: 16px;
}

.faq-classroom-shot img {
  border-radius: 16px;
}

.faq-visibility-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: visibility-step;
}

.faq-visibility-card {
  position: relative;
  display: grid;
  grid-template-rows: 112px 1fr;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(226, 222, 216, 0.95);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(248, 246, 243, 0.55), rgba(255, 255, 255, 0) 52%),
    #fff;
}

.faq-visibility-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-top: 2px solid rgba(107, 45, 91, 0.3);
  border-right: 2px solid rgba(107, 45, 91, 0.3);
  background: #fff;
  transform: rotate(45deg);
}

.faq-visibility-visual {
  position: relative;
  width: 100%;
  height: 112px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: #f7f4ef;
}

.faq-visibility-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-visibility-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 9px;
  align-content: start;
}

.faq-visibility-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-maroon);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.faq-visibility-copy h3 {
  margin: 0;
  min-width: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.16;
  color: var(--text-dark);
}

.faq-visibility-copy p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .help-brand-bar {
    padding: 8px 14px;
    align-items: flex-start;
  }

  .help-brand-actions {
    max-width: 62vw;
  }

  .help-brand-action {
    padding: 8px 11px;
    font-size: 0.74rem;
  }

  .help-page-layout {
    width: min(100% - 24px, 960px);
    padding: 24px 0 44px;
  }

  .help-hero,
  .help-panel,
  .help-form-card {
    border-radius: 18px;
  }

  .help-card-grid,
  .help-form-grid {
    grid-template-columns: 1fr;
  }

  .faq-parent-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-parent-flow .faq-flow-copy {
    min-height: 0;
  }

  .faq-flow-step {
    padding-top: 20px;
    border-top: 1px solid rgba(226, 222, 216, 0.85);
  }

  .faq-flow-step:first-child {
    padding-top: 0;
    border-top: none;
  }

  .faq-phone-shot {
    width: min(100%, 320px);
  }

  .faq-visibility-flow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .faq-visibility-card {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
  }

  .faq-visibility-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -10px;
    left: 58px;
    transform: rotate(135deg);
  }

  .faq-visibility-visual {
    height: 112px;
  }

  .faq-visibility-copy p {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .faq-visibility-card {
    grid-template-columns: 92px minmax(0, 1fr);
    padding: 12px;
  }

  .faq-visibility-visual {
    height: 92px;
  }

  .faq-visibility-card:not(:last-child)::after {
    left: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-card {
    transition: none;
  }
}

@media (max-width: 420px) {
  .help-brand-sub {
    display: none;
  }

  .help-brand-bar {
    gap: 10px;
  }

  .help-brand-actions {
    max-width: 58vw;
  }
}
