:root {
  color-scheme: light;
  --public-bg: #F8FAFC;
  --public-card: #ffffff;
  --public-ink: #0F172A;
  --public-muted: #64748B;
  --public-line: #E2E8F0;
  --public-navy: #0F172A;
  --public-blue: #2563EB;
  --public-blue-deep: #1D4ED8;
  --public-gold: #F59E0B;
  --public-gold-deep: #F59E0B;
  --public-danger: #DC2626;
  --public-success: #16A34A;
  --public-gradient: linear-gradient(135deg, #0F172A, #1E3A8A);
  --public-gold-gradient: #F59E0B;
  --public-blue-gradient: #2563EB;
  --public-card-shadow: 0 12px 40px -24px rgb(7 26 56 / 0.35);
  --public-gold-shadow: none;
  --public-blue-shadow: 0 14px 46px -18px rgb(37 99 235 / 0.62);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  background: var(--public-bg);
  color: var(--public-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
input {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.public-skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--public-ink);
  padding: 9px 13px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.18);
  transform: translateY(-160%);
}

.public-skip-link:focus {
  transform: translateY(0);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.public-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--public-gold-shadow);
}

.public-brand--light {
  color: #ffffff;
}

.public-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.public-button:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

.public-button:active {
  transform: scale(0.985);
}

.public-button:focus-visible,
.public-icon-link:focus-visible,
.auth-tab:focus-visible,
.password-toggle:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(37 99 235 / 0.34);
  outline-offset: 3px;
}

.public-button:disabled {
  cursor: wait;
  filter: grayscale(0.15);
  opacity: 0.68;
  transform: none;
}

.public-button--block {
  width: 100%;
}

.public-button--gold {
  background: var(--public-gold-gradient);
  color: #0F172A;
  box-shadow: var(--public-gold-shadow);
}

.public-button--blue {
  background: var(--public-blue-gradient);
  color: #ffffff;
  box-shadow: var(--public-blue-shadow);
}

.public-button--ghost-light {
  background: transparent;
  color: #ffffff;
}

.public-button--soft {
  border: 1px solid var(--public-line);
  background: #ffffff;
  color: var(--public-ink);
  box-shadow: var(--public-card-shadow);
}

.public-arrow {
  font-size: 18px;
  line-height: 1;
}

.wp-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  overflow: visible;
}

/* Landing page: intentionally mirrors the compact, phone-like original. */
.parity-landing-body {
  overflow: auto;
  background: #06142d;
}

.parity-landing-stage {
  display: grid;
  min-height: 100dvh;
  place-items: center;
}

.parity-phone {
  position: relative;
  display: flex;
  width: min(100%, 448px);
  min-height: 100dvh;
  overflow: clip;
  background: var(--public-gradient);
  isolation: isolate;
}

.parity-phone::before,
.parity-phone::after,
.auth-promo::before,
.auth-promo::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  filter: blur(1px);
}

.parity-phone::before,
.auth-promo::before {
  top: -90px;
  left: -115px;
  width: 330px;
  height: 330px;
  background: radial-gradient(circle, rgb(255 211 61 / 0.32), rgb(255 211 61 / 0) 68%);
}

.parity-phone::after,
.auth-promo::after {
  right: -155px;
  bottom: 4%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgb(82 158 247 / 0.48), rgb(82 158 247 / 0) 68%);
}

.parity-phone__content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.parity-phone__header {
  display: flex;
  justify-content: center;
}

.parity-phone__intro {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: clamp(28px, 7vh, 58px);
  text-align: center;
}

.public-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.92);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.public-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--public-gold);
  box-shadow: 0 0 0 4px rgb(255 211 61 / 0.16);
}

.parity-phone__title {
  margin-top: 18px;
  color: #ffffff;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(28px, 7.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.parity-phone__title span {
  color: var(--public-gold);
}

.parity-phone__summary {
  max-width: 335px;
  margin-top: 15px;
  color: rgb(255 255 255 / 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.parity-feature-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.parity-feature {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 26px;
  background: rgb(255 255 255 / 0.085);
  padding: 12px 16px;
  backdrop-filter: blur(16px);
}

.parity-feature__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--public-gold-gradient);
  color: var(--public-ink);
  font-size: 19px;
  font-weight: 800;
  box-shadow: var(--public-gold-shadow);
}

.parity-feature__icon--play::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid var(--public-ink);
  margin-left: 2px;
  content: "";
}

.parity-feature__copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.parity-feature__copy strong {
  color: #ffffff;
  font-family: Outfit, Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.parity-feature__copy span {
  color: rgb(255 255 255 / 0.7);
  font-size: 12px;
}

.parity-phone__actions {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}

.parity-phone__links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 5px;
  color: rgb(255 255 255 / 0.58);
  font-size: 10px;
}

.parity-phone__links a:hover {
  color: #ffffff;
}

/* Authentication */
.auth-parity-body {
  background: var(--public-bg);
}

.auth-layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-promo {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: var(--public-gradient);
  color: #ffffff;
  isolation: isolate;
}

