/* ===== ULTIMATE PASTEL PINK DESIGN SYSTEM ===== */

/* CSS Variables - Pastel Pink Theme */
:root {
  /* Primary Pastel Pink Palette */
  --primary-pink: #ff69b4;
  --soft-pink: #ffb3d1;
  --light-pink: #ffe4f1;
  --pale-pink: #fce4ec;
  --blush-pink: #f8bbd9;

  /* Accent Colors */
  --lavender: #e1bee7;
  --rose-gold: #f4a6c7;
  --peach: #ffcccb;
  --cream: #fff8e1;

  /* Background Gradients */
  --bg-gradient: linear-gradient(
    135deg,
    #ffe4f1 0%,
    #fce4ec 25%,
    #f8bbd9 50%,
    #e1bee7 75%,
    #fff8e1 100%
  );
  --card-gradient: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 182, 193, 0.1) 100%
  );
  --hero-gradient: linear-gradient(
    135deg,
    #ff69b4 0%,
    #ffb3d1 25%,
    #ffe4f1 50%,
    #fce4ec 75%,
    #e1bee7 100%
  );

  /* Text Colors */
  --text-primary: #2d1b2e;
  --text-secondary: #5d4e75;
  --text-accent: #8e44ad;
  --text-light: #9575cd;

  /* Shadows & Effects */
  --shadow-soft: 0 8px 32px rgba(255, 105, 180, 0.15);
  --shadow-medium: 0 12px 40px rgba(255, 105, 180, 0.25);
  --shadow-strong: 0 20px 60px rgba(255, 105, 180, 0.35);
  --glow-pink: 0 0 30px rgba(255, 105, 180, 0.4);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Layout & Type Scales */
  --content-measure: 70ch; /* ideal reading width */
  --section-gap: clamp(2.5rem, 5vw, 6rem);
  --nav-offset: 88px; /* used for anchor offset */
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent fixed nav from covering anchor targets */
  scroll-padding-top: var(--nav-offset);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Section rhythm for consistent vertical spacing */
section {
  margin-block: var(--section-gap);
}

/* Large, repeated sections: improve scroll perf on long pages */
.content-section {
  content-visibility: auto;
  contain-intrinsic-size: 1000px 800px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-wrap: balance;
}

/* Fluid type scale tuned for 2025 devices */
h1 {
  font-size: clamp(2.25rem, 2.5vw + 1.5rem, 3.5rem);
}
h2 {
  font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem);
}
h3 {
  font-size: clamp(1.6rem, 1.5vw + 0.9rem, 2.2rem);
}
h4 {
  font-size: clamp(1.35rem, 1vw + 0.8rem, 1.8rem);
}
h5 {
  font-size: clamp(1.15rem, 0.6vw + 0.85rem, 1.4rem);
}
h6 {
  font-size: clamp(1.05rem, 0.4vw + 0.85rem, 1.2rem);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: var(--primary-pink);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-accent);
  text-shadow: 0 0 8px rgba(255, 105, 180, 0.3);
}

/* Improve long-form readability inside content blocks */
.content-card p,
.content-card li,
.content-card blockquote,
.content-card code,
.content-card pre {
  max-width: var(--content-measure);
}

.content-card ul,
.content-card ol {
  margin-left: 1.25rem;
  padding-left: 0.25rem;
}

.content-card a,
p a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--card-gradient);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  border-radius: 25px;
  width: 90%;
  max-width: 1750px;
  padding: 1rem 2rem;
}

.navbar.scrolled {
  box-shadow: var(--shadow-medium);
  transform: translateX(-50%) translateY(-2px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.1),
    rgba(255, 179, 209, 0.1)
  );
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.nav-brand:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.2),
    rgba(255, 179, 209, 0.2)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

.nav-icon {
  font-size: 1.6rem;
  animation: float 3s ease-in-out infinite;
}

.nav-title {
  background: linear-gradient(135deg, var(--primary-pink), var(--text-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0.6rem;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 105, 180, 0.2);
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.1);
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  border-radius: 18px;
  transition: var(--transition-smooth);
  position: relative;
  background: transparent;
  font-size: 0.9rem;
}

