/* Mora paid Fabric client sales site
   Dark modern (Mio/Krypton/Meteor vibe). Black/white only, no neon.
   Discord invite still TBD. Canonical domain target: moraclient.com */

:root {
  --bg: #000000;
  --bg-elevated: #0c0c0c;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #6b6b6b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --glow: rgba(255, 255, 255, 0.06);
  --radius: 14px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Soft centered radial glow only, no grid/pluses */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #000;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 38%, rgba(255, 255, 255, 0.07) 0%, transparent 55%);
  background-size: 100% 100%;
  background-position: center;
  pointer-events: none;
}

.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
  height: 32px;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.brand:hover {
  color: rgba(255, 255, 255, 0.98);
  opacity: 0.92;
}

.brand__m {
  width: 32px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  opacity: 0.92;
  transition: opacity 0.15s ease;
}

.brand:hover .brand__m {
  opacity: 1;
}

.brand__m img,
.brand__m svg {
  width: 32px;
  height: 19px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: #fff;
}

.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: #fff;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 12px;
  height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn--primary:hover {
  background: #ececec;
  border-color: #ececec;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--pill {
  border-radius: var(--radius-pill);
  height: 36px;
  padding: 0 18px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: transparent;
}

.btn--pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero / CTA pairs: matched size */
.hero__ctas .btn,
.cta-band__actions .btn {
  min-width: 168px;
  height: 48px;
  border-radius: 12px;
}

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.nav__toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #fff;
}

.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

/* Hero (locked) */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 80px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  /* lower half fades into grid, locked hero treatment */
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 42%,
    rgba(255, 255, 255, 0.55) 72%,
    rgba(255, 255, 255, 0.22) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 450;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 22px;
}

.hero__price {
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-weight: 450;
}

/* Sections */
.section {
  padding: 96px 0;
}

.section__head {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section__sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin-inline: auto;
}

/* Features: Mio three-card layout, Mora B/W */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.feature-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.feature-card__body {
  color: var(--text-muted);
  font-size: 0.9875rem;
  line-height: 1.65;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin-inline: auto;
  align-items: stretch;
}

.pricing-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  justify-items: stretch;
}

.pricing-grid--single .price-card {
  width: 100%;
}

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.price-card--featured {
  border-color: rgba(255, 255, 255, 0.28);
  background: #141414;
}

.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.price-card__name {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.price-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.price-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin: 8px 0 12px;
}

.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card__list li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #fff;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item__body {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item__body a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Login stub */
.login-panel {
  max-width: 420px;
  margin: 80px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
}

.login-panel h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.login-panel p.lead {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input {
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.login-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

/* Page hero (inner pages) */
.page-hero {
  padding: 72px 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.cta-band .hero__ctas {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* Payment stub modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.modal__panel h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.modal__panel p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .pricing-grid--single {
    max-width: 420px;
  }
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px 28px;
    gap: 18px;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  .btn {
    width: 100%;
  }
  .nav__right .btn--pill span {
    /* keep Login visible */
  }
}



/* Auth tabs + Google button */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  height: 40px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-tab.is-active {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid var(--border-strong);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  flex-shrink: 0;
}

.btn--google {
  background: #0a0a0a;
  color: #fff;
  border-color: var(--border-strong);
}

.btn--google:hover {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn__google-icon {
  flex-shrink: 0;
}

.login-note.is-error {
  color: #ff8e8e;
}

.login-privacy {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

.login-privacy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

#auth-signed-in .lead {
  word-break: break-all;
}

/* Legal pages */
.legal-page {
  padding: 72px 0 96px;
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.legal-draft {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0f0f0f;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

.legal-page ul {
  margin: 0.5rem 0 0.75rem 1.2rem;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-empty {
  color: var(--text-muted);
  font-size: 1rem;
}
