/* Public marketing + account + login — black atmosphere, green accents only, no pills */

.pubBody {
  min-height: 100vh;
  margin: 0;
  color: #f2f2f2;
  font-family: var(--font-body, "Outfit", sans-serif);
  /* Flat site black — no tall-page gradient banding while scrolling */
  background: #050505;
  overflow-x: clip;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pubLinks a,
  .pubLinks a::after,
  .pubNavUserBtn,
  .pubNavUserIcon,
  .pubNavUserMenu,
  .pubNavUserMenu a,
  .pubNavUserMenu button {
    transition: none !important;
  }

  .pubLinks a:hover,
  .pubNavUserMenu a:hover,
  .pubNavUserMenu a:focus-visible,
  .pubNavUserMenu button:hover,
  .pubNavUserMenu button:focus-visible,
  .pubNavUser.is-open .pubNavUserMenu,
  .pubNavUserMenu {
    transform: none !important;
  }

  .pubNavUserMenu {
    opacity: 1;
  }

  .pubNavUser.is-open .pubNavUserMenu {
    opacity: 1;
  }
}

/* Fixed public header clearance (login/signup have no nav) */
body.pubBody:has(.pubNav) {
  padding-top: 70px;
}

body.pubBody.pubNav-open {
  overflow: hidden;
}

.pubSnow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}

.pubAura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(255, 255, 255, 0.02), transparent 60%);
}

.pubHero,
.pubSection,
.pubPurchase,
.pubAccount,
.pubLegal,
.pubFooter,
.loginShell {
  position: relative;
  z-index: 1;
}

.pubNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  width: 100%;
  margin: 0;
  padding: 14px max(16px, calc((100% - 1100px) / 2));
  /* 3-column: spacer | centered links | auth — true viewport center */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #080808;
}

.pubNavBrand {
  display: none;
  font-family: var(--font-display, "Syne", sans-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.pubNavToggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.pubNavToggleBar {
  display: block;
  width: 18px;
  height: 2px;
  background: #f2f2f2;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.pubNav.is-open .pubNavToggleBar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pubNav.is-open .pubNavToggleBar:nth-child(2) {
  opacity: 0;
}
.pubNav.is-open .pubNavToggleBar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.pubNavDrawer {
  display: contents;
}

.pubBrand {
  display: none !important;
}

.pubBrand img { display: none !important; }

/* Kill any gradient / mask text fades — solid opaque type only */
h1, h2, h3, h4, h5, h6,
p, label, span, li, a,
.pubLead,
.pubSectionLead,
.pubBrandHero,
.pubFieldLabel,
.loginLead,
.moduleName,
.sectionTitle,
.settingLabel {
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: unset !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
  text-shadow: none;
}

.pubHero h1,
.pubPurchaseHead h1,
.pubAccount > .pubPurchaseHead h1,
.loginPanel h1,
.pubSection h2,
.pubCheckoutBlock h2,
.acctBlock h2 {
  color: #f2f2f2 !important;
  opacity: 1 !important;
  background: none !important;
  background-image: none !important;
}

.pubLead,
.pubSectionLead,
.loginLead {
  color: #b4b8be !important;
  opacity: 1 !important;
  background: none !important;
  background-image: none !important;
}

.pubLinks {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.pubLinks a {
  position: relative;
  color: rgba(242, 242, 242, 0.62);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  transition: color 0.18s ease;
}

.pubLinks a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 10px;
  height: 1px;
  background: #3ecf8e;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
  pointer-events: none;
}

.pubLinks a:hover,
.pubLinks a:focus-visible {
  color: #3ecf8e;
  outline: none;
}

.pubLinks a:hover::after,
.pubLinks a:focus-visible::after {
  transform: scaleX(1);
}

.pubNavActions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.pubNavUser {
  position: relative;
}

.pubNavUserBtn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  color: #f2f2f2;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  white-space: nowrap;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.pubNavUserBtn:focus-visible {
  outline: 1px solid rgba(62, 207, 142, 0.7);
  outline-offset: 2px;
}

.pubNavUserIcon {
  flex-shrink: 0;
  display: block;
  color: rgba(242, 242, 242, 0.78);
  transition: color 0.16s ease;
}

.pubNavUserBtn:hover .pubNavUserIcon,
.pubNavUser.is-open .pubNavUserBtn .pubNavUserIcon {
  color: #fff;
}

.pubNavUserName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pubNavUserBtn:hover,
.pubNavUser.is-open .pubNavUserBtn {
  border-color: rgba(62, 207, 142, 0.45);
  color: #fff;
  background: rgba(62, 207, 142, 0.08);
}

.pubNavUserMenu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 176px;
  margin: 0;
  padding: 6px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #0c0c0c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.pubNavUser.is-open .pubNavUserMenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pubNavUserMenu[hidden] {
  display: none !important;
}

