/* GaiaFeel — Soundscape Pack funnel. Shared styles.
   Mirrors the main site design system (src/app/globals.css + tailwind.config.ts). */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --cream: #faf8f4;
  --dark-olive: #1a1a16;
  --text-primary: #1a1a16;
  --text-secondary: #6b6b5e;
  --text-tertiary: #9a9a8a;
  --sage: #7a7a5e;
  --border: #e8e5df;
  --dark-text: #f0ede8;
  --dark-muted: #9a9a8a;
  --cta-primary: #5a5a42;
  --cta-hover: #4a4a35;
  --content: 1280px;
  --readable: 600px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text-primary);
  background: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: rgba(122, 122, 94, 0.22); color: var(--dark-olive); }

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

/* ---- Layout primitives ---- */
.wrap { max-width: var(--content); margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.section { padding-top: clamp(3.75rem, 10vw, 10rem); padding-bottom: clamp(3.75rem, 10vw, 10rem); }
.readable { max-width: var(--readable); margin-left: auto; margin-right: auto; }
.center { text-align: center; }

/* ---- Type ---- */
.display { font-family: 'Playfair Display', Georgia, serif; }
.italic { font-style: italic; }
.hero-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1.5rem; text-wrap: balance; }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 2.5rem; text-wrap: balance; }
.label { font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1rem; }
.lead { font-size: clamp(1.075rem, 1.6vw, 1.3rem); color: var(--text-secondary); line-height: 1.7; text-wrap: pretty; }
.muted { color: var(--text-secondary); }
.fine { color: var(--text-tertiary); font-size: 0.8125rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: 'DM Sans', system-ui, sans-serif; font-size: 1rem; font-weight: 500;
  padding: 1rem 2rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--cta-primary); color: var(--cream); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.btn-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 12px 32px -14px rgba(61,61,46,0.55); }
.btn-ghost { border-color: rgba(90,90,66,0.4); color: var(--cta-primary); }
.btn-ghost:hover { border-color: var(--cta-primary); background: rgba(90,90,66,0.05); }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.0625rem; }

/* ---- Nav ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(250,248,244,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(232,229,223,0.7); }
.nav-inner { max-width: var(--content); margin: 0 auto; height: 4rem; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.wordmark { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.125rem; letter-spacing: 0.18em; text-decoration: none; color: var(--text-primary); }
.nav .btn { padding: 0.5rem 1.1rem; font-size: 0.875rem; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-top: 9rem; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(122,122,94,0.12), transparent 65%); }
.hero .wrap { position: relative; }
.price-tag { display: inline-block; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; color: var(--sage); margin-bottom: 0.5rem; }

/* ---- Soundscape cards ---- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: rgba(255,255,255,0.7); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; transition: all 0.3s ease; box-shadow: 0 1px 0 rgba(0,0,0,0.03); }
.card:hover { background: #fff; border-color: var(--sage); transform: translateY(-4px); box-shadow: 0 22px 48px -28px rgba(61,61,46,0.35); }
.card-tag { font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1rem; }
.card-title { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.5rem; margin: 0 0 0.75rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0 0 1.25rem; }

/* native audio player, lightly themed */
audio { width: 100%; height: 38px; filter: grayscale(0.4); }

/* ---- "What you get" list ---- */
.included { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.included li { position: relative; padding-left: 1.75rem; color: var(--text-secondary); }
.included li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--cta-primary); opacity: 0.75; }
.included strong { color: var(--text-primary); font-weight: 600; }

/* ---- Dark section ---- */
.dark { background: var(--dark-olive); color: var(--dark-text); position: relative; overflow: hidden; }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at top, rgba(250,248,244,0.06), transparent 55%); }
.dark .wrap { position: relative; }
.quote { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.3; margin: 0 0 1.5rem; text-wrap: balance; }
.dark .muted { color: var(--dark-muted); }
.glyph { font-size: 1.75rem; color: rgba(122,122,94,0.8); margin-bottom: 1.5rem; }

/* ---- Offer block ---- */
.offer { background: #fff; border: 2px solid var(--cta-primary); border-radius: 1.25rem; padding: clamp(2rem, 4vw, 3.5rem); box-shadow: 0 24px 58px -28px rgba(61,61,46,0.4); }
.offer .price { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; margin: 0.5rem 0; }
.offer .price small { font-size: 1.25rem; color: var(--text-tertiary); font-family: 'DM Sans', sans-serif; }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; list-style: none; color: var(--text-primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sage); font-family: 'DM Sans', sans-serif; }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--text-secondary); margin: 0.75rem 0 0; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); }
.footer .cols { display: grid; gap: 2.5rem; }
@media (min-width: 720px) { .footer .cols { grid-template-columns: 2fr 1fr; } }
.footer a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--text-primary); }
.footer .links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.copyright { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 2rem; text-align: center; }

/* ---- Reveal on scroll (progressive enhancement: visible without JS) ---- */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
  .card:hover { transform: none; }
}
