﻿/* Pages.css: the guest pages built in Task 8 (/charge, /privacy, /404).
   The classes carry a pg- prefix. Colours and sizes only come from tokens.css.
   The .lockup rules below show only the current theme's lockup. */

:root[data-theme="party"] .lockup--calm,
:root:not([data-theme="party"]) .lockup--party {
  display: none;
}

/* ---------- The header: solid, always the logo ground ---------- */
.pg-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.pg-header__inner {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
}

/* ---------- The one-column page body ---------- */
.pg-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: var(--bg);
}
.pg-section {
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: var(--section-pad);
}
.pg-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  width: 100%;
  max-width: var(--w-text);
}
.pg-col--wide {
  max-width: 44rem;
}
.pg-main--center .pg-section {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.pg-main--center .pg-col {
  align-items: center;
  text-align: center;
}

/* ---------- Page heading rhythm ---------- */
.pg-eyebrow {
  color: var(--accent-text);
}
:root[data-theme="party"] .pg-col .pg-eyebrow {
  color: var(--accent-2);
}
.pg-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
}
.pg-lead {
  max-width: var(--w-text);
}

/* ---------- /charge: the four steps ---------- */
.pg-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.pg-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pg-step__body {
  max-width: var(--w-text);
}

/* ---------- /charge: the two small cards ---------- */
.pg-duo {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.pg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.pg-card__body {
  max-width: var(--w-text);
}

/* ---------- /privacy: the blocks ---------- */
.pg-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pg-block__title {
  font-size: var(--fs-title);
}
.pg-block p + p {
  margin-top: var(--s-2);
}

/* ---------- /404: the actions ---------- */
.pg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  min-width: 240px;
  padding: 0 var(--s-6);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-button);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
}
.pg-btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.pg-stuck {
  margin-top: var(--s-3);
}

/* The phone number stays on one line: it broke as 732- / 421-4552
   at 390 in the card and the footer. */
a[href^="tel:"] {
  white-space: nowrap;
}

/* ---------- Links ---------- */
.pg-link {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.pg-footer__legal .pg-link {
  text-decoration: none;
}

/* ---------- The footer ---------- */
.pg-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.pg-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  padding-block: var(--s-7);
}
.pg-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

/* ---------- The wide layout (from 900 px, like the rest of the site) ---------- */
@media (min-width: 900px) {
  .pg-col {
    gap: var(--s-6);
  }
  .pg-step,
  .pg-card {
    padding: var(--s-6);
  }
  .pg-steps {
    gap: var(--s-5);
  }
  .pg-duo {
    gap: var(--s-5);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .pg-btn {
    min-width: 200px;
  }
}