.pubNavUserMenu a,
.pubNavUserMenu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(242, 242, 242, 0.88);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.pubNavUserMenu a:hover,
.pubNavUserMenu a:focus-visible,
.pubNavUserMenu button:hover,
.pubNavUserMenu button:focus-visible {
  background: transparent;
  color: #3ecf8e;
  outline: none;
}

.pubBtn,
.pubBtnGhost,
button.pubBtn,
a.pubBtn,
a.pubBtnGhost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 0;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, filter 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
}

.pubBtn {
  color: #04140c;
  background: linear-gradient(180deg, #4ee09a, #3ecf8e);
  box-shadow: 0 8px 22px rgba(62, 207, 142, 0.16);
}

.pubBtn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.pubBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.pubBtnGhost {
  color: #f2f2f2;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

.pubBtnGhost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.pubHero {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 72px;
}

.pubBrandHero {
  margin: 0 0 18px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-stretch: normal;
  font-variation-settings: normal;
  transform: none;
  color: #fff;
  overflow: visible;
  padding-top: 0.04em;
  padding-bottom: 0.08em;
}

.pubBrandHeroSm {
  font-size: clamp(28px, 5vw, 42px);
  margin-bottom: 12px;
}

.pubHero h1,
.pubPurchaseHead h1,
.pubAccount > .pubPurchaseHead h1,
.loginPanel h1,
.acctSubhead,
.pubSection h2,
.pubCheckoutBlock h2,
.acctBlock h2 {
  line-height: 1.2;
  overflow: visible;
}

.pubHero h1,
.pubPurchaseHead h1,
.pubAccount > .pubPurchaseHead h1 {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f2f2;
  padding-bottom: 0.04em;
  line-height: 1.25;
  overflow: visible;
  background: none;
  opacity: 1;
}

.pubLead,
.pubSectionLead {
  max-width: 560px;
  margin: 18px 0 28px;
  color: #b4b8be;
  font-size: 17px;
  line-height: 1.6;
  opacity: 1;
  background: none;
}

.pubCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Scroll pop-in (Intersection Observer toggles .is-in) */
.pubReveal {
  opacity: 0;
  transform: translateY(26px) scale(0.975);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.pubReveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pubReveal[data-d="1"] { transition-delay: 0.05s; }
.pubReveal[data-d="2"] { transition-delay: 0.1s; }
.pubReveal[data-d="3"] { transition-delay: 0.15s; }
.pubReveal[data-d="4"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .pubReveal,
  .pubReveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.pubSection,
.pubPurchase,
.pubAccount {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pubSection h2,
.pubCheckoutBlock h2,
.acctBlock h2 {
  margin: 0 0 10px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
  padding-bottom: 0.04em;
}

.pubModules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 8px 0 36px;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pubModCatTitle {
  margin: 18px 0 10px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(62, 207, 142, 0.78);
}

.pubModList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.pubModList li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(230, 232, 236, 0.88);
  font-size: 14px;
  font-weight: 500;
}

.pubModList li:last-child {
  border-bottom: none;
}

.pubToggle {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 20px;
  cursor: pointer;
}

.pubToggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.pubToggle span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pubToggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(210, 214, 218, 0.75);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pubToggle input:checked + span {
  background: rgba(62, 207, 142, 0.22);
  border-color: rgba(62, 207, 142, 0.45);
}

.pubToggle input:checked + span::after {
  transform: translateX(16px);
  background: #3ecf8e;
}

.pubToggle input:focus-visible + span {
  outline: 2px solid rgba(62, 207, 142, 0.45);
  outline-offset: 2px;
}

.pubFeatureRow,
.pubPlanRow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.pubPlanRow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pubFeatureRow article,
.pubFeatureCard,
.pubPlan,
.acctBlock,
.pubCheckoutBlock {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 22px;
}

.pubFeatureCard {
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.pubFeatureCard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(62, 207, 142, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pubFeatureCard.pubReveal {
  opacity: 0;
  transform: translateY(34px) scale(0.94);
}

.pubFeatureCard.pubReveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pubFeaturePop 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pubFeatureCard:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(62, 207, 142, 0.38);
  background: rgba(255, 255, 255, 0.045);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(62, 207, 142, 0.12),
    0 0 28px rgba(62, 207, 142, 0.08);
}

.pubFeatureCard:hover::before {
  opacity: 1;
}

.pubFeatureCard:hover h3 {
  color: #d8ffe9;
}

@keyframes pubFeaturePop {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.94);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pubFeatureCard,
  .pubFeatureCard.pubReveal,
  .pubFeatureCard.pubReveal.is-in,
  .pubFeatureCard:hover {
    animation: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    transform: none;
    box-shadow: none;
  }
  .pubFeatureCard::before { display: none; }
}

.pubPlan.is-featured {
  border-color: rgba(62, 207, 142, 0.35);
}

.pubFeatureRow h3,
.pubPlan h2 {
  margin: 0 0 10px;
  font-size: 18px;
  transition: color 0.28s ease;
}

.pubFeatureRow p,
.pubPlan p {
  margin: 0 0 18px;
  color: rgba(180, 184, 190, 0.82);
  line-height: 1.55;
}

.pubPrice {
  font-family: var(--font-body, "Outfit", sans-serif);
  font-size: 40px;
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-variation-settings: normal;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
  line-height: 1.15;
  transform: none;
  color: #fff;
  margin: 0 0 10px !important;
}

.pubForm,
.acctGrid {
  display: grid;
  gap: 14px;
  max-width: 480px;
}

.pubCheckoutBlock .pubForm.pubCheckoutForm,
.pubCheckoutForm {
  max-width: none;
  width: 100%;
  display: block;
}

.pubCheckoutLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.pubCheckoutLayout .pubForm {
  max-width: none;
}

.pubCheckoutDetails {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.pubOrderSummary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 12, 14, 0.72);
  border-radius: 0;
  padding: 20px 18px;
  position: sticky;
  top: 88px;
}

.pubOrderSummary h3 {
  margin: 0 0 16px;
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(220, 224, 228, 0.92);
}

.pubOrderRows {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.pubOrderRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 14px;
  font-style: normal;
  color: rgba(180, 184, 190, 0.9);
}

.pubOrderRow[hidden] {
  display: none !important;
}

.pubOrderRow strong {
  color: #f2f2f2;
  font-family: inherit;
  font-weight: 600;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0;
  text-align: right;
  font-stretch: normal;
}

.pubOrderRow.is-discount strong {
  color: rgba(180, 184, 190, 0.9);
}

.pubOrderRow.is-discount.has-discount strong {
  color: #3ecf8e;
}

.pubOrderRow.is-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(220, 224, 228, 0.95);
}

.pubOrderRow.is-total strong {
  font-family: var(--font-sans, "Outfit", sans-serif);
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  color: #fff;
}

.pubPromoBlock {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.pubPromoBlock label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 172, 178, 0.88);
}

.pubPromoRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.pubPromoRow input {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #f2f2f2;
  padding: 11px 12px;
  font: inherit;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pubPromoRow input:focus {
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}

.pubPromoRow .pubBtnGhost {
  border-radius: 0;
  white-space: nowrap;
  padding: 10px 14px;
}

.pubPromoMsg {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(168, 172, 178, 0.88);
  min-height: 1.2em;
}

.pubPromoMsg.is-ok {
  color: #3ecf8e;
}

.pubPromoMsg.is-error {
  color: #f0a8a8;
}

@media (max-width: 900px) {
  .pubCheckoutLayout {
    grid-template-columns: 1fr;
  }
  .pubCheckoutDetails {
    order: 1;
  }
  .pubOrderSummary {
    position: static;
    order: 2;
  }
}

.pubForm label,
.acctGrid label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 172, 178, 0.88);
  line-height: 1.4;
  overflow: visible;
  padding-top: 1px;
}