.auth-promo__content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 352px);
}

.auth-promo__title {
  margin-top: 52px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.auth-promo__copy {
  margin-top: 18px;
  color: rgb(255 255 255 / 0.8);
  font-size: 16px;
  line-height: 1.6;
}

.auth-promo .public-pill {
  margin-top: 26px;
}

.auth-panel {
  display: grid;
  min-height: 100dvh;
  place-items: safe center;
  overflow-y: auto;
  padding: 48px;
}

.auth-card {
  width: 100%;
}

.auth-stack {
  width: min(100%, 382px);
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 36px;
}

.auth-heading {
  margin-bottom: 24px;
}

.auth-kicker,
.page-kicker {
  margin-bottom: 8px;
  color: var(--public-blue-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-heading h2 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-heading p:last-child {
  margin-top: 6px;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  border: 1px solid var(--public-line);
  border-radius: 16px;
  background: #eef2f8;
  padding: 4px;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--public-muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--public-ink);
  box-shadow: 0 4px 14px rgb(7 26 56 / 0.09);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form[hidden] {
  display: none;
}

.auth-verification__copy {
  display: grid;
  gap: 8px;
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.auth-verification__email {
  color: var(--public-ink);
  overflow-wrap: anywhere;
}

.auth-verification__actions {
  display: grid;
  gap: 10px;
}

.auth-verification__links {
  margin-top: 2px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 500;
}

.auth-field input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--public-line);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
  padding: 0 12px;
  box-shadow: 0 4px 20px -12px rgb(7 26 56 / 0.18);
  font-size: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-field input::placeholder {
  color: #9aa5b5;
}

.auth-field input:focus {
  border-color: var(--public-blue);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.14);
}

.auth-password {
  position: relative;
}

.auth-password input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  min-width: 44px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--public-blue-deep);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: #eef4fc;
}

.auth-hint {
  color: var(--public-muted);
  font-size: 11px;
  line-height: 1.45;
}

.auth-message {
  min-height: 0;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
}

.auth-message:not(:empty) {
  border: 1px solid rgb(37 99 235 / 0.2);
  background: rgb(37 99 235 / 0.07);
  padding: 9px 11px;
}

.auth-message.error:not(:empty) {
  border-color: rgb(180 35 24 / 0.2);
  background: rgb(180 35 24 / 0.06);
  color: var(--public-danger);
}

.auth-message.success:not(:empty) {
  border-color: rgb(8 122 85 / 0.2);
  background: rgb(8 122 85 / 0.07);
  color: var(--public-success);
}

.auth-terms,
.auth-switch,
.auth-back {
  color: var(--public-muted);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}

.auth-terms a,
.auth-switch a,
.auth-back a {
  color: var(--public-blue-deep);
  font-weight: 700;
}

.auth-switch {
  margin-top: 22px;
  font-size: 13px;
}

.auth-back {
  margin-top: 18px;
  font-size: 13px;
}

/* FAQ and legal pages */
.public-page-body {
  background:
    radial-gradient(circle at 0 0, rgb(37 99 235 / 0.08), transparent 34rem),
    var(--public-bg);
}

.public-page-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgb(229 233 241 / 0.85);
  background: rgb(255 255 255 / 0.86);
  backdrop-filter: blur(16px);
}

.public-page-header__inner {
  position: relative;
  display: flex;
  width: min(calc(100% - 40px), 1120px);
  height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.public-page-header .public-brand,
.public-page-footer .public-brand {
  gap: 9px;
  font-size: 17px;
}

.public-page-header .public-brand img,
.public-page-footer .public-brand img {
  width: 34px;
  height: 34px;
}

.public-page-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--public-muted);
  font-size: 13px;
  font-weight: 600;
}

.public-menu-button {
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: #eef2f8;
  color: var(--public-ink);
  font-size: 19px;
  line-height: 1;
}

.public-page-nav a:hover,
.public-page-nav a[aria-current="page"] {
  color: var(--public-blue-deep);
}

.public-page-main {
  width: min(calc(100% - 40px), 1120px);
  margin: 0 auto;
  padding: 72px 0 88px;
}

.public-page-hero {
  max-width: 750px;
  margin: 0 auto 48px;
  text-align: center;
}

.public-page-hero h1 {
  margin-top: 11px;
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.public-page-hero > p:not(.page-kicker) {
  max-width: 620px;
  margin: 15px auto 0;
  color: var(--public-muted);
  font-size: 16px;
  line-height: 1.6;
}

.public-page-main--faq {
  width: 100%;
  max-width: none;
  padding-top: 0;
}

.public-page-main--faq .public-page-hero {
  width: 100%;
  max-width: none;
  padding: 62px 24px 64px;
  background: var(--public-gradient);
  color: #ffffff;
}

.public-page-main--faq .public-page-hero .page-kicker {
  color: var(--public-gold);
}

.public-page-main--faq .faq-list {
  width: min(calc(100% - 40px), 840px);
  margin: 0 auto;
}

.faq-list {
  border-top: 1px solid var(--public-line);
}

.faq-item {
  border-bottom: 1px solid var(--public-line);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 18px 34px 18px 0;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--public-blue-deep);
  content: "⌄";
  font-family: Inter, sans-serif;
  font-size: 18px;
  transition: transform 150ms ease;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  max-width: 740px;
  color: var(--public-muted);
  padding: 0 34px 18px 0;
  font-size: 13px;
  line-height: 1.65;
}

