/* Public landing and early-access form. Loaded only by those pages.
   Colors and Inter come from the LobbyUpAI freshen sheet. */

.pub {
  margin: 0;
  background: #f4f7fb;
  color: #2d2e33;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.pub * { box-sizing: border-box; }

.pub img { max-width: 100%; height: auto; }

.pub-skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #0c1826;
  padding: 0.5rem 0.75rem;
  z-index: 5;
}

.pub-skip:focus { top: 0.5rem; }

.pub-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.pub-mast {
  background: #0c1826;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 4px solid #0c5c96;
}

.pub-mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 0;
}

.pub-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.pub-logo img {
  width: auto;
  height: 40px;
  display: block;
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pub-nav a { text-decoration: none; }

.pub-nav-in {
  color: #fff;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pub-nav-in:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  background: #0c5c96;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.pub-btn:hover { background: #0a4a70; color: #fff; }

.pub-btn-light {
  background: #fff;
  color: #0c1826;
}

.pub-btn-light:hover { background: #e7f3ff; color: #0c1826; }

.pub-btn-ghost {
  background: transparent;
  color: #0c1826;
  box-shadow: inset 0 0 0 2px #0c1826;
}

.pub-btn-ghost:hover { background: #0c1826; color: #fff; }

.pub-btn-block { width: 100%; }

.pub a { color: #0c5c96; }
.pub a:hover { color: #0a4a70; }

.pub a.pub-nav-in,
.pub a.pub-nav-in:hover { color: #fff; }

.pub a.pub-btn,
.pub a.pub-btn:hover { color: #fff; }

.pub a.pub-btn-light,
.pub a.pub-btn-light:hover { color: #0c1826; }

.pub a.pub-btn-ghost { color: #0c1826; }
.pub a.pub-btn-ghost:hover { color: #fff; background: #0c1826; }

.pub :focus-visible {
  outline: 3px solid #0c5c96;
  outline-offset: 2px;
}

.pub-mast :focus-visible { outline-color: #fff; }

.pub-hero {
  background:
    linear-gradient(180deg, rgba(12, 24, 38, 0.04), rgba(12, 24, 38, 0) 28%),
    #f4f7fb;
  padding: 3.5rem 0 2.5rem;
}

.pub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: end;
}

.pub-kicker {
  margin: 0 0 0.75rem;
  color: #0c5c96;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pub h1,
.pub h2,
.pub h3 { font-weight: 800; letter-spacing: -0.02em; color: #2d2e33; }

.pub h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 0.98;
  max-width: 12ch;
}

.pub-lede {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  max-width: 42rem;
  color: #2d2e33;
}

.pub-offer {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  padding-left: 0.9rem;
  border-left: 4px solid #0c5c96;
  color: #2d2e33;
  font-weight: 600;
}

.pub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pub-board {
  background: #0c1826;
  color: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 0.5rem;
  box-shadow: 0 18px 40px rgba(12, 24, 38, 0.18);
}

.pub-board-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fd0ff;
}

.pub-board-note {
  margin: 0.35rem 0 0.9rem;
  color: #d5dee8;
  font-size: 0.95rem;
}

.pub-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pub-board-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  grid-template-areas:
    "kind title"
    "kind meta";
  gap: 0 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.pub-board-kind {
  grid-area: kind;
  align-self: center;
  color: #9fd0ff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pub-board-title {
  grid-area: title;
  font-weight: 700;
  color: #fff;
}

.pub-board-meta {
  grid-area: meta;
  color: #d5dee8;
  font-size: 0.92rem;
}

.pub-facts {
  background: #0c1826;
  color: #fff;
  padding: 1.5rem 0;
}

.pub-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}

.pub-fact-k {
  margin: 0 0 0.25rem;
  color: #9fd0ff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pub-fact-v {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.pub-band { padding: 3.5rem 0; }

.pub-band-alt {
  background: #fff;
  border-block: 1px solid #d5dee8;
}

.pub h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.pub-section-lead {
  margin: -0.5rem 0 1.5rem;
  max-width: 40rem;
  color: #4c5a66;
}

.pub-who {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pub-who-card {
  background: #fff;
  border: 1px solid #d5dee8;
  border-top-width: 6px;
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1.3rem;
  margin: 0;
}

.pub-who-lobby { border-top-color: #0c5c96; }
.pub-who-firm { border-top-color: #0c1826; }
.pub-who-agency { border-top-color: #1c8a4b; }

.pub-index {
  margin: 0;
  font-weight: 800;
  color: #0c5c96;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.pub-who-card h3,
.pub-citizen h3 {
  margin: 0.2rem 0 0.55rem;
  font-size: 1.35rem;
}

.pub-who-card p:last-child,
.pub-citizen p:last-child { margin: 0; }

.pub-citizen {
  margin-top: 1rem;
  padding: 1.1rem 1.2rem;
  background: #e7eef6;
  border-radius: 14px;
}

.pub-inventory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
  counter-reset: pub-item;
}

.pub-inventory li {
  counter-increment: pub-item;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.85rem;
  padding: 0.95rem 0;
  border-top: 1px solid #d5dee8;
}

.pub-inventory li::before {
  content: counter(pub-item, decimal-leading-zero);
  font-weight: 800;
  color: #0c5c96;
  padding-top: 0.15rem;
}

.pub-inventory h3 {
  margin: 0;
  font-size: 1.05rem;
}

.pub-inventory p {
  margin: 0.15rem 0 0;
  grid-column: 2;
  color: #4c5a66;
}

.pub-close {
  background: #0c1826;
  color: #fff;
  padding: 3.25rem 0;
}

html.brand-v2 .pub-close h2 { color: #fff; max-width: 16ch; }

.pub-close p {
  max-width: 38rem;
  color: #d5dee8;
  margin: 0 0 1.25rem;
}

.pub-foot {
  background: #fff;
  border-top: 1px solid #d5dee8;
  padding: 1.25rem 0 1.75rem;
}

.pub-foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.pub-tag {
  margin: 0;
  font-weight: 800;
  color: #2d2e33;
}

.pub-foot nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-foot a { font-weight: 700; text-decoration: none; }

.pub-form-section { padding: 2.5rem 0 4rem; }

.pub-form-wrap { max-width: 38rem; }

.pub-form-wrap h1 { max-width: none; font-size: clamp(2.2rem, 4vw, 3.2rem); }

.pub-form {
  display: grid;
  gap: 0.95rem;
  margin-top: 0.5rem;
}

.pub-field { display: grid; gap: 0.35rem; }

.pub-field label { font-weight: 700; }

.pub-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c5d2e0;
  border-radius: 8px;
  background: #fff;
  color: #2d2e33;
  font: inherit;
  font-size: 1rem;
}

.pub-field input:focus {
  border-color: #0c5c96;
  outline: 3px solid #0c5c96;
  outline-offset: 1px;
}

.pub-error {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: #fdeceb;
  color: #7a1c1c;
  border-radius: 8px;
  font-weight: 700;
}

.pub-form-note { margin: 1rem 0 0; color: #4c5a66; }

.pub-saved {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.pub-saved div {
  display: grid;
  gap: 0.1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #d5dee8;
}

.pub-saved dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0c5c96;
}

.pub-saved dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .pub-hero { padding: 2rem 0 1.5rem; }
  .pub-hero-grid,
  .pub-facts-grid,
  .pub-who,
  .pub-inventory { grid-template-columns: 1fr; }
  .pub-mast-row { align-items: stretch; flex-wrap: wrap; }
  .pub-nav { width: 100%; }
  .pub-nav-in, .pub-nav .pub-btn { flex: 1; justify-content: center; }
  .pub h1 { max-width: none; }
  .pub-hero-actions .pub-btn { flex: 1; }
  .pub-band { padding: 2.4rem 0; }
  .pub-board-list li { grid-template-columns: 1fr; grid-template-areas: "kind" "title" "meta"; }
}

@media (prefers-reduced-motion: no-preference) {
  .pub-board { animation: pub-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
}

@keyframes pub-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
