/* Item Tracker — shared styles across all PPC landing pages */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Warm paper palette — friendly, approachable, mid-market SA */
  --paper: #F6F1E8;
  --paper-2: #EFE8DA;
  --paper-3: #E6DCC7;
  --ink: #1A1814;
  --ink-2: #2E2A22;
  --muted: #6B6356;
  --line: #D9CFB8;
  --line-strong: #B8AD93;

  /* Accent — brand blue (matches the lockup dot + logo pupils).
     Single source of truth: every accent reference resolves here. */
  --accent: #2C49E0;
  --accent-soft: #8AA0F0;
  --accent-ink: #FFFFFF;

  /* Functional */
  --ok: #4A7C3A;
  --warn: #B5651D;
  --bad: #A33A2C;

  /* Type */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Spacing rhythm */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

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

/* ---------- Layout ---------- */
.it-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .it-wrap { padding: 0 20px; }
}

/* ---------- Header ---------- */
.it-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.it-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.it-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

/* Pixel-eye SVG mark — auto-scales to wordmark height */
.it-logo__svg {
  display: block;
  width: auto;
  height: 28px;
  flex-shrink: 0;
}

/* "itemtrack." wordmark — light + bold + colored period */
.it-wordmark {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.it-wordmark__light { font-weight: 300; color: color-mix(in oklab, var(--ink) 55%, transparent); }
.it-wordmark__bold  { font-weight: 700; color: var(--ink); }
.it-wordmark__dot   { font-weight: 700; color: var(--accent); }

/* Inverted (on dark backgrounds) */
.it-wordmark--inv .it-wordmark__light { color: rgba(255,255,255,0.55); }
.it-wordmark--inv .it-wordmark__bold  { color: #FFFFFF; }
.it-wordmark--inv .it-wordmark__dot   { color: var(--accent); }

.it-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
}
.it-nav a:hover { color: var(--accent); }

.it-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
}
.it-nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 720px) {
  .it-nav { gap: 16px; }
  .it-nav .it-nav__hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, background 120ms ease, color 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: color-mix(in oklab, var(--accent) 88%, black); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: color-mix(in oklab, var(--ink) 85%, var(--accent) 30%); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 56px;
  text-wrap: balance;
  padding-bottom: 0.12em;
}
@media (min-width: 900px) {
  .h-display { margin-bottom: 80px; }
}
.hero .h-display + .lede,
.h-display + .lede { margin-top: 0 !important; }
.h-display em {
  font-style: italic;
  color: var(--accent);
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--accent); }

.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

.mono { font-family: var(--mono); }

/* ---------- Sections ---------- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
}

.section--tight { padding: clamp(48px, 7vw, 88px) 0; }

.section--ink {
  background: var(--ink);
  color: var(--paper);
}
.section--ink .h-section,
.section--ink .h-display { color: var(--paper); }
.section--ink .lede { color: color-mix(in oklab, var(--paper) 85%, var(--ink)); }
.section--ink .muted { color: color-mix(in oklab, var(--paper) 60%, var(--ink)); }

.section--paper2 { background: var(--paper-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card--paper2 { background: var(--paper-2); }

.section--ink .card {
  background: color-mix(in oklab, var(--paper) 6%, var(--ink));
  border-color: color-mix(in oklab, var(--paper) 18%, var(--ink));
  color: var(--paper);
}

/* ---------- Stat ---------- */
.stat-num {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-num em { font-style: italic; color: var(--accent); }

.stat-label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.it-footer {
  background: var(--ink);
  color: color-mix(in oklab, var(--paper) 80%, var(--ink));
  padding: 64px 0 32px;
  font-size: 14px;
}
.it-footer a { color: color-mix(in oklab, var(--paper) 80%, var(--ink)); }
.it-footer a:hover { color: var(--accent-soft); }

.it-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  align-items: start;
}
@media (max-width: 720px) {
  .it-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.it-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in oklab, var(--paper) 50%, var(--ink));
  margin: 0 0 16px;
  font-weight: 500;
}
.it-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

.it-footer__bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--paper) 18%, var(--ink));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: color-mix(in oklab, var(--paper) 55%, var(--ink));
}

/* ---------- Form ---------- */
.it-input-row {
  display: flex;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  align-items: center;
  max-width: 460px;
}
.it-input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  min-width: 0;
}
.it-input-row input::placeholder { color: var(--muted); }

.section--ink .it-input-row {
  background: color-mix(in oklab, var(--paper) 8%, var(--ink));
  border-color: color-mix(in oklab, var(--paper) 22%, var(--ink));
}
.section--ink .it-input-row input { color: var(--paper); }
.section--ink .it-input-row input::placeholder { color: color-mix(in oklab, var(--paper) 50%, var(--ink)); }

/* ---------- Misc ---------- */
.kicker-divider {
  height: 1px;
  background: var(--line);
  margin: 0;
}
.section--ink .kicker-divider { background: color-mix(in oklab, var(--paper) 18%, var(--ink)); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.tag--accent { background: color-mix(in oklab, var(--accent) 20%, var(--paper)); color: var(--ink); }

/* Scanner-line decorative elements */
.scanline {
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 4px,
    var(--ink) 4px 7px,
    transparent 7px 9px,
    var(--ink) 9px 11px,
    transparent 11px 16px,
    var(--ink) 16px 19px,
    transparent 19px 22px
  );
  height: 56px;
}

/* Hub grid (used on index) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  background: var(--paper);
  transition: transform 120ms ease, border-color 120ms ease;
  position: relative;
  overflow: hidden;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hub-card__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.hub-card__title {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 12px 0 8px;
}
.hub-card__title em { font-style: italic; color: var(--accent); }
.hub-card__sub { color: var(--ink-2); font-size: 15px; }
.hub-card__cta {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
}

/* Two-column hero scaffold */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  /* Vertical padding only — horizontal padding inherits from .it-wrap so the
     hero stays gutter-aligned with every other section on the page. */
  padding-top:    clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
}

.hero__cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__meta {
  margin-top: 18px;
  display: flex; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
}

/* Marquee (stat strip) */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip > div {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stat-strip > div:last-child { border-right: 0; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2n) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Pricing tier grid (3 plans across) */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; max-width: 480px; margin: 0 auto; }
}

.pricing-tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-tier--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px color-mix(in oklab, var(--accent) 40%, transparent);
}
.pricing-tier--featured::before {
  content: 'Most features';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
  white-space: nowrap;
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 14px 0 0; color: var(--ink-2); max-width: 70ch; }
