/* ============================================================
   AdhdAgenda – Unified public page styles
   Dark blue starfield design system for all public pages
   ============================================================ */

/* ---- Brand wordmark typography ---- */
.dp-brand-wordmark,
.dp-nav-brand-name,
.dp-brand-lockup-name {
  font-family: "Space Grotesk", "Sora", "Avenir Next", sans-serif;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: #f5fbff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wordmark colour split */
.brand-adhd { color: #e8eef4; font-weight: 500; }
.brand-agenda { color: #5bbf9a; font-weight: 500; }

/* ---- Shared dark page shell ---- */
.public-dark-page {
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

body.public-dark-page {
  background:
    radial-gradient(ellipse 60% 50% at 25% 18%, rgba(50, 120, 200, 0.22) 0%, transparent 100%),
    radial-gradient(ellipse 40% 40% at 80% 75%, rgba(50, 180, 180, 0.10) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 50% 95%, rgba(8, 18, 35, 0.95) 0%, transparent 100%),
    linear-gradient(175deg, #1d4878 0%, #163c66 22%, #112e50 50%, #0c2240 75%, #081a30 100%) !important;
}

body.public-dark-page::before,
body.public-dark-page::after {
  display: none !important;
}

.public-dark-page h1,
.public-dark-page h2,
.public-dark-page h3 {
  font-family: "Sora", "Avenir Next", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.public-dark-page h2 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.public-dark-page h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Kill default site header/footer when using dp-header */
.public-dark-page .site-header-inner,
.public-dark-page .site-footer {
  display: none;
}

/* ---- Particles ---- */
.dp-particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.dp-particles span {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 6px 1px rgba(180, 210, 255, 0.15);
  animation: dpPulse 4s ease-in-out infinite alternate;
}

@keyframes dpPulse {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.3); }
}

.dp-particles .d1  { top: 8%;  left: 6%;  width: 3px; height: 3px; animation-delay: 0s; }
.dp-particles .d2  { top: 15%; left: 22%; width: 4px; height: 4px; animation-delay: 0.6s; }
.dp-particles .d3  { top: 35%; left: 4%;  width: 3px; height: 3px; animation-delay: 1.2s; }
.dp-particles .d4  { top: 55%; left: 14%; width: 3px; height: 3px; animation-delay: 0.3s; }
.dp-particles .d5  { top: 72%; left: 8%;  width: 4px; height: 4px; animation-delay: 2s; }
.dp-particles .d6  { top: 6%;  right: 10%; width: 3px; height: 3px; animation-delay: 1.5s; }
.dp-particles .d7  { top: 24%; right: 5%;  width: 3px; height: 3px; animation-delay: 0.8s; }
.dp-particles .d8  { top: 44%; right: 16%; width: 4px; height: 4px; animation-delay: 2.5s; }
.dp-particles .d9  { top: 62%; right: 7%;  width: 3px; height: 3px; animation-delay: 1s; }
.dp-particles .d10 { top: 80%; left: 42%;  width: 3px; height: 3px; animation-delay: 1.8s; }

/* ---- Nav ---- */
.dp-header {
  position: relative;
  z-index: 10;
  padding: 28px 0 0;
}

.dp-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.dp-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  position: absolute;
  left: 0;
}

.dp-nav-brand svg {
  width: 24px;
  height: 26px;
  flex-shrink: 0;
}

.dp-nav-brand-name {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #f5fbff;
  -webkit-font-smoothing: antialiased;
}

.dp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.dp-nav-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.dp-nav-links a:hover,
.dp-nav-links a:focus-visible {
  color: #ffffff;
}

.dp-nav-login {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(196, 167, 78, 0.7);
  color: #c4a74e;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.dp-nav-login:hover,
.dp-nav-login:focus-visible {
  background: rgba(196, 167, 78, 0.12);
  color: #ddc460;
}

/* ---- Brand lockup (centered, large) ---- */
.dp-brand-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  margin-bottom: 8px;
}

.dp-brand-lockup svg {
  width: 40px;
  height: 44px;
  flex-shrink: 0;
}

.dp-brand-lockup-name {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #f5fbff;
  -webkit-font-smoothing: antialiased;
}

/* ---- Page content shell ---- */
.dp-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 48px;
  text-align: center;
}

.dp-page-label {
  margin: 0 0 8px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.dp-title {
  margin: 16px auto 0;
  max-width: 680px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.04em;
  color: #f5fbff;
  text-align: center;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dp-subtitle {
  margin: 16px auto 0;
  max-width: 34rem;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.52);
  text-align: center;
  text-wrap: balance;
}

/* ---- CTA button (gradient pill) ---- */
.dp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2a7ac4 0%, #38b8c8 50%, #4dd4a8 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 18px 44px rgba(30, 120, 180, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dp-cta:hover,
.dp-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(30, 120, 180, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ---- Glass cards ---- */
.dp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.dp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 20px;
  border: 1px solid rgba(160, 200, 240, 0.14);
  background: rgba(180, 210, 240, 0.06);
  backdrop-filter: blur(10px);
  text-align: center;
}

.dp-card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(100, 160, 220, 0.12);
  color: rgba(140, 190, 240, 0.8);
}

.dp-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #f5fbff;
}

.dp-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}

