/* =========================================================================
   Tidytarget — Design System
   Palette: mist paper + pine ink + meadow green + amber pop + indigo
   Type: Sora (display) / Inter (body) / IBM Plex Mono (data & labels)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* ---- color tokens ---- */
  --mist: #F6F8F4;
  --mist-deep: #EDF1E9;
  --surface: #FFFFFF;
  --ink: #12241C;
  --ink-soft: #4B5D53;
  --ink-faint: #8A988F;
  --line: #DCE6DF;
  --line-strong: #C3D2C6;

  --meadow: #178A5D;
  --meadow-deep: #0F5E3F;
  --meadow-tint: #E4F3EC;

  --amber: #FFA630;
  --amber-deep: #E08A12;
  --amber-tint: #FFF2DE;

  --indigo: #4C5FD5;
  --indigo-deep: #3846AD;
  --indigo-tint: #EBEDFC;

  --coral: #E85A4F;
  --coral-tint: #FCEAE8;

  /* Pharma Teal — deliberately distinct from meadow/indigo, reads as
     clinical/medical (the color family used across hospital and pharmacy
     branding worldwide, including the pharmacy cross). Used specifically
     wherever the site is speaking about the pharmaceutical industry itself. */
  --pharma-teal: #0C7C86;
  --pharma-teal-deep: #095F67;
  --pharma-teal-tint: #E3F3F4;

  /* ---- type tokens ---- */
  --font-display: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* ---- layout tokens ---- */
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(18, 36, 28, 0.06), 0 1px 1px rgba(18, 36, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(18, 36, 28, 0.08), 0 2px 8px rgba(18, 36, 28, 0.05);
  --shadow-lg: 0 24px 60px rgba(18, 36, 28, 0.14), 0 8px 20px rgba(18, 36, 28, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset & base                                                           */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--mist);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* background texture: a very faint dot grid, reinforces "tidy rows & columns" */
.dot-grid {
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---------------------------------------------------------------------- */
/* Eyebrow / kicker / mono labels                                         */
/* ---------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meadow-deep);
  background: var(--meadow-tint);
  border: 1px solid rgba(23, 138, 93, 0.18);
  padding: 6px 12px;
  border-radius: 100px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--meadow);
  flex-shrink: 0;
}
.eyebrow.amber { color: var(--amber-deep); background: var(--amber-tint); border-color: rgba(224, 138, 18, 0.22); }
.eyebrow.amber::before { background: var(--amber); }
.eyebrow.indigo { color: var(--indigo-deep); background: var(--indigo-tint); border-color: rgba(56, 70, 173, 0.2); }
.eyebrow.indigo::before { background: var(--indigo); }
.eyebrow.pharma { color: var(--pharma-teal-deep); background: var(--pharma-teal-tint); border-color: rgba(9, 95, 103, 0.2); }
.eyebrow.pharma::before { background: var(--pharma-teal); }

.mono-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--mist);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--meadow-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(255, 166, 48, 0.35);
}
.btn-amber:hover { background: var(--amber-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 166, 48, 0.4); }

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

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Header / nav                                                           */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 244, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(18,36,28,0.05); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 100px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--mist-deep); }
.nav-links a.active { color: var(--meadow-deep); font-weight: 600; }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn-ghost { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; gap: 2px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none !important; }
}

/* ---------------------------------------------------------------------- */
/* Section rhythm                                                         */
/* ---------------------------------------------------------------------- */
section { padding: 108px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.section-head p { font-size: 17px; color: var(--ink-soft); }

.bg-surface { background: var(--surface); }
.bg-ink { background: var(--ink); color: var(--mist); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4 { color: var(--mist); }
.bg-meadow-tint { background: var(--meadow-tint); }

hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.37s; }

/* ---------------------------------------------------------------------- */
/* Cards                                                                  */
/* ---------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }

/* ---------------------------------------------------------------------- */
/* Status pill (mono, echoes the product's own UI language)               */
/* ---------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.pill-approved { background: var(--meadow-tint); color: var(--meadow-deep); }
.pill-approved::before { background: var(--meadow); }
.pill-pending { background: var(--amber-tint); color: var(--amber-deep); }
.pill-pending::before { background: var(--amber); }
.pill-submitted { background: var(--indigo-tint); color: var(--indigo-deep); }
.pill-submitted::before { background: var(--indigo); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--mist); padding: 76px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246, 248, 244, 0.12);
}
.footer-brand .logo { color: var(--mist); margin-bottom: 14px; }
.footer-brand p { color: rgba(246, 248, 244, 0.62); font-size: 14.5px; max-width: 280px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(246, 248, 244, 0.5); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(246, 248, 244, 0.82); font-size: 14.5px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; color: rgba(246, 248, 244, 0.45); flex-wrap: wrap; gap: 12px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(246,248,244,0.2); display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; }
.footer-social a:hover { background: var(--meadow); border-color: var(--meadow); }
.footer-social svg { width: 15px; height: 15px; }

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------- */
/* Misc utilities                                                         */
/* ---------------------------------------------------------------------- */
.grad-underline {
  background-image: linear-gradient(90deg, var(--meadow), var(--indigo));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 10px;
}
.text-meadow { color: var(--meadow-deep); }
.text-amber { color: var(--amber-deep); }
.text-indigo { color: var(--indigo-deep); }
.text-pharma { color: var(--pharma-teal-deep); }
.text-soft { color: var(--ink-soft); }
.center { text-align: center; }

.stat-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
