/* ============================================================================
   SEASONWISE - GLOBAL STYLES
   Aesthetic: Premium, minimal, "Aesop meets Song Dynasty"
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Noto+Serif+SC:wght@300;400;500;600&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #F9F8F6; /* Rice paper / parchment */
  --bg-secondary: #F0EFEA; /* Slightly deeper tone */
  --bg-tertiary: #E8E6E1;

  --text-primary: #1C1B1A; /* Soft ink black */
  --text-secondary: #5C5A56; /* Diluted ink */
  --text-tertiary: #8C8881; /* Stone */

  --accent-sage: #6B7A62; /* Celadon / Song Dynasty green */
  --accent-sage-light: #A5B09E;
  --accent-sage-mist: #E8ECE6;

  --accent-rust: #A65D4F; /* Cinnabar seal red */

  --border-color: rgba(28, 27, 26, 0.08);
  --border-color-dark: rgba(28, 27, 26, 0.15);

  /* Typography */
  --font-serif: "Noto Serif SC", "Songti SC", "Playfair Display", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout & Misc */
  --max-width: 1200px;
  --nav-height: 80px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);

  /* Constitution type colors (overridden per type via inline style) */
  --type-color: var(--accent-sage);
  --type-color-light: var(--accent-sage-light);
  --type-color-mist: var(--accent-sage-mist);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img, svg {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.heading-1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

.heading-2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

.heading-3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.body-large {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  line-height: 1.8;
  color: var(--text-secondary);
}

.caption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.tagline-cn {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition-normal);
  cursor: pointer;
  gap: 12px;
}

.btn-primary {
  background-color: var(--accent-sage);
  color: var(--bg-primary);
  border: 1px solid var(--accent-sage);
}

.btn-primary:hover {
  background-color: #5A6952;
  border-color: #5A6952;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-dark);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color-dark);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.btn-text {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn-text:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.btn-icon-round {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-icon-round:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(249, 248, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: transform var(--transition-normal);
}

.nav.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.nav__logo-svg {
  width: 32px;
  height: 32px;
}

.nav__logomark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-sage);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

/* Nav Active State */
.nav__link--active {
  color: var(--accent-sage);
  position: relative;
}
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-sage);
  border-radius: 1px;
}
.nav__quiz-btn {
  padding: 10px 20px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}
.nav__lang-switch {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.5;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 3px;
  margin-left: 0.25rem;
  transition: opacity var(--transition-fast);
}
.nav__lang-switch:hover { opacity: 1; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================================
   VIEWS (SPA CONTAINER)
   ============================================================================ */
.view {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-height);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.view.active {
  display: block;
  opacity: 1;
}

/* ============================================================================
   HOME VIEW
   ============================================================================ */

/* ============================================================================
   HERO — CINEMATIC FULL SCREEN
   ============================================================================ */
.hero-cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(4rem, 8vh, 8rem);
  overflow: hidden;
}
.hero-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-cinematic__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform;
}
.hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(28, 27, 26, 0.75) 0%,
    rgba(28, 27, 26, 0.45) 50%,
    rgba(28, 27, 26, 0.1) 100%
  );
}
.hero-cinematic__watermark {
  position: absolute;
  bottom: -10%;
  right: -5%;
  font-family: var(--font-serif);
  font-size: clamp(300px, 50vw, 600px);
  color: rgba(255, 255, 255, 0.03);
  z-index: 1;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hero-cinematic__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.hero-cinematic__content .caption {
  color: rgba(255, 255, 255, 0.5);
}
.hero-cinematic__content .heading-1 {
  color: white;
  text-shadow: 0 2px 40px rgba(0,0,0,0.15);
}
.hero-cinematic__sub {
  color: rgba(255, 255, 255, 0.7) !important;
  margin-top: 1.5rem;
  max-width: 480px;
}
.hero-cinematic__ctas {
  margin-top: 2.5rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
}
.btn-ghost:hover {
  color: white;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* Scroll indicator */
.hero-cinematic__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-cinematic__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}
.hero-cinematic__scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-cinematic__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

@media (max-width: 768px) {
  .hero-cinematic {
    align-items: center;
    text-align: center;
    padding: var(--nav-height) 0 4rem;
  }
  .hero-cinematic__overlay {
    background: rgba(28, 27, 26, 0.55);
  }
  .hero-cinematic__content {
    max-width: 100%;
  }
  .hero-cinematic__ctas {
    justify-content: center;
  }
  .hero-cinematic__scroll {
    display: none;
  }
}

/* ============================================================================
   BRAND MODULE — IMMERSIVE OVERLAP
   ============================================================================ */
.brand-immersive {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  border-top: none;
}
.brand-immersive__image-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
}
.brand-immersive__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 8s ease-out;
}
.brand-immersive:hover .brand-immersive__img {
  transform: scale(1.03);
}
.brand-immersive__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) 24px;
}
.brand-immersive__card {
  max-width: 480px;
  background: rgba(249, 248, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .brand-immersive {
    min-height: auto;
    flex-direction: column;
    padding: 0;
  }
  .brand-immersive__image-wrap {
    position: relative;
    width: 100%;
    height: 50vh;
  }
  .brand-immersive__content {
    padding: var(--space-lg) 24px;
  }
  .brand-immersive__card {
    max-width: 100%;
    background: var(--bg-primary);
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

/* ============================================================================
   SOLAR CALENDAR — IMMERSIVE WITH BACKGROUND
   ============================================================================ */
.solar-immersive {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-xl) 0;
}
.solar-immersive__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.solar-immersive__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: saturate(0.5);
}
.solar-immersive__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(249,248,246,0.85) 60%, rgba(249,248,246,0.7) 100%);
}
.solar-immersive__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.solar-immersive__text {
  max-width: 480px;
}
.solar-immersive__wheel {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 55vw;
  max-width: 700px;
  min-width: 400px;
  z-index: 1;
  opacity: 0.9;
}

