/* CalmSpace shared theme — used by all sub-pages */
:root {
  --primary: #4a368f;
  --primary-2: #6c4cc7;
  --primary-light: #f6f0ff;
  --warm: #fff4ec;
  --ink: #2a2153;
  --muted: #6b6191;
  --border: #ece5fa;
  --bg: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(74, 54, 143, 0.10);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100vw; overflow-x: hidden;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}
a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: 14px; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--primary) 100%);
  color: #fff !important; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: 0 6px 14px rgba(74,54,143,0.25);
}
.nav__cta:hover { text-decoration: none; transform: translateY(-1px); }
.nav__signin { color: var(--ink) !important; font-weight: 500; font-size: 14px; }

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-left: 8px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; display: block; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; }
  .nav__signin { display: none; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 14px 6px; font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav { position: relative; }
}

/* Page hero */
.page-hero {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(108,76,199,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255,196,142,0.30), transparent 60%),
    linear-gradient(135deg, var(--primary-light) 0%, #ffffff 65%, var(--warm) 100%);
  padding: 64px 0 48px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--primary);
  letter-spacing: 0.4px; text-transform: uppercase; box-shadow: var(--shadow);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb86b, var(--primary-2));
  box-shadow: 0 0 0 4px rgba(108,76,199,0.12);
}
.page-hero h1 {
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 16px 0 12px;
  font-weight: 800; letter-spacing: -0.02em;
}
.page-hero h1 .accent {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p.lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 720px; margin: 0; }

/* Article */
.article { padding: 56px 0 88px; }
.article-grid {
  display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 56px; align-items: start;
}
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }
.article-body h2 {
  font-size: clamp(22px, 2.6vw, 30px); margin: 36px 0 12px; font-weight: 800;
  letter-spacing: -0.01em; color: var(--ink);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; margin: 24px 0 10px; color: var(--ink); }
.article-body p { color: var(--ink); line-height: 1.7; font-size: 16px; margin: 0 0 14px; }
.article-body ul { padding-left: 22px; line-height: 1.7; }
.article-body li { margin-bottom: 6px; }
.article-body a:not(.btn) { color: var(--primary-2); }
.aside-card {
  position: sticky; top: 88px;
  background: linear-gradient(180deg, #fff 0%, var(--primary-light) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.aside-card h4 { margin: 0 0 8px; font-size: 16px; color: var(--ink); }
.aside-card p  { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  color: #fff; box-shadow: 0 8px 18px rgba(74,54,143,0.25);
}
.btn--primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn--ghost { background: #fff; border-color: var(--border); color: var(--ink); }
.btn--ghost:hover { border-color: #c9b8e8; text-decoration: none; }

/* Feature grid (used inside articles) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 18px 0 8px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: transform 150ms ease, box-shadow 150ms ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature__icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-light), #fff);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 12px;
}
.feature h4 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.feature p  { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
.faq details[open] { box-shadow: var(--shadow); border-color: #c9b8e8; }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--primary-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Inline CTA banner */
.banner {
  margin-top: 36px; padding: 28px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 60%, var(--warm) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.banner h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.banner p { margin: 0; color: var(--muted); font-size: 14px; }

/* Demo-request form (B2B landing pages) */
.demo-form {
  margin: 18px 0 32px; padding: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 14px;
}
.demo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .demo-form__row { grid-template-columns: 1fr; } }
.demo-form label { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); gap: 4px; }
.demo-form input,
.demo-form select,
.demo-form textarea {
  font: inherit; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fafaff;
}
.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.demo-form button { align-self: flex-start; }
.demo-form .req { color: #dc2626; margin-left: 2px; font-weight: 700; }
.demo-form__msg { margin: 0; font-size: 14px; color: var(--muted); }
.demo-form__msg--ok  { color: #047857; }
.demo-form__msg--err { color: #b91c1c; }

/* ============= Footer (5 cols) ============= */
.site-footer {
  background: linear-gradient(180deg, #1d1640 0%, #14102e 100%);
  color: #cfc6e8; padding: 56px 0 24px;
}
.site-footer a { color: #cfc6e8; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 36px;
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 1.4px; text-transform: uppercase; color: #fff;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.app-badges { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff !important; border-radius: 10px;
  padding: 8px 14px; min-width: 160px;
  border: 1px solid rgba(255,255,255,0.15);
}
.app-badge:hover { background: #111; text-decoration: none; }
.app-badge__sub { font-size: 9px; line-height: 1; opacity: 0.8; letter-spacing: 0.5px; }
.app-badge__name { font-size: 14px; font-weight: 600; line-height: 1.1; }
.app-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.footer-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.footer-actions a {
  display: inline-block; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-align: center;
}
.footer-actions a.signin {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff !important;
}
.footer-actions a.signin:hover { background: rgba(255,255,255,0.12); }
.footer-actions a.trial {
  background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff !important;
  box-shadow: 0 6px 14px rgba(74,54,143,0.35);
}
.footer-bottom {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #9b91bd;
}
.footer-bottom .brand-line { display: flex; align-items: center; gap: 10px; }
.footer-bottom .brand-line img { width: 22px; height: 22px; filter: drop-shadow(0 0 4px rgba(108,76,199,0.4)); }
.footer-mini-links { display: flex; gap: 16px; }
.footer-mini-links a { color: #9b91bd; }

/* Coming-soon hover for app badges */
.app-badge[data-coming]::after {
  content: attr(data-coming); display: block; font-size: 9px; opacity: 0.6;
}

/* App badges image (single PNG containing both stores) */
.app-badges-img {
  display: block; margin-bottom: 14px;
  background: transparent; border: 0; padding: 0; border-radius: 0;
  text-align: center; transition: transform 150ms ease, box-shadow 150ms ease;
  max-width: 220px;
}
.app-badges-img:hover { transform: translateY(-2px); text-decoration: none; }
.app-badges-img img { display: block; width: 100%; height: auto; }
.app-badges-img .coming-soon {
  display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase; color: rgba(255,255,255,0.65);
}
