/* ============================================
   Pfleva — Coming Soon Landing Page
   Redesign: Light Mode "Clean Healthcare"
   Brand Colors: Soft Medical Blue #2563EB & Mint #10B981
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --blue-primary: #2563EB;
  --blue-light: #60A5FA;
  --blue-dark: #1D4ED8;
  --emerald: #10B981;
  --mint: #A7F3D0;
  
  --bg-primary: #f2f7f5;
  --bg-secondary: #F1F5F9;
  --bg-card: #FFFFFF;
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  
  --border-subtle: #E2E8F0;
  --border-focus: #93C5FD;
  
  --gradient-brand: linear-gradient(135deg, var(--blue-primary) 0%, var(--emerald) 100%);
  --gradient-logo: linear-gradient(135deg, #4DB8A4 0%, #8DB858 100%);
  --shadow-soft: 0 10px 40px -10px rgba(37, 99, 235, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
  
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 32px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

main {
  flex: 1; /* Pushes footer to the bottom */
}

/* ---------- Animated Background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: float 15s ease-in-out infinite alternate;
}

.bg-glow::before {
  width: 700px;
  height: 700px;
  background: rgba(37, 99, 235, 0.05); /* Soft blue */
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
}

.bg-glow::after {
  width: 600px;
  height: 600px;
  background: rgba(16, 185, 129, 0.05); /* Soft mint */
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translateY(0) scale(1) translateX(-50%); }
  100% { transform: translateY(-50px) scale(1.05) translateX(-48%); }
}

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.015; /* Very subtle noise for light mode */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ---------- Container ---------- */
.container {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top Banner ---------- */
.top-banner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 2;
  padding: 30px 24px 0;
  display: flex;
  justify-content: center;
}

.banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  padding: 20px;
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

.logo-link {
  display: block;
  border-radius: var(--radius-sm);
}

.logo-link:focus-visible,
.header-badge:focus-visible,
.legal-back-link:focus-visible,
.footer-row a:focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
}

/* .banner-content removed */

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header-badge:hover {
  transform: scale(1.04);
}

.header-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-primary);
  animation: pulseLight 2s ease-in-out infinite;
}

@keyframes pulseLight {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 0 0 80px;
  text-align: center;
  position: relative;
}

.hero h1 {
  display: none;
}

