/* CareNow — Final Landing Page */

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

:root {
  --dark: #164E63;
  --dark-deep: #0C3547;
  --white: #FFFFFF;
  --cyan: #ECFEFF;
  --gray: #F5F3F0;
  --muted: rgba(255,255,255,0.6);
  --font: 'Raleway', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === A11y === */
.skip-link {
  position: absolute; top: -80px; left: 16px;
  background: var(--dark); color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem; z-index: 999;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }

/* === Nav === */
.nav {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 100; display: flex; justify-content: center;
  padding: 0 20px;
}

.nav-pill {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 860px;
  padding: 10px 10px 10px 20px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font);
  font-size: 1.15rem; font-weight: 800;
  color: var(--dark); letter-spacing: -0.02em;
}

.nav-right {
  display: flex; align-items: center; gap: 16px;
}

.nav-phone {
  font-size: 0.8rem; font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 150ms;
}
.nav-phone:hover { color: var(--dark-deep); }

.nav-cta {
  font-size: 0.8rem; font-weight: 700;
  color: var(--white); background: var(--dark);
  padding: 10px 24px; border-radius: 9999px;
  text-decoration: none;
  transition: background 150ms;
}
.nav-cta:hover { background: var(--dark-deep); }

/* === Section Base === */
.s {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  background-size: cover;
  background-position: center;
}

.s__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}

.s__content {
  position: relative; z-index: 2;
  max-width: 760px; width: 100%;
}

.s h1, .s h2 {
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(2rem, 6.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.s h1 em {
  font-style: normal;
  font-weight: 900;
}

.s__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.s__micro {
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 20px;
  letter-spacing: 0.02em;
}

/* === Hero — Subtle warm gradient === */
.s--hero {
  background: linear-gradient(160deg, #F6F8F2 0%, #F0F4EC 30%, #EEF3E8 60%, #F2F5EF 100%);
  color: var(--dark);
}

.s--hero h1, .s--hero h2 {
  color: var(--dark);
}

.s--hero .s__sub {
  color: #5A6B5E;
}

.s__micro--dark { color: rgba(22,78,99,0.45) !important; }

/* Inline CTA light variant */
.inline-cta--light {
  background: var(--white);
  border: 2px solid rgba(22,78,99,0.25);
  box-shadow: 0 2px 12px rgba(22,78,99,0.06);
}

.inline-cta--light input {
  color: var(--dark) !important;
}

.inline-cta--light input::placeholder {
  color: rgba(22,78,99,0.35) !important;
}

.btn--dark {
  background: var(--dark) !important;
  color: var(--white) !important;
}
.btn--dark:hover {
  background: var(--dark-deep) !important;
}

.scroll-hint--dark {
  color: rgba(22,78,99,0.25);
}

/* === Section 2: Emotion — warm sage gradient === */
.s--emotion {
  background: linear-gradient(180deg, #EAF0E4 0%, #E4EBE0 50%, #E0E7DA 100%);
  color: var(--dark);
}

.s--emotion h1, .s--emotion h2 {
  color: var(--dark);
}

.s--emotion .s__sub {
  color: #5A6B5E;
}

/* === Scroll hint === */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.35);
  animation: hintBounce 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes hintBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === Inline CTA (email + button) === */
.inline-cta {
  display: flex; gap: 0;
  max-width: 460px;
  margin: 0 auto;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 5px;
  backdrop-filter: blur(8px);
}

.inline-cta input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--white);
  min-width: 0;
}

.inline-cta input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* Section 3 inline CTA (light bg) */
.s--features .inline-cta {
  background: rgba(22,78,99,0.06);
  border-color: rgba(22,78,99,0.1);
}
.s--features .inline-cta input {
  color: var(--dark);
}
.s--features .inline-cta input::placeholder {
  color: rgba(22,78,99,0.35);
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700; font-size: 0.9rem;
  padding: 14px 32px;
  border-radius: 9999px; border: none;
  cursor: pointer; text-decoration: none;
  transition: transform 150ms, background 150ms;
  white-space: nowrap;
}

.btn--primary {
  background: var(--white); color: var(--dark);
}
.btn--primary:hover { transform: translateY(-1px); }

.btn--white {
  background: var(--white); color: var(--dark);
}
.btn--white:hover { transform: translateY(-1px); }

.btn--sticky {
  background: #25D366; color: var(--white);
  padding: 14px 36px;
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
  display: flex; align-items: center; gap: 8px;
}
.btn--sticky:hover { background: #1EBE5A; transform: translateY(-1px); }

/* === Section 3: Features === */
.s--features {
  background: linear-gradient(180deg, #F5F7F2 0%, #F0F2ED 100%);
  color: var(--dark);
}

.feature-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto 40px;
  text-align: left;
}

.feature-list li {
  display: flex; align-items: center; gap: 16px;
  font-size: 1.05rem; font-weight: 500;
  color: var(--dark);
}

.feature-list li svg {
  flex-shrink: 0;
  color: var(--dark);
  opacity: 0.5;
}

.s__closing {
  font-size: 0.95rem;
  color: rgba(22,78,99,0.5);
  font-style: italic;
  margin-top: 8px;
}

/* === Section 4: Close === */
.s--close {
  background: var(--dark);
  color: var(--white);
  padding-bottom: 40px;
}

.s--close h2 { color: var(--white); }
.s--close .s__sub { color: var(--muted); }

.s__outcome {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.pricing {
  margin-bottom: 36px;
}

.pricing__amount {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.03em;
}

.pricing__period {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing__detail {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
}

.talk-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 150ms;
}
.talk-link:hover { color: rgba(255,255,255,0.7); }

/* === Footer (inside section 4) === */
.footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 32px;
}

.footer__inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.footer__inner p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

.footer__copy {
  font-style: normal !important;
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.15) !important;
}

/* === Sticky CTA === */
.sticky-cta {
  position: fixed; bottom: 24px;
  left: 50%; transform: translateX(-50%);
  z-index: 90;
  transition: opacity 300ms, transform 300ms;
}

.sticky-cta.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* === Animations === */
.anim-fade-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.3s;
}

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

.scroll-reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.scroll-reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .s--hero, .s--emotion {
    background-attachment: scroll;
  }
}

/* === Responsive === */
@media (max-width: 700px) {
  .s {
    padding: 100px 20px 60px;
  }

  .s h1, .s h2 {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  /* Mobile hero adjustments */

  .inline-cta {
    flex-direction: column;
    border-radius: 16px;
    padding: 4px;
  }

  .inline-cta input {
    padding: 14px 16px;
    text-align: center;
  }

  .inline-cta .btn {
    width: 100%;
    text-align: center;
  }

  .nav-pill { padding: 8px 8px 8px 16px; }
  .nav-phone { display: none; }
  .nav-cta { font-size: 0.72rem; padding: 8px 16px; }
  .logo-text { font-size: 1rem; }
  .logo-icon { width: 22px; height: 22px; }

  .feature-list { padding: 0 8px; }

  .pricing__amount { font-size: clamp(2.5rem, 12vw, 4rem); }

  .sticky-cta { bottom: 16px; }
  .btn--sticky { padding: 12px 32px; font-size: 0.82rem; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 0.9rem; }
}
