/* ==========================================================================
   Zindle marketing site — "Signal" design system (light)
   Tokens mirror the established brand system. Light theme; code stays dark.
   ========================================================================== */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --violet:        #7C5CFF;
  --violet-hover:  #6B49F5;
  --violet-active: #5B3CE0;
  --blue:          #4D8DFF;
  --gradient:      linear-gradient(135deg, #7C5CFF 0%, #4D8DFF 100%);

  --bg:            #FBFBFD;
  --surface:       #FFFFFF;
  --subtle:        #F3F3F7;
  --code-bg:       #16161E;
  --code-bg-deep:  #101016;

  --text:          #14141A;
  --text-muted:    #5A5A66;
  --text-subtle:   #8A8A96;
  --text-oncode:   #CFCFDA;
  --border:        rgba(20,20,26,0.10);
  --border-strong: rgba(20,20,26,0.16);

  --success:       #1B7A36;
  --success-bg:    #E7F8EC;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --maxw: 1080px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-hover); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Focus (accessibility floor) ─────────────────────────────────────────── */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 3px solid rgba(124,92,255,0.45);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,253,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 30px; height: 30px; }
.brand .name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--violet); color: #fff !important;
  padding: 8px 16px; border-radius: var(--radius-sm); font-family: var(--font-display);
}
.nav-cta:hover { background: var(--violet-hover); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.2s; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--subtle); color: var(--text); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.01em; color: var(--violet);
  background: rgba(124,92,255,0.08); border: 1px solid rgba(124,92,255,0.18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 20px; text-wrap: balance; }
.hero h1 .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lede { font-size: 1.18rem; color: var(--text-muted); margin-bottom: 32px; max-width: 30em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Transformation signature (code -> page) ─────────────────────────────── */
.transform {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
}
.code-card {
  background: var(--code-bg); border: 1px solid #24242f; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 18px 50px rgba(20,20,40,0.16);
}
.code-card .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--code-bg-deep); }
.code-card .bar .d { width: 9px; height: 9px; border-radius: 50%; background: #2a2a36; }
.code-card .bar .d.v { background: var(--violet); }
.code-card .bar .label { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); }
.code-card pre { margin: 0; padding: 16px; overflow-x: auto; }
.code-card code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--text-oncode); }
.code-card .t-kw { color: #c4a3ff; }
.code-card .t-st { color: #7fd6a8; }
.code-card .t-fn { color: #6fb4ff; }
.code-card .t-cm { color: #5f5f6c; }

.transform-arrow { color: var(--violet); font-size: 26px; }
.doc-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; aspect-ratio: 1 / 1.3; box-shadow: 0 18px 50px rgba(20,20,40,0.12);
  position: relative; overflow: hidden;
}
.doc-card .seal { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 5px; background: var(--gradient); }
.doc-card h4 { font-size: 13px; margin-bottom: 12px; }
.doc-card .ln { height: 5px; border-radius: 3px; background: var(--text); opacity: 0.10; margin-bottom: 7px; }
.doc-card .ln.s { width: 55%; }
.doc-card .ln.m { width: 80%; }
.doc-card .tbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.doc-card .tbl span { height: 7px; border-radius: 2px; background: var(--text); opacity: 0.08; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 36em; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.bg-subtle { background: var(--subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── Feature pillars ─────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
}
.pillar .ic {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(124,92,255,0.10); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--violet);
}
.pillar h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pillar p { color: var(--text-muted); font-size: 0.98rem; }

/* ── No-store explainer band ─────────────────────────────────────────────── */
.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.explainer h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.explainer p { color: var(--text-muted); margin-bottom: 14px; }
.flow { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; }
.flow .node {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--font-mono); font-size: 13px; text-align: center; min-width: 96px;
}
.flow .node.mem { border-color: var(--violet); color: var(--violet); }
.flow .arr { color: var(--text-subtle); font-size: 20px; }
.flow .drop { font-family: var(--font-body); font-size: 12px; color: var(--text-subtle); }

/* ── Pricing teaser / cards ──────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.price-card .tier { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.price-card .amt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; margin: 14px 0 4px; }
.price-card .amt small { font-size: 0.95rem; color: var(--text-subtle); font-weight: 500; }
.price-card .per { color: var(--text-subtle); font-size: 0.9rem; margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--text-muted); font-size: 0.96rem; }
.price-card li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; flex: none; border-radius: 50%; background: var(--success-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-6' stroke='%231B7A36' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }
.price-tag-pill { display:inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--violet); background: rgba(124,92,255,0.08); border:1px solid rgba(124,92,255,0.18); padding: 3px 10px; border-radius: 999px; margin-left:8px; vertical-align: middle; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 80px 0; }
.cta-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.cta-band p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--code-bg); color: var(--text-oncode); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand .name { color: #fff; }
.site-footer .f-tag { color: #8b8b98; font-size: 0.9rem; margin-top: 12px; max-width: 26em; }
.site-footer h5 { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6f6f7c; margin-bottom: 14px; font-weight: 600; }
.site-footer a { display: block; color: #b8b8c2; font-size: 0.92rem; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #6f6f7c; font-size: 0.85rem; }
.footer-bottom .disclosure { max-width: 46em; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.legal { padding: 56px 0 72px; }
.legal-head { max-width: var(--maxw); margin: 0 auto 8px; }
.legal-head .updated { color: var(--text-subtle); font-size: 0.9rem; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 90px; }
.legal-toc h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); margin-bottom: 12px; }
.legal-toc a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 4px 0; }
.legal-toc a:hover { color: var(--violet); }
.legal-body h2 { font-size: 1.3rem; margin: 36px 0 12px; padding-top: 28px; border-top: 1px solid var(--border); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: var(--text-muted); margin-bottom: 12px; line-height: 1.75; }
.legal-body ul, .legal-body ol { padding-left: 1.4rem; margin-bottom: 14px; }
.legal-body strong { color: var(--text); }
.legal-body table { border-collapse: collapse; width: 100%; margin: 8px 0 18px; font-size: 0.92rem; }
.legal-body th, .legal-body td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--subtle); font-family: var(--font-display); font-weight: 600; color: var(--text); }
.legal-intro { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.75; }
.entity-box { background: var(--subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; font-size: 0.92rem; color: var(--text-muted); }
.entity-box strong { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid, .explainer { grid-template-columns: 1fr; gap: 40px; }
  .pillars, .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 100%; right: 0; left: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .nav.open a { padding: 8px 0; }
  .nav-toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
