/* Shared PRecious Pulse public-page visual system. */

:root,
body[data-theme-resolved="light"] {
  --blue: #005aa9;
  --blue-2: #0077b8;
  --sky: #00a3d7;
  --ink: #101820;
  --muted: #334155;
  --soft: #eef6fc;
  --card: #ffffff;
  --line: #b9cee3;
  --held: #9f3d00;
  --shadow: 0 18px 42px rgba(19, 56, 92, .12);
  --page-bg: linear-gradient(180deg, #e9f5ff 0%, #ffffff 42%, #edf7fd 100%);
  --nav-bg: rgba(255, 255, 255, .92);
  --brand-text: #12395d;
  --section-title: #16324f;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #f5f8fb;
    --muted: #c9d3df;
    --soft: #0d1521;
    --card: #111b29;
    --line: #2b3b4e;
    --held: #ffb15c;
    --shadow: 0 18px 42px rgba(0, 0, 0, .35);
    --page-bg: linear-gradient(180deg, #08131f 0%, #0d1724 48%, #101c2b 100%);
    --nav-bg: rgba(13, 23, 36, .92);
    --brand-text: #f5f8fb;
    --section-title: #f5f8fb;
  }
}

body[data-theme-resolved="dark"] {
  color-scheme: dark;
  --ink: #f5f8fb;
  --muted: #c9d3df;
  --soft: #0d1521;
  --card: #111b29;
  --line: #2b3b4e;
  --held: #ffb15c;
  --shadow: 0 18px 42px rgba(0, 0, 0, .35);
  --page-bg: linear-gradient(180deg, #08131f 0%, #0d1724 48%, #101c2b 100%);
  --nav-bg: rgba(13, 23, 36, .92);
  --brand-text: #f5f8fb;
  --section-title: #f5f8fb;
}

body,
body.pulse-public-page {
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  letter-spacing: 0;
}

.shell,
main.shell {
  min-height: 100vh;
  max-width: none;
  overflow-x: hidden;
  padding: 0;
}

.nav,
.hero,
.section,
.footer {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

.nav {
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 44px -34px rgba(0, 54, 102, .32);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 0;
  max-width: none;
  padding: 22px 32px;
}

.pulse-public-page .nav {
  border-bottom-color: color-mix(in srgb, var(--blue) 22%, var(--line));
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon {
  align-items: center;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 90, 169, .22);
  color: #fff;
  display: inline-flex;
  flex: 0 0 54px;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.brand-icon svg {
  display: block;
  height: 38px;
  width: 38px;
}

.brand strong {
  color: var(--brand-text);
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.brand > span > span,
.brand span span,
.brand span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.brand .brand-icon,
.brand .brand-icon svg {
  color: #ffffff;
}

.nav-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.nav-actions,
.cta-row,
.cta-grid {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-switcher {
  align-items: center;
  background: color-mix(in srgb, var(--blue) 8%, var(--card));
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-grid;
  gap: 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  width: 210px;
}

.theme-option {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 10px;
}

.theme-option[aria-pressed="true"] {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 90, 169, .18);
  color: #ffffff;
}

.nav-link,
.back-link,
.public-link,
.cta,
.login-button,
.domain-preview a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-width: 0;
  text-align: center;
  text-decoration: none;
}

.nav-link,
.back-link {
  background: color-mix(in srgb, var(--blue) 8%, var(--card));
  border: 1px solid var(--line);
  color: var(--brand-text);
  font-size: 12px;
  line-height: 1.15;
  min-height: 38px;
  padding: 9px 14px;
}

.hero {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 42%),
    radial-gradient(circle at 74% 16%, rgba(0, 163, 215, .28), transparent 28%),
    linear-gradient(108deg, rgba(3, 15, 31, .97), rgba(0, 62, 113, .94) 48%, rgba(0, 90, 169, .84)),
    url("https://www.preciouscomms.com/wp-content/uploads/2024/07/billy-huynh-W8KTS-mhFUE-unsplash-1.webp") center / cover;
  border: 1px solid rgba(0, 90, 169, .18);
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: #ffffff;
  margin-top: 22px;
  overflow: hidden;
  padding-bottom: 34px;
  padding-top: 38px;
}

.pulse-public-page .hero,
.pulse-public-page main.shell > .grid {
  box-shadow: 0 28px 70px rgba(0, 54, 102, .24);
}

.hero .lead,
.hero-copy {
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
}

.eyebrow {
  align-items: center;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0 0 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}

h1 {
  letter-spacing: 0;
}

.cta-row,
.cta-grid {
  align-items: stretch;
  background: rgba(8, 32, 56, .38);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  margin-top: 18px;
  padding: 10px;
}

.cta-row::before,
.cta-grid::before {
  color: rgba(255, 255, 255, .78);
  content: "Choose an action";
  display: block;
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  padding: 0 2px;
  text-transform: uppercase;
}

.cta {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.15;
  min-height: 40px;
  padding: 9px 14px;
}

.cta.primary {
  background: #ffffff;
  border-color: transparent;
  box-shadow: 0 18px 34px -22px rgba(0, 54, 102, .6);
  color: var(--blue);
}

.cta.secondary,
.cta:not(.primary):not(.gated) {
  background: rgba(255, 255, 255, .12);
}

.cta.gated {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .88);
}

.panel,
.step,
.notice,
.package,
.boundary,
.card {
  border-radius: 8px;
}

.panel,
.step,
.package,
.boundary,
.card {
  box-shadow: 0 16px 34px rgba(19, 56, 92, .09);
}

.step,
.package,
.card {
  position: relative;
}

.step::before,
.package::before {
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 16px;
  width: 54px;
}

.hero .panel,
.hero .card {
  background: rgba(18, 57, 93, .72);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: var(--shadow);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.hero .panel h2,
.hero .panel li,
.hero .panel ul,
.hero .card h2,
.hero .card p {
  color: #ffffff;
}

.section {
  padding-bottom: 56px;
  padding-top: 24px;
}

.notice,
.boundary,
.status {
  background: color-mix(in srgb, var(--blue) 7%, var(--card));
  border-color: color-mix(in srgb, var(--held) 50%, var(--line));
}

.preview-note {
  align-items: center;
  background: rgba(8, 32, 56, .36);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: rgba(255, 255, 255, .84);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 16px 0 0;
  padding: 10px 14px;
}

.pulse-public-page .section h2,
.pulse-public-page .section h3 {
  color: var(--section-title);
}

.notice strong,
.boundary strong {
  color: var(--held);
}

.login-button,
.public-link {
  border: 1px solid var(--line);
}

.public-link {
  background: rgba(255, 255, 255, .1);
}

.login-button[aria-disabled="true"] {
  border-style: dashed;
}

.grid .card .preview-note {
  display: flex;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 28px;
  padding-bottom: 42px;
  padding-top: 28px;
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 14px;
  }

  .nav-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cta-row,
  .cta-grid {
    width: 100%;
  }

  .theme-switcher {
    grid-column: 1 / -1;
    width: 100%;
  }

  .back-link {
    min-height: 38px;
    padding: 9px 10px;
  }

  .nav-link,
  .back-link,
  .public-link,
  .cta,
  .login-button {
    width: 100%;
  }

  .hero,
  .section,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-top: 18px;
  }
}
