/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== Warm "好眠日記" design-system palette =====
     The brand is a bedside lamp, not a nightclub: desaturated, warm.
     Creams (oat), terracotta (clay), peach (dawn), and a deep plum ink. */

  /* Cream / paper — default canvas */
  --oat-50:  #FBF7F0;
  --oat-100: #F6EFE2;
  --oat-200: #EFE5D0;
  --oat-300: #E3D5B8;
  --oat-400: #C8B494;

  /* Clay — primary warm accent (terracotta) */
  --clay-50:  #FBEDE4;
  --clay-100: #F5D8C6;
  --clay-200: #EDBFA2;
  --clay-300: #E0A079;
  --clay-400: #D08457;
  --clay-500: #B86B42;
  --clay-600: #99552F;
  --clay-700: #7A4223;

  /* Dawn — peach/amber highlights */
  --dawn-50:  #FFF4EA;
  --dawn-100: #FFE4C9;
  --dawn-200: #FFD1A1;
  --dawn-300: #FDB772;
  --dawn-400: #F59A4A;
  --dawn-500: #E47F2D;

  /* Plum — the "night": deep ink for text + nocturnal surfaces */
  --plum-100: #DED3D6;
  --plum-200: #B8A4AB;
  --plum-300: #8A6E78;
  --plum-400: #5E4651;
  --plum-500: #3E2B36;
  --plum-600: #2E1F28;
  --plum-700: #221621;
  --plum-800: #18101A;

  /* Sage — semantic "success" / "calm" */
  --sage-300: #A8BE9A;
  --sage-500: #6F8A60;

  /* ===== Existing semantic vars remapped onto the warm palette =====
     Keeps every existing selector working while reskinning the whole site. */
  --primary-color: var(--clay-500);
  --primary-dark: var(--clay-600);
  --secondary-color: var(--dawn-400);
  --text-dark: var(--plum-600);
  --text-light: var(--plum-400);
  --bg-light: var(--oat-100);
  --white: #FFFFFF;
  --success: var(--sage-500);
  --error: #B86A5E;
  --info: var(--clay-400);

  /* legacy aliases used by a few selectors */
  --primary: var(--clay-500);
  --text: var(--plum-500);

  /* Typography */
  --font-display: "Fraunces", "Noto Serif TC", "Source Han Serif TC", Georgia, serif;
  --font-serif:   "Noto Serif TC", "Source Han Serif TC", Georgia, serif;
  --font-sans:    "Noto Sans TC", "Source Han Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", system-ui, sans-serif;

  /* Radii */
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1.0);

  /* Soft, warm shadows tinted with plum (never pure black) */
  --shadow-sm: 0 2px 6px rgba(62,43,54,0.05), 0 1px 2px rgba(62,43,54,0.04);
  --shadow:
    0 6px 16px rgba(62,43,54,0.06), 0 2px 4px rgba(62,43,54,0.04);
  --shadow-lg:
    0 18px 40px rgba(62,43,54,0.08), 0 4px 10px rgba(62,43,54,0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--oat-50);
}

/* Serif display for major headings, sitewide */
section h2,
.hero-slogan,
.footer-title,
.logo-name {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background-color: rgba(251, 247, 240, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--oat-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  object-fit: cover;
}

.logo h1,
.logo .logo-name {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--plum-600);
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--plum-400);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--plum-600);
}

.nav-cta-btn {
  background-color: var(--clay-500) !important;
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  display: inline-block;
  box-shadow: 0 8px 20px -6px rgba(184,107,66,0.5);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out) !important;
  text-decoration: none;
}

.nav-cta-btn:hover {
  background-color: var(--clay-600) !important;
  transform: translateY(-1px);
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  color: var(--plum-400);
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lang-btn:hover {
  opacity: 0.75;
}

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  min-width: 110px;
  z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
  display: block;
}

.lang-dropdown li button {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: background 0.15s;
}

.lang-dropdown li button:hover {
  background: var(--bg-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--plum-500);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  position: relative;
  height: 62vh;
  background-color: var(--plum-700);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(34, 22, 33, 0.85) 0%,
    rgba(34, 22, 33, 0.55) 22%,
    rgba(34, 22, 33, 0.18) 45%,
    rgba(34, 22, 33, 0) 70%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 28px;
}

