
:root {
  --fb-bg: #08111f;
  --fb-bg-2: #101b2e;
  --fb-card: rgba(255, 255, 255, 0.08);
  --fb-card-solid: #ffffff;
  --fb-text: #f8fafc;
  --fb-muted: #bed0e7;
  --fb-blue: #38bdf8;
  --fb-blue-dark: #2563eb;
  --fb-green: #22c55e;
  --fb-line: rgba(255, 255, 255, 0.14);
  --fb-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, .28), transparent 34%),
    radial-gradient(circle at bottom right, rgba(34, 197, 94, .18), transparent 30%),
    linear-gradient(135deg, var(--fb-bg), var(--fb-bg-2));
  color: var(--fb-text);
  min-height: 100vh;
}

a { color: inherit; }
.hidden { display: none !important; }

.landing-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 30px;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
}

.landing-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 12px;
}

.landing-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-nav a {
  text-decoration: none;
  color: var(--fb-muted);
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
}

.landing-nav .nav-cta {
  color: #07111f;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.auth-selector-card,
.feature-band article,
.plan-card,
.trust-section {
  border: 1px solid var(--fb-line);
  background: var(--fb-card);
  box-shadow: var(--fb-shadow);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}

.hero-copy {
  padding: clamp(24px, 4vw, 46px);
}

.eyebrow {
  color: #67e8f9;
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  margin: 0 0 12px;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .92;
  letter-spacing: -0.07em;
}

.hero-text {
  color: var(--fb-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 18px;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid transparent;
}

.primary-action {
  background: linear-gradient(135deg, var(--fb-blue), var(--fb-blue-dark));
  color: #ffffff;
}

.secondary-action {
  background: #ffffff;
  color: #08111f;
}

.ghost-action {
  border-color: var(--fb-line);
  color: var(--fb-muted);
}

.full { width: 100%; }

.hero-note {
  color: #d9f99d;
  border: 1px solid rgba(217, 249, 157, .3);
  background: rgba(217, 249, 157, .08);
  padding: 13px 14px;
  border-radius: 16px;
}

.auth-selector-card {
  padding: 24px;
}

.selector-header {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 18px;
}

.selector-header img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.selector-header h2 {
  margin: 0 0 4px;
}

.selector-header p,
.entry-box p,
.section-heading p,
.trust-section p {
  color: var(--fb-muted);
  line-height: 1.65;
}

.auth-selector-card label[for="entryMode"],
label {
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: .02em;
  color: #ffffff;
}

#entryMode,
select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 56px;
  width: 100%;
  padding: 15px 48px 15px 16px;
  border-radius: 16px;
  border: 2px solid rgba(56, 189, 248, 0.65);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(224,242,254,0.98)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='%2308111f'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: #08111f;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(8, 17, 31, 0.24);
  margin-bottom: 18px;
}

#entryMode:focus,
select:focus {
  outline: 4px solid rgba(56, 189, 248, 0.28);
  border-color: #38bdf8;
}

#entryMode option,
select option {
  color: #08111f;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.entry-box {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--fb-line);
  border-radius: 20px;
  padding: 18px;
}

.entry-box h3 { margin: 0 0 8px; }

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.feature-band article {
  padding: 20px;
}

.feature-band span {
  color: #67e8f9;
  font-weight: 900;
}

.feature-band h3 {
  margin: 10px 0 8px;
}

.feature-band p {
  color: var(--fb-muted);
  line-height: 1.6;
}

.plans-section {
  margin-top: 34px;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
}

.section-heading h2,
.trust-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 10px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  padding: 24px;
}

.plan-card.featured {
  border-color: rgba(56, 189, 248, .6);
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 900;
  font-size: .8rem;
}

.plan-top h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.plan-top strong {
  display: block;
  color: #67e8f9;
  margin-bottom: 18px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.plan-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--fb-line);
  color: #e7f0fb;
}

.trust-section {
  padding: 28px;
  text-align: center;
  margin: 24px 0;
}

.landing-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--fb-muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .landing-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-band {
    grid-template-columns: 1fr;
  }
}


/* rev 1.6.7.1.0 landing selector polish */
.auth-selector-card {
  position: relative;
  overflow: hidden;
}

.auth-selector-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56,189,248,.18), transparent 42%);
  pointer-events: none;
}

.auth-selector-card label[for="entryMode"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.28);
  color: #e0f2fe;
  font-size: .9rem;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#entryMode {
  position: relative;
  min-height: 62px;
  padding: 16px 52px 16px 18px;
  border-radius: 18px;
  border: 2px solid rgba(103, 232, 249, .75);
  background:
    linear-gradient(135deg, #e0f2fe, #ffffff 50%, #dbeafe),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 20 20' fill='%2308111f'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  color: #07111f;
  font-size: 1.12rem;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(8, 17, 31, .32), inset 0 1px 0 rgba(255,255,255,.9);
  cursor: pointer;
}

#entryMode:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 40px rgba(8, 17, 31, .38), inset 0 1px 0 rgba(255,255,255,.9);
}

#entryMode:focus {
  outline: 4px solid rgba(103,232,249,.28);
  border-color: #67e8f9;
}

#entryMode option {
  color: #07111f;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}


/* rev 1.6.7.1.1 custom landing choice cards - replaces native dropdown UI */
.entry-choice-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(103, 232, 249, .13);
  border: 1px solid rgba(103, 232, 249, .32);
  color: #e0f2fe;
  font-size: .88rem;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.visually-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.entry-choice-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.entry-choice {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-areas:
    "icon title"
    "icon text";
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, .34);
  background: linear-gradient(135deg, rgba(15, 23, 42, .78), rgba(30, 41, 59, .52));
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.entry-choice:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, .72);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
}

.entry-choice.active {
  border-color: rgba(103, 232, 249, .95);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, .30), transparent 42%),
    linear-gradient(135deg, rgba(14, 165, 233, .34), rgba(30, 41, 59, .74));
  box-shadow: 0 0 0 3px rgba(103, 232, 249, .14), 0 20px 40px rgba(0,0,0,.30);
}

.choice-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(103, 232, 249, .14);
  border: 1px solid rgba(103, 232, 249, .32);
  color: #67e8f9;
  font-size: 1.25rem;
  font-weight: 950;
}

.entry-choice strong {
  grid-area: title;
  display: block;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 950;
}

.entry-choice small {
  grid-area: text;
  display: block;
  color: #bed0e7;
  line-height: 1.35;
  font-weight: 700;
}

.entry-choice.active .choice-icon {
  background: #e0f2fe;
  color: #0f172a;
}

.entry-choice.active small {
  color: #e0f2fe;
}

@media (min-width: 520px) and (max-width: 900px) {
  .entry-choice-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-choice {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "title"
      "text";
    justify-items: start;
    min-height: 132px;
  }
}