.pubFieldLabel {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 172, 178, 0.88);
  line-height: 1.4;
  overflow: visible;
  padding-top: 1px;
}

.pubForm input,
.acctGrid input,
.acctInline input {
  width: 100%;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #f2f2f2;
  padding: 12px 14px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  outline: none;
  line-height: 1.35;
}

.pubForm input:focus,
.acctGrid input:focus,
.acctInline input:focus {
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}

.pubField {
  display: grid;
  gap: 7px;
}

/* Custom payment dropdown — closed by default; only .is-open shows the menu */
.pubSelect {
  position: relative;
  width: 100%;
  z-index: 2;
}

.pubSelect.is-open {
  z-index: 50;
}

.pubSelectBtn {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: #f2f2f2;
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.pubSelectBtn:hover,
.pubSelect.is-open .pubSelectBtn,
.pubSelectBtn:focus {
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.16);
}

.pubSelectValue {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pubSelectCaret {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease;
}

.pubSelect.is-open .pubSelectCaret {
  transform: rotate(180deg);
}

/* Never use <ul>/<li> bullets — menu is a panel of buttons, hidden unless open */
.pubSelectMenu {
  display: none !important;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  margin: 0;
  padding: 6px;
  list-style: none !important;
  flex-direction: column;
  gap: 2px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121212;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.pubSelect.is-open .pubSelectMenu,
.pubSelectMenu.is-open {
  display: flex !important;
}

.pubSelectMenu[hidden],
.pubSelectMenu.is-closed {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.pubSelectOption {
  display: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  text-align: left;
  padding: 11px 12px;
  border-radius: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  border: 1px solid transparent;
  list-style: none !important;
}

.pubSelectOption::marker {
  content: none;
  display: none;
}

.pubSelectOption.is-enabled {
  display: block;
}

.pubSelectOption[hidden],
.pubSelectOption.is-disabled {
  display: none !important;
}

.pubSelectOption:hover,
.pubSelectOption.is-active {
  background: rgba(62, 207, 142, 0.12);
  border-color: rgba(62, 207, 142, 0.28);
  color: #fff;
}

.pubNote,
.acctStatus {
  color: rgba(180, 184, 190, 0.82);
  line-height: 1.55;
}

.pubNote.is-error {
  color: #f0a8a8;
}

.pubFooter {
  margin-top: 72px;
  padding: 0;
  border-top: none;
  background: #050505;
  color: rgba(168, 172, 178, 0.82);
  font-size: 13px;
}

.pubFooterInner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 36px;
  display: grid;
  gap: 28px;
}

.pubFooterTop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 22px 40px;
}

.pubFooterBrand {
  display: none;
}

.pubFooterNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: flex-end;
}

