/* Dropshippers — Soft violet ops toolkit · right-edge rail · Sora + Mulish */
:root {
  --ink: #1A1430;
  --bg: #F3F0FA;
  --surface: #FCFAFF;
  --accent: #7E22CE;
  --accent-ink: #6B21A8;
  --soft: #C4B5FD;
  --mute: #5B4B7A;
  --mist: #E9E4F5;
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Mulish", system-ui, sans-serif;
  --rail-w: 13.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0.85rem;
  --shadow: 0 24px 60px rgba(26, 20, 48, 0.12);
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@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;
  }
  .reveal, .reveal-side, .reveal-alt { opacity: 1 !important; transform: none !important; }
  .bg-video { display: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 1.02rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1100px, 92vw); margin-inline: auto; }
.container-wide { width: min(1280px, 94vw); margin-inline: auto; }
.narrow { width: min(720px, 92vw); margin-inline: auto; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 48ch;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
  text-wrap: pretty;
}
.muted { color: var(--mute); font-size: 0.95rem; }

.scroll-progress {
  position: fixed; inset: 0 auto auto 0; z-index: 200;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--soft));
}

/* —— RIGHT-edge vertical rail (distinct from ScanLab LEFT) —— */
.side-rail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: var(--rail-w);
  z-index: 50;
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem 1.25rem;
  overflow-y: auto;
}
.side-rail .logo-link {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.65rem;
}
.side-rail .logo-link .word {
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.88rem; letter-spacing: -0.02em;
}
.side-rail .logo-link .word span { color: var(--accent); }
.side-rail nav {
  display: flex; flex-direction: column; gap: 0.12rem; flex: 1;
}
.side-rail nav a {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 0.55rem;
  color: var(--mute);
}
.side-rail nav a .ico {
  width: 1.15rem; text-align: center; font-size: 0.78rem; opacity: 0.85;
}
.side-rail nav a:hover,
.side-rail nav a.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
}
.side-rail .rail-cta { margin-top: auto; padding-top: 1rem; }
.side-rail .rail-meta {
  margin-top: 0.65rem;
  font-size: 0.65rem;
  color: var(--mute);
  padding-inline: 0.45rem;
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  position: fixed;
  top: 0.75rem; left: 0.85rem;
  z-index: 70;
  width: 2.5rem; height: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column; justify-content: center; align-items: center; gap: 0.28rem;
}
.nav-toggle span {
  display: block; width: 1.1rem; height: 1.5px; background: var(--ink);
}

.site-main {
  margin-right: var(--rail-w);
  min-height: 100vh;
}