@media (max-width: 1024px) {
  .solar-immersive__wheel {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 420px;
    margin: var(--space-lg) auto 0;
  }
  .solar-immersive {
    flex-direction: column;
    min-height: auto;
    text-align: center;
  }
  .solar-immersive__inner {
    max-width: 100%;
  }
  .solar-immersive__text {
    max-width: 100%;
  }
}

/* ============================================================================
   APP PROMO — DARK CINEMATIC
   ============================================================================ */
.app-cinematic {
  background: var(--text-primary);
  color: var(--bg-primary);
  overflow: hidden;
}
.app-cinematic .section__label {
  color: var(--accent-sage-light);
}
.app-cinematic .heading-2 {
  color: var(--bg-primary);
}
.app-cinematic .body-large {
  color: rgba(249, 248, 246, 0.65);
}
.app-cinematic__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}
.app-cinematic__content {
  max-width: 520px;
}
.app-cinematic .app-promo__feature {
  color: rgba(249, 248, 246, 0.7);
}
.app-cinematic .app-promo__feature-icon {
  color: var(--accent-sage-light);
}
.app-cinematic .form-input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--bg-primary);
}
.app-cinematic .form-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.app-cinematic__phone {
  position: relative;
  max-width: 280px;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}
.app-cinematic__phone:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}
.app-cinematic__phone-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
  .app-cinematic__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-cinematic__phone {
    max-width: 200px;
    margin: 0 auto;
    order: -1;
    transform: none;
  }
  .app-cinematic .app-promo__features {
    align-items: center;
  }
  .app-cinematic .app-promo__notify {
    flex-direction: column;
    margin: var(--space-md) auto 0;
    max-width: 320px;
  }
}

/* ============================================================================
   JOURNAL — IMMERSIVE FEATURE LAYOUT
   ============================================================================ */
.journal-immersive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.journal-feature {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.journal-feature__image {
  flex: 1;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.journal-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.journal-feature:hover .journal-feature__image img {
  transform: scale(1.05);
}
.journal-feature__body {
  padding: 1.5rem 0;
}
.journal-feature__body .heading-3 {
  transition: color 0.3s ease;
}
.journal-feature:hover .journal-feature__body .heading-3 {
  color: var(--accent-sage);
}

.journal-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.journal-card-sm {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background 0.3s ease;
}
.journal-card-sm:hover {
  background: var(--bg-secondary);
}
.journal-card-sm__image {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.journal-card-sm__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.journal-card-sm:hover .journal-card-sm__image img {
  transform: scale(1.08);
}
.journal-card-sm__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.journal-card-sm__body .journal-card__title {
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .journal-immersive {
    grid-template-columns: 1fr;
  }
  .journal-card-sm {
    grid-template-columns: 100px 1fr;
  }
  .journal-card-sm__image {
    width: 100px;
    height: 80px;
  }
}

/* ============================================================================
   TRUST — CINEMATIC WITH BG IMAGE
   ============================================================================ */
.trust-cinematic {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
}
.trust-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.trust-cinematic__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.trust-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 27, 26, 0.8);
}
.trust-cinematic__content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.trust-cinematic__grid {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  margin-top: 3rem;
}
.trust-cinematic__item {
  text-align: center;
}
.trust-cinematic__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.trust-cinematic__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 768px) {
  .trust-cinematic__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* ============================================================================
   CTA — CINEMATIC WITH BG IMAGE
   ============================================================================ */
.cta-cinematic {
  position: relative;
  padding: clamp(4rem, 10vh, 8rem) 0;
  overflow: hidden;
}
.cta-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-cinematic__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 27, 26, 0.7);
}
.cta-cinematic__content {
  position: relative;
  z-index: 2;
}

/* ============================================================================
   TCM PAGE — CINEMATIC HERO
   ============================================================================ */