.pubFooter a {
  color: rgba(200, 204, 210, 0.78);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.pubFooter a:hover { color: #3ecf8e; }

.pubFooterCopy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(140, 144, 150, 0.85);
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  .pubFooterTop {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .pubFooterNav {
    justify-content: flex-start;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pubFooterNav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* Legal / long-form public pages */
.pubLegal {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.pubLegal h1 {
  margin: 0 0 12px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  color: #f2f2f2;
}

.pubLegal .pubLead {
  margin: 0 0 28px;
  color: #a8acb2;
  font-size: 15px;
  line-height: 1.55;
}

.pubLegalArticle {
  display: grid;
  gap: 22px;
}

.pubLegalArticle > section {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

.pubLegalArticle h2 {
  margin: 0 0 8px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 18px;
  letter-spacing: -0.02em;
  color: #f2f2f2;
}

.pubLegalArticle p,
.pubLegalArticle li {
  margin: 0;
  color: #b4b8be;
  font-size: 14px;
  line-height: 1.65;
}

.pubLegalArticle ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}

#home,
#features,
#purchase {
  scroll-margin-top: 84px;
}

.pubPurchase .pubPurchaseHead h2 {
  margin: 0;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f2f2f2;
}

.pubPlan h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* Login / signup — centered square panel over green snow */
.loginBody {
  padding-top: 0 !important;
  background: #050505 !important;
}

.loginBody .page { display: none; }

.loginBody .bg,
.loginBody .pubAura {
  display: none !important;
}

.loginBody .pubSnow {
  display: block !important;
  z-index: 0;
}

.loginShell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  box-sizing: border-box;
}

.loginPanel {
  position: relative;
  width: min(440px, 100%);
  max-width: 440px;
  min-height: 0;
  margin: 0 auto;
  padding: 56px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.loginBack {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(242, 242, 242, 0.72);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.loginBack:hover { color: #fff; }

.loginPanel h1 {
  margin: 0 0 28px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(28px, 5vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.15;
  overflow: visible;
  padding-bottom: 0.06em;
  color: #f2f2f2;
}

.loginPanel form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.loginStep {
  display: grid;
  gap: 16px;
}

.loginStep[hidden],
.loginStep.is-hidden {
  display: none !important;
}

.loginLead {
  margin: -12px 0 22px;
  color: #b4b8be;
  font-size: 15px;
  line-height: 1.5;
  overflow: visible;
}

.loginPanel label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8acb2;
  line-height: 1.45;
  overflow: visible;
  padding-top: 1px;
}

.loginPanel input[type="text"],
.loginPanel input[type="password"],
.loginPanel input[type="email"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f2f2;
  padding: 12px 14px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  outline: none;
  line-height: 1.4;
  overflow: visible;
}

.loginPanel input[type="text"]::placeholder,
.loginPanel input[type="password"]::placeholder,
.loginPanel input[type="email"]::placeholder {
  color: rgba(168, 172, 178, 0.92);
  opacity: 1;
  font-weight: 500;
}

.loginPanel input[type="text"]:hover,
.loginPanel input[type="password"]:hover,
.loginPanel input[type="email"]:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.loginPanel input[type="text"]:focus,
.loginPanel input[type="password"]:focus,
.loginPanel input[type="email"]:focus {
  border-color: rgba(62, 207, 142, 0.65);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.18);
}

.loginForgot {
  margin: 4px 0 0;
  font-size: 13px;
  color: #a8acb2;
  text-align: right;
}

.loginForgot a {
  color: #c8ccd2;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 550;
}

.loginForgot a:hover { color: #fff; }

.loginOk {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(62, 207, 142, 0.35);
  border-radius: 0;
  background: rgba(62, 207, 142, 0.08);
  color: #c8f5dc;
  font-size: 14px;
  line-height: 1.45;
}

.loginOk a {
  color: #3ecf8e;
  font-weight: 600;
  word-break: break-all;
}

.loginRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.loginRow .loginForgot {
  margin: 0;
}

.loginRemember {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  color: #a8acb2;
}

.loginRemember input {
  width: 15px;
  height: 15px;
  accent-color: #3ecf8e;
}

.loginActions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 8px;
}

.loginSubmit.pubBtn,
button.loginSubmit {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: 0;
  color: #3ecf8e;
  background: transparent;
  border: 1px solid rgba(62, 207, 142, 0.42);
  box-shadow: none;
  font-weight: 600;
}

.loginSubmit.pubBtn:hover,
button.loginSubmit:hover {
  filter: none;
  transform: none;
  background: rgba(62, 207, 142, 0.08);
  border-color: rgba(62, 207, 142, 0.7);
}

.loginSubmit.pubBtn:disabled,
button.loginSubmit:disabled {
  opacity: 0.5;
  transform: none;
}

.loginSignup {
  margin: 0;
  max-width: none;
  font-size: 14px;
  color: #a8acb2;
  line-height: 1.45;
}

.loginSignup a {
  color: #f2f2f2;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.loginSignup a:hover { color: #fff; }

.loginHint {
  margin: 0;
  text-align: left;
  font-size: 13px;
}

@media (max-width: 640px) {
  .loginShell {
    padding: 16px 12px;
    align-items: center;
    width: 100%;
  }
  .loginPanel {
    width: 100%;
    max-width: min(440px, 100%);
    padding: 48px 16px 20px;
    overflow-wrap: anywhere;
  }
  .loginBack { left: 10px; top: 10px; }
  .loginActions {
    flex-direction: column;
    align-items: stretch;
  }
  .loginSubmit.pubBtn,
  button.loginSubmit { width: 100%; min-height: 48px; }
  .loginPanel input,
  .loginPanel label {
    max-width: 100%;
  }
}

/* Account */
.acctBlock { margin-bottom: 16px; }
.acctBlock .pubBtn,
.acctBlock .pubBtnGhost { margin-top: 12px; }

.acctProfileLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.acctProfileCol,
.acctPasswordCol {
  min-width: 0;
}

.acctProfileLayout .acctGrid {
  max-width: none;
}

.acctPasswordCol .acctGrid .pubBtn {
  grid-column: 1 / -1;
  justify-self: start;
}

.acctSubhead {
  margin: 0 0 12px;
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.acctCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.acctInline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  max-width: none;
}

.acctInline label { margin: 0; }

.acctSecret {
  display: block;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-family: Consolas, ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: #6ee7a8;
  word-break: break-all;
}

.pubFlash {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid rgba(62, 207, 142, 0.3);
  background: rgba(62, 207, 142, 0.08);
  color: #c8f5dc;
}

.pubFlash.is-error {
  border-color: rgba(224, 108, 117, 0.35);
  background: rgba(224, 108, 117, 0.1);
  color: #f0b4b8;
}

.acctFormMsg {
  margin-top: 10px;
}

.acctFormMsg.is-error {
  color: #f0b4b8;
}

/* —— Responsive breakpoints ——
   1000px: modules 2-col
   900px: checkout stacks
   860px: hamburger nav; plans/features 1-col
   640px: footer / login tighten; modules 1-col
   480px: hero / type / touch spacing
*/
@media (max-width: 1000px) {
  .pubModules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
  }
  .pubFeatureRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .pubCheckoutLayout {
    grid-template-columns: 1fr;
  }
  .pubOrderSummary {
    position: static;
    order: 2;
  }
  .pubCheckoutDetails {
    order: 1;
  }
  .pubPromoRow {
    grid-template-columns: 1fr;
  }
  .pubPromoRow .pubBtnGhost {
    width: 100%;
  }
  .pubSection,
  .pubPurchase,
  .pubAccount,
  .pubLegal {
    width: min(1100px, calc(100% - 28px));
  }
}

@media (max-width: 860px) {
  .acctProfileLayout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.pubBody:has(.pubNav) {
    padding-top: 64px;
  }

  .pubNav {
    padding: 10px 14px;
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    grid-template-columns: none;
  }

  .pubNavBrand {
    display: inline-flex;
    align-items: center;
    order: 1;
  }

  .pubNavToggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .pubNavDrawer {
    display: none;
    order: 3;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pubNav.is-open .pubNavDrawer {
    display: flex;
  }

  .pubLinks {
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    justify-content: flex-start;
  }

  .pubLinks a {
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid transparent;
    color: rgba(242, 242, 242, 0.88);
  }

  .pubLinks a::after {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .pubLinks a:active,
  .pubLinks a:hover,
  .pubLinks a:focus-visible {
    background: transparent;
    color: #3ecf8e;
  }

  .pubNavActions {
    grid-column: auto;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 4px 0 2px;
  }

  .pubNavActions .pubBtn,
  .pubNavActions .pubBtnGhost,
  .pubNavActions .pubNavUserBtn,
  .pubNavActions button {
    width: 100%;
    min-height: 48px;
    max-width: none;
  }

  .pubNavUser {
    width: 100%;
  }

  .pubNavUserMenu {
    position: static;
    margin-top: 8px;
    min-width: 0;
    width: 100%;
    box-shadow: none;
  }

  /* Hide desktop-only action row duplicate when drawer closed — actions live in drawer */
  .pubNav > .pubNavActions {
    display: none;
  }

  .pubFeatureRow,
  .pubPlanRow {
    grid-template-columns: 1fr;
  }

  .pubCtas {
    flex-direction: column;
    align-items: stretch;
  }

  .pubCtas .pubBtn,
  .pubCtas .pubBtnGhost {
    width: 100%;
  }

  .acctInline {
    grid-template-columns: 1fr;
  }

  .acctInline .pubBtn {
    width: 100%;
  }

  .acctCtas {
    flex-direction: column;
  }

  .acctCtas .pubBtn,
  .acctCtas .pubBtnGhost {
    width: 100%;
  }

  .pubHero h1 {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .pubPrice {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
  .pubModules {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pubFeatureRow {
    grid-template-columns: 1fr;
  }

  .pubForm,
  .acctGrid {
    max-width: none;
  }

  .pubCheckoutBlock,
  .pubFeatureRow article,
  .pubFeatureCard,
  .pubPlan,
  .acctBlock {
    padding: 18px 16px;
  }

  .pubLegal {
    width: calc(100% - 24px);
    padding: 28px 0 16px;
  }

  .pubLegalArticle table,
  .pubAccount table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pubSelectBtn,
  .pubForm input,
  .acctGrid input,
  .acctInline input {
    min-height: 48px;
    font-size: 16px; /* avoid iOS zoom */
  }

  .pubOrderSummary {
    padding: 18px 16px;
  }
}

@media (max-width: 480px) {
  .pubHero {
    min-height: auto;
    padding: 28px 0 48px;
    width: calc(100% - 24px);
  }

  .pubBrandHero {
    font-size: clamp(28px, 9vw, 36px);
  }

  .pubSection,
  .pubPurchase,
  .pubAccount {
    width: calc(100% - 24px);
    padding-top: 36px;
    padding-bottom: 48px;
  }

  .pubPurchaseHead h1,
  .pubAccount > .pubPurchaseHead h1 {
    font-size: clamp(26px, 8vw, 34px);
  }

  .pubModList li {
    min-height: 40px;
  }
}
