/* ============================================
   KINLY AI — Landing Page Styles
   Brand Primary: Pine Green (#0F5B4F)
   Brand Accent: Warm Orange (#D9731F)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Aliases for consistency */
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-600);
  --border-light: var(--gray-200);
  --color-primary: var(--kinly-green);

  /* Brand colors */
  --kinly-green: #0F5B4F;
  --kinly-green-light: #167A6B;
  --kinly-green-dark: #0A3F37;
  --kinly-green-darker: #072B26;
  --kinly-green-subtle: #EBF4F2;
  --kinly-green-surface: #F2F8F6;

  --kinly-orange: #D9731F;
  --kinly-orange-light: #E89048;
  --kinly-orange-dark: #B85B12;
  --kinly-orange-subtle: #FEF4EA;

  --kinly-cream: #FFFDF9;
  --kinly-warm-bg: #FAF8F5;

  /* Neutrals */
  --gray-50: #FAFAFA;
  --gray-100: #F4F5F5;
  --gray-200: #E5E8E8;
  --gray-300: #D2D7D7;
  --gray-400: #9CA3A3;
  --gray-500: #6B7272;
  --gray-600: #4B5252;
  --gray-700: #333939;
  --gray-800: #1F2424;
  --gray-900: #111414;

  /* Typography */
  --font-heading: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad-y: 6.5rem;
  --section-pad-x: 1.5rem;
  --max-width: 1200px;
  --max-width-narrow: 840px;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,91,79,0.05);
  --shadow-md: 0 4px 12px rgba(15,91,79,0.08);
  --shadow-lg: 0 12px 24px -4px rgba(15,91,79,0.1);
  --shadow-card: 0 20px 40px -8px rgba(15,91,79,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-phone: 0 28px 60px -12px rgba(7,43,38,0.35);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

html, body {
  overflow-x: visible;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--kinly-green);
}

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: var(--section-pad-y) 0;
}

.section--gray {
  background: var(--gray-50);
}

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

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.95rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: #fff;
  color: var(--kinly-green);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  color: var(--kinly-green-dark);
}

.btn--orange {
  background: var(--kinly-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(217,115,31,0.3);
}

.btn--orange:hover {
  background: var(--kinly-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217,115,31,0.4);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.12);
}

.btn--icon {
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.btn--icon:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.btn--icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.btn-google-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-base);
}

