/* ============================================================
   Splik — shared site styles
   ============================================================ */

:root {
  --primary: #0D9488;       /* Splik teal */
  --primary-dark: #0B7C72;
  --secondary: #134E4A;     /* deep teal-dark */
  --green: #059669;
  --error: #EF4444;
  --bg: #FDF8EC;            /* warm cream */
  --surface: #FFFFFF;
  --surface-variant: #F0FDFA;
  --text: #1C2321;
  --text-muted: #5B6864;
  --border: #E4DFCF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 78, 74, 0.08);
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 236, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a.active { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--secondary);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-cta { margin: 16px 24px; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-variant);
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-outline { background: transparent; border-color: var(--secondary); color: var(--secondary); }
.btn-outline:hover { background: var(--secondary); color: #fff; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--secondary);
}

.trust-item .emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; }

@media (max-width: 700px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); color: var(--secondary); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step .num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-variant);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step h3 { margin: 0 0 8px; color: var(--secondary); font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Cards / feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 { margin: 0 0 8px; color: var(--secondary); font-size: 1.08rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Category pills ---------- */
.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat {
  background: var(--secondary);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
}
.cat .emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.cat span.label { font-weight: 700; }

@media (max-width: 760px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Palette swatches (features page) ---------- */
.palettes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.palette {
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 700px) { .palettes { grid-template-columns: repeat(2, 1fr); } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 24px;
  padding: 56px 32px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: #fff; color: var(--secondary); }
.cta-banner .btn-primary:hover { background: #f2f2f2; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 260px; }

.footer-col h4 {
  color: var(--secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}
.legal h1 { margin-bottom: 8px; }
.legal h2 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin: 40px 0 12px;
}
.legal p, .legal li { color: var(--text); font-size: 0.98rem; }
.legal ul { padding-left: 22px; }
.legal .notice {
  background: var(--surface-variant);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

/* ---------- About page extras ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.pagehead {
  text-align: center;
  padding: 72px 0 24px;
}
.pagehead h1 { margin-bottom: 14px; }
.pagehead p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.08rem; }
