/* TERRASTRA identity: night navy, warm cream, brass. Loaded last on every page. */
:root {
  --black: #161b2c;
  --white: #fff;
  --gray: #f5efe6;
  --gray2: #e8dfd2;
  --muted: #6e665a;
  --brass: #a9824a;
  --brass-soft: #d9c3a0;
  --brass-text: #7d5a2c;
  --cream: #fbf8f2;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
body { background: var(--cream); color: var(--black); font-family: var(--font); -webkit-font-smoothing: antialiased; }
header, .mobile-menu, .search-bar-wrap { background: rgba(251, 248, 242, .96); backdrop-filter: blur(8px); }
.announce-bar { background: var(--black); letter-spacing: .06em; }

/* Typography */
h1, h2, .section-title, .modal-title, .sp-h1, .sp-h2, .slide-content h1, .slide-content h2,
.page-header h1, .quiz-title, .sound-inner h2, .about-strip-text h2, .article-body h2, #article-content h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.005em;
}
.section-head h2, .section-title, .sp-h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; }
.slide-content h1, .slide-content h2 { font-size: clamp(2.3rem, 5.6vw, 3.8rem); line-height: 1.05; font-weight: 600; }
.page-header h1, .sp-h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); line-height: 1.08; }
.modal-title { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.article-body h2 { font-size: 1.7rem !important; }
.prod-name { font-weight: 600; letter-spacing: -.005em; }
.prod-cat, .modal-cat, .prod-price + .prod-cat { color: var(--brass-text); letter-spacing: .14em; font-weight: 600; }
.prod-price, .modal-price { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.modal-price { font-size: 1.5rem; }

/* Surfaces */
.section.bg-gray, .bg-gray { background: var(--gray); }
.product-card { background: transparent; }
.prod-img, .sp-product-img { border-radius: 18px; background: var(--gray2); }
.lib-row, .reviews-empty, .quiz-opt { background: var(--white); }
.quiz-step { background: var(--gray); border: 1px solid var(--gray2); }
.sp-trust, .modal-audio { background: var(--gray); }

/* Buttons & links */
.prod-btn, .btn-black, .modal-order, .lib-play { background: var(--black); }
.btn-black:hover, .prod-btn:hover, .modal-order:hover { opacity: 1; background: #242b44; }
.prod-play, .btn-outline-b, .pill, .qq-chip, .follow-btn, .lib-more { border-color: var(--black); }
.pill.active { background: var(--black); border-color: var(--black); }
.qq-chip, .follow-btn, .lib-more { border-color: var(--gray2); }
.qq-chip:hover, .follow-btn:hover, .lib-more:hover { border-color: var(--brass); background: var(--white); }
.see-all { color: var(--brass-text); font-weight: 600; }
.see-all:hover { color: var(--black); }
.desktop-nav a:hover, .desktop-nav a.active, .sp-nav a:hover { color: var(--black); border-bottom-color: var(--brass); }
.dot.active { background: var(--brass-soft); }
.lib-row.playing { border-color: var(--brass); }
.lib-fill { background: var(--brass); }
.stat { border-left-color: var(--brass); }
.step-num { background: var(--black); box-shadow: 0 0 0 6px var(--gray); }

/* Key info strip: shipping, returns, payment, discount */
.keyinfo { background: var(--white); border-bottom: 1px solid var(--gray2); }
.keyinfo-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.keyinfo-item { display: flex; gap: 12px; align-items: center; padding: 16px 20px; color: var(--black); border-left: 1px solid var(--gray2); transition: background .2s; }
.keyinfo-item:first-child { border-left: 0; }
.keyinfo-item:hover { background: var(--gray); }
.keyinfo-item svg { flex-shrink: 0; color: var(--brass); }
.keyinfo-item strong { display: block; font-size: .84rem; font-weight: 700; line-height: 1.25; }
.keyinfo-item span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.keyinfo.boxed { border: 1px solid var(--gray2); border-radius: 16px; margin: 0 0 32px; overflow: hidden; }
@media (max-width: 900px) {
  .keyinfo-inner { grid-template-columns: 1fr 1fr; }
  .keyinfo-item:nth-child(3) { border-left: 0; }
  .keyinfo-item:nth-child(n+3) { border-top: 1px solid var(--gray2); }
  .keyinfo-item { padding: 12px 14px; gap: 10px; }
}

/* First screen: hero + key info strip fit together */
.hero { height: clamp(420px, calc(100svh - 240px), 760px); min-height: 0; }
@media (max-width: 900px) { .hero { height: clamp(360px, calc(100svh - 280px), 640px); } }
@media (max-width: 480px) {
  .keyinfo-item { padding: 10px 12px; gap: 8px; align-items: flex-start; }
  .keyinfo-item svg { width: 22px; height: 22px; margin-top: 2px; }
  .keyinfo-item strong { font-size: .78rem; }
  .keyinfo-item span { font-size: .7rem; }
  .slide-content { bottom: 44px; }
  .slide-content h1, .slide-content h2 { font-size: 2.1rem; margin-bottom: 16px; }
}
@media (min-width: 769px) { .slide-content { left: 84px; right: 84px; } }
/* Keep the chat button off the key info strip on the first screen */
.chat-widget { transition: bottom .3s ease; }
body.has-keyinfo:not(.scrolled) .chat-widget { bottom: 104px; }
@media (max-width: 900px) {
  .chat-widget { transition: opacity .3s ease, transform .3s ease; }
  body.has-keyinfo:not(.scrolled) .chat-widget { bottom: 16px; opacity: 0; transform: translateY(20px); pointer-events: none; }
}

@media (max-width: 768px) { .kind-product .keyinfo { display: none; } }

/* Footer: night navy, like the static pages */
footer { border-top: 0; }
.footer-main, .footer-bottom, footer .seo-links { background: var(--black); color: rgba(251, 248, 242, .78); }
footer .seo-links { max-width: none; padding-left: max(20px, calc((100% - 1160px) / 2)); padding-right: max(20px, calc((100% - 1160px) / 2)); border-top: 1px solid rgba(255,255,255,.08); }
.footer-col h4, footer .seo-links strong, footer .logo span { color: #fbf8f2; }
.footer-tagline, .footer-nav-list li, .footer-contact-row a, .footer-copy-text, footer .seo-links a { color: rgba(251, 248, 242, .62); }
.footer-nav-list li:hover, .footer-contact-row a:hover, footer .seo-links a:hover { color: var(--brass-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.pay-icon { background: rgba(255,255,255,.08); color: rgba(251,248,242,.7); }
.social-links a { border-color: rgba(255,255,255,.18); color: rgba(251,248,242,.75); }
.social-links a:hover { border-color: var(--brass-soft); color: var(--brass-soft); }
footer .follow-btn { color: #fbf8f2; border-color: rgba(255,255,255,.2); background: transparent; }
footer .follow-btn:hover { border-color: var(--brass-soft); background: rgba(255,255,255,.04); }
.trust-strip { background: var(--gray); }
.trust-icon { color: var(--brass); }
.sp-footer { background: var(--black); }
.sp-footer p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass-soft); }

.video-section-home { background: var(--black); }
.video-section-home .video-yt-link, .video-section-home .btn-black { background: var(--cream); color: var(--black); }
.video-section-home .video-yt-link:hover { background: #fff; }
.footer-col .footer-h { font-family: var(--font); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #fbf8f2; margin-bottom: 16px; }
.container.section-pad { padding-left: 20px; padding-right: 20px; }
.blog-card { background: var(--white); border-radius: 18px; }
.blog-card h3, .blog-card .blog-title { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; font-weight: 600; }
.btn-tg { background: var(--black); }
.btn-tg:hover { opacity: 1; background: #242b44; }
.page-header { background: var(--gray); border-bottom: 1px solid var(--gray2); }
.chat-fab-btn { background: var(--black); box-shadow: 0 0 0 2px rgba(251, 248, 242, .92), 0 6px 22px rgba(0, 0, 0, .3); }

/* Motion */
.slide { overflow: hidden; }
.slide::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transform: scale(1); transition: transform 9s ease-out; }
.slide.is-active::before { transform: scale(1.07); }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(169, 130, 74, .55); } 100% { box-shadow: 0 0 0 12px rgba(169, 130, 74, 0); } }
.lib-row.playing .lib-play { background: var(--brass-text); animation: ringPulse 1.5s ease-out infinite; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.keyinfo-item { animation: riseIn .6s ease both; }
.keyinfo-item:nth-child(2) { animation-delay: .08s; }
.keyinfo-item:nth-child(3) { animation-delay: .16s; }
.keyinfo-item:nth-child(4) { animation-delay: .24s; }
.keyinfo-item svg { transition: transform .3s ease; }
.keyinfo-item:hover svg { transform: translateY(-2px) scale(1.08); }
.sp-catcard, .sp-guide, .blog-card { transition: transform .3s ease, box-shadow .3s ease; }
.sp-catcard:hover, .sp-guide:hover, .blog-card:hover { transform: translateY(-4px); }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .slide::before { transition: none; }
  .slide.is-active::before { transform: none; }
  .keyinfo-item { animation-name: fadeOnly; }
  .sp-catcard:hover, .sp-guide:hover, .blog-card:hover, .product-card:hover, .keyinfo-item:hover svg { transform: none; }
  .reveal { transform: none; }
}

/* Spacing rhythm */
.section { padding: 80px 0; }
.section-head { margin-bottom: 32px; }
@media (max-width: 768px) { .section { padding: 56px 0; } .section-head { margin-bottom: 22px; } }