@media (max-width: 900px) {
  .side-rail {
    transform: translateX(105%);
    transition: transform 0.28s var(--ease);
    box-shadow: -4px 0 24px color-mix(in srgb, var(--ink) 18%, transparent);
  }
  .side-rail.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .site-main { margin-right: 0; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  font-size: 0.84rem; font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 18%, transparent);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light {
  background: color-mix(in srgb, #fff 88%, transparent);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid; align-items: end;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero--video .hero-bg { position: absolute; inset: 0; }
.hero-video-wrap, .cta-video-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.bg-video, .bg-video-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bg-video { z-index: 1; }
.bg-video-poster { z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--bg) 92%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 48%, color-mix(in srgb, var(--ink) 35%, transparent) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 42%);
}
.hero-content { position: relative; z-index: 3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.page-hero { padding: 3.25rem 0 1.75rem; }
.page-hero--bleed { padding-bottom: 0.5rem; }
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  font-size: 0.78rem; color: var(--mute); margin-bottom: 0.85rem;
}
.breadcrumbs a:hover { color: var(--accent); }

.section { padding: 3.5rem 0; }
.section-surface { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.section--contrast {
  background: var(--ink); color: #F8F5FF;
}
.section--contrast .lede, .section--contrast .eyebrow { color: var(--soft); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1.25rem; margin-bottom: 1.5rem; flex-wrap: wrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.card-grid--journal { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .card-grid, .card-grid--journal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .card-grid, .card-grid--journal { grid-template-columns: 1fr; }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
  container-type: inline-size;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  height: auto;
}
.card-body { padding: 1.05rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.card-body p { color: var(--mute); font-size: 0.92rem; }
.card-link { margin-top: auto; font-size: 0.82rem; font-weight: 700; color: var(--accent); }
.kicker { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 700; }

.range-atlas, .machine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.atlas-tile {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.atlas-tile--wide { grid-column: span 6; }
.atlas-tile img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.atlas-tile .af-body { padding: 1rem 1.05rem 1.15rem; }
@media (max-width: 900px) {
  .atlas-tile, .atlas-tile--wide { grid-column: span 6; }
}
@media (max-width: 560px) {
  .atlas-tile, .atlas-tile--wide { grid-column: span 12; }
}

.industry-band, .channel-matrix {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
}
.industry-band a, .channel-matrix a, .chip {
  display: inline-flex; align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--soft) 35%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  font-size: 0.82rem; font-weight: 600;
}
.industry-band a:hover, .channel-matrix a:hover, .chip:hover {
  background: var(--accent); color: #fff;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

.split-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.asymmetric {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
}
.asymmetric .media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(-1.2deg);
  box-shadow: var(--shadow);
}
.asymmetric .media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) {
  .split-editorial, .asymmetric { grid-template-columns: 1fr; }
  .asymmetric .media-frame { transform: none; }
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.product-hero-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-hero-visual img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 800px) {
  .product-hero-grid { grid-template-columns: 1fr; }
}

.spec-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.spec-rail .spec-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.spec-rail .spec-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.spec-rail .spec-item span {
  font-size: 0.78rem; color: var(--mute); text-transform: uppercase; letter-spacing: 0.08em;
}
@media (max-width: 700px) { .spec-rail { grid-template-columns: repeat(2, 1fr); } }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left; padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.spec-table th { width: 36%; color: var(--mute); font-weight: 600; font-size: 0.88rem; }

.check-list { margin-top: 1rem; }
.check-list li {
  position: relative; padding-left: 1.35rem; margin-bottom: 0.45rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.45rem;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent);
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.proof-rail article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}
@media (max-width: 700px) { .proof-rail { grid-template-columns: 1fr; } }

.matrix-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.matrix-table th, .matrix-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left; font-size: 0.9rem;
}
.matrix-table th {
  background: color-mix(in srgb, var(--soft) 28%, var(--surface));
  font-family: var(--font-display); font-weight: 600;
}

.journal-hero-img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 1.75rem;
}
.journal-section { margin-bottom: 1.75rem; }
.journal-section h2 { margin-bottom: 0.55rem; }
.journal-section p { text-wrap: pretty; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.byline { font-size: 0.9rem; color: var(--mute); margin-top: 0.85rem; }
.soft-cta {
  margin-top: 2.5rem; padding: 1.35rem;
  background: color-mix(in srgb, var(--soft) 22%, var(--surface));
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
}

.cta-band {
  position: relative;
  padding: 4rem 0;
  text-align: center;
  color: #F8F5FF;
  overflow: hidden;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band.has-bg-video::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 72%, transparent), color-mix(in srgb, var(--accent-ink) 78%, transparent));
}

.site-footer {
  background: var(--ink);
  color: color-mix(in srgb, #fff 78%, transparent);
  padding: 3.5rem 0 1.5rem;
  margin-right: var(--rail-w);
}
@media (max-width: 900px) { .site-footer { margin-right: 0; } }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
}
.footer-brand .logo-link { color: #fff; margin-bottom: 0.75rem; display: inline-flex; gap: 0.5rem; align-items: center; }
.footer-brand p { font-size: 0.9rem; max-width: 36ch; margin-top: 0.5rem; }
.footer-company { margin-top: 1rem !important; font-size: 0.82rem !important; }
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff; font-size: 0.88rem; margin-bottom: 0.65rem;
}
.footer-col a {
  display: block; font-size: 0.88rem; margin-bottom: 0.35rem;
  color: color-mix(in srgb, #fff 72%, transparent);
}
.footer-col a:hover { color: var(--soft); }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, #fff 14%, transparent);
  font-size: 0.8rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 28%;
    }
    .reveal-side {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 32%;
    }
    .reveal-alt {
      animation: soft-scale linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes soft-scale {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 640px) {
  .bg-video { display: none !important; }
  .hero { min-height: auto; padding-top: 5rem; }
}

/* Clear am.co.za/js/3.js floating widgets (Eric 2026-09-22):
   WhatsApp = bottom-right; Ask AI launchers = bottom-left.
   Rail CTAs must not sit under those fixed controls. */
.side-rail {
  padding-bottom: max(6.5rem, calc(24px + 56px + 1.25rem + env(safe-area-inset-bottom, 0px)));
}
.side-rail .rail-cta {
  position: relative;
  z-index: 1;
  margin-bottom: 0.25rem;
}
