/* ============================================================
   Truthly - Web-To-App Landing Page Styles
   Matches truthly.ai / gifts.truthly.ai aesthetic: black background,
   white text, clean minimal design, Albert Sans typography.
   ============================================================ */

:root {
  /* Primary palette - black & white */
  --black: #000000;
  --black-light: #111111;
  --black-card: #1a1a1a;
  --black-hover: #222222;

  /* Text */
  --white: #ffffff;
  --gray-50: #f5f5f5;
  --gray-100: #e5e5e5;
  --gray-200: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-800: #262626;

  /* Accent - rainbow gradient for divider line */
  --accent-gradient: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #54a0ff);

  /* Functional */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
}

/* ---- Reset & Base ---- */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-weight: 400;
  color: var(--white);
  background: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--gray-200);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---- Step Visibility ---- */

.step {
  display: none;
  min-height: 100vh;
}

.step.active {
  display: block;
}

/* ============================================================
   STEP 1 - Hero / Landing
   ============================================================ */

.hero {
  min-height: 100vh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* ---- Navbar ---- */

.navbar {
  width: 100%;
  max-width: 1200px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid;
  border-image: var(--accent-gradient) 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-icon {
  display: none;
}

.logo-img {
  height: 28px;
  width: auto;
  filter: invert(1);
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
}

/* ---- Hero Content ---- */

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 60px;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.gradient-text {
  color: var(--gray-200);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-400);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---- App Icon ---- */

.app-icon {
  width: 120px;
  height: 120px;
  background: var(--black-card);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-icon-letter {
  font-size: 4rem;
  font-weight: 300;
  color: var(--white);
  font-style: italic;
  font-family: Georgia, "Times New Roman", serif;
}

/* ---- Feature Cards ---- */

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-400);
}

/* ============================================================
   Shared Components
   ============================================================ */

/* ---- Primary Button ---- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: "Albert Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
  background: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

/* ---- Back Button ---- */

.back-button {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-family: "Albert Sans", sans-serif;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ---- Step Container ---- */

.step-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--black);
  position: relative;
}

/* ============================================================
   STEP 2 - Paywall
   ============================================================ */

.paywall-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================================
   STEP 3 - Auth
   ============================================================ */

.auth-card {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--white);
  color: var(--black);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 16px;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.auth-header p {
  font-size: 0.95rem;
  color: var(--gray-400);
}

/* ---- Auth Buttons ---- */

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  font-family: "Albert Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-provider-icon {
  flex-shrink: 0;
}

.btn-apple {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-apple:hover {
  background: var(--gray-100);
}

.btn-google {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Divider ---- */

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.divider span {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Input ---- */

.input-field {
  width: 100%;
  padding: 14px 16px;
  font-family: "Albert Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.input-field::placeholder {
  color: var(--gray-500);
}

.auth-terms {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}

.auth-terms a {
  color: var(--gray-200);
}

/* ============================================================
   STEP 4 - Download
   ============================================================ */

.download-card {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.download-header {
  margin-bottom: 36px;
}

.download-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.download-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.download-header p {
  font-size: 1rem;
  color: var(--gray-400);
}

/* ---- Store Buttons ---- */

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-family: "Albert Sans", sans-serif;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-download div {
  text-align: left;
  line-height: 1.3;
}

.btn-download small {
  font-size: 0.72rem;
  font-weight: 400;
  display: block;
}

.btn-download strong {
  font-size: 1.05rem;
  font-weight: 600;
}

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

.btn-ios {
  background: var(--white);
  color: var(--black);
}

.btn-android {
  background: var(--black-card);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-note {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 8px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px 60px;
  }

  .auth-card,
  .download-card {
    padding: 36px 24px;
  }

  .navbar {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 0.95rem;
  }
}