.tcm-hero-cinematic {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.tcm-hero-cinematic__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tcm-hero-cinematic__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.tcm-hero-cinematic__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 27, 26, 0.6);
}
.tcm-hero-cinematic__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + 4rem) 24px 4rem;
}

/* TCM pillars with real images */
.tcm-pillar__visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.tcm-pillar__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.tcm-pillar:hover .tcm-pillar__visual img {
  transform: scale(1.05);
}

/* Solar terms page header with image */
.solar-terms-header {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}
.solar-terms-header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.solar-terms-header__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.solar-terms-header__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(28, 27, 26, 0.55);
}

/* Journal page cards with real images */
.journal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
   GLOBAL IMAGE ENHANCEMENTS
   ============================================================================ */
img {
  display: block;
}

/* Smooth cursor follower effect class (applied via JS) */
.has-magnetic {
  transition: transform 0.3s ease;
}

/* Section Common */
.section {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-color);
}

.section__header {
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.section__label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 16px;
}

/* ============================================================================
   PAGE HEADER (constitutions, solar terms, journal pages)
   ============================================================================ */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}
.page-header .heading-1 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

/* ============================================================================
   HOME PREVIEW SECTIONS
   ============================================================================ */

/* (home-types-preview removed — replaced by cinematic sections) */

/* (solar-spotlight removed — replaced by cinematic sections) */

/* Journal preview - 2 columns */
.journal-grid--preview {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .journal-grid--preview { grid-template-columns: 1fr; }
}

/* ============================================================================
   QUIZ VIEW
   ============================================================================ */
.quiz-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  position: relative;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 60px;
}

.progress-wrapper {
  flex: 1;
  margin: 0 32px;
}

.progress-bar {
  height: 2px;
  background: var(--bg-tertiary);
  width: 100%;
  position: relative;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-sage);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.quiz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.question-category {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.question-text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 60px;
  line-height: 1.3;
}

/* Quiz background image support */
.quiz-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none;
}

.quiz-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   QUIZ FLOW — Single-page all questions
   ============================================ */
.quiz-flow {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sticky header — minimal, just back button */
.quiz-flow__header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0.1rem 0.75rem;
  background: rgba(249,248,246,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.quiz-flow__header .btn-icon-round {
  width: 32px;
  height: 32px;
}
.quiz-flow__progress {
  flex: 1;
}
.quiz-flow__progress-track {
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}
.quiz-flow__progress-fill {
  height: 100%;
  background: var(--accent-sage);
  width: 0%;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 2px;
}
.quiz-flow__count {
  font-size: 0.8rem;
  font-family: var(--font-sans);
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  min-width: 52px;
  text-align: right;
}

/* Questions body */
.quiz-flow__body {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem 6rem;
}
.quiz-flow__body .quiz-q:first-child {
  padding-top: 0.5rem;
}
.quiz-flow__body .quiz-q:first-child.expanded {
  margin-top: 0;
  padding-top: 0.75rem;
}

/* Individual question — collapse/expand */
.quiz-q {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
  cursor: pointer;
  border-left: 2px solid transparent;
  border-radius: 0;
  /* Layout isolation prevents full-page reflow on expand/collapse
     (fixes "page flash" on mobile Safari near bottom of quiz) */
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}
/* Birthyear card always expanded (wheel picker needs measurable height) */
.quiz-q.always-expanded {
  cursor: default;
}
.quiz-q.always-expanded .quiz-q__options {
  max-height: 300px !important;
  opacity: 1 !important;
  margin-top: 0.75rem !important;
}
.quiz-q:last-child {
  border-bottom: none;
}

/* Header row: always visible */
.quiz-q__header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 36px;
  position: relative; /* anchor for absolute indicator */
}

.quiz-q__top {
  flex-shrink: 0;
}
.quiz-q__num {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.quiz-q__num-total {
  font-weight: 400;
  color: var(--text-tertiary);
}

.quiz-q__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  flex: 1;
  margin: 0;
  padding-right: 4rem; /* reserve space for indicator so text never reflows */
}

/* Answered indicator — absolutely positioned so it never pushes text */
.quiz-q__answered-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent-sage);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.quiz-q.answered .quiz-q__answered-indicator {
  opacity: 1;
}
.quiz-q.answered .quiz-q__answered-indicator::before {
  content: '\2713\00a0';
  color: var(--accent-sage);
}

/* Collapsed state: hide options */
.quiz-q__options {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.15s ease,
              margin 0.2s ease;
  display: flex;
  gap: 0.5rem;
  margin-top: 0;
}

