/* Synx Tracking — shared design system (same family as OTP Verify / The
   Academy: light #f7f8fa canvas, indigo→blue gradient accent, glassy white
   cards, soft layered shadows, pill badges). */
:root {
  --bg: #f7f8fa;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --card: #ffffff;
  --indigo: #4f46e5;
  --blue: #2563eb;
  --grad: linear-gradient(135deg, #4f46e5, #2563eb);
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --grey: #94a3b8;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1440px) {
  .wrap { max-width: 1360px; }
  .hero { padding: 84px 0 56px; }
  .hero h1 { font-size: 60px; }
  section { padding: 54px 0; }
}

/* header */
header.site {
  position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 14px rgba(15, 23, 42, .05);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo .tile {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; color: #fff; font-size: 16px; font-weight: 800;
}
header.site nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-size: 14px; }
header.site nav a { color: var(--muted); font-weight: 600; }
header.site nav a:hover { color: var(--ink); text-decoration: none; }
header.site nav a.btn { color: #fff; }
header.site nav a.btn:hover { color: #fff; }

/* hero */
.hero { padding: 72px 0 30px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 260px at 50% -60px, rgba(79, 70, 229, .16), transparent 70%);
}
.hero h1 { font-size: clamp(32px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; position: relative; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 17px; position: relative; }
.hero .cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: var(--indigo); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 999px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid #fecaca; box-shadow: none; }
.btn[disabled] { opacity: .55; cursor: default; }

/* sections + cards */
section { padding: 34px 0; }
h2.title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 6px; text-align: center; }
h2.title::after { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #d946ef); margin: 10px auto 0; box-shadow: 14px 0 0 -1px rgba(99,102,241,.45), -14px 0 0 -1px rgba(217,70,239,.45); }
p.sub { color: var(--muted); margin-bottom: 20px; text-align: center; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }
.card .icon { font-size: 22px; margin-bottom: 10px; color: #4f46e5; }
.card .icon svg { width: 26px; height: 26px; display: block; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; color: #0f172a; }
.price .per { font-size: 16px; font-weight: 600; color: #334155; letter-spacing: 0; }
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: #6366f1; font-size: 20px; font-weight: 700; flex: none; }
details.faq[open ] summary::after { content: "–"; }
details.faq p { margin-top: 8px; color: #475569; font-size: 14.5px; }
.spacer { flex: 1; }
#ev-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s ease .1s; }
.inview #ev-line { stroke-dashoffset: 0; }
#ev-area { transition: opacity 1.2s ease .9s; }
.inview #ev-area { opacity: 1 !important; }
#ev-dots circle { cursor: pointer; }
#ev-dots circle:hover { fill: #6366f1; }
.fnode.active rect { stroke: #6366f1 !important; stroke-width: 2.5 !important; }
@media (prefers-reduced-motion: reduce) {
  #ev-line { transition: none; stroke-dashoffset: 0; }
  #ev-area { transition: none; opacity: 1 !important; }
}
pre.code { position: relative; }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; font-size: 12px; font-weight: 600; padding: 5px 12px; cursor: pointer; font-family: inherit; }
.copy-btn:hover { background: rgba(255,255,255,.2); }
ul.ticks { list-style: none; margin: 12px 0 0; padding: 0; }
ul.ticks li { padding: 5px 0 5px 24px; position: relative; color: #475569; font-size: 14.5px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 2px; color: #16a34a; font-weight: 700; }

/* comparison bars */
.bar-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; margin: 10px 0; font-size: 14px; }
.bar-track { height: 14px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 1.3s cubic-bezier(.22,.8,.3,1); }
.bar-row { border-radius: 10px; padding: 4px 6px; margin: 6px -6px; transition: background .2s; }
.bar-row:hover { background: #f8fafc; }
.bar-row:hover .bar-fill { filter: brightness(1.08); }
.bar-fill.bad { background: linear-gradient(90deg, #f59e0b, #dc2626); }
.bar-fill.good { background: var(--grad); }

/* code */
pre.code, code.block {
  display: block; background: #0f172a; color: #dbeafe; border-radius: 14px;
  padding: 16px; padding-right: 86px; font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
code.inline { background: #eef2ff; color: #3730a3; padding: 1px 6px; border-radius: 6px; font-size: .92em; }

/* forms */
label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(79, 70, 229, .35); border-color: var(--indigo); }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; }
.ok { color: var(--green); font-size: 13px; margin-top: 10px; }

/* pills, dots, tables */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.pill.green { background: #dcfce7; color: #166534; }
.pill.red { background: #fee2e2; color: #991b1b; }
.pill.amber { background: #fef3c7; color: #92400e; }
.pill.grey { background: #f1f5f9; color: #475569; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.green { background: var(--green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.dot.amber { background: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, .15); }
.dot.red { background: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); }
.dot.grey { background: var(--grey); box-shadow: 0 0 0 4px rgba(148, 163, 184, .18); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 9px 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.tbl-wrap { overflow-x: auto; }

/* dashboard layout */
.dash-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.dash-head h1 { font-size: 24px; letter-spacing: -0.01em; }
.dash-head .spacer { flex: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0; }
.stats.ev3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stats .stat { min-width: 0; }
.stats .l { overflow-wrap: break-word; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.stat .n { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.hidden { display: none !important; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* sale flow strip */
.flowsteps { display: flex; align-items: stretch; gap: 8px; margin: 12px 0 4px; }
.fstep { flex: 1; display: flex; gap: 10px; align-items: flex-start; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; }
.fstep .fn { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.farrow { align-self: center; color: #94a3b8; font-weight: 700; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* v1.13: cap the Integrations flow diagram's rendered width. The svg scales
   to its container, so in the full-width card (1200/1360px wrap) its internal
   13.5-unit titles rendered ~21-24px — bigger than the page's card titles.
   At 860px the scale is ~1.19: titles land at ~16px (.card h3) and subtitles
   at ~12.5px (.small). Mobile is untouched: the ≤640px min-width:580px
   swipe rule below still governs under 860px. */
#flow { max-width: 860px; margin-left: auto; margin-right: auto; }
.swipe-hint { display: none; }
.logo { white-space: nowrap; }
header.site nav a.btn { white-space: nowrap; }
@media (max-width: 640px) {
  header.site .wrap { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 16px; gap: 8px; }
  .logo .tile { width: 28px; height: 28px; border-radius: 8px; }
  header.site nav { gap: 13px; }
  header.site nav a { font-size: 13px; }
  header.site nav a.btn.small { padding: 7px 12px; font-size: 13px; }
  .hero { padding: 44px 0 30px; }
  .flowsteps { flex-direction: column; }
  .farrow { transform: rotate(90deg); }
  .formgrid { grid-template-columns: 1fr; }
  .flow-scroll svg { min-width: 580px; }
  .swipe-hint { display: block; }
  .feat-ic { width: 34px; height: 34px; }
}

/* logo sync dots */
.logo .dots i { font-style: normal; color: #6366f1; animation: dotpulse 1.5s infinite; }
.logo .dots i:nth-child(2) { animation-delay: .18s; }
.logo .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dotpulse { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .logo .dots i { animation: none; opacity: .7; }
  .bar-fill { transition: none; }
}

/* ── Integrations diagram, Kodifi style (v1.17) ─────────────────────── */
.flow2 { display: flex; align-items: center; margin-top: 14px; padding: 20px 18px; border-radius: 16px; background-color: #fcfcfe; background-image: radial-gradient(rgba(99, 102, 241, .10) 1px, transparent 1.2px); background-size: 18px 18px; }
.f2-left { flex: none; width: 196px; }
.f2-req { background: #0f172a; color: #fff; border-radius: 10px; padding: 11px 13px; font-size: 12.5px; box-shadow: 0 4px 12px rgba(15, 23, 42, .25); cursor: pointer; }
.f2-req code { font-family: ui-monospace, Menlo, Consolas, monospace; }
.f2-note { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.65; margin-top: 10px; box-shadow: 0 1px 4px rgba(15, 23, 42, .05); }
.f2-note .ok { color: #16a34a; font-weight: 800; }
.f2-note .zap { color: #f59e0b; }
.f2-conn { flex: none; width: 36px; height: 2px; background-image: linear-gradient(90deg, #a5b4c9 55%, transparent 45%); background-size: 9px 2px; background-repeat: repeat-x; opacity: .7; animation: f2march 0.9s linear infinite; }
@keyframes f2march { to { background-position-x: 9px; } }
.f2-hub { flex: none; text-align: center; cursor: pointer; }
.f2-tile { width: 64px; height: 64px; border-radius: 18px; background: var(--grad); color: #fff; font-weight: 800; font-size: 28px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(79, 70, 229, .35); margin: 0 auto; }
.f2-hubname { font-weight: 700; margin-top: 6px; font-size: 14px; }
.f2-rows { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.f2-row { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #e6e9f5; border-radius: 12px; padding: 9px 13px; box-shadow: 0 1px 4px rgba(15, 23, 42, .05); cursor: pointer; }
.f2-row .ic { width: 32px; height: 32px; border-radius: 9px; background: #eef2ff; display: flex; align-items: center; justify-content: center; flex: none; }
.f2-row .nm { font-weight: 700; font-size: 14px; }
.f2-row .sub { color: var(--muted); font-size: 12.5px; }
.f2-badge { margin-left: auto; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; flex: none; }
.f2-badge.live { background: #e7f8ee; color: #15803d; }
.f2-badge.soon { background: #eef1f6; color: #64748b; }
.f2-right { flex: none; width: 132px; text-align: center; cursor: pointer; }
.f2-circle { width: 58px; height: 58px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; margin: 0 auto; box-shadow: 0 8px 18px rgba(79, 70, 229, .3); }
.f2-rname { font-weight: 700; font-size: 13.5px; margin-top: 7px; }
.f2-rok { color: #16a34a; font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.fnode2 { border-radius: 12px; }
.fnode2.active { outline: 2px solid #6366f1; outline-offset: 2px; }
@media (max-width: 900px) {
  .flow2 { flex-direction: column; align-items: stretch; }
  .f2-left { width: auto; max-width: 300px; margin: 0 auto; width: 100%; }
  .f2-conn { width: 2px; height: 26px; margin: 6px auto; background-image: linear-gradient(#a5b4c9 55%, transparent 45%); background-size: 2px 9px; background-repeat: repeat-y; animation: none; }
  .f2-right { margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .f2-conn { animation: none; } }
