/* ==========================================================================
   My Virtual Buds — design tokens
   Concept: "radical transparency" rendered as an honest, itemized receipt.
   Ink/paper palette with amber + moss accents. Space Grotesk (display),
   Work Sans (body), IBM Plex Mono (numbers, labels — the "ledger" voice).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Work+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --ink: #14261A;
  --ink-soft: #2E4A38;
  --paper: #F2F5EC;
  --paper-raised: #FFFFFF;
  --amber: #F2C230;
  --amber-deep: #D9A916;
  --moss: #4C9950;
  --moss-deep: #1E5631;
  --line: #D6DECF;
  --muted: #5C6B60;
  --hero-dark: #0B1210;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-width: 1120px;
  --radius: 4px;
  --shadow-card: 0 1px 0 var(--line), 0 12px 24px -18px rgba(20, 38, 26, 0.35);
}

* { box-sizing: border-box; }
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 {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  animation: pageFadeIn 0.5s ease both;
}

/* Page-to-page transitions: CSS View Transitions API where supported... */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: pageFadeOut 0.22s ease both;
}
::view-transition-new(root) {
  animation: pageFadeIn 0.38s ease both;
}

/* ...with a graceful fallback fade-in for browsers that don't support it yet */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--moss);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 500;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--moss);
  border-radius: 2px;
  flex: none;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Buttons */
.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
/* Primary action — brand green */
.btn-primary {
  background: var(--moss);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--moss-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(30, 86, 49, 0.8);
}
/* Secondary — outlined, adapts to light or dark backgrounds */
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--moss); color: var(--moss-deep); transform: translateY(-1px); }
/* Accent — the logo yellow, for high-emphasis CTAs */
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
}
.btn-amber:hover {
  background: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(217, 169, 22, 0.9);
}
.btn-block { width: 100%; justify-content: center; }

/* Buttons in the dark header */
.site-header .btn-secondary {
  color: rgba(242, 245, 236, 0.85);
  border-color: rgba(242, 245, 236, 0.28);
}
.site-header .btn-secondary:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(242, 245, 236, 0.08);
}

/* Buttons sitting on the dark hero */
.hero .btn-secondary,
.page-hero .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}
.hero .btn-secondary:hover,
.page-hero .btn-secondary:hover {
  color: #FFFFFF;
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 38, 26, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(242, 245, 236, 0.10);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-icon-header {
  height: 48px;
  width: auto;
  display: block;
  flex: none;
}
/* Wordmark shown beside the header icon */
.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  white-space: nowrap;
}
@media (max-width: 420px) {
  .logo-icon-header { height: 40px; }
  .logo-title { font-size: 1rem; }
}
.logo-mark-img {
  height: 38px;
  width: auto;
  display: block;
  flex: none;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}