.hero-content {
  max-width: 880px;
  margin: 0 auto;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-slogan {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin-bottom: 1.875rem;
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-slogan span {
  display: block;
}

.hero-cta-btn {
  display: inline-block;
  background-color: var(--clay-500);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(184, 107, 66, 0.6);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.hero-cta-btn:hover {
  background-color: var(--clay-600);
  transform: translateY(-1px);
}

.hero-cta-btn:active {
  transform: translateY(0);
}

.download-buttons {
  display: flex;
  gap: 0.875rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge-link {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
}

.badge-link:hover {
  transform: translateY(-2.5px);
  filter: brightness(1.05) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

.badge-link:active {
  transform: translateY(-0.5px);
}

.store-badge {
  height: 40px;
  width: 135px;
  display: block;
}

.footer-download-buttons {
  margin: 1.25rem 0 0.5rem;
}

/* Sections */
section {
  padding: 50px 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Features Section */
.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-card .icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* How to Use - horizontal banner steps */
.how-to-use {
  background-color: #1A2B4C !important;
}

.how-to-use h2,
.how-to-use .section-subtitle {
  color: #fff;
}

.how-to-use .section-subtitle {
  opacity: 0.7;
}

.how-to-steps {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.how-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 2.5rem 2rem;
  background: rgba(255,255,255,0.07);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.step-number {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  background: #E8923A;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.how-step h3 {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.how-step p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .how-to-steps {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .how-to-steps {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .how-step {
    padding: 1.25rem 1.25rem;
  }
  .step-number {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }
}

/* Section Variations */
.section-alt {
  background-color: var(--bg-light);
}

/* Why Choose Section */
.why-choose {
  background-color: var(--white);
}

.why-choose h2 {
}

.why-choose-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.why-choose-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  max-height: 480px;
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.why-choose-image:hover img {
  transform: scale(1.04);
}

.why-choose-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why-choose-right .why-heading {
  display: none;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

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

.why-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-top: 3px solid var(--primary-color);
}

.why-card-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 768px) {
  .why-choose-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-choose-image {
    max-height: 300px;
    aspect-ratio: 4 / 3;
  }

  .why-choose-right .why-heading {
    font-size: 1.75rem;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
  }

  .why-card-icon {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1.3;
  }

  .why-card h3 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 0.97rem;
  }

  .why-card p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}

/* Tracking Section */
.tracking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.tracking-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tracking-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tracking-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.tracking-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text-dark); }
.tracking-card p { color: var(--text-light); line-height: 1.6; }

/* CBT-i Section */
.cbti-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.cbti-assessments, .cbti-therapy {
  background: var(--bg-light);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.cbti h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem 1rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--text-dark);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.therapy-stacked-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.therapy-list-item {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  align-items: flex-start;
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid var(--primary-color);
}
.therapy-list-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
  border-left-width: 8px;
}
.t-icon {
  width: 40px;
  height: 40px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
}
.t-content h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--text-dark);
}
.t-content p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Archetypes Section */
.archetypes-tabs-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .archetypes-tabs-container { flex-direction: row; min-height: 400px; }
}
.arch-tab-buttons {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  background: var(--bg-light);
  border-bottom: 1px solid #ddd;
}
@media (min-width: 768px) {
  .arch-tab-buttons {
    flex-direction: column; width: 35%; border-bottom: none; border-right: 1px solid #ddd; overflow-x: visible;
  }
  .arch-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
  }
}
.arch-tab-btn {
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.arch-tab-btn:hover { background: rgba(0,0,0,0.02); }
.arch-tab-btn.active { background: var(--white); color: var(--primary-color); border-left: 4px solid var(--primary-color); outline: none;}
@media (max-width: 767px) {
  .arch-tab-btn.active { border-left: none; border-bottom: 3px solid var(--primary-color); }
}

.arch-tab-content {
  padding: 2rem;
  flex: 1;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fa 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.arch-tab-pane {
  display: none;
}
.arch-tab-pane.active {
  display: block;
}
.arch-tab-pane.fade-in { animation: fadeIn 0.4s ease-in-out; }

.arch-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.arch-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd060 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(255, 152, 0, 0.2);
  transform: rotate(-5deg);
}
.arch-emoji {
  font-size: 2.5rem;
  transform: rotate(5deg);
}
.arch-hero-text h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.arch-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.arch-info-card {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  align-items: center;
}
.arch-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.card-pain {
  border-top: 4px solid var(--error);
}
.card-focus {
  border-top: 4px solid var(--success);
}
.card-icon-top {
  grid-row: 1 / 3;
  grid-column: 1;
  font-size: 1.5rem;
  margin-bottom: 0;
  display: inline-flex;
  padding: 10px;
  border-radius: 12px;
}
.card-pain .card-icon-top {
  background: #fff8f8;
  color: var(--error);
}
.card-focus .card-icon-top {
  background: #f1fdf5;
  color: var(--success);
}
.arch-info-card h4 {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 700;
  align-self: end;
}
.arch-info-card p {
  grid-row: 2;
  grid-column: 2;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
  font-size: 1rem;
  align-self: start;
}

/* Journey Timeline */
.interactive-timeline {
  max-width: 900px;
  margin: 0 auto;
}
.timeline-slider-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 3rem;
  padding: 0 10px;
}
.slide-marker {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 3px solid #ddd;
  color: var(--text-light);
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-marker:hover { border-color: var(--primary-color); color: var(--primary-color); transform: scale(1.1); }
.slide-marker.active { background: var(--secondary-color); border-color: var(--secondary-color); color: var(--white); transform: scale(1.15); box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.2); }
.slide-connector {
  flex: 1;
  height: 4px;
  background: #ddd;
  z-index: 1;
  margin: 0 -5px;
}

@media (max-width: 768px) {
  .slide-marker { width: 45px; height: 45px; font-size: 0.75rem; }
}

.timeline-slides-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: left;
  border-top: 4px solid var(--secondary-color);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.time-slide { display: none; }
.time-slide.active { display: block; }
.time-slide.fade-in { animation: fadeIn 0.4s ease-in-out; }

.slide-content-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  .slide-content-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
.slide-icon-box {
  width: 90px;
  height: 90px;
  background: var(--bg-light);
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}
.slide-text h3 { color: var(--text-dark); font-size: 1.5rem; margin: 0 0 0.75rem 0; }
.slide-text p { color: var(--text-light); font-size: 1.125rem; line-height: 1.6; margin: 0; }

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