/* Expanded state: show options */
.quiz-q.expanded .quiz-q__options {
  max-height: 400px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* Expanded question gets card-like appearance */
.quiz-q.expanded {
  padding: 1.25rem 1rem;
  border-left: 2px solid var(--accent-sage);
  background: rgba(107, 122, 98, 0.03);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
  margin: 0.25rem 0;
}
/* Keep same font size expanded/collapsed to prevent text reflow */
.quiz-q.expanded .quiz-q__text {
  font-size: 1rem;
}

/* Answered but not expanded — subtle tint instead of opacity */
.quiz-q.answered:not(.expanded) {
  background: rgba(107, 122, 98, 0.025);
}
.quiz-q.answered:not(.expanded):hover {
  background: rgba(107, 122, 98, 0.05);
}
.quiz-q.answered .quiz-q__num {
  color: var(--accent-sage);
  font-size: 0.85rem;
}

/* Highlight pulse */
.quiz-q--highlight {
  animation: questionPulse 1.2s ease;
}
@keyframes questionPulse {
  0% { background: transparent; }
  15% { background: rgba(107, 122, 98, 0.06); }
  100% { background: transparent; }
}

/* Options — horizontal chips */
.quiz-q__opt {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-q__opt:hover {
  border-color: var(--accent-sage);
  background: rgba(107, 122, 98, 0.04);
}
.quiz-q__opt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color-dark);
  transition: all 0.2s ease;
}
.quiz-q__opt:hover .quiz-q__opt-dot {
  border-color: var(--accent-sage);
}
.quiz-q__opt-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}
.quiz-q__opt:hover .quiz-q__opt-label {
  color: var(--accent-sage);
}

/* Sex question: wider buttons */
.quiz-q__options--sex {
  gap: 1rem;
}
.quiz-q__opt--wide {
  padding: 16px 8px;
  min-width: 120px;
}
.quiz-q__opt--wide .quiz-q__opt-label {
  font-size: 0.85rem;
}

/* Birth year question */
.quiz-q__options--birthyear {
  flex-direction: column;
  align-items: center;
}

/* ==========================================
   Year Wheel Picker (iOS-style)
   ========================================== */
.year-wheel {
  position: relative;
  width: 100%;
  max-width: 200px;
  height: 180px;
  margin: 0 auto;
  user-select: none;
}
.year-wheel__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.year-wheel__scroll::-webkit-scrollbar { display: none; }
.year-wheel__pad {
  height: 72px; /* (180 - 36) / 2 - lets first/last item center */
  pointer-events: none;
}
.year-wheel__item {
  height: 36px;
  line-height: 36px;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: rgba(30, 30, 30, 0.3);
  scroll-snap-align: center;
  cursor: pointer;
  transition: color 0.18s ease, font-size 0.18s ease, font-weight 0.18s ease, transform 0.18s ease;
  letter-spacing: 0.02em;
}
.year-wheel__item:hover {
  color: rgba(30, 30, 30, 0.6);
}
.year-wheel__item--selected {
  color: var(--accent-sage);
  font-size: 22px;
  font-weight: 600;
  transform: scale(1.05);
}
/* Adjacent items styling (sibling selectors to give depth) */
.year-wheel__item--selected + .year-wheel__item,
.year-wheel__item:has(+ .year-wheel__item--selected) {
  color: rgba(30, 30, 30, 0.55);
  font-size: 16px;
}
/* Center highlight bar */
.year-wheel__selector {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 36px;
  margin-top: -18px;
  border-top: 1px solid rgba(107, 122, 98, 0.3);
  border-bottom: 1px solid rgba(107, 122, 98, 0.3);
  pointer-events: none;
}
/* Fading edges */
.year-wheel__mask {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    linear-gradient(to bottom,
      var(--bg-primary, #f9f8f6) 0%,
      rgba(249, 248, 246, 0.9) 10%,
      rgba(249, 248, 246, 0) 30%,
      rgba(249, 248, 246, 0) 70%,
      rgba(249, 248, 246, 0.9) 90%,
      var(--bg-primary, #f9f8f6) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Selected state */
.quiz-q__opt.selected {
  border-color: var(--accent-sage);
  background: var(--accent-sage);
  position: relative;
}
.quiz-q__opt.selected .quiz-q__opt-dot {
  background: white;
  border-color: white;
  box-shadow: 0 0 0 2px var(--accent-sage);
  position: relative;
}
.quiz-q__opt.selected .quiz-q__opt-dot::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2.5px;
  width: 4px;
  height: 6px;
  border: solid var(--accent-sage);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.quiz-q__opt.selected .quiz-q__opt-label {
  color: white;
  font-weight: 600;
}

/* Sticky submit footer */
.quiz-flow__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 1rem 1.5rem;
  background: rgba(249,248,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  animation: slideUpFooter 0.4s ease;
}
@keyframes slideUpFooter {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.btn-lg {
  padding: 16px 48px;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .quiz-q__options {
    gap: 0.35rem;
  }
  .quiz-q__opt {
    padding: 10px 2px;
  }
  .quiz-q__opt-label {
    font-size: 0.6rem;
  }
  .quiz-q__text {
    font-size: 0.95rem;
  }
  .quiz-flow__body {
    padding: 1rem 1rem 6rem;
  }
  .quiz-q__header-row {
    gap: 0.5rem;
  }
  .quiz-q__answered-indicator {
    font-size: 0.65rem;
  }
}

/* ============================================================================
   LOADING / ANALYZING VIEW
   ============================================================================ */
.loading-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--nav-height));
}

.loader-seal {
  width: 80px;
  height: 80px;
  margin-bottom: 40px;
  animation: pulse-spin 3s infinite linear;
}

@keyframes pulse-spin {
  0% { transform: rotate(0deg) scale(0.95); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.95); opacity: 0.7; }
}

.loading-steps {
  margin-top: 40px;
  text-align: left;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  opacity: 0.5;
  transition: all 0.4s ease;
}

.loading-step.active {
  color: var(--text-primary);
  opacity: 1;
}

.loading-step.done {
  color: var(--accent-sage);
  opacity: 1;
}

.loading-icon {
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.footer__desc {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--bg-tertiary);
  font-size: 0.9rem;
}

.footer__links a:hover {
  color: var(--bg-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================================================
   ANIMATIONS & UTILS
   ============================================================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* Hide scrollbar for clean aesthetic */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============================================================================
   ADDITIONAL COMPONENT STYLES
   ============================================================================ */

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
}
.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-primary);
  background: none;
  border: none;
}
.mobile-menu__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}
.mobile-menu__content a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-secondary);
}