.logo-word small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.btn) {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 20px;
  color: rgba(242, 245, 236, 0.78);
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover { background: rgba(242,245,236,0.10); color: #FFFFFF; }
.nav-links a:not(.btn).active { background: var(--moss); color: #FFFFFF; }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #1B3024;
  border: 1px solid rgba(242,245,236,0.12);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.5);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(242,245,236,0.85);
}
.dropdown a:hover { background: rgba(242,245,236,0.10); color: #FFFFFF; }
.dropdown a.active { background: var(--moss); color: #FFFFFF; }

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

/* Mobile-only CTA rendered inside the hamburger menu (hidden on desktop) */
.nav-cta-mobile { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(242, 245, 236, 0.28);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* The bar itself is inset within the button... */
.nav-toggle span { top: 19px; left: 9px; right: 9px; }
/* ...but its pseudo-element bars span the full width of that bar */
.nav-toggle span::before, .nav-toggle span::after { left: 0; right: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #14261A;
    border-bottom: 1px solid rgba(242,245,236,0.12);
    padding: 12px 16px 18px;
    gap: 4px;
  }
  .nav-links.is-open { display: flex; }

  /* Every row — top level and submenu — shares one padding/typography rhythm */
  .nav-links a:not(.btn),
  .nav-links .dropdown a:not(.btn) {
    display: block;
    padding: 12px 12px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.3;
  }

  /* The Services wrapper behaves like a flex row group so gaps stay even */
  .has-dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .has-dropdown .dropdown {
    position: static;
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
  }
  .has-dropdown.is-open .dropdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  /* Submenu items are indented for hierarchy without changing row height */
  .nav-links .dropdown a:not(.btn) { padding-left: 28px; }

  .nav-cta .btn-secondary,
  .nav-cta .btn-primary { display: none; }
  .nav-cta-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(242,245,236,0.12);
  }
  .nav-cta-mobile .btn { justify-content: center; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Hero layout (animated dark background defined further below) */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
}
.hero > .container, .page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 88px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 32px; font-size: 1.15rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.hero-trust strong { color: var(--ink); font-family: var(--font-display); font-size: 1rem; display: block; }

/* Receipt — the signature element */
.receipt {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px 26px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  transform: rotate(-1.2deg);
}
.receipt::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 16px;
  background:
    linear-gradient(-45deg, var(--receipt-behind, var(--paper)) 8px, transparent 0),
    linear-gradient(45deg, var(--receipt-behind, var(--paper)) 8px, transparent 0);
  background-size: 16px 16px;
  background-repeat: repeat-x;
  background-position: bottom;
}
/* On the dark hero, the torn edge and stamp must sit against the dark field */
.hero .receipt { --receipt-behind: var(--hero-dark); }
.hero .receipt-stamp {
  background: rgba(11, 18, 16, 0.85);
  color: var(--amber);
  border-color: var(--amber);
}
.receipt-head {
  text-align: center;
  font-family: var(--font-mono);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.receipt-head .rh-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.receipt-head .rh-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  padding: 7px 0;
  border-bottom: 1px dotted var(--line);
}
.receipt-line:last-of-type { border-bottom: none; }
.receipt-line .rl-check { color: var(--moss-deep); }
.receipt-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
}
.receipt-stamp {
  position: absolute;
  right: 18px;
  bottom: -14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-deep);
  border: 2px solid var(--moss-deep);
  border-radius: 6px;
  padding: 5px 9px;
  transform: rotate(4deg);
  background: rgba(242,245,236,0.9);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .receipt { transform: none; max-width: 420px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-alt { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark p { color: rgba(242,245,236,0.75); }
.section-dark .eyebrow { color: var(--amber); }
.section-dark .eyebrow::before { background: var(--amber); }

/* ==========================================================================
   Pre-footer consultation CTA — deliberately the brightest block on the page
   so it separates from the dark header, hero, and footer around it.
   ========================================================================== */
.section-cta {
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.16), transparent 45%),
    linear-gradient(135deg, var(--moss) 0%, var(--moss-deep) 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 72px 0;
}
.section-cta::after {
  content: '';
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.5;
  animation: hero-grid-drift 60s linear infinite;
  pointer-events: none;
}
.section-cta > .container { position: relative; z-index: 1; }
.section-cta h2 { color: #FFFFFF; }
.section-cta p { color: rgba(255,255,255,0.9); }
.section-cta .cta-band {
  background: rgba(11, 18, 16, 0.22);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 36px 38px;
  backdrop-filter: blur(2px);
}
.section-cta .btn-amber {
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.55);
}
.section-cta .btn-amber:hover {
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.65);
}
@media (max-width: 640px) {
  .section-cta .cta-band { padding: 26px 22px; }
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.value-card {
  background: var(--paper-raised);
  padding: 30px 26px;
}
.value-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 760px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(20,38,26,0.4); }
.service-card.is-featured {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.service-card.is-featured p { color: rgba(242,245,236,0.75); }
.service-card.is-featured .service-tag { background: var(--amber); color: var(--ink); }
.service-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--moss-deep);
  padding: 4px 9px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 14px;
}
.service-emoji { font-size: 1.6rem; margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { font-size: 0.94rem; flex: 1; }
.service-card .service-link {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  display: inline-block;
  width: fit-content;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Feature list (used on Web Design & Hosting page) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-item {
  background: var(--paper-raised);
  padding: 30px 28px;
  display: flex;
  gap: 18px;
}
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  flex: none;
  width: 30px;
}
.feature-item h3 { margin-bottom: 6px; }
.feature-item p { font-size: 0.94rem; margin-bottom: 0; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Testimonials — horizontally scrollable row */
.testimonial-scroller {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}
.testimonial-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  padding: 4px 4px 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--moss) transparent;
}
.testimonial-grid::-webkit-scrollbar { height: 8px; }
.testimonial-grid::-webkit-scrollbar-track { background: var(--line); border-radius: 8px; }
.testimonial-grid::-webkit-scrollbar-thumb { background: var(--moss); border-radius: 8px; }
.testimonial-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.testimonial-body { font-size: 0.92rem; flex: 1; }
.testimonial-who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex: none;
}
.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -28px 0 28px;
}

