/* Rituale — warm tea-house aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #1a1612;
  --parchment: #f7f3ed;
  --clay: #c4a882;
  --deep-tea: #3d2b1f;
  --jade: #4a6741;
  --mist: #e8e2d8;
  --warm-white: #fdfbf7;
  --copper: #b87333;
  --copper-light: #d4956a;
  --shadow: 0 2px 12px rgba(26, 22, 18, 0.08);
  --shadow-lift: 0 8px 32px rgba(26, 22, 18, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--clay); color: var(--warm-white); }

a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--mist);
  padding: 0.9rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-tea);
  letter-spacing: -0.01em;
}
.site-logo span { color: var(--copper); }
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 1; text-decoration: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
  border: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--copper);
  color: var(--warm-white);
  box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}
.btn-primary:hover {
  background: #a06529;
  box-shadow: 0 4px 16px rgba(184, 115, 51, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--deep-tea);
  border: 1.5px solid var(--clay);
}
.btn-outline:hover {
  background: var(--mist);
  color: var(--deep-tea);
}
.btn--large { padding: 0.85rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn-ghost { color: var(--copper); padding: 0.5rem 0; }

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: linear-gradient(170deg, var(--deep-tea) 0%, #2a1f17 50%, #1a1410 100%);
  overflow: hidden;
  padding: 6rem 0 5rem;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(196, 168, 130, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(74, 103, 65, 0.07) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--parchment));
}
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--clay);
}
.hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--warm-white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title em {
  font-style: italic;
  color: var(--clay);
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(253, 251, 247, 0.6);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-outline {
  color: var(--warm-white);
  border-color: rgba(196, 168, 130, 0.5);
}
.hero-actions .btn-outline:hover {
  background: rgba(196, 168, 130, 0.12);
}

/* Floating tea decoration */
.hero-ornament {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(196, 168, 130, 0.15) 0%, rgba(184, 115, 51, 0.05) 60%, transparent 80%);
  border: 1px solid rgba(196, 168, 130, 0.12);
  pointer-events: none;
}
.hero-ornament::after {
  content: '☕';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  opacity: 0.08;
  color: var(--clay);
}

/* ===== PRODUCT SHOWCASE ===== */
.section { padding: 5rem 0; }
.section--alt { background: var(--warm-white); }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--deep-tea);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.65;
  max-width: 520px;
  line-height: 1.7;
}

.box-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.box-item {
  background: var(--warm-white);
  border: 1px solid var(--mist);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.box-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.box-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--copper), var(--jade));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.box-item:hover::before { opacity: 1; }
.box-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--deep-tea), #4a3a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--clay);
  margin-bottom: 1.25rem;
}
.box-item-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-tea);
  margin-bottom: 0.6rem;
}
.box-item-desc {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.65;
}

/* ===== SUBSCRIPTION TIER ===== */
.sub-tier {
  background: var(--warm-white);
  border: 1px solid var(--mist);
  border-radius: 24px;
  padding: 3rem;
  max-width: 520px;
  margin: 3rem auto 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-tier::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--copper), transparent);
}
.sub-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 103, 65, 0.1);
  color: var(--jade);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.sub-tier-price {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--deep-tea);
  line-height: 1;
}
.sub-tier-price sup { font-size: 1.5rem; vertical-align: super; }
.sub-tier-period {
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.5;
  margin: 0.5rem 0 2rem;
}
.sub-tier-features {
  list-style: none;
  text-align: left;
  margin: 0 0 2.5rem;
}
.sub-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--mist);
}
.sub-tier-features li:last-child { border-bottom: none; }
.sub-tier-features li::before {
  content: '✓';
  color: var(--jade);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== VIDEO LIBRARY ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.video-card {
  background: var(--warm-white);
  border: 1px solid var(--mist);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.video-thumb {
  height: 160px;
  background: linear-gradient(135deg, #2a1f17 0%, #3d2b1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.video-thumb-icon {
  font-size: 2.5rem;
  color: rgba(196, 168, 130, 0.7);
}
.video-thumb-lock {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.4);
  color: rgba(253,251,247,0.7);
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.video-meta {
  padding: 1.25rem;
}
.video-duration {
  font-size: 0.75rem;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.video-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-tea);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.video-desc {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  line-height: 1.5;
}
.video-locked-overlay {
  opacity: 0.5;
  filter: blur(0.5px);
}

/* ===== SUCCESS PAGE ===== */
.success-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(170deg, var(--deep-tea) 0%, #2a1f17 100%);
}
.success-card {
  max-width: 480px;
}
.success-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: block;
}
.success-title {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--warm-white);
  margin-bottom: 1rem;
}
.success-sub {
  font-size: 1.05rem;
  color: rgba(253, 251, 247, 0.65);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--deep-tea);
  color: rgba(253, 251, 247, 0.55);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer a { color: var(--clay); }

/* ===== HORIZONTAL DIVIDER ===== */
.divider {
  width: 48px;
  height: 2px;
  background: var(--clay);
  margin: 1.5rem 0;
  opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { min-height: 70vh; padding: 4rem 0 3rem; }
  .hero-ornament { display: none; }
  .site-nav { gap: 1rem; }
  .box-items-grid { grid-template-columns: 1fr; }
  .sub-tier { padding: 2rem 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease forwards; }
.fade-up-delay { opacity: 0; animation: fadeUp 0.5s 0.15s ease forwards; }
.fade-up-delay-2 { opacity: 0; animation: fadeUp 0.5s 0.3s ease forwards; }