.faq-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  border-radius: 22px;
  background: var(--public-gradient);
  color: #ffffff;
  padding: 26px;
}

.faq-contact h2 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 21px;
}

.faq-contact p {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.76);
  font-size: 13px;
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--public-line);
  border-radius: 24px;
  background: var(--public-card);
  box-shadow: var(--public-card-shadow);
  padding: clamp(22px, 5vw, 42px);
}

.legal-card .public-page-hero {
  margin-bottom: 0;
}

.legal-updated {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  background: #eef4fc;
  color: var(--public-blue-deep);
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 700;
}

.legal-content {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}

.legal-content section {
  display: grid;
  gap: 9px;
}

.legal-content h2 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.legal-content p,
.legal-content li {
  color: var(--public-muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal-content ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.public-page-footer {
  border-top: 1px solid var(--public-line);
  background: #ffffff;
  padding: 48px 20px 22px;
}

.public-page-footer__grid {
  display: grid;
  width: min(100%, 1120px);
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 38px;
  margin: 0 auto;
}

.public-page-footer__grid > div,
.public-page-footer__grid > nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 9px;
}

.public-page-footer__grid p {
  max-width: 310px;
  color: var(--public-muted);
  font-size: 12px;
  line-height: 1.55;
}

.public-page-footer__grid h2 {
  margin: 0 0 3px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 13px;
}

.public-page-footer__grid nav a {
  color: var(--public-muted);
  font-size: 12px;
}

.public-page-footer__grid nav a[aria-current="page"] {
  color: var(--public-blue-deep);
}

.public-page-footer__bottom {
  display: flex;
  width: min(100%, 1120px);
  justify-content: space-between;
  gap: 20px;
  margin: 38px auto 0;
  border-top: 1px solid var(--public-line);
  color: var(--public-muted);
  font-size: 10px;
  line-height: 1.5;
  padding-top: 18px;
}

.public-page-footer a:hover {
  color: var(--public-blue-deep);
}

@media (min-width: 768px) {
  .parity-phone {
    border: 1px solid rgb(255 255 255 / 0.12);
    box-shadow: 0 32px 100px rgb(0 0 0 / 0.35);
  }
}

@media (max-width: 767px) {
  .auth-field input {
    font-size: 16px;
  }

  .auth-layout {
    display: block;
  }

  .auth-promo {
    display: none;
  }

  .auth-panel {
    min-height: 100dvh;
    padding: 32px 24px;
  }

  .auth-mobile-brand {
    display: inline-flex;
    margin-bottom: 32px;
  }

  .auth-card {
    border: 1px solid var(--public-line);
    border-radius: 22px;
    background: var(--public-card);
    box-shadow: 0 20px 40px -20px rgb(7 26 56 / 0.25);
    padding: 32px;
  }

  .auth-back {
    margin-top: 24px;
  }

  .public-menu-button {
    display: grid;
    place-items: center;
  }

  .public-page-nav {
    position: absolute;
    top: 56px;
    right: 0;
    display: none;
    width: 190px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--public-line);
    border-radius: 18px;
    background: var(--public-card);
    box-shadow: 0 18px 48px -20px rgb(7 26 56 / 0.4);
    padding: 8px;
  }

  .public-page-nav--open {
    display: flex;
  }

  .public-page-nav a {
    border-radius: 12px;
    padding: 10px 12px;
  }

  .public-page-main {
    width: min(calc(100% - 32px), 1120px);
    padding: 48px 0 64px;
  }

  .public-page-hero {
    margin-bottom: 34px;
  }

  .public-page-main--faq {
    width: 100%;
    padding-top: 0;
  }

  .public-page-main--faq .public-page-hero {
    margin-bottom: 54px;
    padding: 62px 20px 64px;
  }

  .public-page-main--faq .faq-list {
    width: calc(100% - 32px);
  }

  .public-page-hero h1 {
    font-size: 35px;
  }

  .public-page-hero > p:not(.page-kicker) {
    font-size: 14px;
  }

  .legal-card {
    padding: 20px;
  }

  .public-page-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .public-page-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }

  .public-page-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 700px) and (max-width: 767px) {
  .parity-phone__content {
    padding-block: 18px;
  }

  .parity-phone__intro {
    margin-top: 28px;
  }

  .parity-feature-list {
    margin-top: 24px;
  }

  .parity-feature {
    min-height: 58px;
    padding-block: 8px;
  }
}

@media (max-width: 380px) {
  .parity-phone__content {
    padding-right: 18px;
    padding-left: 18px;
  }

  .auth-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .public-page-header__inner,
  .public-page-main {
    width: min(calc(100% - 28px), 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
