/* PassageMaster™ public site draft — brand navy from src/core/brandChrome.ts (#0C3A66). */
:root {
  --navy: #0c3a66;
  --navy-deep: #082847;
  --ink: #142433;
  --muted: #4a5d6e;
  --paper: #f5f7fa;
  --sky-top: #f7fbff;
  --sky-mid: #c9e4f5;
  --water: #9dc4db;
  --line: rgba(12, 58, 102, 0.16);
  --max: 42rem;
  --wide: 58rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(
      180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 42%,
      var(--water) 100%
    )
    fixed;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy-deep);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(245, 247, 250, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand:hover {
  color: var(--navy-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.nav a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.nav a.nav-cta {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.nav a.nav-cta:hover {
  background: var(--navy-deep);
  color: #ffffff;
  text-decoration: none;
}

.nav a.nav-cta:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero__panel {
  width: min(100%, var(--max));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.85rem;
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--ink);
  font-size: 1.15rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 0.35rem;
  background: var(--navy);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--navy-deep);
  color: var(--paper);
}

.button--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.button--ghost:hover {
  background: rgba(12, 58, 102, 0.08);
  color: var(--navy-deep);
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

.intro-player {
  width: 100%;
  max-width: var(--wide);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.35rem;
  background: var(--navy-deep);
}

.intro-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.section {
  padding: 0 0 2.75rem;
}

.section h2 {
  margin: 0 0 0.85rem;
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
}

.section p,
.section li {
  color: var(--ink);
}

.section p {
  margin: 0 0 1rem;
  max-width: var(--max);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  max-width: var(--wide);
}

.feature-list h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.feature-list p {
  margin: 0;
  max-width: 40rem;
}

.limits {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  background: rgba(245, 247, 250, 0.55);
}

.limits ul {
  margin: 0;
  padding-left: 1.2rem;
  max-width: var(--max);
}

.limits li {
  margin-bottom: 0.45rem;
}

.page-title {
  padding: 2.5rem 0 1.25rem;
}

.page-title h1 {
  margin: 0 0 0.6rem;
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
}

.faq {
  max-width: var(--max);
  padding-bottom: 2.5rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--navy-deep);
  font-weight: 600;
}

.faq details p,
.faq details ul {
  margin: 0.65rem 0 0.25rem;
  color: var(--ink);
}

.faq details ul {
  padding-left: 1.2rem;
}

.pricing-table {
  width: min(100%, 28rem);
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  background: rgba(245, 247, 250, 0.7);
}

.pricing-table th,
.pricing-table td {
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.pricing-table th {
  background: rgba(12, 58, 102, 0.08);
  color: var(--navy-deep);
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(8, 40, 71, 0.94);
  color: #d7e4ef;
}

.site-footer a {
  color: #e8f2fa;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer__inner {
  display: grid;
  gap: 0.85rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.legal-prose {
  width: min(100%, 42rem);
  margin: 2rem auto 3rem;
  padding: 1.75rem 1.5rem 2.25rem;
  background: rgba(245, 247, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

.legal-prose h1 {
  margin: 0 0 1rem;
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.legal-prose h2 {
  margin: 1.75rem 0 0.65rem;
  color: var(--navy-deep);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
}

.legal-prose p {
  margin: 0 0 0.9rem;
}

.legal-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.45rem;
}

.legal-prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.25rem;
  }
}

/* Time-of-day brand field: native 3840×2160 PNGs (same files as the app).
   The still IS the field (docs/BRAND_IDENTITY.md); nothing is drawn over it. TimeState is set by the
   inline head script (port of timeStateAt, PM-519). No-JS default: day.
   Previous 1920×1080 jpg/webp files stay in brand/ as backups and are not referenced.
   image-set repeats the PNG so a browser that skips image-set still gets the revised file. */
.brand-field {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  background-color: #c9e4f5;
  background-image: url("brand/by-astramara/4k/01-day-lockup-by-astramara-4k.png");
  background-image: image-set(
    url("brand/by-astramara/4k/01-day-lockup-by-astramara-4k.png")
      type("image/png")
  );
  background-position: center;
  background-size: cover;
}

html.tod-dawn .brand-field {
  background-color: #c5b8d4;
  background-image: url("brand/by-astramara/4k/02-dawn-lockup-by-astramara-4k.png");
  background-image: image-set(
    url("brand/by-astramara/4k/02-dawn-lockup-by-astramara-4k.png")
      type("image/png")
  );
}

html.tod-dusk .brand-field {
  background-color: #0b1c3a;
  background-image: url("brand/by-astramara/4k/03-dusk-lockup-by-astramara-4k.png");
  background-image: image-set(
    url("brand/by-astramara/4k/03-dusk-lockup-by-astramara-4k.png")
      type("image/png")
  );
}

html.tod-night .brand-field {
  background-color: #05070c;
  background-image: url("brand/by-astramara/4k/04-night-lockup-by-astramara-4k.png");
  background-image: image-set(
    url("brand/by-astramara/4k/04-night-lockup-by-astramara-4k.png")
      type("image/png")
  );
}

@media (forced-colors: active) {
  .brand-field {
    forced-color-adjust: none;
  }
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.contact-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend,
.contact-form label {
  color: var(--navy-deep);
  font-weight: 600;
}

.contact-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.contact-kinds label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 600;
}

.contact-form input:not([type="radio"]),
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form button.button {
  justify-self: start;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.contact-form button.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.contact-status {
  margin: 0;
  min-height: 1.4em;
  color: var(--navy-deep);
}

/* Analytics consent. A bottom bar, not a modal: the page scrolls clear of it. */
html {
  scroll-padding-bottom: var(--privacy-bar-space, 0px);
}

body {
  padding-bottom: var(--privacy-bar-space, 0px);
}

.privacy-choices {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-height: min(50vh, 22rem);
  margin: 0;
  overflow: auto;
  padding: 0.85rem max(1rem, calc((100% - var(--wide)) / 2)) 1rem;
  background: #ffffff;
  color: #142433;
  border-top: 2px solid #0c3a66;
  box-shadow: 0 -8px 24px rgba(8, 40, 71, 0.14);
}

.privacy-choices h2,
.privacy-choices h3 {
  margin: 0;
  color: #082847;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
}

.privacy-choices h2 {
  font-size: 1.5rem;
}

.privacy-choices h2:focus-visible {
  outline: 3px solid #0c3a66;
  outline-offset: 3px;
}

.privacy-choices h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
}

.privacy-choices p {
  margin: 0.75rem 0 0;
  color: #142433;
}

.privacy-choices a {
  color: #0c3a66;
  font-weight: 600;
}

.privacy-choices__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-choices__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.privacy-choices__choice,
.privacy-choices__close {
  margin: 0;
  border: 2px solid #0c3a66;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #0c3a66;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.privacy-choices__choice {
  min-height: 2.75rem;
  padding: 0.7rem 0.9rem;
  text-align: center;
}

.privacy-choices__close {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.privacy-choices__choice:hover,
.privacy-choices__close:hover {
  background: #f5f7fa;
  color: #082847;
}

.privacy-choices__choice:focus-visible,
.privacy-choices__close:focus-visible,
.privacy-choices__switch:focus-visible,
.privacy-choices a:focus-visible {
  outline: 3px solid #0c3a66;
  outline-offset: 2px;
}

.privacy-choices__switch {
  position: relative;
  display: block;
  width: 3.25rem;
  height: 1.85rem;
  margin-top: 0.75rem;
  padding: 0;
  border: 2px solid #0c3a66;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.privacy-choices__switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #0c3a66;
}

.privacy-choices__switch[aria-checked="true"] {
  background: #0c3a66;
}

.privacy-choices__switch[aria-checked="true"]::after {
  left: auto;
  right: 0.15rem;
  background: #ffffff;
}

.privacy-choices__switch[aria-disabled="true"] {
  cursor: not-allowed;
}

.privacy-choices__status:empty {
  display: none;
}

.privacy-choices__status {
  font-weight: 600;
  color: #082847;
}

@media (max-width: 640px) {
  .privacy-choices__actions {
    grid-template-columns: 1fr;
  }
}

@media (forced-colors: active) {
  .privacy-choices,
  .privacy-choices__choice,
  .privacy-choices__close,
  .privacy-choices__switch {
    border-color: CanvasText;
  }
}