/* Efficacy Section */
.efficacy-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.efficacy-stat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s, box-shadow 0.3s;
}
.efficacy-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.stat-unit {
  font-size: 1.5rem;
  font-weight: 700;
}
.stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.stat-detail {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}
.stat-source {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* Comparison Bars */
.efficacy-comparison {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}
.efficacy-comparison h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 2rem;
}
.comparison-bars {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-end;
}
.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bar-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  text-align: center;
}
.bar-columns {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  background: #f0f2f6;
  border-radius: 10px;
  padding: 1rem 1.25rem 0.75rem;
}
.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
}
.bar-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
}
.bar-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.cbti-tag { color: var(--primary-color); }
.med-tag { color: var(--text-light); }
.bar-track-v {
  width: 48px;
  height: 180px;
  background: #d8dce6;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.bar-fill-v {
  width: 100%;
  border-radius: 6px;
  transition: height 1s ease-out;
}
.cbti-fill { background: linear-gradient(180deg, var(--secondary-color), var(--primary-color)); }
.med-fill { background: #A5ADC0; }
.bar-source {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: right;
  align-self: flex-end;
  margin-top: 0.5rem;
}

/* Taiwan Context */
.efficacy-taiwan {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
}
.efficacy-taiwan h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.taiwan-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.taiwan-stat {
  text-align: center;
}
.taiwan-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.taiwan-stat p {
  color: var(--text-light);
  line-height: 1.5;
}

/* Guidelines Badges */
.efficacy-guidelines {
  margin-bottom: 3rem;
}
.efficacy-guidelines h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1.5rem;
}
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.guideline-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-logo {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

/* Citations */
.efficacy-citations {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.efficacy-citations h4 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.citations-list {
  padding-left: 1.5rem;
  margin: 0;
}
.citations-list li {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.citations-list li:last-child { margin-bottom: 0; }
.citations-list em { font-style: italic; }

/* Efficacy responsive */
@media (max-width: 768px) {
  .efficacy-stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .guidelines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .taiwan-stats {
    grid-template-columns: 1fr;
  }
  .efficacy-guidelines {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }
  .efficacy-guidelines h3 {
    margin-bottom: 1rem;
  }
  .bar-tag {
    width: 50px;
    font-size: 0.75rem;
  }

  /* Horizontal bar charts on mobile */
  .comparison-bars {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .bar-group {
    flex: unset;
  }
  .bar-columns {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .bar-column {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
  }
  .bar-track-v {
    /* switch to horizontal */
    width: 100%;
    height: 28px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
  }
  .bar-fill-v {
    width: var(--bar-h-width, 50%);
    height: 100% !important;
    border-radius: 6px;
    transition: width 1s ease-out;
  }
  .bar-value {
    min-width: 36px;
    text-align: right;
    order: 2;
  }
  .bar-tag {
    width: 56px;
    flex-shrink: 0;
    text-align: left;
    font-size: 0.8rem;
    order: 0;
  }
  .bar-track-v {
    order: 1;
    flex: 1;
  }
}

/* CBT-i Introduction: two-column split */
.cbti-intro-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 0 auto 3rem;
  max-width: 1000px;
}

.cbti-intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cbti-intro-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.cbti-intro-item p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.cbti-intro-image {
  flex: 0 0 360px;
}

.cbti-intro-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  display: block;
}

/* App Intro specific tweaks */
#app-intro {
  padding: 100px 0 120px 0;
}
#app-intro .cbti-intro-split {
  gap: 12rem; /* Significantly larger horizontal gap */
  max-width: 1150px; /* Provide extra space for the larger gap */
}

.cbti-intro-image.app-mockup-wrapper {
  flex: 0 0 520px;
}
.app-mockup-wrapper img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  background-color: transparent;
  display: block;
  transform: scale(0.92);
  transform-origin: right center;
}
@media (max-width: 900px) {
  #app-intro .cbti-intro-split {
    gap: 4rem;
  }
  .cbti-intro-image.app-mockup-wrapper {
    flex: 0 0 400px;
  }
}
@media (max-width: 768px) {
  #app-intro {
    padding: 60px 0 50px 0;
  }
  #app-intro .cbti-intro-split {
    gap: 3rem;
  }
  .cbti-intro-image.app-mockup-wrapper {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .app-mockup-wrapper img,
  #app-intro .cbti-intro-image img {
    height: auto !important;
    max-width: 350px;
    margin: 0 auto;
    /* TranslateX subtly compensates for any asymmetry without overdoing it */
    transform: scale(0.84) translateX(7%);
    transform-origin: center;
  }
}


.efficacy-section-heading {
  text-align: center;
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .cbti-intro-split {
    flex-direction: column;
    gap: 2rem;
  }
  .cbti-intro-image {
    flex: 0 0 auto;
    width: 100%;
  }
  .cbti-intro-image img {
    height: 260px;
  }
}

