/* LeviteAVC base styles — shared across all pages */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/InstrumentSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Satoshi is a Fontshare licence, so the file cannot be fetched automatically.
   TO ADD IT: download Satoshi from fontshare.com, drop
   Satoshi-Variable.woff2 into /assets/fonts/, then uncomment this block.
   Nothing else needs changing: 'Satoshi' is already first in the font stack,
   so it takes over the moment the file is there.

@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
*/

/* Instrument Sans: the design system's stated fallback for Satoshi, and the
   sibling of Instrument Serif, so the pairing is intentional rather than a
   compromise. Self-hosted, so it works with no external requests. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--lv-base);
  color: var(--lv-text);
  font-family: var(--lv-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--lv-font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--lv-space-3);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.4rem; }
em { font-style: italic; color: var(--lv-accent); }

p { color: var(--lv-secondary); margin: 0 0 var(--lv-space-3); }

a { color: var(--lv-text); text-decoration: none; }

.eyebrow {
  font-family: var(--lv-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lv-muted);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--lv-space-4);
}

.hairline { border-color: var(--lv-hairline); }

/* Fact tables. Used on the homepage, the guides, privacy and proof, so they
   belong here rather than in home.css, where the Class B pages never saw them
   and rendered raw unstyled tables. */
.fact-table { width: 100%; border-collapse: collapse; font-family: var(--lv-font-mono); font-size: 0.85rem; }
.fact-table td, .fact-table th { padding: var(--lv-space-2) var(--lv-space-3); border-bottom: 1px solid var(--lv-hairline); text-align: left; }
.fact-table tr:last-child td { border-bottom: none; }

/* Add-ons table: name | description | price */
.fact-table .price-cell {
  font-family: var(--lv-font-display);
  font-size: 1.15rem;
  color: var(--lv-text);
  text-align: right;
  white-space: nowrap;
  /* Fixed-width digits, so R12,500 and R7,500 line up down the column instead
     of drifting against each other. */
  font-variant-numeric: tabular-nums;
}
.fact-table .price-cell .price-per { font-size: 0.62rem; }
/* "On application" is not a number and should not carry a number's weight. */
.fact-table .price-cell.is-quote {
  font-family: var(--lv-font-mono);
  font-size: 0.78rem;
  color: var(--lv-muted);
}
@media (max-width: 680px) {
  /* Only the add-ons table has a description column to drop. The generic
     two-column fact tables would lose their VALUES to this rule, leaving a
     list of labels with nothing beside them. */
  .addon-table td:nth-child(2) { display: none; }
  /* Baseline, not middle: the price should sit on the first line of a name
     that wraps, rather than floating half way down the row. */
  .addon-table td { vertical-align: baseline; padding-block: var(--lv-space-3); }
  .addon-table td:first-child { padding-right: var(--lv-space-2); }

  /* Label/value tables stack instead of splitting the width in two. Side by
     side at this width both columns are too narrow: "Industries" wrapped over
     eight lines against its label. Only tables tagged .spec-table, since the
     comparison tables elsewhere carry <th> headers that must keep their
     columns to stay meaningful. */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: auto; }
  .spec-table tr {
    padding-block: var(--lv-space-3);
    border-bottom: 1px solid var(--lv-hairline);
  }
  .spec-table tr:last-child { border-bottom: none; }
  .spec-table td { border-bottom: none; padding: 0; }
  .spec-table td:first-child {
    color: var(--lv-muted);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
  }
}

/* The two rules below are used by the footer, which is shared by every page, so
   they must live here rather than in class-b.css: the homepage loads home.css
   instead, and there the footer was rendering with no grid and the links as
   unstyled running text. */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lv-space-5);
  align-items: start;
}
/* Stacked: the second column needs its own breathing room, or "Elsewhere" sits
   directly beneath the web address and reads as part of the same block. */
@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: var(--lv-space-4); }
  .site-footer .two-col > * + * { margin-top: var(--lv-space-3); }
}

