/* ── Reset & Variables ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #274329;
  --fg:        #efffea;
  --secondary: #92ba94;
  --tertiary:  #385b3b;
  --card-bg:   #2e4d31;
  --gold:      #d4af37;
  --white:     #ffffff;
  --radius:    8px;
  --max-w:     1140px;
  --nav-h:     72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #1a2e1b;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #c49f2a;
  border-color: #c49f2a;
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--secondary);
}
.btn-outline:hover {
  background: rgba(146, 186, 148, 0.12);
  border-color: var(--fg);
}
.btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Navigation ──────────────────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(39, 67, 41, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(146, 186, 148, 0.15);
}

#site-nav nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; max-width: none; display: block; flex-shrink: 0; }
.nav-logo-text {
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

.nav-signin {
  padding: 9px 20px;
  font-size: 14px;
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ────────────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/Meditation Machine Website Image.webp');
  /* fallback for browsers without WebP support (rare in 2026) */
  background-size: cover;
  background-position: 70% top;
  filter: brightness(0.45) saturate(0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 40px 24px 120px 48px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

#hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(239, 255, 234, 0.8);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Section headers ─────────────────────────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--fg);
  margin-bottom: 16px;
  text-align: center;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

/* ── About ───────────────────────────────────────────────────────────────────── */
#about { padding: 108px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-bottom: 32px;
}

.about-text p {
  color: rgba(239, 255, 234, 0.82);
  margin-bottom: 20px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ── Features Carousel ───────────────────────────────────────────────────────── */
#product {
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
  background: rgba(0, 0, 0, 0.18);
  position: relative;
}

.carousel-header {
  flex-shrink: 0;
  text-align: center;
  padding: 20px 24px 12px;
}
.carousel-header .section-title { margin-bottom: 8px; }
.carousel-header .section-sub   { margin-bottom: 0; }

.carousel-viewport {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  scroll-snap-align: start;
}

.slide-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; line-height: 1; }

.slide-text h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin-bottom: 14px;
}

.slide-text p {
  font-size: 0.98rem;
  color: var(--secondary);
  line-height: 1.75;
}

.slide-image {
  height: 100%;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image picture {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
}

.slide-image img {
  max-height: min(480px, 62vh);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(146, 186, 148, 0.12);
}

.carousel-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 0 24px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(146, 186, 148, 0.25);
  background: var(--tertiary);
  color: var(--fg);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover {
  background: var(--card-bg);
  border-color: var(--secondary);
}

.carousel-dots { display: flex; gap: 10px; }

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--secondary);
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s, background 0.2s;
}
.carousel-dot.active {
  background: var(--gold);
  opacity: 1;
}

/* ── Pricing ─────────────────────────────────────────────────────────────────── */
#pricing { padding: 108px 0; }

#how-it-works {
  padding: 80px 0;
}
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.hiw-block {
  background: var(--tertiary);
  border-radius: 12px;
  padding: 36px 32px;
  border: 1px solid rgba(146, 186, 148, 0.2);
}
.hiw-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hiw-list li {
  font-size: 0.92rem;
  color: rgba(239, 255, 234, 0.75);
  line-height: 1.6;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.hiw-list li strong {
  color: var(--white);
  display: block;
  margin-bottom: 2px;
}
.hiw-block h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: var(--white);
}
.hiw-block p {
  font-size: 0.95rem;
  color: rgba(239, 255, 234, 0.75);
  line-height: 1.7;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 40px; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--tertiary);
  border-radius: 12px;
  padding: 44px 32px 36px;
  border: 1px solid rgba(146, 186, 148, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, #2d5031 0%, var(--tertiary) 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
}
.pricing-btn-secondary {
  margin-top: 10px;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #1a2e1b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 28px;
}
.pricing-price-inline {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.price-starting {
  font-size: 0.78rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.price-period {
  font-size: 0.88rem;
  color: var(--secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.92rem;
  color: rgba(239, 255, 234, 0.82);
  padding: 9px 0;
  border-bottom: 1px solid rgba(146, 186, 148, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.88rem;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

.pricing-upgrade-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--secondary);
  text-align: center;
  line-height: 1.5;
}
.pricing-upgrade-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-scarcity {
  text-align: center;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #c0392b;
  letter-spacing: 0.01em;
}
.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--secondary);
}
.pricing-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Contact ─────────────────────────────────────────────────────────────────── */
#contact { padding: 108px 0; }

.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: var(--tertiary);
  border: 1px solid rgba(146, 186, 148, 0.3);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(146, 186, 148, 0.45); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
}
.form-status.success { color: var(--secondary); }
.form-status.error   { color: #ef9a9a; }

.contact-form .btn { margin-top: 4px; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(146, 186, 148, 0.1);
  padding: 52px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo { height: 36px; width: auto; }
.footer-brand p { font-size: 13px; color: var(--secondary); }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-left: auto;
}
.footer-nav a {
  font-size: 13px;
  color: var(--secondary);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--fg); }

