/* ─────────────────────────────────────────────────────────────
   TMD-Redesign V2  |  styles.css
   Scroll-expand media hero with split title
   ───────────────────────────────────────────────────────────── */

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

:root {
  --black:       #000000;
  --white:       #ffffff;
  --cream:       #e8e0d4;
  --green-dark:  #0d1a0f;
  --green-mid:   #1a2e1c;
  --green-muted: #2d4a30;
  --accent:      #7eb87a;
  --font-body:   'Inter', system-ui, sans-serif;
  --font-serif:  'Instrument Serif', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* We control scrolling via JS while the hero is active */
}

body.hero-active {
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────
   HEADER  (fixed, always on top)
   ───────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  /* subtle gradient so text reads over any bg */
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0) 100%);
  pointer-events: none; /* pass clicks through the gradient part */
}
.site-header > * { pointer-events: all; }

/* Logo */
.logo { display: flex; align-items: center; padding-top: 6px; }
.site-logo {
  display: block;
  height: 114px;
  width: auto;
  object-fit: contain;
  background: transparent;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 300;
  padding: 0.5rem 0.875rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }

/* Gooey login */
.gooey-btn-wrap { position: relative; height: 2rem; }
.gooey-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 2rem;
}
.gooey-login-btn,
.gooey-arrow-btn {
  height: 2rem;
  border: none;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
}
.gooey-login-btn { padding: 0 1.5rem; position: relative; z-index: 10; }
.gooey-login-btn:hover { background: rgba(255,255,255,0.88); }
.gooey-arrow-btn {
  position: absolute; right: 0;
  width: 2rem; padding: 0; z-index: 0;
  transform: translateX(-2.5rem);
}
.gooey-inner:hover .gooey-arrow-btn { transform: translateX(-4.75rem); }

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: opacity;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.25);
}

/* Split title */
.split-title {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  will-change: transform;
}

.title-left,
.title-right {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  font-weight: 700;
  color: rgba(220, 240, 220, 0.92);
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  will-change: transform;
}

.title-left em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
}

/* Media card (scroll-expandable) */
.media-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.media-card {
  position: relative;
  width: 300px;
  height: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.45);
  will-change: width, height, border-radius;
  transition: border-radius 0.1s;
}

.media-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.media-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.42);
  border-radius: inherit;
  will-change: opacity;
}

/* Scroll hint */
.scroll-hint {
  margin-top: 1.25rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(220,240,220,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  will-change: opacity;
  animation: hintBounce 2s ease-in-out infinite;
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%       { transform: translateY(5px); opacity: 1; }
}

/* ─────────────────────────────────────────────────────────────
   CONTENT SECTION (below hero, revealed after expand)
   ───────────────────────────────────────────────────────────── */
.content-section {
  position: relative;
  background: var(--green-dark);
  min-height: 100vh;
  padding: 6rem 2rem 5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.content-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Heading + copy */
.content-hero-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 5rem;
}
@media (max-width: 768px) {
  .content-hero-text { grid-template-columns: 1fr; }
}

.content-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.content-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05em;
}

.content-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(220,210,195,0.8);
  padding-top: 0.5rem;
}

.content-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   PRICING
   ───────────────────────────────────────────────────────────── */
.pricing-section {
  margin-top: 2rem;
  text-align: center;
}

.pricing-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.pricing-subheading {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(220,210,195,0.7);
  max-width: 32rem;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, transform 0.25s, border-color 0.2s;
}
.pricing-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-3px);
}
.pricing-card--featured {
  background: rgba(126,184,122,0.08);
  border-color: rgba(126,184,122,0.4);
}
.pricing-card--featured:hover {
  background: rgba(126,184,122,0.12);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: var(--accent);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.pricing-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  padding-right: 4rem;
}
.pricing-card-tag {
  color: var(--accent);
  font-weight: 300;
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pricing-card .price {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--white);
}
.price-period {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(220,210,195,0.6);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 2rem;
}
.pricing-features li {
  position: relative;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(220,210,195,0.8);
  padding-left: 1.5rem;
  margin-bottom: 0.85rem;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 500;
}

.pricing-cta {
  justify-content: center;
  width: 100%;
}

/* ─────────────────────────────────────────────────────────────
   SHARED BUTTONS
   ───────────────────────────────────────────────────────────── */
.btn-outline,
.btn-solid {
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.btn-solid {
  background: var(--accent);
  border: 1px solid transparent;
  color: var(--black);
}
.btn-solid:hover { background: #8fcb8b; }

/* ─────────────────────────────────────────────────────────────
   FAQs
   ───────────────────────────────────────────────────────────── */
.faq-section {
  background: var(--black);
  padding: 10rem 2rem 6rem;
}

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

.faq-intro { margin-bottom: 4.5rem; }
.faq-heading {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.faq-heading em {
  font-style: italic;
}
.faq-subheading {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(220,210,195,0.7);
  max-width: 34rem;
}

.faq-category {
  margin-bottom: 3.5rem;
}
.faq-category-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.faq-list {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--cream);
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }
.faq-question:hover { color: var(--accent); }

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.75rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(220,210,195,0.75);
  max-width: 60ch;
}
.faq-answer p + p { margin-top: 1rem; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }
.faq-answer em { font-style: italic; color: rgba(220,210,195,0.5); }

.faq-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: none;
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .faq-pricing-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   LEGAL PAGES (e.g. Privacy Policy)
   ───────────────────────────────────────────────────────────── */
.legal-section {
  background: var(--black);
  min-height: 60vh;
  padding: 10rem 2rem 6rem;
}
.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 2rem;
}
.legal-body {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(220,210,195,0.8);
}
.legal-body p { margin-bottom: 1.25rem; }
.legal-body h2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
}
.legal-body ul {
  list-style: none;
  margin-bottom: 1.25rem;
}
.legal-body li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
}
.legal-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.legal-body a {
  color: var(--accent);
  text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-updated {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: rgba(220,210,195,0.5);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 2rem 2.5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-tmd {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.5rem, 14vw, 9rem);
  line-height: 1;
  letter-spacing: 0.35em;
  margin-bottom: 3rem;
  user-select: none;
  color: var(--accent);
  -webkit-text-stroke: 1.5px var(--accent);
  text-stroke: 1.5px var(--accent);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease, letter-spacing 1.1s ease;
}
@supports ((-webkit-text-stroke: 1px black) or (text-stroke: 1px black)) {
  .footer-tmd {
    color: transparent;
  }
}
.footer-tmd.in-view {
  opacity: 1;
  transform: translateY(0);
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(220,210,195,0.5);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(220,210,195,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-logo { height: 72px; }
  .split-title { gap: 0.75rem; flex-direction: column; text-align: center; }
  .title-left, .title-right { white-space: normal; text-align: center; font-size: 2.4rem; }
}