.nav-link:hover {
  color: var(--primary-pink);
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.15),
    rgba(255, 179, 209, 0.15)
  );
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-pink);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

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

.bar {
  width: 25px;
  height: 3px;
  background: var(--primary-pink);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hearts" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><text x="10" y="15" text-anchor="middle" font-size="12" fill="rgba(255,105,180,0.1)">💕</text></pattern></defs><rect width="100" height="100" fill="url(%23hearts)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.decoration {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  animation: float 4s ease-in-out infinite;
}

.decoration:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.decoration:nth-child(2) {
  top: 30%;
  right: 15%;
  animation-delay: 1s;
}
.decoration:nth-child(3) {
  top: 60%;
  left: 20%;
  animation-delay: 2s;
}
.decoration:nth-child(4) {
  top: 70%;
  right: 10%;
  animation-delay: 3s;
}
.decoration:nth-child(5) {
  top: 40%;
  left: 5%;
  animation-delay: 1.5s;
}
.decoration:nth-child(6) {
  top: 80%;
  right: 25%;
  animation-delay: 2.5s;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: 4rem;
  font-weight: 700;
}

.title-main {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.title-accent {
  display: block;
  background: linear-gradient(
    135deg,
    var(--primary-pink),
    var(--text-accent),
    var(--lavender)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--rose-gold));
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  transition: var(--transition-bounce);
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-strong);
  color: white;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.scroll-line {
  width: 2px;
  height: 30px;
  background: var(--primary-pink);
  margin: 0 auto 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

/* ===== TABLE OF CONTENTS ===== */
.toc-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 182, 193, 0.1) 100%
  );
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-pink), var(--text-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Utility: gradient text for headings or inline elements */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-pink), var(--text-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Community & Support: gradient the section decoration (emoji row) */
#community-support .section-decoration {
  background: linear-gradient(135deg, var(--primary-pink), var(--text-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

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

.toc-card {
  background: var(--card-gradient);
  border-radius: 25px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.toc-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(255, 105, 180, 0.4);
}

.toc-card-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.8rem;
}

.toc-list a {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 15px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  font-weight: 500;
}

.toc-list a:hover {
  background: rgba(255, 105, 180, 0.1);
  color: var(--primary-pink);
  transform: translateX(5px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding: 4rem 0;
}

.content-section {
  margin-bottom: 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-decoration {
  font-size: 2rem;
  margin-top: 1rem;
  animation: float 3s ease-in-out infinite;
}

.content-card {
  background: var(--card-gradient);
  border-radius: 25px;
  padding: 3rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

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

/* ===== PILLARS SECTION ===== */
.pillars-section {
  margin-top: 2rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--primary-pink);
  transition: var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-soft);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pillar-icon {
  font-size: 1.5rem;
}

.pillar-card h5 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin: 0;
}

.pillar-card ul {
  list-style: none;
  padding-left: 0;
}

.pillar-card li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.pillar-card li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* ===== PSYCHOLOGY SECTION ===== */
.psychology-section {
  margin-top: 2rem;
}

.psychology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.psychology-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start; /* top-align icon and text */
  text-align: left;
  height: 100%;
}

.psychology-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.psychology-icon {
  font-size: 1.5rem; /* consistent icon size */
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--light-pink), var(--soft-pink));
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(255, 105, 180, 0.15);
  flex: 0 0 2.25rem;
  margin-top: 0.2rem; /* align circle with text block */
}

.psychology-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.psychology-item h6 {
  color: var(--primary-pink);
  margin-bottom: 0.8rem;
}

/* ===== COMPARISON CARDS ===== */
.comparison-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 2px solid;
  transition: var(--transition-smooth);
}

.comparison-card.positive {
  border-color: rgba(76, 175, 80, 0.3);
  background: linear-gradient(
    135deg,
    rgba(76, 175, 80, 0.05),
    rgba(255, 255, 255, 0.8)
  );
}

.comparison-card.negative {
  border-color: rgba(244, 67, 54, 0.3);
  background: linear-gradient(
    135deg,
    rgba(244, 67, 54, 0.05),
    rgba(255, 255, 255, 0.8)
  );
}

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

