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

/* VARIABLES */
:root {
  --evernight-500: #275b50;
  --white: #ffffff;
  --onyx-600: #2c2c29;
  --onyx-500: #383835;
  --mint-500: #c9f5b5;
  --sand-300: #f6f2e7;
  --sand-500: #f0e8d6;
  --twilight-500: #5954af;

  --font-body: "Poppins", sans-serif;
  --font-heading: "Poppins", sans-serif;

  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 2rem;

  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;

  --max-width-lg: 960px;
}

/* BASE TYPOGRAPHY */
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--onyx-500);
  background: var(--white);
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 110%;
}

p {
  font-family: var(--font-heading);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

/* LAYOUT */
.section {
  padding: 64px 0;
}

.container {
  position: relative;
  width: 100%;
  max-width: var(--max-width-lg);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* HERO HEADER ROW */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.btn-nav {
  background-color: var(--mint-500);
  color: var(--evernight-500);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s;
}

.btn-nav:hover {
  opacity: 0.9;
}

/* HERO */
.hero {
  position: relative;
  background-color: var(--evernight-500);
  color: var(--white);
  overflow: hidden;
}

.blob {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-logo {
  max-width: 100px;
  display: block;
}

/* FLEX GRID */
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  align-items: center;
}

.hero-left {
  order: 2;
  width: 100%;
  flex: 1.4;
}

.hero-left h1 {
  margin-bottom: 12px;
}

.hero-right {
  order: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  flex: 0.6;
}

.hero-img {
  width: 100%;
  max-width: 230px;
  height: auto;
}

/* SUBTEXT */
.hero-sub {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* 20px */
  font-weight: 400;
}

/* HERO CTA (button + app store) */
.hero-cta {
  background-color: var(--onyx-600);
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
  align-items: stretch;
}

.hero-cta .btn {
  background: var(--mint-500);
  color: var(--evernight-500);
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}

.hero-cta .btn:hover {
  opacity: 0.9;
  cursor: pointer;
}

.hero-app-store {
  display: block;
  width: auto;
  height: 40px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-cta .app-badges {
  justify-content: center;
}

.signup-cta {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* FORM */
.signup-form {
  background-color: var(--onyx-600);
  padding: 30px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: none;
}

.signup-form input {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--onyx-500);
}

.signup-form input::placeholder {
  color: #666;
}

.signup-form .btn {
  background: var(--mint-500);
  color: var(--evernight-500);
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
  width: 100%;
  align-self: stretch;
}

.signup-form .btn:hover {
  opacity: 0.9;
  cursor: pointer;
}

.blob-top {
  top: -45%;
  right: -50%;
  width: 685px;
}

.blob-left {
  bottom: -60px;
  left: -70%;
  width: 685px;
}

/* ============================================================================
 MEET KYHA
============================================================================ */

.meet-kyha {
  background-color: var(--sand-300);
  color: var(--evernight-500);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.meet-kyha-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  text-align: center;
}

.meet-heading {
  color: var(--onyx-500);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.meet-kyha-grid picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 0;
}

.visuals {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.meet-kyha-phone-img {
  max-width: 100%;
  margin: 0 auto -24px auto;
}

.why-kyha {
  background-color: var(--sand-500);
  padding: var(--space-lg) 32px;
  color: var(--onyx-500);
}

.why-kyha-inner {
  max-width: 960px;
  margin: 0 auto;
}

.why-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 400;
  margin-bottom: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-box {
  position: relative;
  background-color: var(--sand-300);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.why-icon {
  display: block;
  width: 100%;
  max-width: 127px;
  height: auto;
  margin: 0 auto 8px auto;
}

/* Icon in top-left of box */
.icon-circle {
  background-color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 24px;
  height: 24px;
}

.why-title {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  color: var(--onyx-500);
  text-align: center;
  margin-top: 0;
  margin-bottom: 8px;
}

.why-desc {
  font-family: var(--font-heading); /* Poppins */
  font-size: 1rem; /* 16px */
  color: var(--onyx-500);
  margin: 0;
}

/* ============================================================================
 TESTIMONIALS
============================================================================ */

.testimonials {
  background-color: var(--evernight-500);
  padding: var(--space-lg) 0;
  color: var(--white);
}

.testimonials-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonials h1 {
  color: var(--white);
}

.testimonial-nav {
  display: flex;
  gap: 16px;
}

.testimonial-nav button,
.testimonial-btn {
  background-color: var(--mint-500);
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease-in-out;
  padding: 0;
  cursor: pointer;
}

.nav-btn:hover {
  opacity: 0.9;
  cursor: pointer;
}

.testimonial-btn img {
  width: 24px;
  height: 24px;
}

/* Carousel */
.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 24px;
  padding-bottom: 8px;
  align-items: stretch;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.testimonial-card {
  min-height: 281px;
  display: flex;
  align-items: center;
  max-width: 468px;
  scroll-snap-align: start;
  padding: 32px;
  border-radius: 16px;
  background-color: var(--white);
  font-size: 18px;
  font-weight: 500;
  color: var(--onyx-500);
  line-height: 1.6;
}

.who-we-are-wrapper {
  background-color: var(--sand-300);
  padding: 40px 16px;
  text-align: center;
}

.who-we-are {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  color: var(--onyx-500);
  font-family: var(--font-heading); /* Poppins */
}

.who-we-are h1 {
  font-weight: 400;
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--onyx-500);
}

.founders-img {
  display: block;
  max-width: 405px;
  width: 100%;
  margin: 0 auto 24px auto;
}

.who-we-are p {
  font-family: var(--font-heading); /* Poppins */
  font-weight: 400;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  margin-bottom: 16px;
  color: var(--onyx-500);
}

.signup-section {
  position: relative;
  background-color: var(--twilight-500);
  padding: 60px 16px 100px;
  overflow: hidden;
}

.signup-content {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.signup-content h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.signup-section .signup-form {
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.signup-section .blob-1 {
  top: -80%;
  left: -10%;
  width: 500px;
}

.signup-section .blob-2 {
  bottom: -10%;
  left: -45%;
  width: 440px;
}

.signup-section .blob-3 {
  top: 12%;
  left: 60%;
  width: 400px;
}

/* ============================================================================
 NEWSLETTER
============================================================================ */

.newsletter-section {
  position: relative;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 50%,
    var(--sand-500) 50%,
    var(--sand-500) 100%
  );
  padding: 32px 16px;
  margin-top: -88px; /* pull up into purple section */
  margin-bottom: -48px; /* pull down into tan section */
  z-index: 3;
}

.newsletter-inner {
  max-width: 960px;
  margin: 0 auto;
}

.newsletter-card {
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem; /* 20px */
  color: var(--onyx-500);
  margin: 0 0 4px 0;
}

.newsletter-sub {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem; /* 16px */
  margin: 0;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px; /* space between heading/copy and email field */
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-heading);
  font-size: 0.9375rem; /* 15px */
}

.newsletter-form input:focus {
  outline: 2px solid var(--evernight-500);
  outline-offset: 0;
}

.newsletter-btn {
  background-color: var(--onyx-600);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-family: var(--font-heading);
  font-size: 0.875rem; /* 14px, match .btn */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.newsletter-btn:hover {
  opacity: 0.9;
}

.newsletter-card .signup-success p {
  color: var(--onyx-500);
  text-align: left;
}

.lets-connect {
  background-color: var(--sand-500);
  padding: var(--space-lg) 32px;
  text-align: center;
  color: var(--onyx-500);
}

.lets-connect-inner {
  max-width: 960px;
  margin: 0 auto;
}

.lets-connect h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  color: var(--onyx-500);
}

.lets-connect p {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  margin-bottom: 1rem;
  color: var(--onyx-500);
}

.lets-connect p strong {
  font-weight: 600;
}

.connect-logo {
  margin: 24px 0;
  max-width: 140px;
  height: auto;
  filter: brightness(0) saturate(100%) invert(13%) sepia(1%) saturate(1850%)
    hue-rotate(4deg) brightness(94%) contrast(86%);
}

.lets-connect a {
  color: var(--onyx-500);
  text-decoration: none;
}

.lets-connect a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* MEDIA QUERIES */
@media (min-width: 767px) {
  .hero-grid {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }

  .hero-cta {
    max-width: 409px;
  }

  .hero-left {
    order: 1;
    flex: 1;
  }

  .hero-right {
    order: 2;
    flex: 1;
    justify-content: flex-end;
  }

  .hero-img {
    max-width: 280px;
    margin: 0;
  }

  .blob-top {
    top: -60%;
    right: -20%;
    width: 650px;
  }

  .blob-left {
    bottom: -30%;
    left: -15%;
    width: 685px;
  }

  .signup-form {
    max-width: 407px;
  }

  .signup-form .btn {
    width: auto;
    align-self: flex-start;
  }
  .meet-kyha-grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 0;
  }

  .meet-kyha-phone-img {
    max-width: 440px;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .meet-kyha-grid .phone {
    flex: 0 0 auto;
  }

  .visuals {
    flex: 0 0 auto;
    max-width: 400px;
    margin-left: -24px; /* maintain overlap */
  }

  .visuals picture {
    max-width: 100%; /* Let them fill their container */
    width: 100%;
    margin-left: -40px;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-inner {
    padding: 0 20px;
  }

  .testimonials h1 {
    font-size: 2.25rem; /* 36px */
  }

  .testimonial-btn {
    width: 48px;
    height: 48px;
  }

  .testimonial-card {
    min-height: 281px;
  }

  .signup-section .blob-1 {
    top: -150%;
    left: -10%;
    width: 800px;
  }

  .signup-section .blob-2 {
    bottom: -100px;
    left: 5%;
    width: 300px;
  }

  .signup-section .blob-3 {
    top: 10%;
    left: 55%;
    width: 600px;
    display: block !important;
    opacity: 1 !important;
  }

  .newsletter-card {
    padding: 28px 32px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .newsletter-form {
    flex-direction: row;
    align-items: center;
    flex: 1; /* let form take more horizontal space */
    margin-top: 0; /* keep text + form vertically centered in the card */
  }

  .newsletter-form input {
    flex: 1;
  }
}

.who-we-are {
  max-width: 590px;
}

.who-we-are p {
  font-size: 16px;
}

.signup-success p {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  margin-top: 16px;
  text-align: left;
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
 EXPERT-LED CARE
============================================================================ */

.expert-care {
  background-color: var(--mint-500);
  padding: 64px 32px;
  color: var(--onyx-500);
}

.expert-care-inner {
  max-width: var(--max-width-lg);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.expert-care-header {
  text-align: center;
}

.expert-care-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--onyx-500);
  margin-bottom: 8px;
}

.expert-care-desc {
  font-size: var(--fs-md);
  color: var(--onyx-500);
  margin: 0;
}

.expert-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.expert-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}


.expert-headshot {
  width: auto;
  height: 120px;
  display: block;
}

.expert-name {
  font-family: var(--font-heading);
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  color: var(--onyx-500);
  margin: 0 0 0.5rem 0; /* ~8px bottom spacing */
}

.expert-role {
  font-size: 14px;
  font-weight: 400;
  color: var(--onyx-500);
  margin: 0;
}

/* ============================================================================
 APP BADGES
============================================================================ */

.app-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.app-badge {
  height: 40px;
  width: auto;
}

/* ============================================================================
 SOCIAL LINKS
============================================================================ */

.social-links {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.social-links a {
  display: inline-block;
}

.social-links img {
  width: 40px;
  height: 40px;
  display: block;
}

.privacy-page {
  background-color: var(--sand-300);
  margin: 48px 0;
}

.privacy-page h1 {
  margin-bottom: 24px;
}

.privacy-page a {
  font-weight: 600;
  color: var(--onyx-500);
  text-decoration: none;
}

.privacy-page a:hover {
  opacity: 0.9;
}

/* Large: maintain same grid but allow flexibility for future spacing if needed */
@media (min-width: 767px) {
  .expert-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 1280px) {
  .why-kyha {
    padding-left: 64px;
    padding-right: 64px;
  }

  .why-grid {
    gap: 24px;
  }

  .why-box {
    padding: 32px;
  }
  :root {
    --fs-xl: 2.625rem;
  }
  .hero-img {
    max-width: 360px;
  }
  .blob-top {
    top: -85%;
    right: -5%;
    width: 685px;
  }

  .blob-left {
    top: 25%;
    left: -12%;
    width: 685px;
  }
  .container {
    padding: 0;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    column-gap: 3rem;
  }
  .signup-form {
    max-width: 407px;
  }

  .signup-form .btn {
    width: auto;
    align-self: flex-start;
  }

  .meet-kyha-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    max-width: 960px;
    margin: -20px auto auto auto;
    padding-left: 0;
    padding-right: 0;
  }

  .meet-kyha-grid .phone {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
  }

  .meet-kyha-phone-img {
    max-width: 405px;
    position: relative;
    z-index: 2;
    margin-left: -15px;
  }

  .visuals {
    display: flex;
    flex-direction: row;
    gap: 52px;
    margin-top: 140px;
    position: relative;
    z-index: 1;
  }

  .visuals picture {
    max-width: 214px;
    flex-shrink: 0;
  }

  .visuals picture:first-child {
    margin-left: -95px; /* creates overlap under phone */
    z-index: 0;
  }
  .why-kyha {
    padding-left: 64px;
    padding-right: 64px;
  }

  .why-grid {
    gap: 24px;
  }

  .why-box {
    padding: 32px;
  }
  .testimonials-inner {
    padding: 0; /* No horizontal padding at 1280+ */
  }

  .testimonial-carousel {
    justify-content: flex-start;
  }

  .testimonial-card {
    min-height: 200px;
  }

  .testimonial-btn {
    width: 56px;
    height: 56px;
  }

  .expert-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .signup-section .blob-1 {
    top: -50%;
    left: 30%;
    width: 1095px;
  }

  .signup-section .blob-2 {
    bottom: -150px;
    left: 20%;
    width: 440px;
  }

  .signup-section .blob-3 {
    top: -180%;
    left: 5%;
    width: 960px;
    display: block !important;
    opacity: 1 !important;
  }
}
