/* ============================================================
   Sleeppy secondary pages (support, developer, 404).
   Loaded after /style.css and reuses its "Lullaby Dawn" tokens.
   All asset URLs on these pages are absolute, so they work with
   and without a trailing slash.
   ============================================================ */

.page-hero {
  text-align: center;
  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(20px, 3vh, 32px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(31px, 5.4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin: 0 auto 16px;
  max-width: 18ch;
  text-wrap: balance;
}

.page-hero .lead { margin-bottom: 0; }

.stack {
  display: grid;
  gap: var(--gap);
  max-width: 760px;
  margin: 0 auto;
}

section.page-section { padding-block: clamp(20px, 3.5vh, 36px); }

.panel {
  background: var(--surface-lowest);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3.6vw, 36px);
  box-shadow: var(--shadow-2);
}

.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin: 0 0 10px;
}

.panel p { margin: 0; font-size: 16px; line-height: 1.6; }
.panel p + p { margin-top: 10px; }

/* ---- Contact card ---- */
.contact {
  text-align: center;
  background: linear-gradient(165deg, var(--surface-lowest), var(--surface-low));
}

.panel .contact__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-faint);
  margin: 0 0 8px;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(22px, 4.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  text-decoration: none;
  word-break: break-all;
}
.contact__email:hover { color: var(--primary); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 22px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn--ghost {
  background: var(--surface-lowest);
  color: var(--on-surface);
  border-color: var(--card-border);
  box-shadow: var(--shadow-1);
}

.contact__note { font-size: 14.5px !important; color: var(--on-surface-faint); }

/* ---- Checklist ---- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 36px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--on-surface);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234d6076' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- FAQ ---- */
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  text-align: center;
  margin: 0 0 clamp(18px, 3vw, 26px);
}

.faq { display: grid; gap: 12px; }

.faq details {
  background: var(--surface-lowest);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--on-surface);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; border-radius: var(--radius-md); }

.faq .answer {
  padding: 0 22px 20px;
  font-size: 15.5px;
  line-height: 1.6;
}
.faq .answer p { margin: 0; }
.faq .answer p + p { margin-top: 8px; }

/* ---- Developer page ---- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 32px;
  margin-bottom: 24px;
  background: linear-gradient(150deg, var(--primary-container), var(--peach));
  color: var(--on-primary-container);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-2);
}

.app-card {
  display: flex;
  gap: 20px;
  align-items: center;
}
.app-card img.app-card__icon {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 22px;
  filter: drop-shadow(0 12px 20px rgba(76, 60, 120, 0.25));
}
.app-card .cta img { height: 44px; }
.app-card__body { display: grid; gap: 10px; justify-items: start; }

@media (max-width: 520px) {
  .app-card { flex-direction: column; text-align: center; }
  .app-card__body { justify-items: center; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}
.facts div {
  background: var(--surface-low);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.facts dt { font-size: 12.5px; color: var(--on-surface-faint); margin: 0 0 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--on-surface); font-size: 15px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: var(--on-surface);
  color: var(--surface);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: var(--shadow-2);
  transition: opacity 160ms ease, transform 160ms ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