@media (max-width: 760px) {
  .testimonial-card { flex-basis: 82vw; }
}

/* CTA band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 0; max-width: 46ch; }

/* Pricing */
.pricing-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pricing-tabs a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 20px;
}
.pricing-tabs a:hover { border-color: var(--ink); color: var(--ink); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
/* Single simplified rate card (used for Virtual Assistance pricing) */
.rate-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
  max-width: 640px;
  box-shadow: var(--shadow-card);
}
.rate-card .rate-from {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 10px;
}
.rate-card .rate-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--moss-deep);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.rate-card .rate-price span {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}
.rate-card p { font-size: 1rem; margin-bottom: 22px; }
@media (max-width: 560px) {
  .rate-card { padding: 28px 24px; }
}

.plan-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-card.is-popular { border-color: var(--amber); box-shadow: 0 18px 30px -20px rgba(228,163,53,0.5); }
.plan-badge {
  position: absolute;
  top: 16px; right: -34px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 40px;
  transform: rotate(38deg);
}
.plan-head { padding: 26px 24px 18px; border-bottom: 1px dashed var(--line); }
.plan-name { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; }
.plan-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; display: flex; align-items: baseline; gap: 4px; }
.plan-price span { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan-desc { font-size: 0.88rem; margin-top: 10px; margin-bottom: 0; }
.plan-body { padding: 20px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan-list li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
}
.plan-list li:last-child { border-bottom: none; }
.plan-list li::before { content: '✓'; color: var(--moss-deep); font-family: var(--font-mono); flex: none; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; }
}

.note-card {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 0.92rem;
  margin-bottom: 40px;
}
.note-card strong { font-family: var(--font-mono); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--moss-deep); display: block; margin-bottom: 6px; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 22px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--muted);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 22px; margin: 0; }

/* Process / steps (real sequence, so numbering is justified) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card { position: relative; padding-top: 10px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--amber-deep);
  margin-bottom: 10px;
  display: block;
}
.step-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-card p { font-size: 0.9rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* About page */
.about-hero { padding-bottom: 40px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.stat-card { background: var(--paper-raised); padding: 26px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--moss-deep); }
.stat-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 6px; }

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 32px 28px;
  height: fit-content;
}
.contact-info-card h3 { color: var(--paper); }
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(242,245,236,0.15); }
.contact-row:last-child { border-bottom: none; }
.contact-row-label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); width: 90px; flex: none; padding-top: 2px; }
.contact-row-value { font-size: 0.95rem; color: rgba(242,245,236,0.9); }
.contact-row a { color: rgba(242,245,236,0.9); text-decoration: none; }
.contact-row a:hover { color: var(--amber); }

.form-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: 1px;
}
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }
.form-note a { color: var(--moss-deep); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--moss); }
.hp-field { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(242,245,236,0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(242,245,236,0.12);
}
.footer-brand .logo-word, .footer-brand .logo { color: var(--paper); }
.footer-brand p { color: rgba(242,245,236,0.6); margin-top: 14px; font-size: 0.92rem; max-width: 32ch; }
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 16px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: rgba(242,245,236,0.8); font-size: 0.94rem; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(242,245,236,0.5);
}
.footer-bottom a { color: rgba(242,245,236,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--amber); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Staggered reveal for grid children — each card animates in slightly after the last */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ==========================================================================
   Animated hero backgrounds — dark, consistent across every hero / page-hero.
   Deep-green field with slowly drifting brand-colour auroras and a faint
   circuit-dot grid echoing the logo. Pure CSS.
   ========================================================================== */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-dark);
  border-bottom: none;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* Type + accents invert on the dark hero */
