/* ==========================================================================
   Novisly marketing site — shared design system
   ========================================================================== */

:root {
  /* brand */
  --blue:      #2b3a8f;
  --blue-700:  #1f2a6b;
  --blue-500:  #3a4bbf;
  --green:     #3cc66b;
  --green-600: #2fae5b;

  /* ink / surfaces */
  --ink:       #111827;
  --slate:     #475569;
  --slate-400: #94a3b8;
  --line:      #e5e9f2;
  --bg:        #ffffff;
  --bg-soft:   #f6f8fc;
  --bg-blue:   #eef1fb;

  /* shape */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1140px;
  --shadow:    0 1px 2px rgba(17,24,39,.04), 0 10px 30px rgba(31,42,107,.07);
  --shadow-lg: 0 20px 50px rgba(31,42,107,.14);

  --gradient: linear-gradient(135deg, var(--blue-500), var(--blue));
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-blue { background: var(--bg-blue); }
.center { text-align: center; }
.measure { max-width: 720px; margin-inline: auto; }
.muted { color: var(--slate); }
.lead { font-size: 1.18rem; color: var(--slate); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500);
  margin-bottom: .6rem;
}
.grad-text {
  background: linear-gradient(120deg, var(--blue-500), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #06301a; box-shadow: 0 6px 18px rgba(60,198,107,.32); }
.btn-primary:hover { background: var(--green-600); color: #06301a; }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue-500); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 4px; }
.btn-ghost:hover { color: var(--blue); }
.btn-lg { padding: 16px 28px; font-size: 1.06rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; margin-left: 10px; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 68px; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 22px 18px; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav-links a { padding: 10px 0; width: 100%; font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(60,198,107,.12), transparent 60%),
    radial-gradient(820px 480px at 12% 0%, rgba(58,75,191,.14), transparent 60%),
    var(--bg-soft);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--slate-400); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: .5em; font-size: .85rem; font-weight: 600;
  color: var(--blue); background: #fff; border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- generic grid + cards ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-blue); color: var(--blue); margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }
.icon.green { background: rgba(60,198,107,.14); color: var(--green-600); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.step .num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 11px;
  background: var(--gradient); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 16px;
}
.step .num::before { content: counter(step); }

/* ---------- "inside hubspot" mock ---------- */
.mock {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6deec; display: block; }
.mock-body { padding: 22px; }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row .tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag-blue { background: var(--bg-blue); color: var(--blue); }
.tag-green { background: rgba(60,198,107,.16); color: var(--green-600); }
.tag-amber { background: #fef3c7; color: #b45309; }
.mock-line { height: 9px; border-radius: 5px; background: #eef1f7; }
.mock-line.w-60 { width: 60%; } .mock-line.w-40 { width: 40%; } .mock-line.w-80 { width: 80%; }
.skeleton-stack { display: grid; gap: 8px; }

/* ---------- trust strip ---------- */
.trust { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.trust .logo-chip { font-weight: 700; color: var(--slate-400); letter-spacing: .02em; font-size: 1.05rem; }
.quote {
  max-width: 760px; margin: 32px auto 0; text-align: center; font-size: 1.3rem;
  font-weight: 500; color: var(--ink); line-height: 1.5;
}
.quote cite { display: block; margin-top: 14px; font-size: .95rem; color: var(--slate); font-style: normal; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin-inline: auto; }
@media (max-width: 700px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -12px; right: 24px; background: var(--green);
  color: #06301a; font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.price { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; }
.price small { font-size: .95rem; font-weight: 500; color: var(--slate); }
.check-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate); }
.check-list li::before { content: "✓"; color: var(--green-600); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px;
  margin-bottom: 12px; background: #fff; box-shadow: var(--shadow);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-500); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 18px; color: var(--slate); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gradient); color: #fff; border-radius: var(--radius-lg); padding: 56px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe3fb; max-width: 560px; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 24px; }

/* ---------- footer ---------- */
.footer { background: #0e1430; color: #c7cde6; padding: 60px 0 30px; margin-top: 0; }
.footer a { color: #c7cde6; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .96rem; }
.footer .brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer .brand p { font-size: .95rem; max-width: 280px; color: #98a0c4; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px;
  font-size: .9rem; color: #98a0c4;
}

/* ---------- docs ---------- */
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-nav { position: sticky; top: 92px; align-self: start; }
.doc-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.doc-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--slate); font-weight: 500; }
.doc-nav a:hover, .doc-nav a.active { background: var(--bg-blue); color: var(--blue); text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ol, .prose ul { padding-left: 1.2em; color: var(--slate); }
.prose li { margin-bottom: .5em; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.callout { background: var(--bg-blue); border-left: 4px solid var(--blue-500); border-radius: 8px; padding: 14px 18px; margin: 18px 0; }
.callout.warn { background: #fff7ed; border-left-color: #f59e0b; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: var(--blue-500); }

/* ---------- misc ---------- */
.legal h2 { margin-top: 2em; }
.legal { max-width: 800px; }
.legal p, .legal li { color: var(--slate); }
.updated { color: var(--slate-400); font-size: .92rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 16px;
  border-radius: 8px; box-shadow: var(--shadow); z-index: 100;
}
.skip-link:focus { left: 16px; }

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