/* =========================================================
   Ambient Pocket — marketing site
   Shared styles for landing, privacy, and support pages
   ========================================================= */

:root {
  --bg: #0d0b1e;
  --bg-2: #130f2a;
  --bg-card: rgba(30, 25, 58, 0.5);
  --bg-card-hi: rgba(40, 33, 72, 0.7);
  --accent: #e8b86d;
  --accent-dim: rgba(232, 184, 109, 0.12);
  --accent-glow: rgba(232, 184, 109, 0.28);
  --lav: #b8a9e8;
  --lav-dim: rgba(184, 169, 232, 0.15);
  --sage: #8ecac0;
  --rose: #e89dab;
  --text: #ede8e0;
  --text-sec: #a89f94;
  --text-dim: #665e55;
  --radius: 14px;
  --radius-lg: 22px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: #f5d29a; text-decoration: underline; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 11, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 10;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand .logo {
  width: 40px; height: 40px;
  background: var(--bg);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--accent-glow);
  border: 1px solid rgba(232, 184, 109, 0.3);
}
.brand .logo svg { width: 24px; height: 24px; color: var(--accent); }
.brand .name .a { color: var(--accent); }

nav.primary {
  display: flex; gap: 28px; font-size: 15px;
}
nav.primary a {
  color: var(--text-sec);
  padding: 8px 0;
  position: relative;
}
nav.primary a.active,
nav.primary a:hover {
  color: var(--text);
  text-decoration: none;
}
nav.primary a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
}

/* ========== HERO ========== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: ''; position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}
.hero::before {
  top: -200px; left: -100px;
  width: 500px; height: 500px;
  background: var(--lav);
}
.hero::after {
  bottom: -200px; right: -100px;
  width: 600px; height: 600px;
  background: var(--accent);
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 184, 109, 0.3);
  border-radius: 9999px;
}
.hero h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 .a {
  background: linear-gradient(135deg, var(--accent) 0%, var(--lav) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lede {
  font-size: 20px;
  color: var(--text-sec);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero .cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  background: #0d0b1e;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 15px;
}
.store-btn:hover {
  background: var(--bg-card-hi);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--text);
}
.store-btn svg { width: 28px; height: 28px; }
.store-btn .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn .label small { font-size: 11px; color: var(--text-sec); letter-spacing: 0.5px; }
.store-btn .label strong { font-size: 16px; font-weight: 600; }

/* ========== FEATURE GRID ========== */
.features {
  padding: 80px 0;
}
.features h2 {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.features .section-sub {
  text-align: center;
  color: var(--text-sec);
  font-size: 17px;
  margin-bottom: 60px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s ease;
}
.feature:hover {
  background: var(--bg-card-hi);
  border-color: rgba(232, 184, 109, 0.2);
  transform: translateY(-2px);
}
.feature .icon {
  width: 52px; height: 52px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}
.feature p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ========== CONTENT PAGES (privacy, support) ========== */
.content-page {
  padding: 80px 0 120px;
}
.content-page h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.content-page .subtitle {
  color: var(--text-sec);
  font-size: 16px;
  margin-bottom: 48px;
  display: block;
}
.content-page .updated {
  color: var(--text-dim);
  font-size: 13px;
  font-family: Monaco, monospace;
  margin-bottom: 40px;
  padding: 10px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  display: inline-block;
}
.content-page h2 {
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--accent);
  padding-top: 8px;
  scroll-margin-top: 100px;
}
.content-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}
.content-page p {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 18px;
  line-height: 1.75;
}
.content-page ul, .content-page ol {
  margin: 0 0 18px 24px;
  color: var(--text);
}
.content-page li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.content-page ul li::marker {
  color: var(--accent);
}
.content-page strong { color: var(--text); font-weight: 600; }
.content-page code {
  background: var(--bg-card);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: Monaco, 'Courier New', monospace;
  font-size: 0.92em;
  color: var(--accent);
}

.toc {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.toc h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-dim); margin-bottom: 14px;
}
.toc ol { margin: 0; list-style: none; padding: 0; }
.toc li { margin-bottom: 8px; padding-left: 0; }
.toc a { color: var(--text-sec); font-size: 14px; }
.toc a:hover { color: var(--accent); text-decoration: none; }

/* ========== SUPPORT — FAQ ========== */
.faq { margin-top: 40px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.faq-item summary {
  font-size: 17px; font-weight: 600; color: var(--text);
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  position: relative;
  padding-right: 40px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .answer {
  padding-top: 16px; color: var(--text-sec); font-size: 15px;
  line-height: 1.7;
}
.faq-item .answer p { margin-bottom: 12px; color: var(--text-sec); }
.faq-item .answer p:last-child { margin-bottom: 0; }

.contact-card {
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--lav-dim) 100%);
  border: 1px solid rgba(232, 184, 109, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  margin-top: 60px;
}
.contact-card h3 {
  font-size: 22px; font-weight: 700;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--text-sec); font-size: 15px;
  margin-bottom: 24px;
}
.contact-card .email-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #d4a574 100%);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px var(--accent-glow);
  transition: transform 0.15s ease;
}
.contact-card .email-btn:hover {
  transform: translateY(-1px); color: var(--bg); text-decoration: none;
}
.contact-card .email-btn svg { width: 18px; height: 18px; }

/* ========== FOOTER ========== */
.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 11, 30, 0.8);
  margin-top: 80px;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 700px) {
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer .col-brand { color: var(--text-sec); font-size: 14px; line-height: 1.7; max-width: 360px; }
.site-footer .col h5 {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--text-sec); font-size: 14px; }
.site-footer ul a:hover { color: var(--accent); text-decoration: none; }
.site-footer .legal {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 28px; margin-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--text-dim);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 42px; }
  .hero p.lede { font-size: 17px; }
  .content-page h1 { font-size: 32px; }
  .content-page h2 { font-size: 22px; }
  nav.primary { gap: 18px; font-size: 14px; }
  .site-header { padding: 20px 0; }
  .brand .name { font-size: 16px; }
}
