/* Practivo — design tokens (extends Immersive Form foundation) */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabin';
  src: url('../fonts/Cabin.ttf') format('truetype-variations');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Practivo palette — dark navy base, teal accent */
  --pv-ink-900: #0B1220;   /* hero / dark bands */
  --pv-ink-850: #111a2e;   /* slightly lighter card dark */
  --pv-ink-800: #222222;   /* inherited IF near-black */
  --pv-ink-700: #3b3b3b;   /* body text */
  --pv-ink-600: #626262;   /* secondary text */
  --pv-line:    #e1e1e1;
  --pv-surface: #f7f7f7;
  --pv-white:   #ffffff;

  --pv-accent:   #3b82f6;   /* electric blue primary */
  --pv-accent-600: #2563eb;
  --pv-accent-50:  #eff6ff;

  --pv-accent-2:    #F59E0B;  /* amber secondary */
  --pv-accent-2-600: #D97706;
  --pv-accent-2-50:  #FEF3C7;

  --pv-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pv-font-body:    'Cabin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pv-content: 1240px;
  --pv-edge: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pv-white);
  color: var(--pv-ink-700);
  font-family: var(--pv-font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pv-font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  color: var(--pv-ink-800);
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

::selection { background: var(--pv-accent); color: #0B1220; }

.pv-container {
  max-width: var(--pv-content);
  margin: 0 auto;
  padding: 0 var(--pv-edge);
}

/* Eyebrow pattern — UPPERCASE label + 2px accent rule */
.pv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--pv-font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-accent);
  margin-bottom: 22px;
}
.pv-eyebrow::after {
  content: '';
  width: 48px;
  height: 2px;
  background: var(--pv-accent);
}

/* Buttons — squared, uppercase, IF-style */
.pv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--pv-font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 0;
  border: 0;
  cursor: pointer;
  transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, transform .15s ease;
  white-space: nowrap;
}
.pv-btn--primary {
  background: var(--pv-accent);
  color: #ffffff;
}
.pv-btn--primary:hover {
  background: var(--pv-accent-600);
  box-shadow: 0 15px 25px -7px rgba(59, 130, 246, 0.35);
}
.pv-btn--ghost {
  background: transparent;
  color: var(--pv-white);
  border: 1px solid rgba(255,255,255,.35);
}
.pv-btn--ghost:hover {
  border-color: var(--pv-accent);
  color: var(--pv-accent);
}
.pv-btn--dark {
  background: var(--pv-ink-800);
  color: var(--pv-white);
}
.pv-btn--dark:hover {
  background: #000;
  box-shadow: 0 15px 25px -7px rgba(0,0,0,.25);
}

.pv-btn svg { width: 18px; height: 18px; }

/* Section utilities */
.pv-section { padding: 120px 0; }
.pv-section--tight { padding: 100px 0; }
.pv-section--dark { background: var(--pv-ink-900); color: var(--pv-white); }
.pv-section--dark h1,
.pv-section--dark h2,
.pv-section--dark h3,
.pv-section--dark h4,
.pv-section--dark h5 { color: var(--pv-white); }
.pv-section--light { background: var(--pv-surface); }

/* Hairline separator used in dark sections */
.pv-hairline { border: 0; border-top: 1px solid rgba(255,255,255,.1); margin: 0; }

/* Scroll-reveal animation */
.pv-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.pv-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--pv-accent);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .pv-section { padding: 72px 0; }
  .pv-section--tight { padding: 56px 0; }

  /* All multi-column grids in this design collapse to single column */
  .pv-grid-2,
  .pv-grid-3,
  .pv-grid-hero,
  .pv-grid-solution,
  .pv-grid-how,
  .pv-grid-cta,
  .pv-grid-footer {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Footer collapses to 2 cols on tablet */
  .pv-grid-footer {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }

  /* Who-it's-for: stack the bordered tiles, keep border on top instead of right */
  .pv-grid-who {
    grid-template-columns: 1fr !important;
  }
  .pv-grid-who > div {
    border-right: none !important;
    border-bottom: 1px solid var(--pv-line);
  }
  .pv-grid-who > div:last-child {
    border-bottom: none !important;
  }

  /* Hide the hero floating session card on mobile — it crowds the headline */
  .pv-hero-card-wrap { display: none !important; }

  /* Header — hide the link list, show hamburger, hide CTA (it's in the menu) */
  .pv-nav-links { display: none !important; }
  .pv-header-cta { display: none !important; }
  .pv-hamburger { display: inline-flex !important; }

  /* Cycle diagram shrinks; phase tabs wrap */
  .pv-cycle { max-width: 360px !important; }
  .pv-phase-tabs { flex-wrap: wrap !important; }
  .pv-phase-tabs > button { min-width: 45% !important; }

  /* Sticky report mock un-stickies on mobile */
  .pv-report-sticky { position: static !important; }

  /* Final CTA inner padding */
  .pv-cta-form { padding: 28px !important; }

  /* Solution card tighter */
  .pv-sol-card { grid-template-columns: 56px 1fr !important; gap: 18px !important; }

  /* Social proof tile stacks */
  .pv-proof-tile { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; padding: 28px !important; }
  .pv-proof-tile .pv-proof-logo { justify-items: flex-start !important; width: auto !important; }
  .pv-proof-tile .pv-proof-logo img { margin-left: 0 !important; }

  /* Hero: bottom padding tighter, remove min-height */
  .pv-hero { min-height: auto !important; padding-top: 120px !important; padding-bottom: 80px !important; }

  /* Body type bumps down a touch */
  html, body { font-size: 17px; }

  /* Container edge */
  :root { --pv-edge: 20px; }
}

@media (max-width: 600px) {
  .pv-section { padding: 56px 0; }
  :root { --pv-edge: 18px; }

  .pv-grid-footer { grid-template-columns: 1fr !important; gap: 28px !important; }

  /* Hero CTAs stack full-width */
  .pv-hero-ctas { flex-direction: column !important; align-items: stretch !important; }
  .pv-hero-ctas > * { width: 100%; justify-content: center; }

  /* Cycle smaller still */
  .pv-cycle { max-width: 280px !important; }
  .pv-phase-tabs > button { min-width: 100% !important; }

  /* Tweaks panel — tuck it bottom-center, narrower */
  .pv-tweaks-panel { right: 12px !important; left: 12px !important; bottom: 12px !important; width: auto !important; }

  /* Solution — report mock fits narrow viewports without overflow */
  .pv-report-card { padding: 22px !important; }
  .pv-report-head { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
  .pv-report-title { font-size: 17px !important; line-height: 1.3 !important; }
  .pv-report-stats { gap: 10px !important; }
  .pv-report-stat { padding: 12px 12px !important; }
  .pv-report-stat > div:last-child { font-size: 20px !important; }

  /* Solution cards — drop the icon column entirely so the body has full width */
  .pv-sol-card { grid-template-columns: 1fr !important; gap: 14px !important; padding: 22px 0 !important; }
  .pv-sol-card > div:first-child { display: flex !important; align-items: center !important; gap: 14px !important; }
  .pv-sol-card > div:first-child > div:first-child { margin-bottom: 0 !important; }
}

/* Prevent any element from causing horizontal overflow */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, svg { max-width: 100%; height: auto; }
