/* ════════════════════════════════════════════════════════════════════════════
   pcountr.com — marketing site
   Light theme. Indigo → purple → pink gradient as accent, per the brand brief.
   The product dashboard also defaults to light, so site and app read as one
   thing when a visitor crosses the Client Login button.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-2:      #f5f5f7;   /* brief's light grey */
  --bg-3:      #eef0f6;
  --ink:       #0a0a0f;   /* brief's dark navy */
  --ink-2:     #2a2f45;
  --muted:     #5f6780;
  --line:      #e4e7f0;
  --line-2:    #d7dbe8;

  --indigo:    #6366f1;
  --purple:    #8b5cf6;
  --pink:      #ec4899;
  --brand-navy:#0a2d8f;   /* from the logo, used sparingly for links */

  --grad:      linear-gradient(120deg, #6366f1 0%, #8b5cf6 52%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(99,102,241,.10), rgba(139,92,246,.09) 52%, rgba(236,72,153,.08));

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow:    0 1px 2px rgba(16,20,45,.04), 0 8px 24px rgba(16,20,45,.06);
  --shadow-lg: 0 2px 4px rgba(16,20,45,.04), 0 24px 60px rgba(16,20,45,.12);

  --wrap: 1180px;
  --nav-h: 68px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.15rem); letter-spacing: -.032em; text-wrap: balance; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -.026em; text-wrap: balance; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.15em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* ── Layout ────────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 4vw + 32px, 104px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block; font-size: .73rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--purple); margin-bottom: .7em;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  padding: 12px 22px; border-radius: var(--r); border: 1px solid transparent;
  font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(99,102,241,.32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(99,102,241,.40); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: var(--r-sm); color: var(--ink-2);
  font-size: .92rem; font-weight: 550;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--indigo); background: rgba(99,102,241,.09); font-weight: 650; }
.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; padding: 0;
  align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(52px, 5vw + 26px, 104px) clamp(44px, 4vw, 84px); }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%;
  background:
    radial-gradient(940px 520px at 12% -8%, rgba(99,102,241,.16), transparent 62%),
    radial-gradient(820px 480px at 92% 6%, rgba(236,72,153,.12), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0,1.08fr) minmax(0,1.12fr); } }
.hero h1 { margin-bottom: .34em; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 22px; font-size: .86rem; color: var(--muted); }

/* Browser-chrome frame for the dashboard captures */
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: #fff; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.shot-bar span { margin-left: 10px; font-size: .74rem; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.shot img { width: 100%; height: auto; }

/* ── Cards & grids ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }

.ico {
  width: 42px; height: 42px; border-radius: var(--r); margin-bottom: 16px;
  display: grid; place-items: center; background: var(--grad-soft); color: var(--indigo);
  border: 1px solid rgba(99,102,241,.16);
}
.ico svg { width: 21px; height: 21px; }

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(99,102,241,.3);
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── Code ──────────────────────────────────────────────────────────────────── */
.code {
  background: #0d1026; color: #e6e9f7; border-radius: var(--r-lg); padding: 22px 24px;
  overflow-x: auto; border: 1px solid #1b2045; box-shadow: var(--shadow-lg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .855rem; line-height: 1.7; margin: 0;
}
.code .c-cmd { color: #7dd3fc; }
.code .c-str { color: #a7f3d0; }
.code .c-key { color: #c4b5fd; }
.code .c-num { color: #fbbf24; }
.code .c-dim { color: #8b93c4; }
code.inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 6px; padding: .12em .42em;
}

/* ── Table ─────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-weight: 650; color: var(--ink); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }

/* ── Split rows (Solutions) ────────────────────────────────────────────────── */
.split { display: grid; gap: 28px; align-items: start; grid-template-columns: 1fr; padding-block: 34px; border-top: 1px solid var(--line); }
.split:first-of-type { border-top: 0; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 44px; } }
.split .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.tag {
  font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--grad-soft); color: var(--indigo); border: 1px solid rgba(99,102,241,.16);
}

/* ── CTA band ──────────────────────────────────────────────────────────────── */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--r-xl); padding: clamp(34px, 3vw + 18px, 62px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 58ch; margin-inline: auto; }
.cta-band .btn-ghost { background: #fff; color: var(--indigo); border-color: transparent; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.12); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* ── Form ──────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(99,102,241,.16); }
.field textarea { min-height: 128px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { margin: 0; flex: 0 0 auto; width: 38px; height: 38px; }
.contact-list b { display: block; color: var(--ink); font-size: .87rem; }
.contact-list span, .contact-list address { color: var(--muted); font-size: .93rem; font-style: normal; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 52px 30px; margin-top: 0; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: 1.6fr 1fr 1.4fr; gap: 48px; } }
.site-footer img.flogo { height: 32px; margin-bottom: 14px; }
.site-footer h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-2); font-size: .93rem; }
.site-footer a:hover { color: var(--indigo); }
.site-footer address { font-style: normal; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.foot-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}

/* ── Reveal on scroll ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Mobile nav ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-h) 0 auto 0; margin: 0; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 14px 20px 22px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: auto; flex: 1 1 200px; }
}
