/* ============================================
   Still Here — Wellness Check-in Service
   Design: Warm, trustworthy, modern health-tech
   Target: Solo-living adults, families, seniors (US/EU)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #FAFAF8;
  --bg-warm: #F5F2ED;
  --bg-card: #FFFFFF;
  --text: #1C1917;
  --text-secondary: #5C5856;
  --text-muted: #94908C;
  --teal: #1A7F6E;
  --teal-light: #E8F5F1;
  --teal-dark: #146355;
  --coral: #E8715C;
  --coral-light: #FFF0ED;
  --amber: #F0A050;
  --amber-light: #FFF7EE;
  --border: #E8E4DF;
  --border-light: #F0EDE9;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 8px 32px rgba(28, 25, 23, 0.10);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.15rem; }

@media (max-width: 700px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.nav-links { display: flex; gap: 1.8rem; align-items: center; }

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

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

.nav-cta {
  padding: 8px 18px;
  background: var(--teal);
  color: #fff !important;
  border-radius: 20px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover { background: var(--teal-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #fff;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-toggle { display: block; }
}

/* --- Sections --- */
.section { padding: 5rem 0; }

.section-warm { background: var(--bg-warm); }

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

.section-header h2 { margin-bottom: 0.8rem; }

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Hero --- */
.hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,127,110,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,113,92,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 16px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 4px;
  background: var(--teal-light);
  border-radius: 2px;
  z-index: -1;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-visual {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 100%; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 127, 110, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  background: transparent;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--teal);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

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

.btn-white {
  background: #fff;
  color: var(--teal);
}

.btn-white:hover {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.btn-coming-soon {
  opacity: 0.55;
  cursor: not-allowed !important;
  pointer-events: auto;
}
.btn-coming-soon:hover {
  transform: none !important;
  box-shadow: none !important;
  background: inherit;
}

/* --- Trust Bar --- */
.trust-bar {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item .icon {
  font-size: 1.1rem;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.step-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
  position: relative;
}

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

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1.2rem;
}

.step-card:nth-child(1) .step-number { background: var(--teal-light); color: var(--teal); }
.step-card:nth-child(2) .step-number { background: var(--amber-light); color: var(--amber); }
.step-card:nth-child(3) .step-number { background: var(--coral-light); color: var(--coral); }

.step-card h3 { margin-bottom: 0.6rem; font-size: 1.2rem; }

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.step-arrow {
  display: none;
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
}

@media (min-width: 701px) {
  .step-arrow { display: block; }
  .step-card:last-child .step-arrow { display: none; }
}

/* --- Who It's For --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

.audience-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.8rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.audience-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.audience-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.audience-card:nth-child(1) .audience-icon { background: var(--teal-light); }
.audience-card:nth-child(2) .audience-icon { background: var(--amber-light); }
.audience-card:nth-child(3) .audience-icon { background: var(--coral-light); }
.audience-card:nth-child(4) .audience-icon { background: #EDE9FE; }

.audience-text .audience-heading { margin-bottom: 0.3rem; font-size: 1.05rem; }

.audience-text p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.pricing-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  background: var(--teal);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.pricing-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.pricing-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 1.8rem;
}

.pricing-features li {
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.pricing-features li .check {
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 700;
  margin-top: 1px;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
  width: 100%;
  justify-content: center;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- FAQ --- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  cursor: pointer;
}

.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q .faq-heading {
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 { margin-bottom: 0.8rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

.cta-form {
  display: flex;
  gap: 0.8rem;
  max-width: 440px;
  margin: 0 auto;
}

@media (max-width: 500px) {
  .cta-form { flex-direction: column; }
}

.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  background: #fff;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.cta-form input::placeholder { color: var(--text-muted); }

/* --- Footer --- */
.footer {
  background: var(--text);
  color: #fff;
  padding: 4rem 0 1.5rem;
}

.footer a { color: #B8C9C5; text-decoration: none; }
.footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #B8C9C5;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.5rem; }

.footer-col a { font-size: 0.9rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8A9390;
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 460px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close:hover { background: var(--bg-warm); }

.modal-content h3 { margin-bottom: 0.5rem; }

.modal-content .modal-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-form .form-group { margin-bottom: 1rem; }

.modal-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.modal-form input:focus,
.modal-form select:focus {
  outline: none;
  border-color: var(--teal);
}

.modal-form .btn-primary { width: 100%; justify-content: center; }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  z-index: 3000;
  font-size: 0.9rem;
  font-weight: 500;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

/* --- Hero Illustration (CSS-only) --- */
.hero-illustration {
  width: 320px;
  height: 320px;
  position: relative;
}

.illustration-circle {
  position: absolute;
  border-radius: 50%;
}

.illustration-circle.outer {
  width: 100%; height: 100%;
  border: 2px dashed var(--teal-light);
  animation: spin-slow 60s linear infinite;
}

.illustration-circle.mid {
  width: 70%; height: 70%;
  top: 15%; left: 15%;
  background: var(--teal-light);
  opacity: 0.6;
}

.illustration-circle.inner {
  width: 40%; height: 40%;
  top: 30%; left: 30%;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.illustration-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
}

.illustration-dot:nth-child(2) { top: 5%; left: 45%; animation: float-dot 3s ease-in-out infinite; }
.illustration-dot:nth-child(3) { top: 25%; right: 5%; animation: float-dot 3s ease-in-out 0.5s infinite; }
.illustration-dot:nth-child(4) { bottom: 15%; left: 10%; animation: float-dot 3s ease-in-out 1s infinite; }
.illustration-dot:nth-child(5) { bottom: 30%; right: 15%; animation: float-dot 3s ease-in-out 1.5s infinite; }

@keyframes float-dot {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-12px); opacity: 1; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInAnim 0.6s ease forwards;
}

@keyframes fadeInAnim {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Selection --- */
::selection { background: var(--teal-light); color: var(--teal-dark); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ccc; }

/* --- Checkmark animation in pricing --- */
@keyframes checkPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