.routing-links { display: flex; gap: var(--lv-space-3); flex-wrap: wrap; margin-top: var(--lv-space-4); }
.routing-links a { font-family: var(--lv-font-mono); font-size: 0.8rem; color: var(--lv-muted); border: 1px solid var(--lv-hairline); border-radius: 999px; padding: 0.6rem 0.9rem; display: inline-flex; align-items: center; }
.routing-links a:hover { color: var(--lv-accent); border-color: var(--lv-accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--lv-space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--lv-radius-sm);
  font-family: var(--lv-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--lv-duration-fast) var(--lv-ease), background var(--lv-duration-fast) var(--lv-ease), box-shadow var(--lv-duration-fast) var(--lv-ease);
}
.btn-primary {
  background: linear-gradient(180deg, #ff8a3d, var(--lv-accent) 60%, #e0661f);
  color: var(--lv-deep);
  border-color: rgba(255,255,255,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 8px 20px -8px rgba(240,117,42,0.5);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 12px 28px -8px rgba(240,117,42,0.6);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 4px 12px -6px rgba(240,117,42,0.4);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.14);
  color: var(--lv-text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-ghost:hover { border-color: var(--lv-accent); background: rgba(255,255,255,0.07); }
.btn-ghost:active { transform: scale(0.98); }

:focus-visible {
  outline: 2px solid var(--lv-accent);
  outline-offset: 2px;
}

/* Scroll fade/rise (Class B safe) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--lv-duration-slow) var(--lv-ease), transform var(--lv-duration-slow) var(--lv-ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--lv-hairline);
  padding: var(--lv-space-6) 0 var(--lv-space-5);
  background: var(--lv-deep);
}
.nap {
  font-family: var(--lv-font-mono);
  font-size: 0.8rem;
  color: var(--lv-muted);
  line-height: 1.9;
}
.nap a { color: var(--lv-muted); }
.nap a:hover { color: var(--lv-accent); }

/* Cookie consent bar. Deliberately small and low-drama: it sits bottom-left
   rather than blocking the page, because a full-screen wall on a first visit
   is a worse first impression than the analytics are worth. */
.cookie-bar {
  position: fixed;
  left: var(--lv-space-4);
  right: var(--lv-space-4);
  bottom: var(--lv-space-4);
  z-index: 80;
  max-width: 460px;
  padding: var(--lv-space-4);
  border-radius: var(--lv-radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8, 16, 28, 0.94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 24px 48px -20px rgba(0,0,0,0.7);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--lv-ease), transform 320ms var(--lv-ease);
}
.cookie-bar.is-visible { opacity: 1; transform: translateY(0); }
.cookie-bar p {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0 0 var(--lv-space-3);
  color: var(--lv-secondary);
}
.cookie-bar a { color: var(--lv-accent); text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: var(--lv-space-2); }
.cookie-bar-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .cookie-bar { transition: none; }
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: var(--lv-space-4);
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--lv-hairline);
  background: var(--lv-glass);
  color: var(--lv-secondary);
  transition: border-color var(--lv-duration-base) var(--lv-ease), color var(--lv-duration-base) var(--lv-ease), transform var(--lv-duration-base) var(--lv-ease);
}
.social-icon svg { width: 17px; height: 17px; }
/* Scoped to the anchor: a pending icon is a span and must not offer hover
   feedback for a click that goes nowhere. */
a.social-icon:hover {
  border-color: var(--lv-accent);
  color: var(--lv-accent);
  transform: translateY(-2px);
}
.social-icon.is-pending { cursor: default; }

/* Site nav — mobile-first: hamburger + always-visible WhatsApp CTA under 860px */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: var(--lv-space-3) 0;
  background: rgba(12, 22, 38, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 32px -20px rgba(0,0,0,0.6);
}
.site-nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,117,42,0.5), transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}
.site-nav .logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--lv-font-mono); letter-spacing: 0.08em; flex-shrink: 0; }
.site-nav .logo img { height: 28px; width: auto; }

.nav-right { display: flex; align-items: center; gap: var(--lv-space-3); }
.nav-cta { padding: 0.6rem 1.1rem; font-size: 0.85rem; white-space: nowrap; }

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--lv-hairline);
  border-radius: var(--lv-radius-sm);
  background: var(--lv-glass);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lv-text);
  border-radius: 1px;
  transition: transform var(--lv-duration-fast) var(--lv-ease), opacity var(--lv-duration-fast) var(--lv-ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: calc(100% + var(--lv-space-3));
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lv-space-1);
  background: rgba(8, 16, 28, 0.97);
  border: 1px solid var(--lv-hairline);
  border-radius: var(--lv-radius-md);
  padding: var(--lv-space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--lv-duration-base) var(--lv-ease), transform var(--lv-duration-base) var(--lv-ease), visibility var(--lv-duration-base);
}
.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-menu a {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--lv-secondary);
  border-radius: var(--lv-radius-sm);
}
.nav-menu a:hover, .nav-menu a:focus-visible { color: var(--lv-text); background: var(--lv-glass); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-cta { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 0;
    background: none;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    order: 1;
  }
  .nav-menu a { margin-left: var(--lv-space-4); padding: 0.4rem 0; }
  .site-nav .logo { order: 0; }
  .nav-right { order: 2; }
}