.hero h1, .page-hero h1,
.hero h2, .page-hero h2 { color: #FFFFFF; }
.hero .lede, .page-hero .lede { color: rgba(255,255,255,0.78); }
.hero p, .page-hero p { color: rgba(255,255,255,0.78); }
.hero .eyebrow, .page-hero .eyebrow { color: var(--amber); }
.hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--amber); }
.hero .breadcrumb, .page-hero .breadcrumb { color: rgba(255,255,255,0.55); }
.hero .breadcrumb a, .page-hero .breadcrumb a { color: rgba(255,255,255,0.55); }
.hero .breadcrumb a:hover, .page-hero .breadcrumb a:hover { color: var(--amber); }
.hero-trust { color: rgba(255,255,255,0.6); }
.hero-trust strong { color: #FFFFFF; }
.pricing-tabs a {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.28);
}
.pricing-tabs a:hover { color: #FFFFFF; border-color: #FFFFFF; background: rgba(255,255,255,0.08); }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: -20% -20%;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.6;
  animation: hero-grid-drift 50s linear infinite;
}
.hero-bg span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-bg span:nth-child(1) {
  width: 460px; height: 460px;
  background: var(--moss);
  opacity: 0.55;
  top: -150px; left: -110px;
  animation: hero-float-a 16s ease-in-out infinite;
}
.hero-bg span:nth-child(2) {
  width: 400px; height: 400px;
  background: #7BC142;
  opacity: 0.30;
  bottom: -170px; right: -90px;
  animation: hero-float-b 20s ease-in-out infinite;
}
.hero-bg span:nth-child(3) {
  width: 260px; height: 260px;
  background: var(--amber);
  opacity: 0.18;
  top: 28%; left: 60%;
  animation: hero-float-c 24s ease-in-out infinite;
}

@keyframes hero-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 40px) scale(1.08); }
}
@keyframes hero-float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.06); }
}
@keyframes hero-float-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 25px); }
}
@keyframes hero-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 300px 300px; }
}

/* ==========================================================================
   Page-to-page transitions — smooth crossfade on navigation
   ========================================================================== */
body {
  opacity: 0;
  transition: opacity 0.32s ease;
}
body.is-loaded { opacity: 1; }
body.is-leaving { opacity: 0; }

/* ==========================================================================
   Legal documents (Terms of Service, Privacy Policy)
   ========================================================================== */
.legal-doc { max-width: 760px; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 40px;
}
.legal-callout {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  font-size: 0.92rem;
  margin: 1.4em 0;
}
.legal-callout p:last-child { margin-bottom: 0; }
.legal-toc {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 48px;
}
.legal-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss-deep);
  margin-bottom: 14px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2;
  column-gap: 24px;
}
.legal-toc li { margin-bottom: 8px; break-inside: avoid; }
.legal-toc a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.legal-toc a:hover { color: var(--moss-deep); text-decoration: underline; }

.legal-section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.legal-section:first-of-type { border-top: none; padding-top: 0; }
.legal-section h2 {
  font-size: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.legal-section h2 .legal-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber-deep);
  font-weight: 600;
}
.legal-section h3 { font-size: 1.02rem; margin-top: 1.5em; }
.legal-section p, .legal-section li { color: var(--ink-soft); font-size: 0.96rem; }
.legal-section ul, .legal-section ol.legal-list { padding-left: 22px; }
.legal-section li { margin-bottom: 6px; }
.legal-intro { font-size: 1rem; color: var(--ink-soft); }

.legal-table-wrap { overflow-x: auto; margin: 1.2em 0; }
table.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.85rem;
}
table.legal-table th, table.legal-table td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
table.legal-table th {
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--moss-deep);
}
table.legal-table td.is-yes { color: var(--moss-deep); font-family: var(--font-mono); font-weight: 600; }
table.legal-table td.is-no { color: var(--muted); font-family: var(--font-mono); }

.legal-back-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
  margin-top: 18px;
}
.legal-back-top:hover { color: var(--moss-deep); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.page-hero { padding: 64px 0 60px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