.status-badge-container {
  margin-top: -42px;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.hero-text-group {
  margin-bottom: 2.5rem;
  text-align: center;
}

.js .home-page .banner-wrapper,
.js .home-page .status-badge-container,
.js .home-page .hero-text-group,
.js .home-page .header-badge {
  opacity: 0;
}

.js .home-page .banner-wrapper,
.js .home-page .status-badge-container,
.js .home-page .hero-text-group {
  transform: translateY(30px);
}

.js .home-page .header-badge {
  transform: translateY(-20px);
}

.js .home-page.is-ready .banner-wrapper {
  animation: fadeInUp 1s ease-out 0.08s both;
}

.js .home-page.is-ready .status-badge-container {
  animation: fadeInUp 1s ease-out 0.45s both;
}

.js .home-page.is-ready .header-badge {
  animation: fadeInDown 0.8s ease-out 0.55s both;
}

.js .home-page.is-ready .hero-text-group {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.hero-subline {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  font-weight: 400;
  color: #64748b;
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 30px;
  text-align: center;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-row a:hover {
  color: var(--blue-primary);
}

/* Floating Logo Bottom Right */
.floating-logo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: auto;
  opacity: 0.5;
  transition: var(--transition);
  pointer-events: none;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
/* ---------- Legal Pages ---------- */
.legal-logo-area {
  padding-top: 24px;
}

.legal-page {
  width: 100%;
  padding: 20px 0 88px;
}

.legal-shell {
  width: min(100% - 48px, 760px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 4px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(15, 23, 42, 0.68);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.legal-back-link::before {
  content: "\2190";
  font-size: 1.2rem;
  line-height: 1;
}

.legal-back-link:hover {
  color: var(--blue-primary);
  transform: translateX(-2px);
}

.legal-content {
  width: 100%;
  text-align: left;
}

.legal-content h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
  color: #1e293b;
}

.legal-content h2 {
  margin: 2.1rem 0 0.8rem;
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.legal-content h3 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.legal-content p,
.legal-content ul {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.coming-soon-message {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-primary);
}

.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p {
  margin-top: 1rem;
}

.legal-content ul {
  padding-left: 1.4rem;
}

.legal-content li + li {
  margin-top: 0.45rem;
}

@media (max-width: 1024px) {
  .top-banner {
    padding: 24px 20px 0;
  }

  .banner-wrapper {
    padding: 16px;
  }

  .hero {
    padding-bottom: 72px;
  }

  .status-badge-container {
    margin-top: -26px;
    margin-bottom: 38px;
  }

  .footer {
    padding: 32px 0 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .top-banner {
    padding: 34px 16px 0;
  }

  .banner-wrapper {
    padding: 8px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 64px;
  }

  .status-badge-container {
    margin-top: 18px;
    margin-bottom: 40px;
  }

  .header-badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero-text-group {
    margin-bottom: 2.75rem;
  }

  .hero-subline {
    max-width: 34ch;
    margin-top: 0.5rem;
  }

  .footer {
    padding: 36px 0 32px;
  }

  .footer-row {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 22px;
    row-gap: 8px;
  }

  .footer-row span {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .floating-logo {
    right: 16px;
    bottom: 16px;
    width: 44px;
    opacity: 0.35;
  }

  .legal-page {
    padding: 24px 0 72px;
  }

  .legal-shell {
    width: min(100% - 40px, 760px);
  }

  .legal-back-link {
    min-height: 44px;
    margin-bottom: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .legal-content h2 {
    font-size: 1.12rem;
    margin-top: 2.35rem;
    margin-bottom: 1rem;
  }

  .legal-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.9rem;
  }

  .legal-content p,
  .legal-content ul {
    line-height: 1.75;
  }

  .legal-content p + p,
  .legal-content p + ul,
  .legal-content ul + p {
    margin-top: 1.25rem;
  }

  .legal-content li + li {
    margin-top: 0.6rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .top-banner {
    padding: 42px 12px 0;
  }

  .banner-wrapper {
    padding: 4px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .status-badge-container {
    margin-top: 24px;
    margin-bottom: 42px;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 9vw, 2.1rem);
  }

  .hero-subline {
    font-size: 0.98rem;
    max-width: 100%;
    margin-top: 0.7rem;
  }

  .footer {
    padding: 28px 0 24px;
  }

  .footer-row {
    column-gap: 18px;
    row-gap: 10px;
    font-size: 0.88rem;
  }

  .footer-row a {
    min-height: 38px;
  }

  .footer-row span {
    font-size: 0.86rem;
  }

  .floating-logo {
    width: 36px;
    right: 12px;
    bottom: 12px;
  }

  .legal-shell {
    width: min(100% - 32px, 760px);
  }

  .legal-back-link {
    gap: 8px;
    font-size: 0.94rem;
    margin-bottom: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .legal-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.75rem;
  }

  .legal-content h2 {
    margin-top: 2.1rem;
    margin-bottom: 0.95rem;
    font-size: 1.06rem;
  }

  .legal-content h3 {
    font-size: 0.98rem;
    margin-top: 1.6rem;
    margin-bottom: 0.85rem;
  }

  .legal-content p,
  .legal-content ul {
    font-size: 0.97rem;
    line-height: 1.78;
  }

  .legal-content p + p,
  .legal-content p + ul,
  .legal-content ul + p {
    margin-top: 1.15rem;
  }

  .legal-content ul {
    padding-left: 1.2rem;
  }

  .legal-content li + li {
    margin-top: 0.55rem;
  }
}