/* Form Inputs */
.form-input {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent-sage);
}

/* Sex Cards */
.sex-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.sex-card {
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color-dark);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}
.sex-card:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.sex-card__icon {
  width: 48px;
  height: 48px;
}

/* Method Steps */
.method-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.step-card {
  position: relative;
  padding-top: 40px;
  border-top: 1px solid var(--border-color-dark);
}
.step-card__num {
  position: absolute;
  top: -12px;
  left: 0;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  background: var(--bg-primary);
  padding-right: 16px;
  color: var(--accent-sage);
}

/* Email Capture */
.email-capture {
  max-width: 480px;
  margin: 0 auto;
}

/* (brand-module removed — replaced by cinematic sections) */

/* ============================================================================
   IMAGE PLACEHOLDER STYLES
   ============================================================================ */
.img-placeholder {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px dashed var(--border-color-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: var(--aspect, 16/9);
  max-width: var(--max-w, 100%);
  width: 100%;
  border-radius: var(--radius-md);
}

.img-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.img-placeholder__icon {
  width: 48px;
  height: 48px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

.img-placeholder__label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

.img-placeholder__desc {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  opacity: 0.7;
  max-width: 240px;
  line-height: 1.5;
}

.img-placeholder__spec {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
  margin-top: 4px;
}

/* Circular variant */
.img-placeholder--circle {
  border-radius: 50%;
}

/* Background variant - fills parent container */
.img-placeholder--bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  border-radius: 0;
  aspect-ratio: auto;
}

/* ============================================================================
   IMAGE INTERACTION STYLES
   ============================================================================ */

/* Scroll-triggered image reveal */
.img-reveal {
  opacity: 0;
  transform: scale(0.98) translateY(20px);
  transition: opacity 0.8s var(--transition-slow),
              transform 0.8s var(--transition-slow);
}

.img-reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Hover zoom effect (base — enhanced version in cinematic section below) */
.img-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-hover-zoom img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.img-hover-zoom:hover img {
  transform: scale(1.06);
}

/* Ken Burns animation */
@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.img-ken-burns {
  overflow: hidden;
}

.img-ken-burns img {
  animation: kenBurns 20s ease-in-out alternate infinite;
  will-change: transform;
}

/* Parallax container */
.img-parallax {
  will-change: transform;
  overflow: hidden;
}

/* Lazy loading blur effect */
.img-lazy {
  filter: blur(20px);
  transition: filter 0.6s ease-out;
}

.img-lazy.loaded {
  filter: blur(0);
}

/* (hero split layout removed — replaced by cinematic hero) */

/* ============================================================================
   JOURNAL SECTION
   ============================================================================ */
.journal-section {
  padding: var(--space-xl) 0;
  background: var(--bg-primary);
}

.journal-section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.journal-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.journal-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
}

.journal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-slow);
}

.journal-card:hover .journal-card__image img {
  transform: scale(1.05);
}

.journal-card__image .img-placeholder {
  --aspect: 16/9;
  border: none;
  border-radius: 0;
}

.journal-card__content {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.journal-card__tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-sage);
  margin-bottom: 12px;
}