.dp-card .dp-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(140, 190, 240, 0.2);
  background: rgba(40, 90, 150, 0.3);
  color: rgba(200, 225, 255, 0.85);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease;
}

.dp-card .dp-card-cta:hover,
.dp-card .dp-card-cta:focus-visible {
  background: rgba(40, 90, 150, 0.5);
  color: #fff;
}

/* ---- Footer text / links ---- */
.dp-bottom-text {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
}

.dp-bottom-text a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.dp-bottom-text a:hover,
.dp-bottom-text a:focus-visible {
  color: #fff;
}

.dp-note {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---- Form (login page) ---- */
.dp-form {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 28px auto 0;
}

.dp-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(180, 210, 240, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.dp-input-wrap svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.35);
}

.dp-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  min-width: 0;
}

.dp-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.dp-form .dp-cta {
  width: 100%;
  margin-top: 4px;
}

.dp-form-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}

.dp-form-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.dp-form-links a:hover,
.dp-form-links a:focus-visible {
  color: #fff;
}

.dp-form-links .dp-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ---- Focus states ---- */
.public-dark-page a:focus-visible,
.public-dark-page button:focus-visible,
.public-dark-page input:focus-visible {
  outline: 2px solid rgba(60, 200, 200, 0.7);
  outline-offset: 4px;
}

/* ---- Content pages (about, contact, privacy, terms) ---- */
.dp-content-wide {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 60px;
  text-align: center;
}

/* Hero section for content pages */
.dp-hero-kicker {
  margin: 0 0 8px;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

/* Glass content panel */
.dp-panel {
  margin-top: 28px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(160, 200, 240, 0.12);
  background: rgba(180, 210, 240, 0.05);
  backdrop-filter: blur(10px);
  text-align: left;
}

.dp-panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #f5fbff;
}

.dp-panel h3 {
  margin: 20px 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
}

.dp-panel h3:first-child {
  margin-top: 0;
}

.dp-panel p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.dp-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dp-panel ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.dp-panel ul li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: rgba(60, 200, 200, 0.7);
}

.dp-panel .dp-info-note {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(196, 167, 78, 0.2);
  background: rgba(196, 167, 78, 0.06);
}

.dp-panel .dp-info-note strong {
  color: rgba(220, 196, 96, 0.85);
  font-size: 0.88rem;
}

.dp-panel .dp-info-note p {
  color: rgba(255, 255, 255, 0.5);
}

/* Mini badges (privacy page) */
.dp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.dp-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(60, 200, 200, 0.2);
  background: rgba(60, 200, 200, 0.06);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(60, 200, 200, 0.8);
}

/* CTA band at bottom of content pages */
.dp-cta-band {
  margin-top: 36px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(160, 200, 240, 0.12);
  background: rgba(180, 210, 240, 0.05);
  backdrop-filter: blur(10px);
  text-align: center;
}

.dp-cta-band h2 {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #f5fbff;
  text-wrap: balance;
}

.dp-cta-band p {
  margin: 10px auto 0;
  max-width: 34rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.dp-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Secondary button (ghost style) */
.dp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(140, 190, 240, 0.22);
  background: rgba(40, 90, 150, 0.2);
  color: rgba(200, 225, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.dp-btn-secondary:hover,
.dp-btn-secondary:focus-visible {
  background: rgba(40, 90, 150, 0.4);
  color: #fff;
}

/* Footer */
.dp-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 24px 20px;
  text-align: center;
}

.dp-footer-disclaimer {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}

.dp-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.dp-footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

.dp-footer-links a:hover,
.dp-footer-links a:focus-visible {
  color: rgba(255, 255, 255, 0.75);
}

/* ---- Responsive ---- */
@media (max-width: 699px) {
  .dp-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dp-nav-brand {
    position: static;
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }

  .dp-nav-login {
    position: static;
  }

  .dp-brand-lockup svg {
    width: 48px;
    height: 53px;
  }

  .dp-brand-lockup-name {
    font-size: 1.8rem;
  }

  .dp-cards {
    grid-template-columns: 1fr;
  }

  .dp-content-wide {
    padding: 0 16px 40px;
  }

  .dp-panel {
    padding: 22px 18px;
  }
}
