:root {
  /* ==== Colours ==== */
  --forest-900: #0d1f12;
  --forest-800: #14301e;
  --forest-700: #1a3c23;
  --forest-600: #29604a;
  --sage: #5a7a5f;
  --gold-400: #d4b76a;
  --gold-500: #b8954e;
  --gold-600: #9c7a3a;
  --paper-50: #f3f0e9;
  --paper-100: #ebe6db;
  --paper-200: #e0d9c8;
  --card: #faf8f2;
  --ink: #1c1c1c;
  --stone: #4a4743;
  --stone-light: #948d78;
  --white: #ffffff;
  --danger: #b3261e;
  --success: #2a6e3f;
  --line: rgba(13, 31, 18, 0.16);
  --line-soft: rgba(13, 31, 18, 0.09);
  --line-on-forest: rgba(212, 183, 106, 0.28);
  --line-on-forest-soft: rgba(243, 240, 233, 0.14);

  /* ==== Type ==== */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* ==== Shape ==== */
  --radius-sm: 4px;
  --radius-md: 10px;
  --max-width: 1200px;

  /* ==== Motion ==== */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fast: 180ms;
  --med: 320ms;
  --slow: 900ms;
}

/* ==== RESET ==== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest-700);
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-500);
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 48px);
  padding-right: clamp(16px, 4vw, 48px);
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  background: var(--gold-500);
  color: var(--forest-900);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top var(--fast) var(--ease);
}
.skip-link:focus { top: 0; }

/* ==== Parcel card ==== */

.coord-readout {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gold-400);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.tag::before {
  content: '';
  width: 9px; height: 9px;
  border: 1.5px solid var(--gold-600);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.parcel-card {
  position: relative;
  background: var(--card);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  padding: clamp(20px, 4vw, 32px);
}
.parcel-card::before, .parcel-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px var(--paper-50), 0 0 0 4.5px var(--line);
}
.parcel-card::before { top: -5px; left: -5px; }
.parcel-card::after { bottom: -5px; right: -5px; }

/* ==== BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease),
    border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn-primary { background: var(--gold-500); color: var(--forest-900); }
.btn-primary:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-outline-dark { background: transparent; color: var(--forest-700); border-color: var(--forest-700); }
.btn-outline-dark:hover { background: var(--forest-700); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ==== SECTIONS ==== */
.section { padding: clamp(64px, 8vw, 96px) 0; }
.section-paper { background: var(--paper-100); }
.section-header { max-width: 640px; margin: 0 0 clamp(32px, 5vw, 48px); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
.section-desc { color: var(--stone); font-size: 1.03rem; }

/* ==== PROCESS STEP ==== */
.process-step { text-align: center; padding: 0 18px; position: relative; z-index: 1; }
.process-step .step-num {
  width: 52px; height: 52px; margin: 0 auto 18px;
  background: var(--paper-50);
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; color: var(--forest-700);
}
.process-step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--stone); line-height: 1.6; }

/* ==== Verification callout ==== */
.verify-callout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--line);
}
.verify-callout-img { position: relative; min-height: 380px; }
.verify-callout-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.verify-callout-text {
  background: var(--card);
  padding: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
.verify-stamp {
  width: 72px; height: 72px;
  border: 2px dashed var(--gold-500);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-600); font-size: 1.6rem;
  margin-bottom: 20px;
}

/* ==== FAQ ==== */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-question {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--forest-700);
  -webkit-tap-highlight-color: transparent;
}
.faq-question .arrow { color: var(--gold-600); font-size: 1.1rem; transition: transform var(--fast); flex-shrink: 0; }
.faq-question[aria-expanded="true"] .arrow { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--med) var(--ease); }
.faq-answer-inner { padding: 0 4px 22px; color: var(--stone); line-height: 1.75; max-width: 680px; }

/* ==== REVEAL ==== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-2.visible { transition-delay: 0.3s; }

/* ==== Page hero ==== */
.page-hero {
  padding: calc(var(--header-h, 78px) + 64px) 0 clamp(40px, 6vw, 60px);
  color: var(--white); position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(13,31,18,0.80) 0%, rgba(13,31,18,0.58) 45%, rgba(26,60,35,0.22) 100%);
}
.page-hero h1, .page-hero p.lead, .page-hero .breadcrumb { text-shadow: 0 1px 14px rgba(13,31,18,0.45); }
.page-hero .container { position: relative; z-index: 1; max-width: 720px; }
.page-hero h1 { color: var(--white); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.page-hero p.lead { color: rgba(255,255,255,0.82); font-size: 1.08rem; margin-bottom: 26px; }
.page-hero .container > * {
  opacity: 0; transform: translateY(20px);
  animation: hero-rise 0.9s var(--ease-out) forwards;
}
.page-hero .container > *:nth-child(1) { animation-delay: 0.1s; }
.page-hero .container > *:nth-child(2) { animation-delay: 0.22s; }
.page-hero .container > *:nth-child(3) { animation-delay: 0.34s; }
.page-hero .container > *:nth-child(4) { animation-delay: 0.46s; }
@media (prefers-reduced-motion: reduce) {
  .page-hero .container > * { animation: none; opacity: 1; transform: none; }
}
.breadcrumb { font-family: var(--font-mono); font-size: 0.76rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; letter-spacing: 0.03em; }
.breadcrumb a { color: rgba(255,255,255,0.78); }
.breadcrumb a:hover { color: var(--gold-400); }

/* ==== Hero animation ==== */
@keyframes hero-rise { to { opacity: 1; transform: translateY(0); } }
.trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trust-cards .parcel-card h3 { margin: 14px 0 8px; font-size: 1.1rem; }
.trust-cards .parcel-card p { color: var(--stone); font-size: 0.92rem; }

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

@media (max-width: 1080px) {
  .verify-callout { grid-template-columns: 1fr; }
  .verify-callout-img { min-height: 0; aspect-ratio: 4 / 3; }
}

@media (max-width: 860px) {
  .trust-cards { grid-template-columns: 1fr 1fr; }
  .trust-cards > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .trust-cards { grid-template-columns: 1fr; }
  .trust-cards > *:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .btn:not(.btn-sm) { width: 100%; justify-content: center; }

  .section-title { font-size: 1.5rem; }
  .faq-question { padding: 18px 0; }
  .faq-answer-inner { padding: 0 0 18px; }
}

/* ==== Hover-lift hit area ==== */
.btn, .admin-btn { position: relative; }
.btn::after, .admin-btn::after, .back-to-top::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 4px;
}