.nav--scrolled {
  background: rgba(15, 91, 79, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(7,43,38,0.2);
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
}

.nav__badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  color: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__link {
  padding: 0.55rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav__link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

.nav__link--cta {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-weight: 600;
}

.nav__link--cta:hover {
  background: #fff;
  color: var(--kinly-green);
  border-color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--kinly-green);
  padding: 9rem 0 5rem;
  min-height: 94vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 65%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(217,115,31,0.18) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 55%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(22,122,107,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 580px;
}

.hero__title {
  font-size: clamp(2.65rem, 5.2vw, 3.85rem);
  color: #fff;
  margin-bottom: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 800;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 500px;
}

.hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero__alt-logins {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.hero__beta-note {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.35rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Hero Phone Mockup — iPhone 18 Pro Flagship (Sleek Compact Profile) */
.phone-mockup {
  width: 295px;
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(145deg, #2c2d33 0%, #151619 50%, #202126 100%);
  border-radius: 46px;
  padding: 8px;
  box-shadow: 
    0 25px 60px -12px rgba(0, 0, 0, 0.5),
    0 8px 20px -4px rgba(15, 91, 79, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.7);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-mockup:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 32px 75px -12px rgba(0, 0, 0, 0.6),
    0 12px 30px -4px rgba(15, 91, 79, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.22);
}

/* Hardware Physical Side Buttons */
.phone-mockup__btn {
  position: absolute;
  background: linear-gradient(to right, #1f2024, #36373e, #1f2024);
  box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

/* Left Buttons: Action, Vol Up, Vol Down */
.phone-mockup__btn--action {
  left: -3px;
  top: 85px;
  width: 3px;
  height: 22px;
  border-radius: 2px 0 0 2px;
}
.phone-mockup__btn--vol-up {
  left: -3px;
  top: 120px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}
.phone-mockup__btn--vol-down {
  left: -3px;
  top: 174px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

/* Right Buttons: Power (Side Button), Camera Control */
.phone-mockup__btn--power {
  right: -3px;
  top: 115px;
  width: 3px;
  height: 58px;
  border-radius: 0 2px 2px 0;
}
.phone-mockup__btn--camera-control {
  right: -2.5px;
  top: 205px;
  width: 2.5px;
  height: 38px;
  border-radius: 0 1.5px 1.5px 0;
  background: #2a2b30;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
}

/* Top Ear Speaker Slit */
.phone-mockup__speaker {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 3px;
  background: #0d0e11;
  border-radius: 3px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* Inner Screen with Ultra-thin Bezel */
.phone-mockup__screen {
  background: #FAF8F5;
  border-radius: 40px;
  overflow: hidden;
  height: 505px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* Subtle Glass Reflection Glare */
.phone-mockup__glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 40%, transparent 60%);
  pointer-events: none;
  z-index: 15;
}

/* iPhone Status Bar */
.phone-mockup__status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  background: #fff;
  z-index: 5;
  position: relative;
}

.phone-mockup__time {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: #0f172a;
}

/* Dynamic Island with Camera & Sensor */
.phone-mockup__dynamic-island {
  width: 82px;
  height: 21px;
  background: #000000;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  gap: 6px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.4),
    inset 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
}

.phone-mockup__island-sensor {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: #0a0a0a;
  display: inline-block;
}

.phone-mockup__island-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3b5c 0%, #0d1522 60%, #05070a 100%);
  position: relative;
  display: inline-block;
  box-shadow: inset 0 0 1.5px rgba(60, 130, 240, 0.5);
}

.phone-mockup__island-camera::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1.5px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(160, 205, 255, 0.85);
  filter: blur(0.2px);
}

/* Indicators on Right: SIM, Wi-Fi, Battery */
.phone-mockup__indicators {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0f172a;
}

.status-icon {
  display: inline-block;
  flex-shrink: 0;
  color: #0f172a;
}

.status-icon--cellular {
  margin-top: 1px;
}

.status-icon--wifi {
  margin-top: 1px;
}

.status-icon--battery {
  margin-left: 1px;
}

/* App Header */
.phone-mockup__header {
  background: #FFFFFF;
  border-bottom: 1px solid #ECECEC;
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}

.phone-mockup__header-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.phone-mockup__avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--kinly-green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(15, 91, 79, 0.18);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup__header-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-mockup__header-info {
  display: flex;
  flex-direction: column;
}

.phone-mockup__header-title {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--kinly-green-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.phone-mockup__header-subtitle {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 3.5px;
}

.phone-mockup__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.phone-mockup__header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.phone-mockup__action-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  background: #F4F5F6;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.phone-mockup__action-btn:hover {
  background: #E5E7EB;
  color: var(--gray-900);
}

/* Home Indicator at Bottom */
.phone-mockup__home-indicator {
  background: #fff;
  padding: 0.3rem 0 0.45rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.phone-mockup__home-bar {
  width: 100px;
  height: 4px;
  background: #111827;
  border-radius: 999px;
  display: block;
}

.phone-mockup__chat {
  padding: 0.95rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.phone-mockup__chat::-webkit-scrollbar {
  display: none;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.6rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.775rem;
  line-height: 1.4;
  word-break: break-word;
  animation: chatBubblePopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatBubblePopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-bubble--bot {
  background: #fff;
  color: var(--gray-800);
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  align-self: flex-start;
}

.chat-bubble--user {
  background: var(--kinly-orange);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
  align-self: flex-end;
  box-shadow: 0 4px 12px rgba(217,115,31,0.25);
  font-weight: 500;
}

.chat-bubble--typing {
  background: #fff;
  border-bottom-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
  align-self: flex-start;
  padding: 0.65rem 0.95rem;
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--gray-400);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Phone Mockup Input Bar */
.phone-mockup__input-bar {
  background: #fff;
  border-top: 1px solid #ECECEC;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
}

.phone-mockup__input-placeholder {
  flex: 1;
  background: #F4F5F5;
  border-radius: var(--radius-full);
  padding: 0.38rem 0.75rem;
  font-size: 0.71875rem;
  color: var(--gray-400);
  min-height: 26px;
  display: flex;
  align-items: center;
  transition: all var(--transition-fast);
}

.phone-mockup__input-placeholder--active {
  background: #EBF4F2;
  color: var(--gray-900) !important;
  font-weight: 500;
}

.phone-mockup__input-placeholder--active::after {
  content: "|";
  display: inline-block;
  color: var(--kinly-orange);
  font-weight: 700;
  animation: caretBlink 0.65s infinite;
  margin-left: 2px;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.phone-mockup__send-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--kinly-green);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.phone-mockup__send-btn--active {
  background: var(--kinly-orange) !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 10px rgba(217, 115, 31, 0.55);
}

.phone-mockup__send-btn:hover {
  transform: scale(1.08);
}

/* ---------- Testimonials Marquee ---------- */
.testimonials {
  padding: var(--section-pad-y) 0;
  overflow: hidden;
  background: #fff;
}

.testimonials__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--kinly-green);
  letter-spacing: -0.03em;
}

.testimonials__subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 3.5rem;
  font-size: 1.125rem;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 45s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.testimonial-card {
  flex-shrink: 0;
  width: 370px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--kinly-green-light);
}

.testimonial-card__quote-icon {
  color: var(--kinly-orange);
  opacity: 0.65;
  font-size: 2.25rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.65;
  flex: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-card__avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  background: var(--kinly-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.testimonial-card__name {
  font-weight: 700;
  color: var(--kinly-green);
  font-size: 0.95rem;
}

.testimonial-card__role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* =========================================================
   FEATURES SECTION — STICKY SCROLL SHOWCASE
   Left side stays sticky pinned; right side scrolls smoothly
   ========================================================= */
.features {
  padding: 6rem 0;
  background: var(--kinly-warm-bg);
  position: relative;
}

.features__header {
  text-align: center;
  margin-bottom: 4rem;
}

.features__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 0.85rem;
  color: var(--kinly-green);
  letter-spacing: -0.03em;
}

.features__subtitle {
  color: var(--gray-500);
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto;
}

/* Mobile Feature Quick Pill Navigation (hidden on desktop) */
.features__mobile-pills {
  display: none;
}

/* Two-column layout: stretch ensures the left track is as tall as the entire right column */
.features__showcase {
  display: flex;
  align-items: stretch;
  gap: 4.5rem;
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* LEFT COLUMN IS THE RUNWAY / TRACK - Stretches full height of right scrolling content */
.features__sticky-col {
  flex: 0 0 460px;
  width: 460px;
  position: relative;
  align-self: stretch;
}

/* Fixed-size stage that is STICKY PINNED inside the track */
.features__stage {
  position: -webkit-sticky;
  position: sticky;
  top: 130px;
  width: 460px;
  height: 440px;
  min-height: 440px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each mockup is absolute inside stage — crossfade cleanly without shifts */
.feature-mockup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  pointer-events: none;
}

.feature-mockup--active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto;
  z-index: 5;
}

/* RIGHT COLUMN: Scrolling text sections */
.features__scroll-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feature-scroll-item {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 0;
  opacity: 0.25;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-scroll-item:first-child {
  padding-top: 1rem;
}

.feature-scroll-item:last-child {
  min-height: 50vh;
}

.feature-scroll-item--active {
  opacity: 1;
  transform: translateY(0);
}

.feature-scroll-item__title {
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  margin-bottom: 1.15rem;
  color: var(--kinly-green);
  letter-spacing: -0.025em;
  font-weight: 800;
}

.feature-scroll-item__desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.feature-scroll-item__desc + .feature-scroll-item__desc {
  margin-top: 1rem;
}

/* ---------- MOCKUP CARD STYLING (matching Fambot patterns) ---------- */

/* Card 1: Green Hero Card (#14532d), 40px radius, tilted phone in mint (#d1fae5) & overlapping message bubble */
.hero-plan-card {
  width: 100%;
  max-width: 440px;
  height: 420px;
  background-color: #14532d;
  border-radius: 40px;
  padding: 1.25rem;
  box-shadow: 0 20px 48px rgba(20, 83, 45, 0.28);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* White Message Bubble: 32px rounded corners, soft shadow */
.hero-plan-bubble {
  background: #ffffff;
  border-radius: 32px;
  padding: 1.25rem 1.35rem;
  width: 90%;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 5;
  margin-left: -0.5rem;
  animation: heroBubbleSlideUp 550ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroBubbleSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-plan-bubble__greeting {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.hero-plan-bubble__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.hero-plan-bubble__item {
  font-size: 0.775rem;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  opacity: 0;
  animation: heroBulletFade 400ms ease forwards;
}

.hero-plan-bubble__item:nth-child(1) { animation-delay: 550ms; }
.hero-plan-bubble__item:nth-child(2) { animation-delay: 700ms; }
.hero-plan-bubble__item:nth-child(3) { animation-delay: 850ms; }

@keyframes heroBulletFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-plan-bubble__bullet {
  color: #15803d;
  font-weight: 800;
  flex-shrink: 0;
}

/* Action Chips: Mint background (#d1fae5), green text (#15803d) */
.hero-plan-bubble__chips {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: heroBulletFade 400ms ease 1000ms forwards;
}

.hero-plan-chip {
  background-color: #d1fae5;
  color: #15803d;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(21, 128, 61, 0.15);
}

/* Sign-off */
.hero-plan-bubble__signoff {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f3f4f6;
  opacity: 0;
  animation: heroBulletFade 400ms ease 1120ms forwards;
}

.hero-plan-bubble__signoff .kinly-wordmark {
  font-size: 0.875rem;
}

.hero-plan-bubble__heart {
  font-size: 0.8125rem;
}

/* Tilted Phone Mockup in Mint (#d1fae5) */
.hero-plan-phone {
  position: absolute;
  right: -25px;
  bottom: -60px;
  width: 200px;
  height: 380px;
  transform: rotate(5deg);
  transform-origin: center bottom;
  z-index: 2;
  pointer-events: none;
}

.hero-plan-phone__device {
  width: 100%;
  height: 100%;
  background: #052e16;
  border-radius: 36px;
  padding: 6px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.hero-plan-phone__screen {
  width: 100%;
  height: 100%;
  background-color: #d1fae5;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-plan-phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 4px;
  color: #14532d;
  font-weight: 700;
  font-size: 0.625rem;
}

.hero-plan-phone__icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-plan-phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(20, 83, 45, 0.12);
  background-color: rgba(209, 250, 229, 0.85);
}

.hero-plan-phone__back {
  font-size: 0.875rem;
  font-weight: 700;
  color: #14532d;
}

.hero-plan-phone__header .kinly-wordmark {
  font-size: 0.875rem;
}

.hero-plan-phone__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-plan-phone__ghost {
  height: 6px;
  background: rgba(20, 83, 45, 0.12);
  border-radius: 3px;
  width: 80%;
}

.hero-plan-phone__ghost--short {
  width: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .hero-plan-bubble,
  .hero-plan-bubble__item,
  .hero-plan-bubble__chips,
  .hero-plan-bubble__signoff {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.mockup-sms-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--gray-700);
  font-size: 0.85rem;
  line-height: 1.45;
}

.mockup-sms-list li strong {
  color: var(--kinly-green);
}

.mockup-sms-meta {
  border-top: 1px solid var(--gray-200);
  padding-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.mockup-sms-sign {
  font-weight: 700;
  color: var(--kinly-green);
}

/* Cards 2, 3, 4, 5, 6: White Container Card (Screenshots 4, 7, 8) */
.mockup-card {
  width: 100%;
  max-width: 440px;
  height: 400px;
  background: #FFFFFF;
  border: 1px solid #ECECEC;
  border-radius: var(--radius-2xl);
  padding: 2rem 1.75rem;
  box-shadow: 0 16px 45px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mockup-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.mockup-card__header-icon {
  font-size: 1.45rem;
}

.mockup-card__header-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--kinly-green);
  letter-spacing: -0.02em;
}

.mockup-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

/* Mockup Items (To-do / Key Date / Decoder) */
.mockup-item {
  background: #FFFFFF;
  border: 1px solid #E5E8E8;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mockup-item__check {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
}

.mockup-item__check--circle {
  border-radius: 50%;
  border: 2px solid #B0C4C0;
  background: #fff;
}

.mockup-item__check--square {
  border-radius: 6px;
  border: 2px solid #B0C4C0;
  background: #fff;
}

.mockup-item__check--checked {
  border-radius: 6px;
  background: var(--kinly-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.mockup-item__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mockup-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-800);
  line-height: 1.45;
}

.mockup-item__datetime {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--kinly-green);
}

.mockup-item__desc {
  font-size: 0.825rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.mockup-item__footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
  gap: 0.5rem;
}

.mockup-item__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.mockup-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.mockup-tag--source {
  background: var(--gray-100);
  color: var(--gray-700);
}

.mockup-tag--person {
  background: var(--kinly-green-subtle);
  color: var(--kinly-green);
}

.mockup-badge-added {
  font-size: 0.75rem;
  font-weight: 700;
  background: #1FAF38;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* All-Day Calendar Event Card (Matching Uploaded UI Design) */
.mockup-allday-card {
  background-color: #E8F5EE;
  border: 1px solid rgba(22, 83, 60, 0.08);
  border-radius: 18px;
  padding: 0.85rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 91, 79, 0.04);
  transition: all var(--transition-fast);
}

.mockup-allday-card:hover {
  background-color: #E2F2E9;
  transform: translateY(-1px);
}

.mockup-allday-card__date {
  background: #FFFFFF;
  border-radius: 12px;
  width: 46px;
  height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.mockup-allday-card__day {
  font-size: 1.15rem;
  font-weight: 800;
  color: #16533c;
  line-height: 1;
}

.mockup-allday-card__month {
  font-size: 0.625rem;
  font-weight: 800;
  color: #16533c;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.mockup-allday-card__info {
  flex: 1;
  min-width: 0;
}

.mockup-allday-card__title {
  font-weight: 700;
  color: #16533c;
  font-size: 0.925rem;
  line-height: 1.25;
}

.mockup-allday-card__subtitle {
  font-size: 0.725rem;
  color: #557265;
  margin-top: 3px;
  font-weight: 500;
}

.mockup-allday-card__action {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.mockup-allday-card__badge {
  background: #FFFFFF;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #16533c;
  letter-spacing: 0.04em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.mockup-allday-card__chevron {
  color: #16533c;
  flex-shrink: 0;
}

/* Timed Calendar Events */
.mockup-cal-event {
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
}

.mockup-cal-event--timed {
  background: #F8FAF9;
  border: 1px solid #EBF1EE;
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.mockup-cal-event--timed:hover {
  background: #F0F6F3;
}

.mockup-cal-timebadge {
  background: #FFFFFF;
  border: 1px solid #E2E8E5;
  border-radius: 8px;
  font-size: 0.675rem;
  font-weight: 700;
  color: var(--kinly-green-dark);
  padding: 4px 6px;
  min-width: 58px;
  text-align: center;
  flex-shrink: 0;
}

.mockup-cal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mockup-cal-content .mockup-cal-title {
  font-weight: 700;
  color: var(--gray-800);
  font-size: 0.85rem;
  line-height: 1.25;
}

.mockup-cal-content .mockup-cal-time {
  font-size: 0.725rem;
  color: var(--gray-500);
}

.mockup-cal-event--dashed {
  background: #F2F8F6;
  border: 1.5px dashed var(--kinly-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-cal-event--dashed .mockup-cal-title {
  font-weight: 700;
  color: var(--kinly-green-dark);
  font-size: 0.925rem;
}

.mockup-cal-event--dashed .mockup-cal-time {
  font-size: 0.825rem;
  color: var(--gray-500);
}

.mockup-cal-event--filled {
  background: #EBF4F2;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mockup-cal-event--filled .mockup-cal-title {
  font-weight: 700;
  color: var(--kinly-green-dark);
  font-size: 0.925rem;
}

.mockup-cal-event--filled .mockup-cal-time {
  font-size: 0.825rem;
  color: var(--gray-600);
}

/* ---------- Benefits Section ---------- */
.benefits {
  padding: var(--section-pad-y) 0;
  background: var(--kinly-warm-bg);
}

.benefits__header {
  text-align: center;
  margin-bottom: 1.25rem;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.benefits__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  margin-bottom: 0.85rem;
  color: var(--kinly-green);
  letter-spacing: -0.03em;
}

.benefits__subtitle {
  color: var(--gray-500);
  font-size: 1.125rem;
  margin-bottom: 4rem;
  line-height: 1.65;
}

.benefits__grid {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.benefit-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.benefit-block:nth-child(even) {
  direction: rtl;
}

.benefit-block:nth-child(even) > * {
  direction: ltr;
}

.benefit-block__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
}

.benefit-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-block__image:hover .benefit-block__img {
  transform: scale(1.03);
}

.benefit-block__content {
  padding: 1rem 0;
}

.benefit-block__title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 0.95rem;
  color: var(--kinly-green);
  letter-spacing: -0.02em;
}

.benefit-block__desc {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.benefit-block__desc + .benefit-block__desc {
  margin-top: 0.85rem;
}

/* ---------- Social Proof Logos ---------- */
.social-proof {
  padding: 4rem 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.social-proof__title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 2.25rem;
}

.social-proof__marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 92%, transparent);
}

.social-proof__track {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  animation: marquee 35s linear infinite;
}

.social-proof__logo {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-500);
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity var(--transition-base);
}

.social-proof__logo:hover {
  opacity: 0.9;
  color: var(--kinly-green);
}

/* ---------- How It Works (Get Started) ---------- */
.how-it-works {
  padding: var(--section-pad-y) 0;
  background: #fff;
}

.how-it-works__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.how-it-works__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  text-align: center;
  margin-bottom: 4rem;
  color: var(--kinly-green);
  grid-column: 1 / -1;
  letter-spacing: -0.03em;
}

.how-it-works__mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ========================================================
   KINLY ANIMATED BRAND SHOWCASE (WORDMARK & APP ICON)
   Letter "i" Schoolkid Animation — 2.6s loop
   ======================================================== */

.brand-showcase-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 91, 79, 0.12);
  border-radius: 24px;
  padding: 2.5rem 2rem 2.25rem;
  box-shadow: 0 16px 40px -12px rgba(15, 91, 79, 0.08), 0 0 0 1px rgba(15, 91, 79, 0.04);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.brand-showcase__desc {
  font-size: 0.98rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 91, 79, 0.08);
  text-align: center;
}

.kinly-wordmark-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1.5rem 0 0.75rem;
}

.kinly-wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-family: 'Nunito', var(--font-heading), sans-serif;
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0F5B4F;
  user-select: none;
}

.kinly-wm__letter {
  display: inline-block;
  transform-origin: 50% 100%;
}

.kinly-wm__letter--k {
  animation: letterDipK 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kinly-wm__letter--n {
  animation: letterDipN 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kinly-wm__letter--l {
  animation: letterDipL 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kinly-wm__letter--y {
  animation: letterDipY 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kinly-wm__i-slot {
  position: relative;
  width: 26px;
  height: 60px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 1px 0 3px;
}

.kid-slot--tile {
  position: relative;
  width: 26px;
  height: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.kid-char {
  position: relative;
  width: 14px;
  height: 48px;
  transform-origin: 50% 100%;
  animation: kidJumpLoop 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kid-stem {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 28px;
  background: #E8614D;
  border-radius: 7px;
}

.kid-backpack {
  position: absolute;
  left: -9px;
  bottom: 5px;
  width: 10px;
  height: 18px;
  background: #F59E0B;
  border-radius: 4px 2px 2px 4px;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.15);
  border-top: 2px solid #D97706;
  transform-origin: 90% 80%;
  animation: kidBackpackDelay 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kid-backpack::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: #D97706;
  border-radius: 1px;
}

.kid-head-wrap {
  position: absolute;
  bottom: 31px;
  left: -2px;
  width: 18px;
  height: 18px;
  transform-origin: 50% 100%;
  animation: kidHeadDelay 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.kid-head {
  position: relative;
  width: 18px;
  height: 18px;
  background: #E8614D;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kid-cap {
  position: absolute;
  top: -5px;
  left: -1px;
  width: 20px;
  height: 9px;
  pointer-events: none;
}

.kid-cap__dome {
  display: block;
  width: 18px;
  height: 8px;
  background: #0F5B4F;
  border-radius: 9px 9px 0 0;
  transform: rotate(-4deg);
}

.kid-cap__visor {
  position: absolute;
  right: -2px;
  top: 5px;
  width: 7px;
  height: 2.5px;
  background: #093E35;
  border-radius: 0 3px 3px 0;
}

.kid-cap__button {
  position: absolute;
  top: -2px;
  left: 8px;
  width: 4px;
  height: 4px;
  background: #F59E0B;
  border-radius: 50%;
}

.kid-eyes {
  display: flex;
  gap: 3.5px;
  margin-top: 3px;
  transform-origin: center center;
  animation: kidBlinkEyes 3.8s infinite;
}

.kid-eye {
  width: 2.8px;
  height: 3.5px;
  background: #1A1F36;
  border-radius: 50%;
  position: relative;
}

.kid-eye::after {
  content: '';
  position: absolute;
  top: 0.5px;
  left: 0.5px;
  width: 1px;
  height: 1px;
  background: #FFFFFF;
  border-radius: 50%;
}

.kid-smile {
  width: 6.5px;
  height: 3px;
  border-bottom: 2px solid #1A1F36;
  border-radius: 0 0 50% 50%;
  margin-top: 1.5px;
}

.kid-shadow {
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 91, 79, 0.4) 0%, rgba(15, 91, 79, 0) 70%);
  pointer-events: none;
  animation: kidShadowShrink 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ========================================================
   KEYFRAMES — EXACT 2.6s TIMING, JUMP, SQUASH, WAVE DIPS
   ======================================================== */

@keyframes kidJumpLoop {
  0%, 4% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  /* 1. Crouch: squash to scaleX 1.18 / scaleY 0.78 */
  10% {
    transform: translateY(2px) scale(1.18, 0.78) rotate(0deg);
  }
  /* 2. Jump: stretch to scaleX 0.88 / scaleY 1.18 and rise; tilt left on way up */
  18% {
    transform: translateY(-24px) scale(0.88, 1.18) rotate(-7deg);
  }
  /* Peak: rise ~0.8 of letter height (~36px); tilt right at top */
  28% {
    transform: translateY(-38px) scale(0.96, 1.04) rotate(6deg);
  }
  /* Descending */
  38% {
    transform: translateY(-16px) scale(0.90, 1.14) rotate(1deg);
  }
  45% {
    transform: translateY(0) scale(1.05, 0.92) rotate(0deg);
  }
  /* 3. Land: squash again (scaleX 1.22 / scaleY 0.74) */
  49% {
    transform: translateY(0) scale(1.22, 0.74) rotate(0deg);
  }
  /* 4. Small bounce, then rest */
  57% {
    transform: translateY(-8px) scale(0.96, 1.06) rotate(-1deg);
  }
  64% {
    transform: translateY(0) scale(1.06, 0.94) rotate(0deg);
  }
  71% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
  100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@keyframes kidHeadDelay {
  0%, 6% {
    transform: translateY(0) rotate(0deg);
  }
  12% {
    transform: translateY(3px) scale(1.08, 0.88) rotate(0deg);
  }
  20% {
    transform: translateY(1.5px) scale(0.92, 1.1) rotate(-4deg);
  }
  30% {
    transform: translateY(-2px) scale(1, 1) rotate(5deg);
  }
  40% {
    transform: translateY(-3.5px) rotate(2deg);
  }
  51% {
    transform: translateY(3.5px) scale(1.12, 0.84) rotate(0deg);
  }
  59% {
    transform: translateY(-2px) scale(0.98, 1.04) rotate(0deg);
  }
  68%, 100% {
    transform: translateY(0) scale(1, 1) rotate(0deg);
  }
}

@keyframes kidBackpackDelay {
  0%, 6% {
    transform: translateY(0) rotate(0deg);
  }
  12% {
    transform: translateY(2px) rotate(4deg);
  }
  20% {
    transform: translateY(3px) rotate(-6deg);
  }
  30% {
    transform: translateY(-2px) rotate(8deg);
  }
  42% {
    transform: translateY(-3px) rotate(-2deg);
  }
  51% {
    transform: translateY(3px) rotate(6deg);
  }
  59% {
    transform: translateY(-1.5px) rotate(-2deg);
  }
  68%, 100% {
    transform: translateY(0) rotate(0deg);
  }
}

@keyframes kidShadowShrink {
  0%, 4% {
    transform: translateX(-50%) scale(1, 1);
    opacity: 0.38;
    filter: blur(0px);
  }
  /* Crouch: expands on ground */
  10% {
    transform: translateX(-50%) scale(1.3, 1.25);
    opacity: 0.52;
    filter: blur(0px);
  }
  /* In the air: shrinks & fades */
  20% {
    transform: translateX(-50%) scale(0.68, 0.65);
    opacity: 0.22;
    filter: blur(1.5px);
  }
  28% {
    transform: translateX(-50%) scale(0.42, 0.38);
    opacity: 0.12;
    filter: blur(2.5px);
  }
  38% {
    transform: translateX(-50%) scale(0.72, 0.68);
    opacity: 0.24;
    filter: blur(1.5px);
  }
  /* Land: grows & darkens on landing */
  49% {
    transform: translateX(-50%) scale(1.36, 1.30);
    opacity: 0.58;
    filter: blur(0.5px);
  }
  /* Small bounce */
  57% {
    transform: translateX(-50%) scale(0.86, 0.82);
    opacity: 0.28;
    filter: blur(1px);
  }
  64% {
    transform: translateX(-50%) scale(1.12, 1.06);
    opacity: 0.42;
    filter: blur(0px);
  }
  71%, 100% {
    transform: translateX(-50%) scale(1, 1);
    opacity: 0.38;
    filter: blur(0px);
  }
}

/* Letters K, n, l, y dip wave on landing */
@keyframes letterDipK {
  0%, 48% {
    transform: translateY(0);
  }
  51% {
    transform: translateY(3.5px) rotate(-1deg);
  }
  55% {
    transform: translateY(-0.8px);
  }
  59%, 100% {
    transform: translateY(0);
  }
}

@keyframes letterDipN {
  0%, 49% {
    transform: translateY(0);
  }
  52% {
    transform: translateY(3.5px) rotate(1deg);
  }
  56% {
    transform: translateY(-0.8px);
  }
  60%, 100% {
    transform: translateY(0);
  }
}

@keyframes letterDipL {
  0%, 51% {
    transform: translateY(0);
  }
  54% {
    transform: translateY(3px) rotate(0.8deg);
  }
  58% {
    transform: translateY(-0.6px);
  }
  62%, 100% {
    transform: translateY(0);
  }
}

@keyframes letterDipY {
  0%, 53% {
    transform: translateY(0);
  }
  56% {
    transform: translateY(2.5px) rotate(0.5deg);
  }
  60% {
    transform: translateY(-0.5px);
  }
  64%, 100% {
    transform: translateY(0);
  }
}

/* Eye blink keyframes (every ~3.8 seconds) */
@keyframes kidBlinkEyes {
  0%, 93%, 97%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .brand-showcase-card {
    background: #0B3A32;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  }
  .brand-showcase__desc {
    color: rgba(255, 255, 255, 0.78);
    border-top-color: rgba(255, 255, 255, 0.12);
  }
  .kinly-wordmark {
    color: #FFFFFF;
  }
  .kid-shadow {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 70%);
  }
}

/* Prefers Reduced Motion: Slow the animation instead of removing it */
@media (prefers-reduced-motion: reduce) {
  .kid-char,
  .kid-head-wrap,
  .kid-backpack,
  .kid-shadow,
  .kinly-wm__letter--k,
  .kinly-wm__letter--n,
  .kinly-wm__letter--l,
  .kinly-wm__letter--y {
    animation-duration: 6.8s !important;
  }
}

.how-it-works__steps {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.step {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--kinly-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step__content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--kinly-navy);
  margin: 0;
  line-height: 1.3;
  padding-top: 0.2rem;
}

.step__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ---------- FAQ Section ---------- */
.faq {
  padding: var(--section-pad-y) 0;
  background: var(--gray-50);
}

.faq__title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--kinly-green);
  letter-spacing: -0.03em;
}

.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

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

.faq-item__question {
  width: 100%;
  padding: 1.45rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--kinly-green);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  gap: 1rem;
}

.faq-item__question:hover {
  color: var(--kinly-orange);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  transition: transform var(--transition-base);
  color: var(--gray-400);
}

.faq-item--open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--kinly-orange);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item--open .faq-item__answer {
  max-height: 500px;
  padding-bottom: 1.45rem;
}

.faq-item__answer p {
  font-size: 0.975rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.faq-item__answer p + p {
  margin-top: 0.85rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 7rem 0;
  background: var(--kinly-green);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(217,115,31,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__content {
  position: relative;
  z-index: 1;
}

.final-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.03em;
}

.final-cta__subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.75rem;
  font-size: 1.1rem;
}

/* ---------- Footer Store Badges ---------- */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #000000;
  border: 1px solid #a6a6a6;
  border-radius: 12px;
  height: 54px;
  width: 175px;
  padding: 0 14px;
  box-sizing: border-box;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: transform 150ms ease, border-color 150ms ease;
  user-select: none;
  cursor: pointer;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  border-color: #ffffff;
}

.app-store-badge:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.app-store-badge__icon {
  flex-shrink: 0;
  display: block;
}

.app-store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.1;
  text-align: left;
}

.app-store-badge__sub {
  font-size: 9.5px;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.app-store-badge__sub--play {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-store-badge__title {
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--kinly-green-darker);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2.5rem;
  color: rgba(255,255,255,0.65);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__logo-img {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1rem;
}

.footer__badge {
  padding: 0.6rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  width: fit-content;
}

.footer__badge:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.footer__col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.15rem;
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

.footer__col-links a:hover {
  color: #fff;
}

.footer__bottom {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer__socials {
  display: flex;
  gap: 1.25rem;
}

.footer__social-link {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--kinly-orange);
}

/* =========================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE STYLES
   ========================================================= */

@media (max-width: 1024px) {
  :root {
    --section-pad-y: 4.25rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta-group {
    align-items: center;
  }

  .hero__visual {
    order: 2; /* Value prop first, interactive phone mockup right below */
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .benefit-block,
  .benefit-block:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 1.75rem;
  }

  .how-it-works__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .how-it-works__mascot {
    display: flex;
    justify-content: center;
    width: 100%;
    order: 1; /* Keep schoolkid animated showcase visible on tablet/mobile! */
    margin-top: 1.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  /* Mobile Features Quick Pill Bar */
  .features__mobile-pills {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding: 0.25rem 0.25rem 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .features__mobile-pills::-webkit-scrollbar {
    display: none;
  }

  .features__pill-btn {
    flex-shrink: 0;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid rgba(15, 91, 79, 0.16);
    background: #FFFFFF;
    color: var(--kinly-green);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .features__pill-btn--active {
    background: var(--kinly-green) !important;
    color: #FFFFFF !important;
    border-color: var(--kinly-green) !important;
    box-shadow: 0 2px 8px rgba(15, 91, 79, 0.2);
  }

  .features__showcase {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  /* Sticky desktop stage hidden on mobile: cards are placed inline with each feature */
  .features__sticky-col {
    display: none;
  }

  .features__scroll-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
  }

  .feature-scroll-item {
    min-height: auto;
    padding: 0;
    opacity: 1 !important;
    transform: none !important;
    text-align: left;
    scroll-margin-top: 85px;
  }

  /* Each feature card is displayed prominently right above its explanation */
  .feature-scroll-item .feature-mockup {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: 440px;
    margin: 0 auto 1.5rem auto;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 1 !important;
    height: auto !important;
  }

  .feature-scroll-item__title {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    text-align: left;
  }

  .feature-scroll-item__desc {
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 100%;
    text-align: left;
    margin: 0;
  }

  .feature-scroll-item__desc + .feature-scroll-item__desc {
    margin-top: 0.75rem;
  }

  .benefits__header {
    margin-bottom: 2.5rem;
  }

  .benefits__title {
    font-size: clamp(1.75rem, 6vw, 2.35rem);
  }

  .benefit-block {
    margin-bottom: 3rem;
  }

  .benefit-block__image {
    aspect-ratio: 16/10;
    border-radius: 18px;
  }

  .benefit-block__title {
    font-size: 1.35rem;
  }

  .benefit-block__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  /* Mockup Cards responsive sizing */
  .hero-plan-card {
    height: 350px;
    max-height: 350px;
    padding: 1rem;
    border-radius: 28px;
  }

  .hero-plan-bubble {
    width: 95%;
    margin-left: 0;
    padding: 1rem 1.15rem;
    border-radius: 22px;
  }

  .hero-plan-bubble__greeting {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .hero-plan-bubble__item {
    font-size: 0.725rem;
  }

  .hero-plan-bubble__chips {
    margin-bottom: 0.5rem;
  }

  .hero-plan-chip {
    font-size: 0.625rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-plan-phone {
    right: -20px;
    bottom: -80px;
    width: 170px;
    height: 330px;
    opacity: 0.65;
  }

  .mockup-card {
    padding: 1.25rem 1.15rem;
    border-radius: 24px;
    max-height: 350px;
  }

  .mockup-allday-card {
    padding: 0.65rem 0.75rem;
    gap: 0.55rem;
    border-radius: 14px;
  }

  .mockup-allday-card__date {
    width: 38px;
    height: 40px;
  }

  .mockup-allday-card__day {
    font-size: 0.95rem;
  }

  .mockup-allday-card__month {
    font-size: 0.55rem;
  }

  .mockup-allday-card__title {
    font-size: 0.8125rem;
  }

  .mockup-allday-card__subtitle {
    font-size: 0.65rem;
  }

  .mockup-allday-card__badge {
    padding: 3px 8px;
    font-size: 0.6rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
    min-height: auto;
  }

  .hero__title {
    font-size: clamp(2rem, 7.5vw, 2.75rem);
  }

  .footer {
    padding: 3.25rem 0 2rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .nav__inner {
    padding: 0 0.25rem;
  }

  .nav__links {
    gap: 0.35rem;
  }

  .nav__link:not(.nav__link--cta) {
    display: none;
  }

  .nav__link--cta {
    padding: 0.45rem 1.05rem;
    font-size: 0.8125rem;
  }

  .nav__logo-img {
    height: 28px;
  }

  .nav__badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .faq__header {
    margin-bottom: 2rem;
  }

  .faq__title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  }

  .faq-item__question {
    padding: 1rem 0.85rem;
    font-size: 0.95rem;
  }

  .faq-item__answer {
    padding: 0 0.85rem 1.15rem;
    font-size: 0.875rem;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
    --section-pad-y: 3.25rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: 0.975rem;
    line-height: 1.55;
  }

  .hero__badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }

  .btn--hero {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  .hero__alt-logins {
    width: 100%;
    justify-content: center;
  }

  /* Phone Mockup mobile scaling */
  .phone-mockup {
    width: min(290px, calc(100vw - 2rem));
  }

  .features__scroll-col {
    gap: 2.75rem;
  }

  .feature-scroll-item .feature-mockup {
    margin-bottom: 1.15rem;
  }

  .hero-plan-card,
  .mockup-card {
    height: auto;
    min-height: 270px;
    max-height: none;
    padding: 0.85rem;
  }

  .hero-plan-bubble {
    padding: 0.85rem;
  }

  .hero-plan-phone {
    display: none; /* Keep clean and uncluttered on narrowest mobile screens */
  }

  .mockup-item {
    padding: 0.65rem 0;
  }

  .mockup-item__title {
    font-size: 0.825rem;
  }

  .mockup-item__desc {
    font-size: 0.725rem;
    line-height: 1.45;
  }

  .brand-showcase-card {
    padding: 1.75rem 1rem 1.5rem;
    border-radius: 20px;
  }

  .brand-showcase-card__title {
    font-size: 1.15rem;
  }

  .brand-showcase-card__desc {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .step-card {
    padding: 1.15rem 0.85rem;
    border-radius: 18px;
    gap: 0.85rem;
  }

  .step-card__num {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .step-card__title {
    font-size: 1.1rem;
  }

  .step-card__desc {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  /* All-day calendar card mobile scaling */
  .mockup-allday-card {
    padding: 0.6rem 0.7rem;
    gap: 0.5rem;
    border-radius: 14px;
  }

  .mockup-allday-card__date {
    width: 36px;
    height: 38px;
    border-radius: 9px;
  }

  .mockup-allday-card__day {
    font-size: 0.9rem;
  }

  .mockup-allday-card__month {
    font-size: 0.5rem;
  }

  .mockup-allday-card__title {
    font-size: 0.775rem;
    line-height: 1.2;
  }

  .mockup-allday-card__subtitle {
    font-size: 0.625rem;
  }

  .mockup-allday-card__badge {
    padding: 2px 7px;
    font-size: 0.575rem;
  }

  .mockup-allday-card__chevron {
    width: 14px;
    height: 14px;
  }

  .footer__badges {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }

  .app-store-badge {
    width: 100%;
    max-width: 220px;
    justify-content: flex-start;
    padding: 0 18px;
    margin: 0 auto;
  }
}

/* =========================================================
   LEGAL PAGES (Privacy Policy, Terms of Service, Trust & Safety)
   ========================================================= */
.legal-hero {
  background: var(--kinly-green-gradient);
  padding: 8.5rem 0 3.5rem;
  color: #fff;
  text-align: center;
  position: relative;
}

.legal-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.legal-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.legal-hero__meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Crisp Segmented Pill Control for Tabs */
.legal-nav-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  margin-top: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 100%;
}

.legal-nav-tab {
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: none;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  display: inline-block;
}

.legal-nav-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.legal-nav-tab--active {
  background: #fff !important;
  color: var(--kinly-green) !important;
  border-color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.legal-nav-tab--active:hover {
  background: #fff !important;
  color: var(--kinly-green) !important;
}

.legal-body {
  padding: 3.5rem 0 6rem;
  background: #FAF8F5;
}

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

.legal-card {
  background: #fff;
  border: 1px solid #E8ECEB;
  border-radius: var(--radius-xl);
  padding: 3.5rem 3.5rem;
  box-shadow: 0 12px 35px rgba(15, 91, 79, 0.04);
}

/* Tab Panels */
.legal-tab-pane {
  display: none;
}

.legal-tab-pane--active {
  display: block;
  animation: fadeInLegalTab 0.22s ease-out forwards;
}

@keyframes fadeInLegalTab {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-summary-box {
  background: #F2F8F6;
  border: 1.5px solid #C8E2DB;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2.75rem;
}

.legal-summary-box__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--kinly-green);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-summary-box__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.legal-summary-box__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.975rem;
  color: var(--gray-800);
  line-height: 1.6;
}

.legal-summary-box__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--kinly-green);
  font-weight: 800;
}

.legal-section {
  margin-bottom: 2.75rem;
}

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

.legal-section__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--kinly-green-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F0F0F0;
}

.legal-section p {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.legal-section ul,
.legal-section ol {
  margin: 0.75rem 0 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-section li {
  color: var(--gray-700);
  line-height: 1.65;
  font-size: 0.975rem;
}

/* Wide Responsive Tables with Smooth Scrolling */
.legal-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  text-align: left;
}

.legal-table th {
  background: var(--kinly-green-surface);
  color: var(--kinly-green-dark);
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid var(--kinly-green-subtle);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.legal-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  line-height: 1.6;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tr:hover td {
  background: #FAFDFB;
}

.legal-note {
  background: #FFF9F3;
  border-left: 3px solid var(--kinly-orange);
  padding: 0.95rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.925rem;
  color: #7A3F0E;
  margin: 1.25rem 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-lg);
  }
  .legal-hero {
    padding: 7rem 0 3rem;
  }
  .legal-nav-tabs {
    flex-wrap: wrap;
    border-radius: var(--radius-lg);
  }
  .legal-nav-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}
