/* NextDataLinq — marketing site
   Self-contained: no external fonts, no CDNs, no trackers. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0e1729;
  --heading: #060b16;
  --muted: #55637a;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-2: #0891b2;
  --accent-soft: #eef1ff;
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(9, 17, 33, .06), 0 1px 3px rgba(9, 17, 33, .04);
  --shadow-md: 0 10px 30px rgba(9, 17, 33, .08);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-soft: #0e1526;
    --panel: #111a2d;
    --panel-2: #0f1728;
    --border: #1e2a44;
    --border-strong: #2c3a58;
    --text: #dfe6f2;
    --heading: #f4f7fc;
    --muted: #98a6bf;
    --accent: #8189f7;
    --accent-hover: #9aa1fa;
    --accent-2: #22d3ee;
    --accent-soft: #182142;
    --on-accent: #0a0f1c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; } /* clears the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--heading); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* Hidden by clipping rather than off-canvas positioning, so it cannot add to the
   document's scroll width on narrow screens. */
.skip {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
  z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus {
  width: auto; height: auto; padding: .6rem 1rem;
  overflow: visible; clip-path: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 66px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.06rem; letter-spacing: -.02em;
  color: var(--heading); text-decoration: none; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: 0 0 auto; }
.brand .brand-name b { font-weight: 800; }
.brand .brand-name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--muted); font-size: .95rem; font-weight: 550;
  text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--heading); text-decoration: none; }
/* `.nav a` outranks `.btn-primary`, so restate the button colours here. */
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-accent); }
.nav a.btn-ghost { color: var(--heading); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.15rem; border-radius: 999px;
  font-size: .95rem; font-weight: 620; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--heading); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; }

.nav-toggle {
  display: none; background: var(--panel); color: var(--heading);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .45rem .6rem; cursor: pointer; line-height: 1;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; margin-left: auto; }
  .brand { margin-right: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: .5rem 22px 1rem;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 78% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero .lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }

.hero-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 1.35rem 1.4rem;
}
.hero-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: .9rem; }
.tick-list { list-style: none; margin: 0; padding: 0; }
.tick-list li {
  position: relative; padding-left: 1.75rem; margin-bottom: .65rem;
  font-size: .97rem; color: var(--text);
}
.tick-list li:last-child { margin-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: .1rem; top: .5em;
  width: .85rem; height: .5rem;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}

/* ---------- sections ---------- */
section { padding: clamp(3rem, 6vw, 4.75rem) 0; }
section + section { border-top: 1px solid var(--border); }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 44em; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.kicker {
  font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .6rem;
}

.grid { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .97rem; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: .9rem;
}
.card ul { margin: .85rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: .95rem; }
.card li { margin-bottom: .3rem; }

/* work / case cards */
.work-card { display: flex; flex-direction: column; }
.work-card .tag {
  align-self: flex-start; font-size: .74rem; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 35%, transparent);
  border-radius: 999px; padding: .2rem .6rem; margin-bottom: .85rem;
}
.work-card .link { margin-top: auto; padding-top: 1rem; font-size: .93rem; font-weight: 600; }
.work-card .link a { word-break: break-word; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .95rem;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.plan .plan-flag {
  align-self: flex-start; background: var(--accent); color: var(--on-accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 999px; margin-bottom: .8rem;
}
.price { display: flex; align-items: baseline; gap: .35rem; margin: .35rem 0 .2rem; }
.price b { font-size: 2.15rem; letter-spacing: -.04em; color: var(--heading); line-height: 1; }
.price span { color: var(--muted); font-size: .95rem; }
.plan .sub { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.plan ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.plan li {
  position: relative; padding-left: 1.6rem; margin-bottom: .5rem;
  font-size: .95rem; color: var(--text);
}
.plan li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: .85rem; height: .5rem;
  border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 540px; }
caption { text-align: left; padding: 1rem 1.15rem .35rem; font-weight: 650; color: var(--heading); }
th, td { text-align: left; padding: .85rem 1.15rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: var(--panel-2); }
tbody tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; font-weight: 620; color: var(--heading); }

.note {
  margin-top: 1.15rem; font-size: .92rem; color: var(--muted);
  border-left: 3px solid var(--accent-2); padding: .35rem 0 .35rem .9rem;
}

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1.15rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.dl { margin: 0; }
.dl div { display: flex; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .96rem; }
.dl div:last-child { border-bottom: 0; }
.dl dt { flex: 0 0 8.5rem; color: var(--muted); }
.dl dd { margin: 0; color: var(--text); }

.cta {
  /* Fixed deep gradient in both themes so the white text always has contrast. */
  background: linear-gradient(135deg, #4338ca, #0e7490);
  color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.cta h2, .cta p { color: #fff; }
.cta p { margin-bottom: 0; opacity: .92; }
.cta h2 { margin-bottom: .3rem; }
.cta .btn-ghost { background: #fff; color: #1d1b57; border-color: #fff; }
.cta .btn-ghost:hover { color: #1d1b57; border-color: #fff; }

/* ---------- legal pages ---------- */
.page-head {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.5rem;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-head p { color: var(--muted); margin-bottom: 0; }
.updated { font-size: .9rem; color: var(--muted); }
.legal { padding: 2.5rem 0 3.5rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal ul, .legal ol { padding-left: 1.35rem; }
.legal li { margin-bottom: .45rem; }
.toc {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 2.5rem;
}
.toc h2 { font-size: .82rem !important; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 .6rem !important; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .95rem; }
.toc li { margin-bottom: .25rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 3rem 0 2rem;
  font-size: .94rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin-bottom: .85rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--accent); }
.footer-about p { color: var(--muted); max-width: 30em; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.35rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .89rem;
}
.pay-line { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
