/* Earn Access — shared styles */

:root {
  --bg: #08090b;
  --bg-alt: #0b0b0b;
  --card: #1c1f24;
  --card-alt: #24272d;
  --accent: #6687a8;
  --accent-dim: rgba(102, 135, 168, 0.15);
  --accent-glow: rgba(102, 135, 168, 0.25);
  --text: #f4f5f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7a9ab8;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav__brand:hover {
  color: var(--text);
}

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

.nav__toggle[aria-expanded="true"] .nav__icon-menu {
  display: none;
}

.nav__toggle[aria-expanded="true"] .nav__icon-close {
  display: block;
}

.nav__icon-close {
  display: none;
}

@media (min-width: 768px) {
  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(8, 9, 11, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.25rem 1.5rem;
  z-index: 99;
}

.nav__mobile.is-open {
  display: block;
}

.nav__mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile a {
  display: block;
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}

.nav__mobile a:last-child {
  border-bottom: none;
}

.nav__mobile a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--accent);
  color: #08090b;
}

.btn--primary:hover {
  background: #7a9ab8;
  color: #08090b;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--card);
}

.btn--ghost {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(102, 135, 168, 0.3);
}

.btn--ghost:hover {
  background: rgba(102, 135, 168, 0.22);
  color: #8aa3be;
}

.btn--coming-soon {
  cursor: default;
  pointer-events: none;
  opacity: 0.92;
}

.btn--primary.btn--coming-soon:hover {
  background: var(--accent);
  box-shadow: none;
}

.btn--ghost.btn--coming-soon:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 3rem 0 4.5rem;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    padding: 4rem 0 5.5rem;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 520px;
}

.hero__support {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 480px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 479px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* App mockup card */

.mockup {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(102, 135, 168, 0.05);
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .mockup {
    margin: 0 0 0 auto;
  }
}

.mockup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.mockup__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.mockup__time {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.mockup__time span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mockup__section-title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mockup__locked {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mockup__app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background: var(--card-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.mockup__app-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a3f47 0%, #2a2d33 100%);
  flex-shrink: 0;
}

.mockup__app-icon--social {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.mockup__app-icon--video {
  background: linear-gradient(135deg, #553c4e 0%, #2d2a33 100%);
}

.mockup__app-name {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.mockup__lock {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  color: var(--text-dim);
}

.mockup__habits {
  padding: 1rem;
  background: var(--accent-dim);
  border: 1px solid rgba(102, 135, 168, 0.2);
  border-radius: var(--radius);
}

.mockup__habits p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mockup__habits strong {
  color: var(--accent);
  font-weight: 600;
}

/* Cards */

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card-grid--features {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid--features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

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

.card--step {
  text-align: center;
  position: relative;
}

.card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(102, 135, 168, 0.25);
  border-radius: 50%;
}

.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
  opacity: 0.85;
}

.card__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Problem flow */

.flow-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.flow-card__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.flow-card__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.flow-arrow {
  display: none;
}

@media (min-width: 600px) {
  .flow-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
  }

  .flow-wrapper .card {
    flex: 1;
  }

  .flow-arrow {
    display: flex;
    align-items: center;
    color: var(--text-dim);
    font-size: 1.25rem;
    padding: 0 0.25rem;
    flex-shrink: 0;
  }
}

/* Pro section */

.section--pro {
  padding: 3rem 0 3.25rem;
}

@media (min-width: 768px) {
  .section--pro {
    padding: 3.25rem 0 3.5rem;
  }
}

.pro-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(145deg, var(--card) 0%, var(--card-alt) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem 1.5rem;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 40px rgba(102, 135, 168, 0.06);
}

@media (min-width: 480px) {
  .pro-box {
    padding: 2.25rem 2rem 1.625rem;
    max-width: 400px;
  }
}

.pro-box__header {
  width: 100%;
  margin-bottom: 1.25rem;
}

.pro-box__title {
  margin: 0 0 0.375rem;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pro-box__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pro-list {
  list-style: none;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
}

.pro-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.pro-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
}

.pro-box__actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.375rem;
}

.pro-box__actions .btn {
  min-width: 220px;
  max-width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 359px) {
  .pro-box__actions .btn {
    min-width: 0;
    width: 100%;
  }
}

.pro-box__note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
  opacity: 0.85;
  max-width: 100%;
}

/* Trust list */

.trust-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.trust-list__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 0.1rem;
}

/* FAQ */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.faq__question:hover {
  color: var(--accent);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

.faq__item.is-open .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  display: none;
  padding: 0 0 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq__item.is-open .faq__answer {
  display: block;
}

/* Footer */

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.footer__brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.footer__tagline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

@media (min-width: 600px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Legal pages */

.legal {
  padding: 2.5rem 0 4rem;
  min-height: calc(100vh - var(--nav-height) - 200px);
}

.legal .container {
  max-width: 760px;
}

.legal__header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.legal__content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.legal__content h2:first-child {
  margin-top: 0;
}

.legal__content p,
.legal__content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal__content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal__content li {
  margin-bottom: 0.35rem;
}

.legal__content a {
  word-break: break-word;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.legal__back:hover {
  color: var(--accent);
}

/* Utility */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.section__link {
  margin-top: 2rem;
}

/* Safe area for notched devices */

@supports (padding: max(0px)) {
  .nav__inner,
  .container {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
}
