/* ===== AUTOFRI — Design tokens ===== */
:root {
  --bg:        #0E0D0B;
  --bg-soft:   #15130F;
  --surface:   #1C1A15;
  --bone:      #F2ECE0;
  --bone-soft: #E6DECC;
  --ink:       #0E0D0B;
  --muted:     #8A8275;

  --terracotta: #E2552B;
  --ochre:      #F2B544;
  --sahel:      #2F5E48;
  --clay:       #B6442A;

  --line:      rgba(242, 236, 224, 0.14);
  --line-2:    rgba(242, 236, 224, 0.28);

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;

  --container: 1320px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--bone);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.display { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.035em; }
.mono    { font-family: 'Inter', sans-serif; font-weight: 500; font-feature-settings: 'tnum', 'cv11'; }
.kicker  { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

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

/* ---- mudcloth-inspired diamond pattern, subtle, used as accent ---- */
.bogolan-bg {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(242,181,68,0.18) 0 1.5px, transparent 2px),
    linear-gradient(45deg,  transparent 48%, rgba(242,236,224,0.06) 48% 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(242,236,224,0.06) 48% 52%, transparent 52%);
  background-size: 24px 24px, 24px 24px, 24px 24px;
}

.stripe-rule {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    var(--terracotta) 0 32px,
    var(--ink)        32px 36px,
    var(--ochre)      36px 68px,
    var(--ink)        68px 72px,
    var(--sahel)      72px 104px,
    var(--ink)        104px 108px,
    var(--bone)       108px 140px,
    var(--ink)        140px 144px
  );
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracotta);
  color: var(--bone);
}
.btn-primary:hover { background: #f2613a; }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--bone); }

.btn-bone {
  background: var(--bone);
  color: var(--ink);
}
.btn-bone:hover { background: #ffffff; }

/* ---- chips & tags ---- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(242,236,224,0.06);
  border: 1px solid var(--line);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--bone-soft);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); display: inline-block; }
.dot.live { background: #5ED27A; box-shadow: 0 0 0 4px rgba(94,210,122,0.18); }

/* ---- section padding ---- */
section { position: relative; }
.sec { padding: 120px 0; }
.sec-sm { padding: 72px 0; }

@media (max-width: 880px) {
  .sec    { padding: 80px 0; }
  .sec-sm { padding: 56px 0; }
  .container { padding: 0 20px; }
}

/* ---- image-slot defaults ---- */
image-slot {
  --slot-bg: rgba(242, 236, 224, 0.04);
  --slot-border: var(--line);
  --slot-label-color: var(--muted);
}

/* ---- marquee ---- */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex; gap: 64px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

/* ---- soft entry fades ---- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }

/* ---- utility ---- */
.grid { display: grid; }
.flex { display: flex; }
.hide-mobile { }
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}

/* responsive grids */
@media (max-width: 1100px) {
  .painpoints-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .painpoints-grid { grid-template-columns: 1fr !important; }
}