.journal-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.journal-card__excerpt {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-card__link {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.journal-card:hover .journal-card__link {
  color: var(--text-primary);
}

.journal-section__cta {
  text-align: center;
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .journal-section {
    padding: var(--space-lg) 0;
  }
  .journal-card__content {
    padding: 20px 16px 24px;
  }
}

/* ============================================================================
   NEWSLETTER SECTION
   ============================================================================ */
.newsletter-section {
  padding: var(--space-xl) 0;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(107, 122, 98, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter__content {
  max-width: 520px;
}

.newsletter__icon {
  margin-bottom: 24px;
}

.newsletter__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-tertiary);
  fill: none;
  stroke-width: 1.2;
}

.newsletter__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.newsletter__desc {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
}

.newsletter__form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin-bottom: 16px;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color-dark);
  border-right: none;
  border-radius: 0;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter__input::placeholder {
  color: var(--text-tertiary);
}

.newsletter__input:focus {
  border-color: var(--accent-sage);
}

.newsletter__submit {
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background: var(--accent-sage);
  border: 1px solid var(--accent-sage);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter__submit:hover {
  background: #5A6952;
  border-color: #5A6952;
}

.newsletter__fine {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

.newsletter__image {
  position: relative;
}

.newsletter__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.newsletter__image .img-placeholder {
  --aspect: 4/5;
  min-height: 360px;
}

@media (max-width: 768px) {
  .newsletter__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .newsletter__content {
    max-width: 100%;
  }
  .newsletter__form {
    margin-left: auto;
    margin-right: auto;
  }
  .newsletter__image {
    display: none;
  }
}

@media (max-width: 480px) {
  .newsletter-section {
    padding: var(--space-lg) 0;
  }
  .newsletter__form {
    flex-direction: column;
    gap: 8px;
  }
  .newsletter__input {
    border-right: 1px solid var(--border-color-dark);
  }
}

/* Newsletter Inline (for journal page) */
.newsletter-inline {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inline__form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-inline__form .form-input {
  flex: 1;
}
@media (max-width: 480px) {
  .newsletter-inline__form {
    flex-direction: column;
  }
}

/* ============================================================================
   SOCIAL PROOF BAR
   ============================================================================ */
.proof-bar {
  padding: 48px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.proof-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.proof-stat {
  text-align: center;
  padding: 8px 16px;
}

.proof-stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.proof-stat__label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .proof-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    justify-items: center;
  }
}

@media (max-width: 480px) {
  .proof-bar {
    padding: 36px 0;
  }
  .proof-bar__inner {
    gap: 24px;
  }
}

/* (trust-section / social-proof__grid removed — replaced by cinematic sections) */

/* ============================================
   APP PROMOTION
   ============================================ */
.app-promo {
  background: var(--bg-secondary);
}
.app-promo__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: center;
}
.app-promo__content {
  max-width: 560px;
}
.app-promo__features {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-promo__feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.app-promo__feature-icon {
  color: var(--accent-sage);
  font-size: 1.1rem;
}
.app-promo__notify {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
  max-width: 440px;
}
.app-promo__notify .form-input {
  flex: 1;
}
.app-promo__visual {
  max-width: 300px;
}
@media (max-width: 768px) {
  .app-promo__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-promo__visual {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }
  .app-promo__features {
    align-items: center;
  }
  .app-promo__notify {
    flex-direction: column;
    margin: var(--space-md) auto 0;
  }
}

/* ============================================
   SOLAR CALENDAR WHEEL
   ============================================ */
.solar-calendar-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}
.solar-calendar-text {
  max-width: 480px;
}
.solar-calendar-wheel-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.solar-calendar-wheel,
.solar-page-wheel {
  width: 100%;
  max-width: 420px;
}
.solar-page-wheel {
  max-width: 520px;
}
.solar-wheel-svg {
  width: 100%;
  height: auto;
}
.solar-wheel-svg text {
  transition: opacity 0.2s ease;
}
.solar-wheel-svg text:hover {
  opacity: 0.7;
}

.solar-calendar-detail {
  margin-top: var(--space-md);
}

/* Solar detail (shared between home & page) */
.solar-detail-header {
  margin-bottom: var(--space-sm);
}
.solar-detail-season {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.solar-detail-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 0.25rem;
}
.solar-detail-pinyin {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}
.solar-detail-desc {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: var(--space-sm);
}

/* Solar page layout */
.solar-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.solar-page-wheel-wrap {
  display: flex;
  justify-content: center;
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.solar-page-detail {
  padding-top: var(--space-md);
}

.solar-detail-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.solar-detail-card__image {
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.solar-detail-card .solar-detail-header {
  padding: var(--space-md) var(--space-md) 0;
}
.solar-detail-card .solar-detail-desc {
  padding: 0 var(--space-md);
}
.solar-detail-tips {
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
}
.solar-detail-tip {
  padding: var(--space-sm);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
}
.solar-detail-tip-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-sage);
  display: block;
  margin-bottom: 0.5rem;
}
.solar-detail-tip p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .solar-calendar-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .solar-calendar-text {
    max-width: 100%;
  }
  .solar-calendar-wheel-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
  .solar-page-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .solar-page-wheel-wrap {
    position: relative;
    top: 0;
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ============================================================================
   CONSTITUTIONS PAGE
   ============================================================================ */
.constitutions-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}
.constitutions-intro p {
  line-height: 1.9;
  color: var(--text-secondary);
}

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

.constitution-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
.constitution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.constitution-card__image {
  position: relative;
  overflow: hidden;
}
.constitution-card__icon-overlay {
  position: absolute;
  bottom: -20px;
  right: 12px;
  width: 56px;
  height: 56px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.constitution-card__icon-overlay svg {
  width: 40px;
  height: 40px;
}

.constitution-card__body {
  padding: 1.75rem 1.5rem 1.5rem;
}
.constitution-card__name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.constitution-card__zh {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 0.75rem;
}
.constitution-card__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.constitution-card__arrow {
  color: var(--accent-sage);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}
.constitution-card:hover .constitution-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .constitutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .constitutions-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   CONSTITUTION DETAIL PAGE
   ============================================================================ */
.detail-topbar {
  padding: calc(var(--nav-height) + 1rem) var(--space-md) 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.detail-back {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.detail-back:hover { color: var(--text-primary); }
.detail-badge {
  display: inline-block;
  background: var(--accent-sage);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.detail-hero {
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 3rem;
}
.detail-hero__icon {
  margin-bottom: 1.5rem;
}
.detail-hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.detail-hero__zh {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.detail-hero__tagline {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.detail-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: var(--space-xl);
}

.detail-section {
  margin-bottom: 3rem;
}
.detail-section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
.detail-section__intro {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.detail-section__body {
  line-height: 1.9;
  color: var(--text-secondary);
}
.detail-section__body p { margin-bottom: 1rem; }
.detail-section__body p:last-child { margin-bottom: 0; }

.detail-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3rem 0;
}

/* Traits */
.detail-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.detail-trait {
  display: inline-block;
  background: var(--type-color-mist, var(--accent-sage-mist));
  color: var(--type-color, var(--accent-sage));
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

/* Causes */
.detail-causes {
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.detail-causes li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.detail-causes__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--type-color-mist, var(--bg-secondary));
  color: var(--type-color, var(--accent-sage));
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50%;
}

/* Signals - card grid instead of pills */
.detail-signals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail-signal-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 3px solid var(--type-color, var(--accent-sage));
}
@media (max-width: 768px) {
  .detail-signals { grid-template-columns: 1fr; }
}

/* Guide header */
.detail-guide-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.detail-guide-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Food lists */
.detail-food-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.detail-food-list h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.detail-food-list--enjoy h4 { color: var(--accent-sage); }
.detail-food-list--limit h4 { color: var(--accent-rust); }

.detail-food-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.food-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.food-tag--enjoy {
  background: var(--accent-sage-mist);
  color: var(--accent-sage);
}
.food-tag--limit {
  background: #f5e8e4;
  color: var(--accent-rust);
}

@media (max-width: 480px) {
  .detail-food-lists { grid-template-columns: 1fr; }
}

/* Guide Grid (movement, rest, emotional) */
.detail-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}
.detail-guide-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.detail-guide-card .detail-guide-icon {
  margin-bottom: 1rem;
}
.detail-guide-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0.5rem 0;
}
.detail-guide-card__body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
@media (max-width: 768px) {
  .detail-guide-grid { grid-template-columns: 1fr; }
}

/* Tea */
.detail-tea {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}
.detail-tea__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.detail-tea__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.detail-tea__recipe {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* Share */
.detail-share {
  text-align: center;
  margin: 2rem 0;
}
.share-card-wrapper {
  max-width: 400px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
}
.share-card-wrapper canvas {
  width: 100%;
  height: auto;
  display: block;
}
.detail-share__buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.detail-share__buttons .btn {
  min-width: 0;
  padding: 0.65rem 1.2rem;
  font-size: 0.9rem;
}
@media (max-width: 480px) {
  .share-card-wrapper {
    max-width: 320px;
  }
  .detail-share__buttons {
    flex-direction: column;
    align-items: center;
  }
  .detail-share__buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* CTA */
/* Email capture on result page */
.detail-email-capture {
  padding: 3rem 0;
  text-align: center;
}
.detail-email-capture__inner {
  max-width: 480px;
  margin: 0 auto;
}
.detail-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.detail-email-form .form-input {
  margin-bottom: 0;
}

.detail-cta {
  text-align: center;
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.detail-cta__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Disclaimer */
.detail-disclaimer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}
.detail-disclaimer p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

/* ============================================
   TCM BRAND PAGE
   ============================================ */
.tcm-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl);
  background: var(--bg-secondary);
  overflow: hidden;
}
.tcm-hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-serif);
  font-size: clamp(200px, 30vw, 400px);
  color: var(--text-primary);
  opacity: 0.03;
  pointer-events: none;
  line-height: 1;
}
.tcm-hero__content h1 {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.tcm-philosophy {
  padding: var(--space-xl) 0;
}
.tcm-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.tcm-pillar {
  text-align: center;
}
.tcm-pillar__visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;
}

.tcm-quote {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}
.tcm-blockquote {
  max-width: 700px;
  margin: 0 auto;
  border: none;
  padding: 0;
}
.tcm-blockquote p {
  line-height: 1.6;
}

@media (max-width: 768px) {
  .tcm-pillars {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================================================
   SOLAR TERMS PAGE
   ============================================================================ */

/* Current term highlight card */
.solar-current {
  background: var(--bg-primary);
  border: 2px solid var(--accent-sage);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 4rem;
  position: relative;
}
.solar-current__badge {
  display: inline-block;
  background: var(--accent-sage);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
.solar-current__inner {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.solar-current__cn {
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-sage);
  opacity: 0.4;
}
.solar-current__name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.solar-current__pinyin {
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 0.25rem;
}
.solar-current__date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.solar-current__season {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.solar-current__desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.solar-current__tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}
.solar-tip-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sage);
  display: block;
  margin-bottom: 0.5rem;
}
.solar-current__tips p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .solar-current { padding: 2rem 1.5rem; }
  .solar-current__cn { font-size: 3.5rem; }
  .solar-current__tips { grid-template-columns: 1fr; }
}

/* Season groups */
.solar-season {
  margin-bottom: 3rem;
}
.solar-season__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.solar-season__line {
  flex: 1;
  height: 1px;
  opacity: 0.3;
}

.solar-season__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.solar-term-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.solar-term-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.solar-term-card--current {
  border-color: var(--accent-sage);
  border-width: 2px;
}
.solar-term-card__cn {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--season-color);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.solar-term-card__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.solar-term-card__pinyin {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
  margin-bottom: 0.25rem;
}
.solar-term-card__date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.solar-term-card__now {
  display: inline-block;
  background: var(--accent-sage);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.solar-term-card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.solar-term-card__tips {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.solar-term-card__tips div {
  margin-bottom: 0.5rem;
}
.solar-term-card__tips strong {
  color: var(--text-primary);
}

@media (max-width: 1024px) {
  .solar-season__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .solar-season__grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--transition-slow),
              transform 0.7s var(--transition-slow);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================================
   VIEW TRANSITIONS
   ============================================================================ */
.view.exiting {
  opacity: 0;
  transform: translateY(-10px);
}

/* ============================================================================
   CJK / form layout fixes
   - keeps short Chinese button labels on one line inside flex form rows
   - removes uppercase + wide letter-spacing for CJK locales (no visual purpose
     for ideographic glyphs and causes the "订 阅" / "订\n阅" stacking bug)
   ============================================================================ */
.newsletter__form .btn,
.app-promo__notify .btn,
.email-form .btn,
form .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

html[lang="zh"] .btn,
html[lang="zh-CN"] .btn,
html[lang="zh-Hant"] .btn,
html[lang="zh-TW"] .btn,
html[lang="ja"] .btn {
  letter-spacing: 0;
  text-transform: none;
}

/* Pad short CJK button labels so the pill doesn't look squashed */
html[lang="zh"] .newsletter__form .btn,
html[lang="zh-CN"] .newsletter__form .btn,
html[lang="zh-Hant"] .newsletter__form .btn,
html[lang="zh-TW"] .newsletter__form .btn,
html[lang="ja"] .newsletter__form .btn {
  min-width: 96px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Make sure the email input shares the row evenly and the form aligns at top */
.newsletter__form,
.app-promo__notify {
  align-items: stretch;
  flex-wrap: nowrap;
}
.newsletter__form .form-input,
.app-promo__notify .form-input {
  flex: 1 1 auto;
  min-width: 0;
  /* form-input has margin-bottom:16px globally that breaks row alignment */
  margin-bottom: 0;
}

/* Force input + button to identical height in subscription rows.
   Both originally have different vertical padding (input 16px, btn 14px)
   plus different font-sizes/line-heights, so height matches by accident
   only at certain font sizes. Pin both to 48px for visual consistency. */
.newsletter__form .form-input,
.newsletter__form .btn,
.app-promo__notify .form-input,
.app-promo__notify .btn {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 48px;
}
/* ============================================================================
   Mobile: kill the blue tap-highlight box on all clickable elements.
   iOS/Android default = semi-transparent blue overlay on every touch.
   We render our own :active state instead, so we suppress the system one
   globally. Set on `*` so it covers <a>, <button>, role=button, custom etc.
   ============================================================================ */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent;
}
a, button, [role="button"], [onclick], summary, label, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;     /* no long-press preview popup */
}
/* keep focus ring for keyboard users */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px;
}
