:root {
  --bg: #fffdfa;
  --bg2: #f5f2ec;
  --panel: #ffffff;
  --panel2: #f5f2ec;
  --card: #ffffff;
  --border: #dcd8d0;
  --line: #dcd8d0;
  --accent: #00bfa5;
  --accent2: #008e7b;
  --text: #242826;
  --muted: #66706c;
  --soft: #dcf6f1;
  --shadow: 0 18px 48px color-mix(in srgb, var(--text) 8%, transparent);
  --buttonText: #06231e;
  --dark: #171b1a;
}

* {
  box-sizing: border-box;
}
html {
  width: 100%;
  overflow-x: hidden;
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 46%, var(--bg) 100%);
  color: var(--text);
  font-family: inherit;
  font-optical-sizing: auto;
  font-synthesis: none;
}
button,
input,
select,
textarea,
.main-button,
.ghost-button,
.pill-button,
.request-link,
.nav-actions a,
.nav-logout-button {
  font-family: inherit;
  font-optical-sizing: auto;
  font-synthesis: none;
}

a {
  color: inherit;
}
.page-shell,
.admin-shell {
  max-width: 1180px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100vw;
  max-width: 100vw;
  margin: 0 0 26px;
  margin-left: calc(50% - 50vw);
  padding: 0 24px;
  min-height: 74px;
  border-bottom: 1px solid rgba(36, 40, 38, 0.09);
  background: rgba(245, 242, 236, 0.97);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand span {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -0.05em;
}
.nav-actions a:not(.pill-button) {
  font-size: 14px;
  font-weight: 730;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
}
.nav-actions a:not(.pill-button):hover {
  background: #e9e7e1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: none;
}
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-actions a,
.pill-button,
.ghost-button,
.main-button,
.request-link {
  text-decoration: none;
  border-radius: 11px;
  padding: 0 19px;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 780;
  font-size: 15px;
}
.ghost-button,
.request-link {
  background: #fff;
  border: 1px solid #c8c3ba;
  color: var(--text);
}
.pill-button {
  background: var(--accent);
  color: var(--buttonText);
  border: 1px solid var(--accent);
}
.pill-button,
.main-button {
  background: var(--accent);
  color: var(--buttonText);
  border: 1px solid var(--accent);
}
.nav-actions button,
.nav-logout-button {
  width: auto;
  max-width: none;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  padding: 12px 16px;
  font-weight: 950;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.nav-logout-button {
  border: 1px solid #fecdca;
  background: #fee4e2;
  color: #b42318;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 26px;
  align-items: stretch;
}
.hero-panel {
  padding: 34px;
}
.preview-panel {
  padding: 32px;
  display: grid;
  place-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  font-weight: 850;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 11px;
}
.eyebrow span,
.footer-badge span {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: inline-block;
  border-radius: 11px;
  box-shadow: none;
}
.centered {
  justify-content: center;
}
h1 {
  font-size: clamp(48px, 5.8vw, 72px);
  line-height: 0.97;
  letter-spacing: -0.065em;
  font-weight: 790;
  margin: 22px 0 18px;
}
h2 {
  font-size: 26px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}
p {
  color: var(--muted);
  line-height: 1.65;
}
.lead {
  font-size: 18px;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.steps-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}
.steps-list div,
.admin-how div {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
}
.steps-list strong,
.admin-how strong {
  display: block;
  margin-bottom: 4px;
}
.steps-list span,
.admin-how span {
  color: var(--muted);
  font-size: 14px;
}
.mini-card {
  width: min(420px, 100%);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
  text-align: center;
}
.preview-logo,
.gate-logo {
  width: 58px;
  height: 58px;
  border-radius: 11px;
  display: block;
  margin: 0 auto 16px;
}
.fake-input {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 11px;
  color: var(--muted);
  margin-top: 10px;
}
.fake-button {
  background: var(--accent);
  color: var(--buttonText);
  font-weight: 900;
  padding: 14px;
  border-radius: 11px;
  margin-top: 12px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.info-panel {
  padding: 24px;
}
.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mini-actions a {
  text-decoration: none;
  border-radius: 11px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.public-footer {
  margin-top: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 18px;
  align-items: center;
}
.public-footer strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}
.public-footer span {
  color: var(--muted);
  line-height: 1.5;
}
.public-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.public-footer nav a {
  text-decoration: none;
  border-radius: 11px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
  background: #fff;
  border: 1px solid var(--line);
}
.demo-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 20px;
}
.demo-flow-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}
.demo-flow-card .centered {
  align-self: flex-start;
}
.compact-steps {
  margin-top: 16px;
}
.demo-engine-panel {
  margin-top: 18px;
  padding: 28px;
}
.demo-engine-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
  max-width: 920px;
}
.demo-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.compact-actions {
  margin-top: 16px;
}
.legal-shell {
  max-width: 980px;
}
.legal-panel {
  padding: clamp(24px, 5vw, 44px);
}
.legal-panel h1 {
  font-size: clamp(38px, 7vw, 64px);
}
.legal-panel h2 {
  margin-top: 24px;
}
.footer-badge {
  text-decoration: none;
  position: fixed;
  right: 20px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce4e0;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
}
.gate-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100vw;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  overflow-x: hidden;
}
.gate-panel {
  width: min(480px, 100%);
  max-width: calc(100vw - 32px);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: clamp(22px, 5vw, 34px);
  box-shadow: none;
}
.gate-panel h1 {
  font-size: clamp(30px, 10vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
  overflow-wrap: anywhere;
}
.loit-form {
  text-align: left;
  margin-top: 22px;
}
label {
  display: block;
  margin: 14px 0 7px;
  font-size: 13px;
  font-weight: 780;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 11px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  min-height: 49px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}
button {
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 0 18px;
  min-height: 49px;
  background: var(--accent);
  color: var(--buttonText);
  font-weight: 780;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  margin-top: 16px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  min-height: 49px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 780;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.google-button:hover {
  background: var(--bg2);
}
.google-button:disabled {
  opacity: 0.72;
  cursor: wait;
}
.google-button svg {
  flex: 0 0 auto;
}
.message {
  min-height: 24px;
  color: var(--accent2);
  font-weight: 800;
}
.gate-panel.login-busy button {
  opacity: 0.78;
  cursor: wait;
}
.gate-panel.gate-shake {
  animation: gateShake 0.28s ease;
}
@keyframes gateShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.help-text,
.muted {
  color: var(--muted);
}
.request-link {
  display: inline-block;
  margin-top: 8px;
}
.admin-intro,
.owner-key-panel,
.existing-panel,
.instructions-panel {
  padding: 26px;
  margin-bottom: 20px;
}
.admin-intro h1 {
  font-size: clamp(38px, 6vw, 62px);
}
.admin-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.admin-card {
  padding: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.result-box,
.share-box {
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  min-height: 46px;
  overflow: auto;
  font-size: 13px;
}
.gate-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.gate-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.gate-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}
.gate-link-access-row {
  margin: 12px 0;
  padding: 12px;
  border-radius: 11px;
  background: var(--bg2);
  border: 1px solid var(--line);
}
.gate-link-access-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.gate-link-access-select {
  flex: 1 1 220px;
  min-width: 220px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
}
.field-help.compact,
.muted.compact {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
}
.gate-meta-row {
  margin-bottom: 6px;
}
.badge-showcase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 211, 190, 0.12);
  border: 1px solid rgba(20, 211, 190, 0.25);
  color: var(--accent2);
  border-radius: 11px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.badge-showcase.muted {
  background: var(--bg2);
  border-color: var(--line);
  color: var(--muted);
}
.badge-plan {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  padding: 1px 7px;
  font-size: 11px;
  text-transform: uppercase;
}
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.search-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-select-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 15px;
  width: 100%;
}
.gate-actions a,
.small-button {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 11px;
  padding: 9px 12px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  margin: 0;
}
.creator-invite-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(1, 8, 6, 0.82);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.creator-invite-overlay.open {
  display: flex;
}
.creator-invite-modal {
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, rgba(8, 43, 36, 0.98), rgba(3, 20, 17, 0.98));
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.creator-invite-modal .eyebrow {
  margin-bottom: 12px;
}
.creator-invite-modal h2 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 34px);
  color: var(--text);
  letter-spacing: -0.04em;
}
.creator-invite-modal h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text);
}
.creator-invite-gate-name {
  margin: 0 0 18px;
  font-size: 15px;
  color: var(--accent2);
  font-weight: 800;
}
.creator-invite-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 8px 12px;
  border-radius: 11px;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.creator-invite-form {
  margin-top: 0;
  text-align: left;
}
.creator-invite-form label {
  display: block;
  margin: 14px 0 7px;
  font-size: 13px;
  font-weight: 900;
  color: #cffff8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.creator-invite-form label .optional {
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--muted);
}
.creator-invite-form .field-help {
  margin: 6px 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.creator-invite-form input {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  border-radius: 11px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  margin: 0;
}
.creator-invite-form input::placeholder {
  color: var(--muted);
}
.creator-invite-form input[type='datetime-local'] {
  color-scheme: dark;
}
.creator-invite-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.creator-invite-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.creator-invite-row input {
  flex: 1;
  min-width: 0;
  width: auto;
}
.creator-invite-lookup {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.creator-invite-submit {
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 11px;
  padding: 15px 18px;
  background: var(--accent);
  color: var(--buttonText);
  font-weight: 950;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.creator-invite-preview {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
  margin: 12px 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.creator-invite-result {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  color: var(--text);
}
.creator-invite-result.ok {
  color: var(--accent2);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--soft);
}
.creator-invite-result.err {
  color: #ffb4b4;
  border-color: rgba(255, 120, 120, 0.28);
  background: rgba(255, 72, 72, 0.08);
}
.creator-invite-list-wrap {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.creator-invite-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.creator-invite-item {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 14px;
}
.creator-invite-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.creator-invite-item-head strong {
  font-size: 16px;
  margin: 0;
  color: var(--text);
}
.creator-invite-plan {
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(20, 211, 190, 0.16);
  border: 1px solid rgba(20, 211, 190, 0.24);
  color: var(--accent2);
}
.creator-invite-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.creator-invite-revoke {
  width: auto;
  max-width: none;
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 11px;
  background: rgba(255, 72, 72, 0.14);
  border: 1px solid #fecdca;
  color: #b42318;
  cursor: pointer;
}
.creator-invite-pick {
  width: 100%;
  max-width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.creator-invite-pick:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--soft);
}
.notice {
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--accent2);
  font-weight: 800;
}
.ghost-wide {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--line);
}
.request-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}
.request-choice-row .ghost-wide {
  margin-top: 0;
}
.request-access-form {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 18px;
  padding-top: 8px;
}
.field-help {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.pricing-section {
  margin-top: 24px;
  padding: 28px;
}
.pricing-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.pricing-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 14px;
  max-width: 760px;
}
.pricing-head p {
  max-width: 760px;
  margin-bottom: 0;
}
.pricing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
}
.price-card.highlighted {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, #fff), #fff);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: none;
}
.price-card.highlighted-soft {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, #fff), #fff);
}
.plan-label {
  width: fit-content;
  border-radius: 11px;
  padding: 7px 10px;
  background: rgba(20, 211, 190, 0.13);
  color: var(--accent2);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-card h3 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.05em;
}
.price-card h3 span {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
}
.price-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 7px;
  font-size: 13px;
  line-height: 1.4;
}
.price-card a {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  border-radius: 11px;
  padding: 11px 12px;
  font-weight: 950;
  font-size: 13px;
  color: var(--buttonText);
  background: var(--accent);
}
.pricing-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 11px;
  background: rgba(20, 211, 190, 0.1);
  border: 1px solid rgba(20, 211, 190, 0.16);
  color: var(--accent2);
  font-size: 14px;
  line-height: 1.55;
}
.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.addon-grid div {
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}
.addon-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}
.addon-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.demo-strip {
  margin-top: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.demo-strip h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-top: 14px;
}
.demo-strip p {
  margin-bottom: 0;
  max-width: 760px;
}
.demo-panel {
  padding: clamp(24px, 5vw, 42px);
}
.demo-panel h1 {
  font-size: clamp(38px, 7vw, 68px);
  max-width: 860px;
}
.demo-form {
  max-width: 560px;
}
.demo-result {
  margin-top: 18px;
}
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.demo-notes {
  margin-top: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.demo-notes div {
  border-radius: 11px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.demo-notes strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}
.demo-notes span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.mobile-action-footer {
  display: none;
  margin-top: 24px;
  padding: 24px;
  text-align: center;
}
.mobile-action-footer h2 {
  font-size: clamp(28px, 7vw, 40px);
  margin: 14px 0 8px;
}
.mobile-action-footer p {
  margin: 0 auto 16px;
  max-width: 620px;
}
.mobile-footer-actions {
  display: grid;
  gap: 10px;
}
.mobile-footer-actions a {
  width: 100%;
  text-align: center;
  justify-content: center;
}
@media (max-width: 640px) {
  .page-shell,
  .admin-shell {
    padding: 16px 12px 24px;
    text-align: center;
  }
  .topbar {
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
  }
  .brand {
    justify-content: center;
    width: 100%;
    font-size: 18px;
  }
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .page-shell > .topbar .nav-actions {
    display: none;
  }
  .admin-shell > .topbar .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .admin-shell > .topbar .nav-actions a,
  .admin-shell > .topbar .nav-actions button,
  .admin-shell > .topbar .nav-actions .pill-button {
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }
  .mobile-action-footer {
    display: block;
  }
  .hero-panel,
  .preview-panel,
  .info-panel,
  .pricing-section,
  .demo-strip,
  .demo-panel,
  .demo-notes,
  .mobile-action-footer {
    padding: 20px 16px;
    border-radius: 13px;
  }
  .preview-panel {
    display: none;
  }
  .hero-panel h1 {
    font-size: clamp(38px, 12vw, 54px);
    text-align: center;
  }
  .lead,
  .hero-panel p,
  .info-panel p,
  .pricing-head p,
  .demo-strip p,
  .demo-panel p {
    text-align: center;
  }
  .hero-actions,
  .pricing-cta,
  .demo-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-actions a,
  .hero-actions .main-button,
  .hero-actions .ghost-button,
  .pricing-cta a,
  .demo-actions a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .demo-strip,
  .pricing-head {
    flex-direction: column;
    align-items: center;
  }
  .demo-notes {
    grid-template-columns: 1fr;
  }
  .footer-badge {
    position: static;
    margin: 20px auto 0;
    width: fit-content;
    max-width: calc(100vw - 24px);
  }
  .gate-page {
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }
  .gate-panel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 22px;
    padding: 22px 16px;
  }
  .gate-page .footer-badge {
    position: static;
    width: fit-content;
    max-width: calc(100vw - 24px);
    margin: 0 auto;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .gate-logo {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    margin-bottom: 12px;
  }
  .gate-panel .eyebrow {
    font-size: 10px;
    padding: 6px 9px;
  }
  .gate-panel h1 {
    margin: 16px 0 12px;
  }
  .gate-panel p {
    font-size: 14px;
    line-height: 1.55;
  }
  .loit-form {
    margin-top: 16px;
  }
  label {
    margin: 12px 0 6px;
    font-size: 11px;
  }
  .message {
    font-size: 14px;
    line-height: 1.45;
  }
  .request-link {
    width: 100%;
    text-align: center;
  }
  .help-text {
    margin-top: 16px;
  }
  .creator-invite-overlay {
    padding: 12px;
  }
  .creator-invite-modal {
    padding: 22px 18px 18px;
    border-radius: 13px;
  }
  .creator-invite-row {
    flex-direction: column;
  }
  .creator-invite-lookup {
    width: 100%;
    min-height: 46px;
  }
}

.role-router-panel {
  margin-top: 24px;
  padding: 28px;
}
.role-router-panel h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-top: 16px;
}
.role-router-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 250px;
  padding: 22px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid var(--line);
}
.role-card.highlighted {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, #fff), #fff);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}
.role-card strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.role-card span {
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.role-card a {
  text-align: center;
  justify-content: center;
}
.dashboard-hero-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.danger-button {
  border: 1px solid #fecdca;
  background: #fee4e2;
  color: #b42318;
  border-radius: 11px;
  padding: 12px 16px;
  font-weight: 950;
  cursor: pointer;
}
.dashboard-logout {
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

@media (max-width: 1050px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .role-router-grid {
    grid-template-columns: 1fr;
  }
  .pricing-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pricing-cta {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .demo-hero-grid,
  .demo-card-grid,
  .public-footer {
    grid-template-columns: 1fr;
  }
  .public-footer nav {
    justify-content: flex-start;
  }

  .hero-grid,
  .info-grid,
  .admin-grid,
  .admin-how,
  .two-col,
  .pricing-grid,
  .addon-grid,
  .demo-notes,
  .role-router-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-hero-row {
    flex-direction: column;
  }
  .page-shell,
  .admin-shell {
    padding: 20px;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .nav-actions {
    width: 100%;
  }
  .nav-actions a {
    width: auto;
  }
  .footer-badge {
    position: static;
    margin: 24px auto 0;
    width: fit-content;
    max-width: 100%;
  }
}

/* ── LOIT dark mega footer ── */
/* ── LOIT Snap Apps Footer (Knowledge / Site dark pattern) ─────────── */
footer:not(.loit-snap-footer) {
  display: none;
}
.loit-snap-footer {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 40px 0 0;
  margin-left: calc(50% - 50vw);
  padding: 0;
  background: #171b1a;
  color: #dce4e0;
  text-align: left;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  left: auto;
  right: auto;
  bottom: auto;
  display: block;
  backdrop-filter: none;
}
.loit-snap-footer--launcher .loit-snap-footer-shell {
  padding-bottom: calc(28px + 88px + env(safe-area-inset-bottom, 0px));
}
.loit-snap-footer-shell {
  display: block;
  width: 100%;
  padding: 72px 24px 28px;
  border-top: 1px solid #303734;
}
.loit-snap-footer-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
}
.loit-snap-footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}
.loit-snap-footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #69e5d3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.loit-snap-footer-eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #00bfa5;
  box-shadow: 0 0 0 5px rgba(0, 191, 165, 0.09);
}
.loit-snap-footer-cta h2 {
  max-width: 760px;
  margin: 17px 0 12px;
  color: #fff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 790;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.loit-snap-footer-cta-copy p {
  max-width: 700px;
  margin: 0;
  color: #a5afaa;
  font-size: 16px;
  line-height: 1.65;
}
.loit-snap-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.loit-snap-footer-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  color: #fff;
  text-decoration: none;
  font-weight: 780;
  font-size: 14px;
}
.loit-snap-footer-btn:hover {
  border-color: rgba(105, 229, 211, 0.52);
  color: #69e5d3;
}
.loit-snap-footer-btn.is-primary {
  background: #00bfa5;
  border-color: #00bfa5;
  color: #06231e;
}
.loit-snap-footer-btn.is-primary:hover {
  background: #21d6ba;
  color: #06231e;
}
.loit-snap-footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.3fr) repeat(3, minmax(130px, 1fr));
  gap: 38px;
  padding: 46px 0;
}
.loit-snap-footer-brand {
  max-width: 270px;
}
.loit-snap-footer-brand img {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 14px;
  object-fit: contain;
  border: 0;
}
.loit-snap-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 14px;
}
.loit-snap-footer-brand p {
  margin: 9px 0 0;
  color: #919c96;
  font-size: 13px;
  line-height: 1.6;
}
.loit-snap-footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.loit-snap-footer-grid nav h3 {
  margin: 2px 0 8px;
  color: #7e8983;
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.loit-snap-footer-grid nav a {
  color: #d3dbd7;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.45;
}
.loit-snap-footer-grid nav a:hover,
.loit-snap-footer-bottom a:hover {
  color: #69e5d3;
}
.loit-snap-footer-grid nav a.is-current {
  color: #69e5d3;
}
.loit-snap-footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f8a84;
  font-size: 12px;
}
.loit-snap-footer-bottom div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.loit-snap-footer-bottom a {
  color: #9ba6a0;
  text-decoration: none;
}
@media (max-width: 980px) {
  .loit-snap-footer-cta {
    grid-template-columns: 1fr;
  }
  .loit-snap-footer-actions {
    justify-content: flex-start;
  }
  .loit-snap-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .loit-snap-footer-brand {
    grid-column: 1/-1;
    max-width: 520px;
  }
  .loit-snap-footer-bottom {
    grid-template-columns: 1fr auto;
  }
  .loit-snap-footer-bottom > a {
    grid-column: 1/-1;
  }
}
@media (max-width: 620px) {
  .loit-snap-footer-shell {
    padding: 58px 16px 26px;
  }
  .loit-snap-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .loit-snap-footer-brand {
    grid-column: auto;
  }
  .loit-snap-footer-actions,
  .loit-snap-footer-btn {
    width: 100%;
  }
  .loit-snap-footer-bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media print {
  .loit-snap-footer {
    display: none !important;
  }
}

/* ── Marketing page spacing / UX polish (Knowledge typography + layout) ─ */

/* ── Light theme polish (AccessGate LOIT) ── */
.hero-panel,
.preview-panel,
.info-panel,
.role-router-panel,
.demo-strip,
.pricing-section,
.demo-engine-panel,
.demo-panel {
  background: var(--card);
}
.mini-card,
.login-preview {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: none;
}
.fake-input {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 11px;
}
.fake-button {
  background: var(--accent);
  color: var(--buttonText);
  border-radius: 11px;
  font-weight: 780;
}
.steps-list div,
.admin-how div {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.hero-panel h1 {
  font-size: clamp(48px, 5.8vw, 72px);
  line-height: 0.97;
  font-weight: 790;
}
.public-footer {
  display: none !important;
}
.footer-badge {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dce4e0;
  border-radius: 11px;
}
.message {
  color: var(--accent2);
}
.plan-label {
  color: var(--accent2);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.pricing-note,
.addon-grid span {
  color: var(--muted);
}
.addon-grid div {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
