/* ========================================================================
   Deepseatools / StorePulse marketing site
   ====================================================================== */

:root {
  --brand: #5a48e0;
  --brand-dark: #4a39d0;
  --brand-tint: #f0edff;
  --ink: #0f1117;
  --text: #1a1f36;
  --text-soft: #5c637a;
  --bg: #ffffff;
  --bg-alt: #fafbff;
  --bg-soft: #f6f7fb;
  --border: #e6e9f2;
  --border-soft: #f0f2f8;
  --success: #0a7d4e;
  --warning: #b45309;
  --critical: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(15, 17, 23, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 17, 23, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 17, 23, 0.12);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container: 1140px;
}

*, *::before, *::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace; font-size: 0.92em; }
pre { background: var(--ink); color: #e8eaf6; padding: 16px 20px; border-radius: var(--radius); overflow-x: auto; line-height: 1.55; font-size: 13px; }
code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
pre code { background: transparent; padding: 0; color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.4rem); letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); }

/* ── Layout ───────────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 72px 0;
}
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: #e8eaf6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #b6bdda; }

/* ── Header / nav ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(255, 90, 110, 0.28);
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover { color: var(--brand); text-decoration: none; }
.nav-back {
  font-size: 12px !important;
  color: var(--text-soft) !important;
  padding-right: 16px;
  border-right: 1px solid var(--border);
  margin-right: 4px;
}
.nav-back:hover { color: var(--ink) !important; }
@media (max-width: 760px) {
  .nav-back { border-right: 0; padding-right: 0; }
}
.nav .btn { font-size: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--ink);
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 24px 20px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
  .nav-toggle { display: block; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1;
}
.btn--primary { background: var(--brand); color: #fff !important; }
.btn--primary:hover { background: var(--brand-dark); color: #fff !important; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn--ghost:hover { border-color: #fff; text-decoration: none; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(90, 72, 224, 0.12), transparent 70%),
    var(--bg);
}
.hero__eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: var(--bg-alt);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto 18px;
}
.hero__lede {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.15rem;
  color: var(--text-soft);
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero__meta {
  font-size: 13px;
  color: var(--text-soft);
}

/* ── Features grid ────────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(90, 72, 224, 0.3);
  box-shadow: var(--shadow-md);
}
.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.feature-card h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature-card p { color: var(--text-soft); margin: 0; font-size: 14px; line-height: 1.55; }

/* ── Section heading ──────────────────────────────────────────────── */
.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 24px;
}
.section__head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__head p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ── How it works ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { color: var(--text-soft); font-size: 14px; margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow-md);
  position: relative;
}
.price-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.price-card__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.price-card__price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
}
.price-card__price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-left: 4px;
}
.price-card__lede {
  font-size: 14px;
  color: var(--text-soft);
  margin: 8px 0 18px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--text);
}
.price-card li {
  padding: 6px 0 6px 22px;
  position: relative;
  margin: 0;
  border-bottom: 1px dashed var(--border-soft);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--brand);
  font-weight: 700;
}
.price-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ── Comparison table ─────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 36px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th {
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--ink);
  white-space: nowrap;
}
.compare-table td:first-child { font-weight: 500; color: var(--ink); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--success); font-weight: 700; }
.compare-table .no  { color: #b8bdcc; }

/* ── FAQ ──────────────────────────────────────────────────────────── */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 820px;
  margin: 36px auto 0;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.15s;
}
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 12px 0 0; color: var(--text-soft); font-size: 14px; }

/* ── Doc article (privacy / terms / guide) ────────────────────────── */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.doc h1 { margin-bottom: 8px; }
.doc .doc__updated { color: var(--text-soft); font-size: 13px; margin-bottom: 32px; }
.doc h2 { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.doc h3 { margin-top: 24px; }
.doc p, .doc li { color: var(--text); }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.doc table th, .doc table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.doc table th { background: var(--bg-soft); font-weight: 600; }
.doc table tr:last-child td { border-bottom: 0; }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0 36px;
  font-size: 14px;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--ink); }
.toc ol, .toc ul { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 4px; }

/* ── CTA banner ───────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand) 0%, #6e5cef 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  margin: 60px auto;
  max-width: var(--container);
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 560px; margin: 0 auto 22px; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #b6bdda;
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer a { color: #d8dcef; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: #8a93b3;
  font-size: 13px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Utility ──────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.muted { color: var(--text-soft); }
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-tint);
  color: var(--brand);
}
.divider { height: 1px; background: var(--border-soft); margin: 28px 0; border: 0; }

/* ── Guide layout ─────────────────────────────────────────────────── */
.guide {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 40px auto;
  padding: 0 24px;
}
.guide__nav {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
  border-right: 1px solid var(--border-soft);
  padding-right: 16px;
}
.guide__nav h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  margin-top: 20px;
  margin-bottom: 8px;
}
.guide__nav h4:first-child { margin-top: 0; }
.guide__nav ul { list-style: none; padding: 0; margin: 0; }
.guide__nav li { margin: 0; }
.guide__nav a {
  display: block;
  padding: 6px 10px;
  color: var(--text);
  border-radius: 6px;
}
.guide__nav a:hover { background: var(--bg-alt); text-decoration: none; }
.guide__nav a.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.guide__main { min-width: 0; }
@media (max-width: 880px) {
  .guide { grid-template-columns: 1fr; }
  .guide__nav { position: static; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--border-soft); padding-bottom: 14px; }
}