/* ===== LANGUAGE TOOLKIT ===== */
.transformation-table h4 {
  margin-bottom: 0.75rem;
}

.table-container {
  --radius: 14px;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  overflow: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 105, 180, 0.2);
  box-shadow: var(--shadow-soft);
}

table.transformation-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 720px;
}

table.transformation-table th,
table.transformation-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 105, 180, 0.2);
}

table.transformation-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

table.transformation-table tbody tr:hover {
  background: rgba(255, 105, 180, 0.06);
}

/* Column sizing for fixed layout */
table.transformation-table th:nth-child(1),
table.transformation-table td:nth-child(1) {
  width: 22%;
}
table.transformation-table th:nth-child(2),
table.transformation-table td:nth-child(2) {
  width: 34%;
}
table.transformation-table th:nth-child(3),
table.transformation-table td:nth-child(3) {
  width: 44%;
}

table.transformation-table td {
  overflow-wrap: anywhere;
}

.softening-words {
  margin-top: 2rem;
}

.word-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.word-category {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.word-category h5 {
  margin-bottom: 0.35rem;
}
.word-tags {
  display: block;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== EMOJI TIERS ===== */
.emoji-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== DOCUMENT EMBED (TXT Appendix) ===== */
.doc-embed {
  width: 100%;
  height: min(80vh, 900px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 105, 180, 0.25);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.85);
}

.doc-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.cta-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary-pink);
  font-weight: 600;
}

/* Markdown import styling */
.md-content h3 {
  margin-top: 1.5rem;
}
.md-content h4 {
  margin-top: 1rem;
}
.md-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}
.md-content ol {
  margin: 0.5rem 0 1rem 1.25rem;
}
.md-content li {
  margin: 0.25rem 0;
}
.md-pre {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 12px;
  padding: 1rem;
  overflow: auto;
}

.emoji-tier {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
}

.emoji-tier:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.emoji-tier h4 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
  text-align: center;
}

.emoji-tier ul {
  list-style: none;
  padding: 0;
}

.emoji-tier li {
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 105, 180, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.emoji-tier li:hover {
  background: rgba(255, 105, 180, 0.2);
  transform: translateX(5px);
}

/* ===== TECHNIQUE CARDS ===== */
.technique-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 5px solid var(--lavender);
  transition: var(--transition-smooth);
}

.technique-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-soft);
}

.technique-card h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ===== SOUND TIERS ===== */
.sound-tier {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
}

.sound-tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.sound-tier h4 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  text-align: center;
}

.sound-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.sound-item {
  background: rgba(255, 105, 180, 0.1);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.sound-item:hover {
  background: rgba(255, 105, 180, 0.2);
  transform: scale(1.05);
}

/* ===== INTEGRATION EXAMPLES ===== */
.integration-examples {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.integration-examples h4 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  text-align: center;
}

.integration-examples p {
  background: rgba(255, 105, 180, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 4px solid var(--primary-pink);
}

/* ===== ACTION ITEMS ===== */
.action-item {
  display: inline-block;
  background: rgba(255, 105, 180, 0.15);
  padding: 0.5rem 1rem;
  margin: 0.3rem;
  border-radius: 20px;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 105, 180, 0.3);
}

.action-item:hover {
  background: rgba(255, 105, 180, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
}

/* ===== PETNAME TIERS ===== */
.petname-tier {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
}

.petname-tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.petname-tier h4 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  text-align: center;
}

.petname-item {
  display: inline-block;
  background: rgba(255, 105, 180, 0.1);
  padding: 0.8rem 1.2rem;
  margin: 0.5rem;
  border-radius: 25px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.petname-item:hover {
  background: rgba(255, 105, 180, 0.2);
  transform: scale(1.05);
  color: var(--primary-pink);
}

/* ===== TRANSFORMATION ITEMS ===== */
.transformation-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--lavender);
  transition: var(--transition-smooth);
}

.transformation-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-soft);
}

.transformation-item h6 {
  color: var(--primary-pink);
  margin-bottom: 0.8rem;
}