/* Differentiators Section */
.diff-grid {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.diff-list {
  list-style: none;
}
.diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.diff-list li:last-child { margin-bottom: 0; }
.diff-list .icon { font-size: 1.5rem; }

/* Pricing/Comparison Section */
.pricing {
  background-color: var(--white);
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table thead {
  background-color: var(--primary-color);
  color: var(--white);
}

.comparison-table th {
  padding: 1.25rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
}

.comparison-table th.highlighted {
  background-color: var(--secondary-color);
}

.comparison-table tbody td:nth-child(3) {
  background-color: #FFE9CC;
}

.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #A5ADC0;
}

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

.comparison-table tbody tr:nth-child(even) {
  background-color: var(--bg-light);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.check {
  color: var(--success);
  font-size: 1.5rem;
  font-weight: bold;
}

.cross {
  color: var(--error);
  font-size: 1.5rem;
  font-weight: bold;
}

/* Reviews Section */
.reviews {
  background-color: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
}

.stars {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #FFA733;
}

.review-text {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.reviewer strong {
  color: var(--text-dark);
  font-size: 1.125rem;
}

.reviewer span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* FAQ Section */
.faq {
  background-color: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  width: 100%;
  background-color: var(--white);
  border: none;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  background-color: var(--bg-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
}

.faq-contact {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-dark);
  font-size: 1rem;
}

.faq-contact a {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-contact a:hover {
  text-decoration: underline;
}

/* ── Insomnia Type Teaser Section ───────────────────────────── */
.type-quiz {
  padding: 80px 0;
  background: linear-gradient(160deg, #FFF8F0 0%, #FFF3E0 100%);
}
.tq-teaser {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.tq-teaser-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.1rem;
}
.tq-teaser h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.tq-teaser p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.tq-archetype-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tq-archetype-pills span {
  background: var(--white);
  border: 1.5px solid var(--bg-light);
  border-radius: 99px;
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow);
}
.tq-cta-btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.tq-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .type-quiz { padding: 40px 0; }
  .tq-teaser h2 { font-size: 1.5rem; }
  .tq-teaser p { font-size: 0.97rem; }
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
  opacity: 1;
}

.footer-links a:hover {
  color: var(--primary-color);
  opacity: 1;
}

.footer-copyright {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

.social-icon-btn:hover {
  background: var(--white);
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem 0 0.25rem;
    box-shadow: var(--shadow);
    display: none;
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.75rem 20px;
  }

  .nav-links li:has(.lang-btn) {
    display: none;
  }

  .nav-links a {
    color: var(--text-dark);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    height: 62svh;
    min-height: 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-slogan {
    font-size: 2rem;
  }

  .hero-content .download-buttons {
    justify-content: center;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .download-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .badge-link {
    max-width: 135px;
    display: flex;
    justify-content: center;
  }
  .store-badge {
    width: 100%;
    height: auto;
  }

  section {
    padding: 60px 0;
  }

  section h2 {
    font-size: 2rem;
  }

  .features-grid,
  .reviews-grid,
  .tracking-grid,
  .check-list,
  .therapy-grid,
  .archetypes-grid {
    grid-template-columns: 1fr;
  }

  .timeline::after {
    left: 20px;
  }
  .timeline-marker {
    left: 4px;
    width: 36px;
    height: 36px;
    font-size: 0.7rem;
  }
  .timeline-item {
    padding-left: 60px;
  }

  .comparison-table {
    font-size: 0.9rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo h1,
  .logo .logo-name {
    font-size: 1.25rem;
  }

  .logo-img {
    width: 30px;
    height: 30px;
  }
}

/* Scroll Animation */
section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
 * 好眠日記 — 官網改版 redesign overrides
 * Warm "bedside lamp" theme: oat / clay / dawn / plum.
 * Appended last so these win over earlier section rules.
 * ============================================================= */

/* ---- shared atoms ---- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-500);
  text-align: center;
  margin-bottom: 0.875rem;
}
.eyebrow-dawn { color: var(--dawn-300); }

.btn-clay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  background: var(--clay-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px -6px rgba(184, 107, 66, 0.5);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn-clay:hover { background: var(--clay-600); transform: translateY(-1px); }
.btn-clay .ic { display: block; }
.btn-lg { font-size: 1rem; padding: 14px 26px; }

/* Official-style store badges (dark) */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge-native {
  display: inline-flex; align-items: center; gap: 9px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 11px; padding: 11px 18px;
  text-decoration: none;
}
.store-badge-native:hover { transform: translateY(-1px); }
.store-badge-native .sb-txt { display: flex; flex-direction: column; line-height: 1.08; text-align: left; white-space: nowrap; }
.store-badge-native .sb-sm { font-size: 10px; opacity: 0.9; }
.store-badge-native .sb-lg { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* =================== App Intro (A direction) =================== */
#app-intro.app-intro {
  background: radial-gradient(120% 80% at 88% 12%, #FFF4EA 0%, #FBF7F0 50%, #F6EFE2 100%);
  padding: 100px 0 90px;
  overflow: hidden;
}
.app-intro-grid {
  display: flex;
  align-items: center;
  gap: 40px;
}
.app-intro-copy { width: 50%; padding-right: 20px; }
.app-intro-visual { width: 50%; display: flex; justify-content: center; }

.cbti-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--oat-200);
  border-radius: var(--radius-full); padding: 6px 16px 6px 7px;
  margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.cbti-pill-tag {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--clay-500); border-radius: var(--radius-full);
  padding: 3px 10px; letter-spacing: 0.04em;
}
.cbti-pill-text { font-size: 13px; color: var(--plum-400); font-weight: 500; }

.app-intro-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 3.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--plum-600);
  margin-bottom: 22px;
  text-align: left;
}
.app-intro-title span { display: inline; }
.app-intro-title .title-app {
  font-family: var(--font-display);
  font-weight: 400; font-style: italic; color: var(--clay-500);
}
.app-intro-lead {
  font-size: 1.125rem; line-height: 1.8; color: var(--plum-400);
  max-width: 460px; margin-bottom: 32px;
}
.app-intro-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---- 3D phone frame (shared by app-intro + how-it-works) ---- */
.phones-stage { position: relative; }
/* slide wrappers are invisible to layout on desktop (3D stack unchanged) */
.phone-slide { display: contents; }
.phone-dots { display: none; }
.phone-frame {
  --pw: 252px;
  --tilt: 0deg;
  --ph: calc(var(--pw) * 2.06);
  --pr: calc(var(--pw) * 0.135);
  width: var(--pw);
  height: var(--ph);
  flex-shrink: 0;
  position: relative;
  transform: rotate(var(--tilt));
  transform-origin: center;
}
.phone-front { position: relative; z-index: 2; }
.phone-back { position: absolute; right: -136px; bottom: 14px; z-index: 1; }

/* metallic extruded edge → reads as device thickness */
.phone-edge {
  position: absolute; top: 2px; left: -3px; right: -3px; bottom: -6px; z-index: 1;
  border-radius: calc(var(--pr) + 3px);
  background: linear-gradient(125deg, #4A525F 0%, #20262F 16%, #0A0D12 42%, #0A0D12 60%, #20262F 84%, #545C69 100%);
  box-shadow: 0 40px 70px -20px rgba(20,14,24,0.6), 0 14px 26px -10px rgba(20,14,24,0.4);
}
/* physical side buttons */
.phone-frame::before,
.phone-frame::after {
  content: ""; position: absolute; width: 4px; background: #0A0D12; border-radius: 2px; z-index: 1;
}
.phone-frame::before { left: -5px; top: 22%; height: 16%; }   /* volume cluster (approx) */
.phone-frame::after  { right: -5px; top: 33%; height: 12%; }  /* power */

.phone-body {
  position: relative; z-index: 2; width: 100%; height: 100%;
  background: #0F141C; border-radius: var(--pr);
  padding: calc(var(--pw) * 0.032);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.10), inset 2px 2px 5px rgba(255,255,255,0.08), inset -3px -4px 9px rgba(0,0,0,0.6);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--pr) * 0.78);
  overflow: hidden; position: relative;
  background: #EEF0F2;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}
.phone-screen .island {
  position: absolute; top: calc(var(--pw) * 0.03); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * 0.28); height: calc(var(--pw) * 0.055);
  background: #0F141C; border-radius: 20px; z-index: 10;
}
.phone-screen .glare {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 22%);
}
/* app screenshot fills the screen area inside the frame */
.app-shot {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}

