/* ==========================================================================
   Health Recall - Design System & Stylesheet
   Mobile-First Architecture - Dark / Black Theme (Web-Safe)
   ========================================================================== */

:root {
  /* Web-Safe Dark / Black Palette */
  --color-bg: #000000;
  --color-surface: #111111;
  --color-surface-hover: #1a1a1a;
  --color-surface-elevated: #222222;
  --color-border: #2b2b2b;
  --color-border-hover: #444444;

  --color-primary: #00cc66;
  --color-primary-glow: rgba(0, 204, 102, 0.15);
  --color-primary-dark: #00994d;
  --color-accent: #0099ff;
  --color-warning: #ff9900;
  --color-danger: #ff3333;

  --color-text-main: #ffffff;
  --color-text-muted: #cccccc;
  --color-text-dim: #888888;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Spacing */
  --container-max-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000000;
  color: var(--color-text-main);
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #33ff99;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 0.5rem;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: clamp(0.82rem, 3.8vw, 0.95rem);
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  z-index: 2;
}

.brand-logo-small {
  width: 26px;
  height: auto;
  min-width: 26px;
  max-width: 26px;
  aspect-ratio: 526 / 575;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.15rem, 1.5vw, 0.35rem);
  list-style: none;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: clamp(0.75rem, 3vw, 0.85rem);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  padding: 0.25rem clamp(0.3rem, 1.5vw, 0.45rem);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: block;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link.active {
  background-color: #1a1a1a;
  border: 1px solid #333333;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-logo-wrapper {
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Hero Logo with iOS Safari WebKit compatibility */
.hero-logo {
  width: clamp(140px, 45vw, 220px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 526 / 575;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9));
  -webkit-filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9));
  transition: transform var(--transition-normal);
  will-change: transform;
}

.hero-logo:hover {
  transform: scale(1.03) translateZ(0);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #eeeeee;
  max-width: 720px;
  margin: 0 auto 1.25rem;
  line-height: 1.65;
}

.hero-subtext {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 760px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Agency Badges */
.agency-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.agency-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* Hero Download CTA */
.hero-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: #111111;
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: 9px;
  border: 1px solid #333333;
  text-decoration: none;
  box-shadow: 0 4px 14px -3px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-fast);
  cursor: pointer;
  max-width: 175px;
}

.btn-appstore:hover {
  background-color: #1a1a1a;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -4px rgba(0, 204, 102, 0.25);
  color: #ffffff;
}

.btn-appstore-icon {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-appstore-text {
  text-align: left;
  line-height: 1.15;
}

.btn-appstore-subtitle {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--color-text-muted);
  display: block;
  letter-spacing: -0.01em;
}

.btn-appstore-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: block;
}

.cta-coming-soon {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-coming-soon .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

/* Screenshots Showcase Section */
.screenshots-section {
  padding: 2.5rem 0 3.5rem;
}

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

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

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

.screenshots-scroll-container {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #333333 transparent;
}

.screenshots-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.screenshots-scroll-container::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

.screenshot-card {
  flex: 0 0 240px;
  scroll-snap-align: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
}

.screenshot-img {
  border-radius: calc(var(--radius-lg) - 4px);
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background-color: #000000;
}

.screenshot-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Features Section */
.features-section {
  padding: 3rem 0 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover {
  background-color: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-glow);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Sub-pages: Content Card (Contact, Privacy) */
.page-header {
  padding: 3.5rem 0 1.5rem;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-meta {
  color: var(--color-text-dim);
  font-size: 0.95rem;
}

.content-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 4rem;
}

/* Contact Page Specific */
.contact-card {
  max-width: 640px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.contact-icon-large {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--color-primary);
  color: #000000;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1.75rem;
  border-radius: 9999px;
  margin: 1.5rem 0 1rem;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-email-btn:hover {
  background-color: #33ff99;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 204, 102, 0.4);
}

.contact-info-list {
  text-align: left;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Privacy Policy Specific Typography */
.policy-section {
  margin-bottom: 2.25rem;
}

.policy-section:last-child {
  margin-bottom: 0;
}

.policy-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.policy-section p {
  color: #dddddd;
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
  padding-left: 0.5rem;
}

.policy-list li {
  color: #dddddd;
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  padding-left: 1.25rem;
}

.policy-list li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.policy-list strong {
  color: #ffffff;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  background-color: #000000;
  padding: 2.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

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

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Responsive Media Queries (Mobile Enhancements, Tablet & Desktop) */
@media (min-width: 480px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .brand-link {
    gap: 0.65rem;
    font-size: 1.05rem;
  }
  .brand-logo-small {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
  }
  .nav-menu {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.55rem;
  }
}

@media (min-width: 640px) {
  .header-inner {
    height: 4rem;
    gap: 1.5rem;
  }
  .brand-link {
    gap: 0.75rem;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
  }
  .brand-logo-small {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .nav-menu {
    gap: 1.5rem;
  }
  .nav-link {
    font-size: 0.95rem;
    padding: 0.35rem 0.65rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-lead {
    font-size: 1.25rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .screenshot-card {
    flex: 0 0 260px;
  }
  .content-box {
    padding: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-card:first-child {
    grid-column: span 2;
  }
  .screenshot-card {
    flex: 0 0 280px;
  }
}
