/* ============================================================================
   SCOTTISH TRADE INTEL — WEBSITE STYLES
   scottishtradeintel.co.uk
   
   Design system matches the PDF brief: Space Grotesk + Inter + JetBrains Mono,
   black ink + yellow hivis accent on white paper.
   ============================================================================ */

:root {
  /* Core palette from the PDF */
  --ink: #0A0B0D;
  --paper: #FFFFFF;
  --hivis: #F5C518;
  
  /* Greys for UI */
  --grey-1: #3A3B3D;
  --grey-2: #6B6C6E;
  --grey-3: #E5E5E5;
  --grey-4: #F5F5F5;
  
  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Layout */
  --container-width: 1200px;
  --container-narrow: 800px;
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================================
   NAVIGATION
   ============================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--grey-3);
  transition: box-shadow 0.2s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(10, 11, 13, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand .mark {
  background: var(--hivis);
  color: var(--ink);
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.brand .name {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn-yellow-solid):hover {
  color: var(--grey-2);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn-yellow-solid {
  display: inline-block;
  background: var(--hivis);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-yellow-solid:hover {
  background: var(--ink);
  color: var(--hivis);
}

.btn-yellow-solid-lg {
  display: inline-block;
  background: var(--hivis);
  color: var(--ink);
  padding: 1.2rem 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-yellow-solid-lg:hover {
  background: var(--ink);
  color: var(--hivis);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  padding: 6rem 0 5rem;
  background: var(--paper);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 900px;
}

.hero h1 .hi {
  background: var(--hivis);
  padding: 0 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero .deck {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--grey-1);
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-cta .footnote {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--grey-2);
}

/* ============================================================================
   STATS STRIP
   ============================================================================ */

.stats-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 3rem 0;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.stat-box {
  text-align: center;
}

.stat-box .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box .num span {
  font-size: 1.5rem;
  opacity: 0.6;
}

.stat-box .lbl {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ============================================================================
   SECTION BAR (reusable heading pattern)
   ============================================================================ */

.section-bar {
  margin-bottom: 3rem;
}

.section-bar h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-bar .meta {
  font-size: 1.1rem;
  color: var(--grey-2);
}

/* ============================================================================
   SAMPLE SECTION
   ============================================================================ */

.sample-section {
  padding: 6rem 0;
  background: var(--grey-4);
}

.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.sample-cover {
  width: 100%;
  border: 1px solid var(--grey-3);
  box-shadow: 0 10px 40px rgba(10, 11, 13, 0.12);
}

.sample-breakdown h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contents-list {
  list-style: none;
  counter-reset: item;
}

.contents-list li {
  counter-increment: item;
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
}

.contents-list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--grey-2);
}

/* ============================================================================
   HOW IT WORKS
   ============================================================================ */

.how-section {
  padding: 6rem 0;
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  border: 2px solid var(--grey-3);
  padding: 2rem;
  background: var(--paper);
}

.step.featured {
  background: var(--hivis);
  border-color: var(--hivis);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--grey-2);
  margin-bottom: 1rem;
}

.step.featured .step-num {
  color: var(--ink);
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--grey-1);
  line-height: 1.6;
}

/* ============================================================================
   ANTI-POSITIONING
   ============================================================================ */

.anti-section {
  padding: 6rem 0;
  background: var(--ink);
  color: var(--paper);
}

.anti-section .section-bar h2,
.anti-section .section-bar .meta {
  color: var(--paper);
}

.anti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.anti-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.anti-col ul {
  list-style: none;
}

.anti-col ul li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.anti-col.bad ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #FF6B6B;
}

.anti-col.good {
  background: var(--hivis);
  color: var(--ink);
  padding: 2rem;
}

.anti-col.good h3 {
  color: var(--ink);
}

.anti-col.good ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ink);
  font-weight: 700;
}

/* ============================================================================
   PRICING
   ============================================================================ */

.pricing-section {
  padding: 6rem 0;
  background: var(--paper);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.tier {
  border: 2px solid var(--grey-3);
  padding: 2.5rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier.featured {
  background: var(--hivis);
  border-color: var(--hivis);
}

.badge-featured {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.tier-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.tier-desc {
  color: var(--grey-2);
  margin-bottom: 2rem;
}

.tier.featured .tier-desc {
  color: var(--grey-1);
}

.tier-price {
  margin-bottom: 2rem;
}

.tier-price .price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
}

.tier-price .unit {
  font-size: 1.2rem;
  color: var(--grey-2);
}

.tier-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.tier-features li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--hivis);
}

.tier.featured .tier-features li::before {
  color: var(--ink);
}

.tier .btn-yellow-solid {
  width: 100%;
  text-align: center;
}

.tier.featured .btn-yellow-solid {
  background: var(--ink);
  color: var(--hivis);
}

.tier.featured .btn-yellow-solid:hover {
  background: var(--paper);
  color: var(--ink);
}

.pledge-box {
  background: var(--grey-4);
  border-left: 4px solid var(--hivis);
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.pledge-box h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.pledge-box p {
  line-height: 1.7;
}

/* ============================================================================
   FAQ
   ============================================================================ */

.faq-section {
  padding: 6rem 0;
  background: var(--grey-4);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--grey-3);
  margin-bottom: 1rem;
  padding: 1.5rem;
  cursor: pointer;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--grey-2);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin-top: 1rem;
  line-height: 1.7;
  color: var(--grey-1);
}

/* ============================================================================
   FINAL CTA
   ============================================================================ */

.final-cta {
  padding: 6rem 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

.final-cta .footnote {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--grey-2);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
  background: var(--grey-4);
  padding: 4rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--grey-1);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bar {
  border-top: 1px solid var(--grey-3);
  padding-top: 2rem;
  text-align: center;
  color: var(--grey-2);
  font-size: 0.9rem;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .sample-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .anti-grid {
    grid-template-columns: 1fr;
  }
  
  .tiers {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a:not(.btn-yellow-solid) {
    display: none;
  }
  
  .hero {
    padding: 4rem 0 3rem;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .deck {
    font-size: 1.1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .stats-strip .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-bar h2 {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