/* ---- recreated app screens ---- */
.app-screen {
  width: 100%; height: 100%; background: #EEF0F2;
  display: flex; flex-direction: column;
  font-family: var(--font-sans); color: #1F2733;
}
.as-status { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 2px; font-size: 9px; font-weight: 600; }
.as-batt { display: inline-block; width: 14px; height: 7px; border: 1px solid #1F2733; border-radius: 2px; position: relative; }
.as-batt::after { content: ""; position: absolute; inset: 1px; right: 4px; background: #1F2733; border-radius: 1px; }
.as-topbar { display: flex; align-items: center; justify-content: center; padding: 4px 14px 8px; position: relative; }
.as-brand { font-family: var(--font-serif); font-size: 12px; font-weight: 600; }
.as-pro { position: absolute; right: 14px; font-size: 7px; font-weight: 700; color: #7A4223; background: #FFE4C9; border-radius: 4px; padding: 1px 4px; }
.as-topbar-back { justify-content: flex-start; }
.as-back { font-size: 12px; font-weight: 700; }
.as-body { flex: 1; overflow: hidden; padding: 2px 14px; }
.as-greet-sm { font-size: 9px; color: #929AA6; margin-bottom: 1px; }
.as-greet { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.as-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.as-row-title { font-size: 11px; font-weight: 600; }
.as-day { font-size: 7px; font-weight: 700; color: #fff; background: #B86B42; border-radius: 4px; padding: 2px 5px; margin-left: 5px; }
.as-progress-label { font-size: 7px; color: #929AA6; margin-bottom: 3px; }
.as-progress { height: 3px; background: #E6E9ED; border-radius: 3px; margin-bottom: 10px; overflow: hidden; }
.as-progress span { display: block; height: 100%; background: #B86B42; border-radius: 3px; }
.as-lesson { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 10px; margin-bottom: 7px; box-shadow: 0 1px 3px rgba(31,39,51,0.05); }
.as-lesson-ic { width: 22px; height: 22px; border-radius: 6px; background: #E7EEF1; flex-shrink: 0; }
.as-lesson-tx { flex: 1; }
.as-lesson-t { font-size: 10px; font-weight: 600; margin-bottom: 2px; }
.as-lesson-m { font-size: 6.5px; color: #929AA6; }
.as-lesson-m em { font-style: normal; color: #5B6573; background: #EEF0F2; border-radius: 3px; padding: 1px 4px; margin-right: 3px; }
.as-chev { color: #929AA6; font-size: 11px; }
.as-tip { background: #E7EEF1; border-radius: 12px; padding: 9px 10px; margin-top: 3px; }
.as-tip-h { font-size: 9px; font-weight: 700; color: #5C8294; margin-bottom: 3px; }
.as-tip-p { font-size: 7.5px; color: #5B6573; line-height: 1.6; }
.as-nav { display: flex; justify-content: space-around; padding: 8px 6px 9px; border-top: 1px solid #E6E9ED; background: #fff; }
.as-nav span { font-size: 7px; color: #929AA6; }
.as-nav span.on { color: #B86B42; font-weight: 700; }
/* score screen */
.as-score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.as-score { width: 52px; height: 52px; border-radius: 12px; background: #1B2330; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 26px; }
.as-score-meta { font-size: 11px; font-weight: 600; }
.as-score-meta .dim { font-size: 9px; font-weight: 400; color: #5B6573; margin-top: 4px; }
.as-pill { display: flex; align-items: center; justify-content: space-between; background: #FFE4C9; border-radius: 10px; padding: 7px 10px; margin-bottom: 12px; font-size: 9px; font-weight: 600; color: #7A4223; }
.as-metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.as-metric { background: #fff; border-radius: 10px; padding: 8px 9px; box-shadow: 0 1px 3px rgba(31,39,51,0.05); }
.as-metric-l { font-size: 8px; color: #5B6573; margin-bottom: 4px; }
.as-metric-v { font-family: var(--font-display); font-size: 17px; color: #1F2733; }
.as-metric-v em { font-style: normal; font-size: 8px; color: #929AA6; margin-left: 1px; }

/* ---- floating data chips ---- */
.data-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 9px;
  background: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(62,43,54,0.06);
  border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 12px 30px -12px rgba(62,43,54,0.22);
}
.chip-a { left: -92px; top: 52px; }
.chip-b { left: -70px; bottom: 36px; }
.chip-ic { width: 30px; height: 30px; border-radius: 9px; background: #FBEDE4; display: flex; align-items: center; justify-content: center; }
.chip-tx { display: flex; flex-direction: column; }
.chip-l { font-size: 9px; color: #929AA6; font-weight: 500; margin-bottom: 1px; }
.chip-v { font-family: var(--font-display); font-size: 22px; line-height: 1; color: #1F2733; }
.chip-v em { font-style: normal; font-size: 11px; color: var(--clay-500); font-weight: 600; margin-left: 1px; }
.chip-v em.green { color: var(--sage-500); }

@media (max-width: 900px) {
  .app-intro-grid { flex-direction: column; gap: 60px; }
  .app-intro-copy, .app-intro-visual { width: 100%; }
  .app-intro-lead { max-width: none; }
  .phone-back { right: -110px; }
}
@media (max-width: 768px) {
  #app-intro.app-intro { padding: 64px 0 56px; }
  .app-intro-title { font-size: 1.9rem; }
  .app-intro-actions { align-items: stretch; }
  /* stack the carousel and its dots vertically (dots go to the bottom) */
  .app-intro-visual { width: 100%; flex-direction: column; align-items: center; }

  /* phones become a centered, swipeable carousel */
  .phones-stage {
    transform: none;
    display: flex;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0 6px;
  }
  .phones-stage::-webkit-scrollbar { display: none; }

  .phone-slide {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
  }
  /* both phones upright, same size, no overlap in the carousel */
  .phones-stage .phone-frame { transform: none; }
  .phones-stage .phone-back {
    position: static;
    right: auto; bottom: auto;
    --pw: 252px !important;
  }
  /* drop the 3D extruded edge + side buttons (only makes sense when tilted);
     give the phone a clean soft shadow instead of the black plate */
  .phones-stage .phone-edge { display: none; }
  .phones-stage .phone-frame::before,
  .phones-stage .phone-frame::after { display: none; }
  .phones-stage .phone-body {
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.10),
                0 20px 44px -18px rgba(62,43,54,0.40);
  }
  /* floating chips don't fit a narrow scroller — hide them on mobile */
  .data-chip { display: none; }

  /* pagination dots */
  .phone-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
  }
  .phone-dot {
    width: 8px; height: 8px; padding: 0;
    border: none; border-radius: 50%;
    background: var(--oat-300);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
  }
  .phone-dot.active {
    background: var(--clay-500);
    transform: scale(1.25);
  }
}

/* =================== Type Quiz (plum) =================== */
.type-quiz {
  background: var(--plum-600);
  padding: 76px 0;
  position: relative;
  overflow: hidden;
}
.type-quiz::before {
  content: ""; position: absolute; right: -4%; top: -30%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,127,45,0.28), transparent 65%);
}
.type-quiz .container { position: relative; z-index: 2; }
.tq-teaser { max-width: 700px; }
.tq-teaser .eyebrow { color: var(--dawn-300); }
.type-quiz .tq-teaser h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  color: #fff; line-height: 1.25; margin-bottom: 1.25rem; font-weight: 600;
}
.type-quiz .tq-teaser p { color: rgba(246,239,226,0.78); font-size: 1.0625rem; line-height: 1.8; }
.type-quiz .tq-cta-btn {
  background: var(--clay-500); border-radius: var(--radius-full);
  box-shadow: 0 8px 20px -6px rgba(184,107,66,0.5); padding: 14px 26px;
}
.type-quiz .tq-cta-btn:hover { background: var(--clay-600); transform: translateY(-1px); }

/* =================== Why Choose =================== */
.why-choose { background: var(--oat-50); padding: 100px 0; }
.why-choose .why-head { text-align: center; margin-bottom: 56px; }
.why-choose .why-head h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem);
  color: var(--plum-600); letter-spacing: -0.02em; line-height: 1.2; text-align: center;
}
.why-choose .why-head h2 span { display: block; }
.why-choose-image { border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); }
.why-card {
  background: #fff; border: 1px solid var(--oat-200);
  border-top: 1px solid var(--oat-200);  /* override the old clay top-border */
  border-radius: var(--radius-xl);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
}
.why-card-icon {
  width: 44px; height: 44px; border-radius: 13px; background: var(--clay-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--clay-500); margin-bottom: 15px; font-size: 0;
}
.why-card-icon svg { width: 22px; height: 22px; display: block; }
.why-card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--plum-600); margin-bottom: 8px; line-height: 1.4; }
.why-card p { font-size: 0.875rem; line-height: 1.65; color: var(--plum-400); }

@media (max-width: 768px) {
  .why-card-icon { font-size: 0; }
  .why-card-icon svg { width: 20px; height: 20px; }
}

/* =================== Efficacy (dark "night") =================== */
.efficacy.section-alt {
  background: radial-gradient(120% 100% at 50% 0%, #3E2B36 0%, #2E1F28 45%, #18101A 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}
.efficacy.section-alt::before {
  content: ""; position: absolute; left: 50%; top: -40px; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,127,45,0.16), transparent 65%);
}
.efficacy.section-alt .container { position: relative; z-index: 2; }
.efficacy.section-alt h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: #fff;
}
.efficacy.section-alt .section-subtitle { color: rgba(246,239,226,0.72); }
.efficacy.section-alt .cbti-intro-item h3 { color: var(--dawn-300); font-size: 1.1875rem; }
.efficacy.section-alt .cbti-intro-item p { color: rgba(246,239,226,0.75); line-height: 1.8; }
.efficacy.section-alt .cbti-intro-image img { box-shadow: 0 24px 60px -16px rgba(0,0,0,0.6); }
.efficacy.section-alt .efficacy-section-heading { color: #fff; border-top-color: rgba(255,255,255,0.12); }

.efficacy.section-alt .efficacy-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  box-shadow: none;
}
.efficacy.section-alt .efficacy-stat-card:hover { transform: none; box-shadow: none; }
.efficacy.section-alt .stat-number { font-family: var(--font-display); font-weight: 400; color: var(--dawn-300); }
.efficacy.section-alt .stat-label { color: #fff; }
.efficacy.section-alt .stat-detail { color: rgba(246,239,226,0.62); }

.efficacy.section-alt .efficacy-comparison {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  box-shadow: none;
}
.efficacy.section-alt .efficacy-comparison h3 { color: #fff; }
.efficacy.section-alt .bar-label { color: rgba(246,239,226,0.7); }
.efficacy.section-alt .bar-columns { background: rgba(255,255,255,0.03); }
.efficacy.section-alt .bar-value { color: rgba(246,239,226,0.85); }
.efficacy.section-alt .cbti-tag { color: var(--dawn-300); }
.efficacy.section-alt .med-tag { color: rgba(246,239,226,0.55); }
.efficacy.section-alt .bar-track-v { background: rgba(255,255,255,0.08); }
.efficacy.section-alt .med-fill { background: rgba(246,239,226,0.16); }
.efficacy.section-alt .cbti-fill { background: linear-gradient(180deg, var(--dawn-400), var(--clay-500)); }

/* bright endorsements band — logos sit directly, no white cards */
.efficacy.section-alt .efficacy-guidelines {
  background: var(--oat-50);
  border-radius: var(--radius-2xl);
  padding: 34px 40px;
  margin-top: 56px;
}
.efficacy.section-alt .efficacy-guidelines h3 {
  font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum-300);
  margin-bottom: 24px;
}
.efficacy.section-alt .guidelines-grid {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px); flex-wrap: wrap;
}
.efficacy.section-alt .guideline-badge { background: transparent; }
/* Uniform height + auto width keeps the four logos optically equal and
   gives the AASM SVG (viewBox-only, no intrinsic px size) a real height so
   it no longer collapses to zero width. */
.efficacy.section-alt .badge-logo {
  height: 38px;
  width: auto;
  max-width: 220px;
  max-height: none;
  object-fit: contain;
}

/* =================== How it works (interactive) =================== */
.how-to-use {
  background: var(--oat-100) !important;
  padding: 100px 0;
  overflow: hidden;
}
.how-to-use .how-head { text-align: center; margin-bottom: 56px; }
.how-to-use .eyebrow { color: var(--clay-500); }
.how-to-use h2 {
  color: var(--plum-600) !important;
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.02em; line-height: 1.2;
}
.how-to-use h2 span { display: block; }
.how-layout { display: flex; align-items: center; gap: 30px; }
.how-steps { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.how-step {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius-lg);
  background: transparent; border: 1px solid transparent;
  /* reset the old dark-card styles */
  flex-direction: row; box-shadow: none; text-align: left;
  transition: all 0.25s var(--ease-out);
}
.how-step.active { background: #fff; border-color: var(--oat-200); box-shadow: var(--shadow); }
.how-step .step-number {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--oat-100); color: var(--plum-300);
  border: 1px solid var(--oat-200);
  font-family: var(--font-display); font-size: 18px; font-weight: 500; margin-bottom: 0;
  transition: all 0.25s;
}
.how-step.active .step-number { background: var(--clay-500); color: #fff; border-color: transparent; }
.step-tx { min-width: 0; }
.step-t { font-size: 1.125rem; font-weight: 600; color: var(--plum-400); margin-bottom: 4px; transition: color 0.25s; }
.how-step.active .step-t { color: var(--plum-600); }
.step-d {
  font-size: 0.9rem; line-height: 1.7; color: var(--plum-400);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.how-step.active .step-d { max-height: 120px; opacity: 1; }
.how-visual { flex: 0 0 auto; width: 380px; display: flex; justify-content: center; position: relative; }
.how-glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #FFE4C9 0%, #FBEDE4 45%, transparent 70%);
}
.how-img {
  position: absolute; z-index: 2;
  opacity: 0; transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.how-img.active { opacity: 1; pointer-events: auto; }
.how-visual { min-height: 560px; }

@media (max-width: 900px) {
  .how-layout { flex-direction: column; gap: 48px; }
  .how-visual { width: 100%; }
  .how-step .step-d { max-height: 120px; opacity: 1; }  /* expand all on small screens */
}

/* =================== Pricing =================== */
.pricing { background: var(--oat-50); padding: 100px 0; }
.pricing .eyebrow { color: var(--clay-500); }
.pricing h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: var(--plum-600);
  letter-spacing: -0.02em; margin-bottom: 2.5rem;
}
.comparison-table table { border-radius: var(--radius-2xl); box-shadow: var(--shadow); }
.comparison-table thead { background: var(--clay-500); }
.comparison-table th.highlighted { background: var(--clay-600); }
.comparison-table tbody td:nth-child(3) { background: var(--clay-50); }
.comparison-table td { border-bottom: 1px solid var(--oat-200); }
.comparison-table tbody tr:nth-child(even) { background: var(--oat-100); }
.comparison-table tbody tr:nth-child(even) td:nth-child(3) { background: var(--clay-50); }
.trial-info {
  background: var(--oat-100) !important;
  border: 1px solid var(--oat-200);
  border-left: 4px solid var(--clay-400) !important;
  border-radius: var(--radius-md) !important;
}

/* =================== FAQ =================== */
.faq { background: var(--oat-100); padding: 100px 0; }
.faq .eyebrow { color: var(--clay-500); }
.faq h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 3.4vw, 2.875rem); color: var(--plum-600); letter-spacing: -0.02em;
}
.faq-item {
  box-shadow: none; border-radius: 0;
  border-bottom: 1px solid var(--oat-200);
  margin-bottom: 0;
}
.faq-question { font-size: 1.125rem; font-weight: 600; color: var(--plum-600); padding: 24px 4px; background: transparent; }
.faq-question:hover { background: transparent; }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--oat-100); color: var(--plum-400);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
}
.faq-item.active .faq-icon { background: var(--clay-500); color: #fff; }
.faq-answer { background: transparent; }
.faq-item.active .faq-answer { padding: 0 4px 24px; }
.faq-answer p { color: var(--plum-400); line-height: 1.85; }

/* =================== References (inside dark efficacy section) =================== */
.efficacy-citations-inner {
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}
.efficacy-citations-inner h4 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 239, 226, 0.45);
  margin-bottom: 16px;
}
.efficacy-citations-inner .citations-list li {
  color: rgba(246, 239, 226, 0.5);
}

/* =================== Footer =================== */
footer { background: var(--plum-800); color: rgba(246,239,226,0.7); }
.footer-title { color: var(--oat-100); }
.footer-links a { color: rgba(246,239,226,0.7); }
.footer-links a:hover { color: var(--clay-300); }
.footer-copyright { color: rgba(246,239,226,0.5); }

/* =================== Pain Points · "凌晨三點" night narrative =================== */
.pain-points {
  position: relative;
  /* night falls: a warm dusk glow lingers top-right by the moon,
     deepening into night, then easing toward the plum quiz below */
  background:
    radial-gradient(130% 80% at 82% -10%, rgba(253,183,114,0.20), rgba(253,183,114,0.05) 38%, transparent 60%),
    linear-gradient(180deg, #281b27 0%, #19111b 50%, #1e1521 100%);
  padding: 96px 0 104px;
  overflow: hidden;
}

/* decorative sky — twinkling stars + a drifting crescent moon */
.pp-sky { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pp-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 24%, rgba(255,255,255,0.75), transparent),
    radial-gradient(1.4px 1.4px at 78% 18%, rgba(255,244,234,0.65), transparent),
    radial-gradient(1px 1px at 32% 14%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 56% 33%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.6px 1.6px at 90% 46%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 22% 52%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.4px 1.4px at 64% 9%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 45% 64%, rgba(255,255,255,0.32), transparent),
    radial-gradient(1px 1px at 7% 42%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 95% 28%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 38% 44%, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  animation: ppStarsIn 5s ease 0.2s forwards, ppTwinkle 5.5s ease-in-out 1.2s infinite alternate;
}
@keyframes ppStarsIn { to { opacity: 1; } }
@keyframes ppTwinkle { from { opacity: 0.9; } to { opacity: 0.45; } }

.pp-moon {
  position: absolute; top: 56px; right: 7%;
  color: var(--dawn-200);
  filter: drop-shadow(0 0 24px rgba(253,183,114,0.55));
  opacity: 0.92;
  animation: ppFloat 7s ease-in-out infinite;
}
@keyframes ppFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pain-points .container { position: relative; z-index: 2; }

/* header */
.pp-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.pp-eyebrow { color: var(--dawn-300); }
.pain-points .pp-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600; line-height: 1.22; color: #fff;
  letter-spacing: -0.01em; margin-bottom: 1.1rem; text-align: center;
}
.pp-title .pp-clock { color: var(--dawn-300); }
.pp-intro { color: rgba(246,239,226,0.72); font-size: 1.0625rem; line-height: 1.85; }

/* cards — CSS columns let the uneven cards pack like scattered notes */
.pp-cards { display: flex; gap: 22px; max-width: 1100px; margin: 0 auto; align-items: stretch; }
.pp-card {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-xl);
  padding: 24px 24px 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.7);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.pp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(253,183,114,0.35);
  background: rgba(255,255,255,0.065);
}
.pp-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pp-ic {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--dawn-300);
  background: rgba(253,183,114,0.12);
  border: 1px solid rgba(253,183,114,0.18);
}
.pp-ic svg { width: 20px; height: 20px; }
.pp-card-top h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem; font-weight: 600; line-height: 1.35; color: #fff;
}
.pp-quotes { list-style: none; margin: 0; padding: 0; }
.pp-quotes li {
  position: relative;
  padding: 9px 0 9px 26px;
  color: rgba(246,239,226,0.86);
  font-family: var(--font-serif);
  font-size: 0.975rem; line-height: 1.5;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pp-quotes li:first-child { border-top: 0; }
.pp-quotes li::before {
  content: "\201C";
  position: absolute; left: 0; top: 16px;
  font-family: var(--font-display);
  font-size: 1.5rem; line-height: 0;
  color: var(--dawn-300); opacity: 0.7;
}

/* closing bridge → hands off to the quiz */
.pp-bridge { text-align: center; margin-top: 52px; }
.pp-bridge p { color: rgba(246,239,226,0.68); font-size: 1.0625rem; line-height: 1.75; }
.pp-bridge .pp-bridge-strong {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 600; color: #fff; margin-top: 6px;
}
.pp-bridge-hint {
  display: block; margin-top: 28px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dawn-300);
}
.pp-bridge-chevron {
  display: inline-flex; margin-top: 6px;
  color: var(--dawn-300);
  animation: ppNudge 1.8s ease-in-out infinite;
}
@keyframes ppNudge { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(6px); opacity: 1; } }

@media (max-width: 768px) {
  .pain-points { padding: 64px 0 72px; }
  .pp-head { margin-bottom: 38px; }
  .pp-cards { flex-direction: column; max-width: 460px; }
  .pp-moon { top: 32px; right: 6%; width: 46px; height: 46px; }
  .pp-bridge { margin-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-stars, .pp-moon, .pp-bridge-chevron { animation: none; }
  .pp-stars { opacity: 1; }
}

/* =================== Mobile section spacing — halved vertical paddings =================== */
@media (max-width: 768px) {
  section { padding: 40px 0; }                       /* was 60px 0 */
  #app-intro.app-intro { padding: 32px 0 28px; }     /* was 64px 0 56px */
  .why-choose { padding: 50px 0; }                   /* was 100px 0 */
  .efficacy.section-alt { padding: 50px 0; }         /* was 100px 0 */
  .how-to-use { padding: 40px 0; }                   /* was 100px 0 */
  .pricing { padding: 50px 0; }                      /* was 100px 0 */
  .faq { padding: 50px 0; }                          /* was 100px 0 */
  .pain-points { padding: 32px 0 36px; }             /* was 64px 0 72px */
}
