/* GlassCount Website Styles */

:root {
  /* Primary colors */
  --primary: #111111;
  --primary-light: #333333;
  --primary-dark: #000000;

  /* Background colors */
  --background: #F9FAFB;
  --background-secondary: #F5F7FA;
  --card: #FFFFFF;

  /* Text colors */
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --text-on-primary: #FFFFFF;

  /* Status colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;

  /* Border and shadow */
  --border: #E5E7EB;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

strong {
  color: var(--text);
  font-weight: 600;
}

/* Layout */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

main {
  flex: 1;
}

/* Header */
.header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* =============================================
   LANDING PAGE — Hero Section
   ============================================= */

.hero-section {
  padding: 3rem 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.hero-text {
  max-width: 500px;
}

.hero-headline {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-cta {
  margin-bottom: 0.75rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--text-on-primary);
  padding: 0.875rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  text-decoration: none;
  color: var(--text-on-primary);
  transform: translateY(-1px);
}

.hero-proof {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Phone Mockup */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  width: 200px;
  background: var(--primary);
  border-radius: 28px;
  padding: 6px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  background: var(--primary);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}

.phone-screen {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.phone-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* =============================================
   LANDING PAGE — Stats Bar
   ============================================= */

.stats-section {
  padding: 1.5rem 0;
}

.stats-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.stat-divider {
  width: 40px;
  height: 1px;
  background: var(--border);
  align-self: center;
}

/* =============================================
   LANDING PAGE — Content Sections
   ============================================= */

.content-section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.section-subtitle {
  max-width: 550px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.section-link {
  text-align: center;
  margin-top: 1rem;
}

/* Features Grid */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow);
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: var(--background-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.feature-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Science Block */
.science-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.science-block h2 {
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.science-block p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Privacy Grid */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

.privacy-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.privacy-check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   LANDING PAGE — Download Section
   ============================================= */

.download-section {
  padding: 3rem 0;
  text-align: center;
  background: var(--primary);
  color: var(--text-on-primary);
}

.download-section h2 {
  color: var(--text-on-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.download-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* Download Buttons */
.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--text-on-primary);
  color: var(--primary);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--primary);
}

.download-btn svg {
  width: 22px;
  height: 22px;
}

.download-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* =============================================
   SHARED — Cards
   ============================================= */

.card {
  background-color: var(--card);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px var(--shadow);
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
}

.card h3 {
  margin-top: 1rem;
}

.card h3:first-of-type {
  margin-top: 0;
}

/* Features List (used on legal/other pages) */
.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.features-list li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   SHARED — Disclaimer
   ============================================= */

.disclaimer {
  background-color: var(--background-secondary);
  border-left: 4px solid var(--warning);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1rem 0;
}

.disclaimer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.disclaimer strong {
  color: var(--warning);
}

.disclaimer-error {
  border-left-color: var(--error);
}

.disclaimer-error strong {
  color: var(--error);
}

/* =============================================
   LEGAL PAGES
   ============================================= */

.legal-content {
  background-color: var(--card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px var(--shadow);
  border: 1px solid var(--border);
}

.legal-content h1 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.legal-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: var(--background-secondary);
  font-weight: 600;
  color: var(--text);
}

.data-table td {
  color: var(--text-secondary);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* No List */
.no-list {
  list-style: none;
  padding: 0;
}

.no-list li {
  padding-left: 1.5rem;
  position: relative;
}

.no-list li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  color: var(--error);
  font-weight: 700;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* =============================================
   RESPONSIVE — Mobile First
   ============================================= */

/* Small screens */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .header .container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-section {
    padding: 2rem 0 1.5rem;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .phone-mockup {
    width: 170px;
    border-radius: 24px;
    padding: 5px;
  }

  .phone-mockup::before {
    width: 50px;
    height: 15px;
    top: 8px;
    border-radius: 0 0 10px 10px;
  }

  .phone-screen {
    border-radius: 20px;
  }

  .stats-bar {
    padding: 1.25rem;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .card {
    padding: 1.25rem;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Larger screens — side-by-side hero */
@media (min-width: 641px) {
  .hero-content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }

  .hero-text {
    flex: 1;
  }

  .hero-phone {
    flex-shrink: 0;
  }

  .phone-mockup {
    width: 220px;
  }

  .stats-bar {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .stat-divider {
    width: 1px;
    height: 40px;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .download-buttons,
  .download-section {
    display: none;
  }

  body {
    background: white;
  }

  .legal-content {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  a {
    color: var(--text);
    text-decoration: underline;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: var(--text-light);
  }
}