.footer-copy {
  width: 100%;
  font-size: 12px;
  color: rgba(146, 186, 148, 0.45);
  margin-top: 12px;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .carousel-header { padding: 16px 24px 8px; }
  .carousel-header .section-title { font-size: 1.5rem; margin-bottom: 4px; }
  .carousel-header .section-sub { font-size: 0.85rem; margin-bottom: 0; }

  .carousel-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 0 20px;
    background: linear-gradient(to top, rgba(27, 46, 29, 0.92) 0%, transparent 100%);
    margin-top: 0;
  }

  .slide-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 12px 24px 72px;
    gap: 12px;
  }

  .slide-image {
    order: -1;
    height: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .slide-image picture {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .slide-image img {
    max-height: 45svh;
    width: auto;
    max-width: 88vw;
    border-radius: 16px;
  }

  .slide-text { flex-shrink: 0; max-width: 360px; }

  .feature-icon { font-size: 1.4rem; margin-bottom: 4px; }
  .slide-text h3 { font-size: 1.2rem; margin-bottom: 6px; }
  .slide-text p  { font-size: 0.85rem; line-height: 1.55; }

  .nav-links,
  .nav-signin { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #1e3520;
    padding: 24px 24px 32px;
    border-bottom: 1px solid rgba(146, 186, 148, 0.15);
    gap: 4px;
  }
  .nav-links.open li { border-bottom: 1px solid rgba(146, 186, 148, 0.1); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a { display: block; padding: 12px 0; font-size: 16px; }

  .nav-signin.open {
    display: block;
    position: fixed;
    top: auto;
    left: 0; right: 0;
    background: #1e3520;
    padding: 0 24px 28px;
  }
  .nav-signin.open .btn { width: 100%; text-align: center; }

  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-image img { aspect-ratio: auto; object-fit: contain; }

.hero-content {
    padding: 60px 24px 80px;
    margin-left: 0;
    padding-left: 24px;
  }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { margin-left: 0; }

  .modal-card { padding: 32px 20px 28px; }
  .download-options { flex-direction: column; }
  .download-btn { justify-content: center; }
}

/* ── Download Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 40px 36px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  border-top: 4px solid var(--gold);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }

.modal-card h2 {
  font-size: 1.6rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.modal-card > p {
  color: var(--secondary);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.download-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.download-btn svg { width: 24px; height: 24px; flex-shrink: 0; }

.download-ios { background: var(--gold); color: #1a2e1b; }
.download-android { background: var(--tertiary); color: var(--fg); border: 1px solid rgba(146,186,148,0.3); }

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.modal-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-transform: uppercase;
}
.modal-field input {
  background: var(--tertiary);
  border: 1px solid rgba(146, 186, 148, 0.3);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.modal-field input::placeholder { color: rgba(146,186,148,0.45); }
.modal-field input:focus { border-color: var(--gold); }

.modal-platform-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.modal-platform-label {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
}
.platform-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
}
.platform-option input[type="radio"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.android-note {
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 14px;
  line-height: 1.55;
}

.android-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.android-form input {
  flex: 1;
  min-width: 0;
  background: var(--tertiary);
  border: 1px solid rgba(146, 186, 148, 0.3);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--fg);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  outline: none;
}
.android-form input::placeholder { color: rgba(146,186,148,0.45); }
.android-form input:focus { border-color: var(--gold); }
.android-form .btn { padding: 12px 20px; white-space: nowrap; }

/* ── Opt-in checkbox ─────────────────────────────────────────────────────────── */
.form-opt-in {
  margin-bottom: 20px;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--secondary);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
