/* Styles for the static meeting finder, follow and 404 pages.
   Generated pages load this after site.css, so the shared tokens, nav and
   typography come from there; this file only adds what those pages need. */

.pg-shell {
  margin: 0 auto;
  max-width: 820px;
  padding: 28px 18px 56px;
}

/* Top bar mirrors the homepage: two links, the logo centred, two links. */
.pg-nav {
  align-items: center;
  border-bottom: 1px solid var(--site-line);
  column-gap: clamp(1rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-bottom: 44px;
  padding-bottom: 16px;
}

.pg-nav-group {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.pg-nav-group--left {
  justify-content: flex-end;
}

.pg-nav-group--right {
  justify-content: flex-start;
}

.pg-nav-group a {
  color: rgba(232, 228, 223, 0.6);
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.pg-nav-group a:hover,
.pg-nav-group a[aria-current="page"],
.pg-nav-group a.pg-nav-cta {
  color: var(--site-accent);
}

.pg-nav-brand {
  display: flex;
  min-width: 28px;
}

.pg-nav-brand img {
  filter: invert(1) brightness(0.75);
  height: 28px;
  object-fit: contain;
  opacity: 0.9;
  width: 28px;
}

/* Every block on these pages is centred like the homepage; long lists and
   answers keep left-aligned text inside a centred column so they read well. */
.pg-shell main {
  text-align: center;
}

.pg-shell h1,
.pg-shell h3,
.pg-hero .lede {
  text-wrap: balance;
}

.pg-crumbs {
  color: #948e88;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0 0 18px;
}

.pg-crumbs a {
  color: #948e88;
  text-decoration: none;
}

.pg-crumbs a:hover {
  color: var(--site-accent);
}

.pg-hero {
  margin-bottom: 44px;
}

.pg-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 auto 18px;
  max-width: 720px;
}

.pg-hero .lede {
  font-size: 1.08rem;
  margin: 0 auto 26px;
  max-width: 620px;
}

.pg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pg-badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: var(--site-text);
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 600;
  gap: 9px;
  padding: 10px 18px;
  text-decoration: none;
  transition: border-color 0.35s, background 0.35s, transform 0.35s;
}

.pg-badge:hover {
  background: rgba(196, 168, 130, 0.06);
  border-color: rgba(196, 168, 130, 0.55);
  color: var(--site-text);
  transform: translateY(-2px);
}

.pg-badge svg {
  flex-shrink: 0;
}

.pg-section {
  border-top: 1px solid var(--site-line);
  padding: 34px 0 6px;
}

.pg-section > h2 {
  margin-top: 0;
}

.pg-section > p {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.pg-section h3 {
  color: var(--site-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  font-weight: 400;
  margin: 0 0 6px;
}

.pg-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 18px 0 8px;
}

.pg-card {
  background: rgba(232, 228, 223, 0.02);
  border: 1px solid var(--site-line);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.pg-card p {
  margin: 0 0 6px;
}

.pg-card .pg-kind {
  color: var(--site-accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pg-card a.pg-card-link {
  color: var(--site-text);
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  text-decoration: none;
}

.pg-card a.pg-card-link:hover {
  color: var(--site-accent);
}

a.pg-card {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}

a.pg-card:hover {
  background: rgba(196, 168, 130, 0.05);
  border-color: rgba(196, 168, 130, 0.45);
}

.pg-features {
  list-style: none;
  margin: 16px auto 8px;
  max-width: 600px;
  padding: 0;
  text-align: left;
}

.pg-features li {
  border-left: 2px solid rgba(196, 168, 130, 0.5);
  margin: 0 0 14px;
  padding-left: 14px;
}

.pg-features strong {
  color: var(--site-text);
  font-weight: 600;
}

.pg-faq details {
  border-bottom: 1px solid var(--site-line);
  margin: 0 auto;
  max-width: 680px;
  padding: 14px 0;
  text-align: left;
}

.pg-faq summary {
  color: var(--site-text);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
}

.pg-faq summary::-webkit-details-marker {
  display: none;
}

.pg-faq summary::after {
  color: var(--site-accent);
  content: "+";
  flex-shrink: 0;
  font-weight: 400;
}

.pg-faq details[open] summary::after {
  content: "\2212";
}

.pg-faq details p {
  margin: 10px 0 0;
}

.pg-callout {
  background: rgba(196, 168, 130, 0.06);
  border: 1px solid rgba(196, 168, 130, 0.28);
  border-radius: 16px;
  margin: 34px auto 0;
  max-width: 680px;
  padding: 18px 20px;
}

.pg-callout p {
  margin: 0;
}

.pg-callout p + p {
  margin-top: 8px;
}

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 14px 0 6px;
}

.pg-chips a {
  border: 1px solid var(--site-line);
  border-radius: 999px;
  color: rgba(232, 228, 223, 0.8);
  font-size: 0.86rem;
  padding: 7px 14px;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}

.pg-chips a:hover {
  border-color: rgba(196, 168, 130, 0.5);
  color: var(--site-accent);
}

/* Follow page */
.pg-socials {
  display: grid;
  gap: 12px;
  margin: 8px auto 10px;
  max-width: 540px;
  text-align: left;
}

.pg-social {
  align-items: center;
  background: rgba(232, 228, 223, 0.02);
  border: 1px solid var(--site-line);
  border-radius: 18px;
  color: var(--site-text);
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.pg-social:hover {
  background: rgba(196, 168, 130, 0.05);
  border-color: rgba(196, 168, 130, 0.5);
  color: var(--site-text);
  transform: translateY(-2px);
}

.pg-social svg {
  color: var(--site-text);
  flex-shrink: 0;
  transition: color 0.3s;
}

.pg-social:hover svg {
  color: var(--site-accent);
}

.pg-social-name {
  display: block;
  font-weight: 600;
}

.pg-social-handle {
  color: var(--site-muted);
  display: block;
  font-size: 0.86rem;
}

.pg-social-arrow {
  color: var(--site-muted);
  margin-left: auto;
}

/* Hero with the live navigation screenshot */
.pg-hero--phone {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.pg-phone {
  margin: 0 auto;
  max-width: 250px;
  text-align: center;
  width: 100%;
}

.pg-phone-shell {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(196, 168, 130, 0.08);
  padding: 8px;
}

.pg-phone-shell img {
  border-radius: 30px;
  display: block;
  height: auto;
  width: 100%;
}

.pg-phone figcaption {
  color: #948e88;
  font-size: 0.78rem;
  margin-top: 12px;
}

/* Numbered how-it-works steps */
.pg-steps {
  counter-reset: step;
  list-style: none;
  margin: 18px auto 22px;
  max-width: 600px;
  padding: 0;
  text-align: left;
}

.pg-steps li {
  counter-increment: step;
  margin: 0 0 16px;
  padding-left: 46px;
  position: relative;
}

.pg-steps li::before {
  align-items: center;
  border: 1px solid rgba(196, 168, 130, 0.45);
  border-radius: 50%;
  color: var(--site-accent);
  content: counter(step);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  height: 30px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 30px;
}

.pg-steps strong {
  color: var(--site-text);
}

.pg-getapp {
  scroll-margin-top: 20px;
}

.pg-getapp .pg-badges {
  margin-top: 16px;
}

/* Sobriety calculator */
.sc-tool {
  background: rgba(232, 228, 223, 0.02);
  border: 1px solid var(--site-line);
  border-radius: 22px;
  margin: 0 auto 40px;
  max-width: 560px;
  padding: 26px 24px;
}

.sc-form label {
  color: var(--site-accent);
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.sc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sc-row input {
  appearance: none;
  background: rgba(232, 228, 223, 0.04);
  border: 1px solid var(--site-line);
  border-radius: 12px;
  color: var(--site-text);
  color-scheme: dark;
  flex: 1 1 200px;
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
}

.sc-row input:focus {
  border-color: rgba(196, 168, 130, 0.6);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.12);
  outline: none;
}

.sc-row .button-primary {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  justify-content: center;
  min-height: 50px;
}

.sc-result {
  margin-top: 22px;
  text-align: center;
}

.sc-result p {
  margin: 0;
}

.sc-big {
  color: var(--site-text) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 12vw, 5rem) !important;
  line-height: 1;
}

.sc-label {
  color: var(--site-accent) !important;
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-top: 8px !important;
  text-transform: uppercase;
}

.sc-breakdown {
  font-size: 1.05rem !important;
  margin-top: 14px !important;
}

.sc-stats {
  color: #948e88 !important;
  margin-top: 4px !important;
}

.sc-upcoming {
  list-style: none;
  margin: 12px auto 0;
  max-width: 320px;
  padding: 0;
}

.sc-upcoming li {
  border-bottom: 1px solid var(--site-line);
  display: flex;
  font-size: 0.88rem;
  justify-content: space-between;
  margin: 0;
  padding: 7px 0;
}

.sc-upcoming li + li {
  margin-top: 0;
}

.sc-next {
  border-top: 1px solid var(--site-line);
  margin-top: 18px !important;
  padding-top: 16px;
}

/* Muted text used for disclaimers and notes must stay readable (4.5:1+). */
.pg-shell .meta-line {
  color: #9a948e;
}

.pg-shell main > .meta-line {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

/* Footer */
.pg-footer {
  border-top: 1px solid var(--site-line);
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 56px;
  padding-top: 28px;
  text-align: center;
}

.pg-footer-socials {
  display: flex;
  gap: 6px;
}

.pg-footer-socials a {
  color: rgba(232, 228, 223, 0.6);
  display: inline-flex;
  padding: 12px;
  transition: color 0.3s;
}

.pg-footer-socials a:hover {
  color: var(--site-accent);
}

.pg-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
}

.pg-footer-links a {
  color: rgba(232, 228, 223, 0.6);
  display: inline-block;
  padding: 6px 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.pg-footer-links a:hover {
  color: rgba(232, 228, 223, 0.8);
}

.pg-footer-note {
  color: #948e88;
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 0;
  max-width: 560px;
}

@media (max-width: 720px) {
  .pg-shell {
    padding: 18px 16px 44px;
  }

  .pg-nav {
    column-gap: 0.8rem;
    margin-bottom: 32px;
    padding-bottom: 12px;
  }

  .pg-nav-group {
    gap: 0.8rem;
  }

  .pg-nav-group a {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .pg-nav-brand img {
    height: 26px;
    width: 26px;
  }

  .pg-hero--phone {
    gap: 30px;
  }

  .pg-phone {
    max-width: 230px;
  }
}

@media (max-width: 400px) {
  .pg-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .pg-nav,
  .pg-nav-group {
    column-gap: 0.6rem;
    gap: 0.6rem;
  }

  .pg-nav-group a {
    font-size: 0.72rem;
    letter-spacing: 0;
  }
}

@media (max-width: 340px) {
  .pg-nav-group a {
    font-size: 0.66rem;
  }
}