/* ===== VOCAL EXAMPLES ===== */
.vocal-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.vocal-item {
  background: rgba(255, 105, 180, 0.1);
  padding: 1rem;
  border-radius: 15px;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 105, 180, 0.2);
}

.vocal-item:hover {
  background: rgba(255, 105, 180, 0.2);
  transform: scale(1.05);
}

/* ===== WEEK CARDS ===== */
.week-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.week-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 105, 180, 0.2);
  transition: var(--transition-smooth);
}

.week-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.week-card h4 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
  text-align: center;
}

/* ===== WEEK CHALLENGES (Days 1–14) ===== */
.week-goal,
.daily-commitment {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.week-goal h4,
.daily-commitment h4 {
  margin-bottom: 0.25rem;
}

.daily-challenges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.challenge-day {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.challenge-day:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.challenge-day h4 {
  margin-bottom: 0.6rem;
}

.challenge-tasks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.challenge-tasks label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.challenge-tasks input[type="checkbox"] {
  margin-top: 0.2rem; /* better alignment with wrapped lines */
  accent-color: var(--primary-pink);
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(
    135deg,
    var(--soft-pink) 0%,
    var(--light-pink) 25%,
    var(--pale-pink) 50%,
    var(--blush-pink) 75%,
    var(--lavender) 100%
  );
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  margin: 6rem 1rem 0;
  border-radius: 25px;
  border: 1px solid rgba(255, 105, 180, 0.2);
  box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-pink);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
}

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

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
  display: block;
  border-radius: 8px;
}

.footer-section a:hover {
  color: var(--primary-pink);
  background: rgba(255, 255, 255, 0.3);
  padding-left: 1rem;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 105, 180, 0.3);
  color: var(--text-secondary);
  font-weight: 500;
}

/* ===== INTERACTIVE ELEMENTS ===== */
.interactive-element {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.interactive-element:hover {
  transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(1.2);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: var(--shadow-soft);
  }
  50% {
    box-shadow: var(--glow-pink);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  /* Improve performance on mobile by avoiding fixed backgrounds */
  body {
    background-attachment: scroll;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 2rem;
    transition: var(--transition-smooth);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

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

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

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

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .emoji-tiers,
  .sound-examples,
  .vocal-examples,
  .week-cards {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 1rem;
  }

  .content-card {
    padding: 2rem;
  }

  h1 {
    font-size: clamp(2rem, 5vw + 1rem, 2.5rem);
  }
  h2 {
    font-size: clamp(1.6rem, 4vw + 0.8rem, 2rem);
  }
  h3 {
    font-size: clamp(1.4rem, 3vw + 0.7rem, 1.8rem);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .content-card {
    padding: 1.5rem;
  }

  .toc-card {
    padding: 1.5rem;
  }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 105, 180, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-pink);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-accent);
}

/* ===== SELECTION STYLING ===== */
::selection {
  background: rgba(255, 105, 180, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(255, 105, 180, 0.3);
  color: var(--text-primary);
}

/* ===== FOCUS STYLING ===== */
:focus-visible {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}

/* Ensure anchor-linked elements are not hidden beneath fixed nav */
[id] {
  scroll-margin-top: var(--nav-offset);
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero,
  .toc-section,
  footer {
    display: none;
  }

  .main-content {
    padding: 0;
  }

  .content-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ===== FIXES & REFINEMENTS ===== */
/* Replace broken hero overlay with subtle dotted pattern */
.hero::before {
  background-image: radial-gradient(
    rgba(255, 105, 180, 0.12) 1px,
    transparent 1px
  ) !important;
  background-size: 20px 20px !important;
}

/* Headings spacing inside content cards */
.content-card h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}
.content-card h4 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.content-card h5 {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
}

/* Lists spacing inside content cards */
.content-card ul,
.content-card ol {
  margin: 0.25rem 0 0.9rem 1.1rem;
}
.content-card li {
  margin: 0.2rem 0;
}

/* Table container mobile scroll */
.table-container {
  -webkit-overflow-scrolling: touch;
}
