/* ==========================================================================
   MediMate — Official Landing & Legal Pages Stylesheet
   Color Palette:
   Primary: #1F8A4C (Emerald Health Green)
   Primary Dark: #156534
   Primary Light: #E8F5EC
   Background: #F4FAF5
   Card Background: #FFFFFF
   Text Primary: #132218
   Text Muted: #526357
   Border: #D7EADF
   ========================================================================== */

:root {
  --primary: #1F8A4C;
  --primary-dark: #156534;
  --primary-light: #E8F5EC;
  --primary-hover: #187740;
  --accent: #E3A008;
  --urgent: #E02424;
  --bg: #F4FAF5;
  --card-bg: #FFFFFF;
  --text-main: #132218;
  --text-muted: #526357;
  --text-light: #8E9E93;
  --border: #D7EADF;
  --border-light: #EBF5EF;
  --shadow-sm: 0 1px 3px rgba(19, 34, 24, 0.05);
  --shadow-md: 0 4px 12px rgba(19, 34, 24, 0.07);
  --shadow-lg: 0 12px 32px rgba(19, 34, 24, 0.09);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-w: 1160px;
}

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(244, 250, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-title-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(31, 138, 76, 0.25);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31, 138, 76, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: var(--primary-dark) !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--primary-light);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  width: fit-content;
}

.badge-pill svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.google-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #0F172A;
  color: #FFFFFF !important;
  padding: 11px 22px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}

.google-play-btn:hover {
  background-color: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

.play-icon-svg {
  width: 26px;
  height: 26px;
}

.play-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.play-subtext {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.play-maintext {
  font-size: 1.05rem;
  font-weight: 700;
}

.hero-pills-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pill-card {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.pill-card svg {
  color: var(--primary);
  width: 15px;
  height: 15px;
}

.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-card {
  background-color: var(--card-bg);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #1A241E;
  max-width: 310px;
  width: 100%;
}

.mockup-inner {
  border-radius: 26px;
  overflow: hidden;
  background: #FAFDFB;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header-group {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-label {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-subtext {
  font-size: 1.04rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ==========================================================================
   Features Grid
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.feature-card {
  background-color: var(--bg);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-circle svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Screenshots Section
   ========================================================================== */
.screenshots-section {
  padding: 84px 0;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.screenshot-frame {
  background: #111827;
  padding: 10px;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 2px solid #374151;
  max-width: 270px;
  width: 100%;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.screenshot-frame:hover {
  transform: scale(1.02);
}

.screenshot-frame img {
  border-radius: 22px;
  width: 100%;
}

.screenshot-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
}

.screenshot-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 260px;
}

/* ==========================================================================
   Privacy Highlight Banner
   ========================================================================== */
.privacy-banner-section {
  padding: 60px 0;
}

.privacy-banner-card {
  background: linear-gradient(135deg, #156534 0%, #1F8A4C 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: #FFFFFF;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 36px;
}

.privacy-banner-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.privacy-banner-content p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #E2F5E8;
  margin-bottom: 24px;
  max-width: 720px;
}

.privacy-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-white {
  background-color: #FFFFFF;
  color: var(--primary-dark) !important;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-white:hover {
  background-color: #F0FDF4;
  transform: translateY(-2px);
}

.privacy-shield-col {
  display: flex;
  justify-content: center;
}

.privacy-shield-col img {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--bg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  user-select: none;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Medical Disclaimer Callout
   ========================================================================== */
.disclaimer-section {
  padding: 40px 0;
}

.disclaimer-box {
  background-color: #FEF9C3;
  border: 1px solid #FDE047;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: #713F12;
}

.disclaimer-box svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
}

.disclaimer-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.disclaimer-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #854D0E;
}

/* ==========================================================================
   Download CTA Section
   ========================================================================== */
.download-cta-section {
  padding: 80px 0 60px;
  text-align: center;
}

.download-cta-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.download-title {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.download-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: #0E1712;
  color: #A3B5AA;
  padding: 56px 0 32px;
  margin-top: auto;
  border-top: 1px solid #1F2D24;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E2B21;
}

.footer-brand {
  max-width: 380px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #8C9F94;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.footer-links-group a {
  font-size: 0.9rem;
  color: #A3B5AA;
}

.footer-links-group a:hover {
  color: #48C774;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.82rem;
  color: #6C7F74;
}

/* ==========================================================================
   Legal Documents (Privacy & Terms Pages)
   ========================================================================== */
.legal-page-header {
  padding: 48px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: #FFFFFF;
}

.legal-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.legal-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.legal-body-container {
  max-width: 820px;
  margin: 40px auto 80px;
  padding: 0 24px;
}

.legal-card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 34px;
}

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

.legal-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-section h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 16px 0 8px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 14px;
}

.legal-section li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.deletion-highlight-box {
  background-color: #F0FDF4;
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.deletion-highlight-box h3 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.15rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-subtitle {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-pills-row {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  .privacy-banner-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .privacy-banner-actions {
    justify-content: center;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   GEO & Summary Section ("What is MediMate?")
   ========================================================================== */
.geo-summary-section {
  padding: 40px 0 20px;
}

.geo-summary-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}

.geo-summary-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.geo-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--radius-full);
}

.geo-summary-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 24px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.spec-item {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ==========================================================================
   How It Works Section (AEO)
   ========================================================================== */
.howto-section {
  padding: 80px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   About Orbit Tech Lab Section (GEO)
   ========================================================================== */
.about-developer-section {
  padding: 70px 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.about-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ==========================================================================
   404 Page Styles
   ========================================================================== */
.error-page-container {
  min-height: calc(100vh - 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.error-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  text-align: center;
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-md);
}

.error-code {
  font-size: 5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 10px;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
