/* ═══════════════════════════════════════════════════════════
   BAKKIEOFFICE — product page theme
   Same tokens as the app itself: Archivo, board grey, ink,
   steel, and hi-vis yellow for the one main action.
   Loaded after style.css; everything is scoped to .theme-bakkie.
   ═══════════════════════════════════════════════════════════ */

.theme-bakkie {
  --b-ink: #16202B;
  --b-steel: #2B4257;
  --b-steel-soft: #5A7288;
  --b-hivis: #FFB423;
  --b-hivis-deep: #E29200;
  --b-paper: #FFFFFF;
  --b-board: #E4E7E4;
  --b-board-deep: #CFD4CF;
  --b-rule: #DDE1DE;
  --b-field: #F3F5F3;
  --b-paid: #1F7A4D;  --b-paid-bg: #E6F2EB;
  --b-late: #C4432B;  --b-late-bg: #FAEAE7;
  --b-wait: #8A6A12;  --b-wait-bg: #FCF2DC;
  --b-r: 10px;
  --b-font: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  background: var(--b-board);
  color: var(--b-ink);
  font-family: var(--b-font);
  font-feature-settings: "tnum" 1;
}
.theme-bakkie .scroll-progress { background: var(--b-hivis); height: 3px; }

/* ─── Nav ─── */
.theme-bakkie .nav { background: rgba(228,231,228,0.9); border-bottom: 1px solid var(--b-board-deep); }
.theme-bakkie .nav-logo { font-family: var(--b-font); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--b-ink); display: inline-flex; align-items: center; gap: 9px; }
.b-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--b-ink); display: grid; place-items: center; flex: none; }
.b-mark i { width: 12px; height: 4px; background: var(--b-hivis); border-radius: 1px; display: block; box-shadow: 0 6px 0 var(--b-hivis); transform: translateY(-3px); }
.theme-bakkie .nav-links a { color: var(--b-steel-soft); font-size: 14px; }
.theme-bakkie .nav-links a:hover, .theme-bakkie .nav-links a.current { color: var(--b-ink); }
.theme-bakkie .nav-links a::after { background: var(--b-hivis-deep); height: 2px; }
.theme-bakkie .nav-links a.nav-cta { background: var(--b-hivis); color: var(--b-ink); border-radius: 8px; font-weight: 700; padding: 10px 18px; }
.theme-bakkie .nav-links a.nav-cta:hover { background: var(--b-hivis-deep); color: var(--b-ink); transform: none; box-shadow: none; }
.theme-bakkie .nav-toggle { color: var(--b-ink); }

/* ─── Shared bits ─── */
.b-wrap { max-width: 1140px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 2; }
.b-sec { padding: 104px 0; }
.b-sec.paper { background: var(--b-paper); }
.b-h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: var(--b-ink); }
.b-h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; color: var(--b-ink); max-width: 20ch; }
.b-lede { font-size: 18px; line-height: 1.6; color: var(--b-steel); max-width: 52ch; }
.b-head { margin-bottom: 56px; }
.b-head .b-lede { margin-top: 18px; }

.b-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: var(--b-r);
  font-family: var(--b-font); font-size: 16px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.b-btn.hivis { background: var(--b-hivis); color: var(--b-ink); }
.b-btn.hivis:hover { background: var(--b-hivis-deep); color: var(--b-ink); }
.b-btn.line { border-color: var(--b-ink); color: var(--b-ink); background: transparent; }
.b-btn.line:hover { background: var(--b-paper); color: var(--b-ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.chip.paid { background: var(--b-paid-bg); color: var(--b-paid); }
.chip.late { background: var(--b-late-bg); color: var(--b-late); }
.chip.wait { background: var(--b-wait-bg); color: var(--b-wait); }
.chip.dark { background: var(--b-ink); color: var(--b-paper); }
.chip.soon { background: var(--b-board); color: var(--b-steel); border: 1px solid var(--b-board-deep); }

/* ─── Hero ─── */
.b-hero { padding: 72px 0 96px; }
.b-hero .b-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: center; }
.b-hero .status { margin-bottom: 26px; }
.b-hero .b-h1 { margin-bottom: 24px; }
.b-hero .b-lede { margin-bottom: 36px; }
.b-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.b-hero .fine { margin-top: 22px; font-size: 14px; color: var(--b-steel-soft); }

/* The loop: a real sequence, so it is numbered */
.loop { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 44px; counter-reset: lp; }
.loop li {
  counter-increment: lp; display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 5px; border-radius: 99px; background: var(--b-paper);
  border: 1px solid var(--b-rule); font-size: 13px; gap: 6px; font-weight: 600; color: var(--b-steel);
}
.loop li::before {
  content: counter(lp); width: 18px; height: 18px; border-radius: 50%;
  background: var(--b-ink); color: var(--b-paper); font-size: 11.5px; display: grid; place-items: center;
}

/* ─── Phone demo ─── */
.demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  width: 340px; height: 690px; background: var(--b-ink); border-radius: 40px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(22,32,43,0.45);
}
.screen { width: 100%; height: 100%; background: var(--b-paper); border-radius: 31px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.sbar { height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 12px; font-weight: 600; }
.view { display: none; flex: 1; flex-direction: column; min-height: 0; }
.view.on { display: flex; animation: viewIn 0.35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.abar { padding: 4px 18px 12px; border-bottom: 1px solid var(--b-rule); flex: none; }
.abar h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.abar .sub { font-size: 12.5px; color: var(--b-steel-soft); }
.vbody { flex: 1; overflow: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.vfoot { padding: 12px 18px 18px; border-top: 1px solid var(--b-rule); flex: none; }
.vfoot .b-btn { width: 100%; }

.cust { background: var(--b-field); border-radius: var(--b-r); padding: 12px 14px; }
.cust b { display: block; font-size: 15.5px; }
.cust span { font-size: 13px; color: var(--b-steel-soft); }
.ln { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--b-rule); font-size: 14.5px; }
.ln small { display: block; font-size: 12.5px; color: var(--b-steel-soft); }
.ln strong { white-space: nowrap; }
.ln.new { animation: lineIn 0.4s ease; background: var(--b-wait-bg); margin: 0 -8px; padding: 10px 8px; border-radius: 6px; }
@keyframes lineIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.addline { border: 1.5px dashed var(--b-board-deep); border-radius: var(--b-r); padding: 11px; font-weight: 600; font-size: 14.5px; color: var(--b-steel); text-align: center; background: none; cursor: pointer; width: 100%; font-family: inherit; }
.addline:hover { border-color: var(--b-steel); }
.addline[disabled] { opacity: 0.45; cursor: default; }
.tot { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding-top: 4px; }

/* WhatsApp-style chat (generic, no brand marks) */
.chat { background: #EFE9E0; }
.chat .abar { background: #F7F7F5; }
.bubble { align-self: flex-end; max-width: 86%; background: #DCF3D5; border-radius: 12px 12px 4px 12px; padding: 10px 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 0 rgba(0,0,0,0.06); }
.bubble.in { align-self: flex-start; background: var(--b-paper); border-radius: 12px 12px 12px 4px; }
.bubble .lnk { display: block; margin-top: 8px; padding: 9px 10px; background: rgba(255,255,255,0.7); border-radius: 8px; font-weight: 600; color: var(--b-steel); }
.bubble .meta { display: block; text-align: right; font-size: 11px; color: var(--b-steel-soft); margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.field span { padding: 12px; border: 1.5px solid var(--b-rule); border-radius: var(--b-r); font-size: 15px; font-weight: 500; background: var(--b-field); }
.done-note { background: var(--b-paid-bg); color: var(--b-paid); border-radius: var(--b-r); padding: 12px 14px; font-size: 14px; font-weight: 600; }

.jobcard { border: 1.5px solid var(--b-rule); border-radius: var(--b-r); padding: 13px 14px; }
.jobcard.now { border: 2px solid var(--b-ink); }
.jobcard .tm { font-size: 12.5px; color: var(--b-steel-soft); font-weight: 600; }
.jobcard .ti { font-size: 16px; font-weight: 700; margin: 2px 0; }
.jobcard .ad { font-size: 13.5px; color: var(--b-steel); }
.jobcard .chip { margin-top: 8px; }
.offline { background: var(--b-wait-bg); color: var(--b-wait); font-size: 12.5px; font-weight: 600; padding: 8px 18px; flex: none; }

.pop { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--b-rule); border-radius: var(--b-r); padding: 10px; font-size: 13.5px; }
.pop .thumb { width: 44px; height: 56px; border-radius: 6px; background: repeating-linear-gradient(180deg, var(--b-field) 0 6px, var(--b-rule) 6px 7px); flex: none; }

/* Stage switcher under the phone */
.stages { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; max-width: 400px; }
.stages button {
  font-family: var(--b-font); font-size: 13px; font-weight: 600; color: var(--b-steel);
  background: var(--b-paper); border: 1px solid var(--b-rule); border-radius: 99px; padding: 8px 11px; cursor: pointer; min-height: 38px;
}
.stages button:hover { border-color: var(--b-steel-soft); }
.stages button[aria-pressed="true"] { background: var(--b-ink); border-color: var(--b-ink); color: var(--b-paper); }
.demo-cap { font-size: 14px; color: var(--b-steel); text-align: center; max-width: 34ch; min-height: 3em; line-height: 1.5; }

/* ─── Features: a job sheet, not a card grid ─── */
.sheet { background: var(--b-paper); border-radius: 14px; border: 1px solid var(--b-rule); overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) 160px; gap: 32px; padding: 28px 32px; border-top: 1px solid var(--b-rule); align-items: start; }
.sheet-row:first-child { border-top: none; }
.sheet-row h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.sheet-row p { font-size: 16px; line-height: 1.6; color: var(--b-steel); max-width: 60ch; }
.sheet-row .who { justify-self: end; }

/* ─── Two apps, side by side ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border-radius: 14px; padding: 36px; }
.panel.owner { background: var(--b-paper); border: 1px solid var(--b-rule); }
.panel.tech { background: var(--b-ink); color: var(--b-paper); }
.panel h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.panel > p { font-size: 16px; line-height: 1.6; max-width: 42ch; }
.panel.owner > p { color: var(--b-steel); }
.panel.tech > p { color: #C9D3DC; }
.panel ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.panel li { font-size: 15.5px; padding-left: 22px; position: relative; line-height: 1.45; }
.panel li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; border-radius: 2px; background: var(--b-hivis); }
.panel.owner li::before { background: var(--b-steel); }

/* ─── Job costing ─── */
.costing { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: center; }
.cost-card { background: var(--b-paper); border-radius: 14px; border: 1px solid var(--b-rule); padding: 26px 28px; }
.cost-card .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cost-card .top b { font-size: 17px; }
.cost-card .top span { font-size: 13px; color: var(--b-steel-soft); }
.cost-card .ln { font-size: 15.5px; }
.cost-card .margin { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--b-r); background: var(--b-paid-bg); color: var(--b-paid); font-weight: 700; font-size: 18px; }
.slider { margin-top: 18px; }
.slider label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--b-steel); margin-bottom: 8px; }
.slider input { width: 100%; accent-color: var(--b-ink); height: 28px; }

/* ─── Comparison ─── */
.cmp-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--b-rule); background: var(--b-paper); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--b-rule); vertical-align: top; line-height: 1.45; }
.cmp thead th { border-top: none; font-size: 14px; color: var(--b-steel-soft); font-weight: 600; }
.cmp thead th.us { color: var(--b-ink); }
.cmp td.us { background: #FFF8E8; font-weight: 600; }
.cmp tbody th { font-weight: 600; color: var(--b-ink); width: 30%; }
.cmp td { color: var(--b-steel); }

/* ─── Coming later ─── */
.later { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--b-board-deep); }
.later div { padding: 24px 24px 0 0; }
.later h4 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.later p { font-size: 15px; line-height: 1.55; color: var(--b-steel); max-width: 34ch; }

/* ─── FAQ (uses app.js accordion) ─── */
.theme-bakkie .faq-item { border-bottom: 1px solid var(--b-board-deep); }
.theme-bakkie .faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--b-font); font-size: 18px; font-weight: 600; color: var(--b-ink);
}
.theme-bakkie .faq { max-width: none; margin: 0; }
.theme-bakkie .faq-q::after { color: var(--b-steel-soft); }
.theme-bakkie .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.theme-bakkie .faq-item.open .faq-a { max-height: 320px; }
.theme-bakkie .faq-a p { padding: 0 0 22px; font-size: 16px; line-height: 1.65; color: var(--b-steel); max-width: 64ch; }

/* ─── CTA with the tailgate stripe (the one decorative move) ─── */
.b-cta { background: var(--b-ink); color: var(--b-paper); position: relative; padding: 110px 0 100px; }
.b-cta::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--b-hivis) 0 18px, var(--b-ink) 18px 36px);
}
.b-cta .b-h2 { color: var(--b-paper); max-width: 18ch; }
.b-cta .b-lede { color: #C9D3DC; margin: 18px 0 34px; }
.b-cta .b-btn.line { border-color: #5A7288; color: var(--b-paper); }
.b-cta .b-btn.line:hover { background: var(--b-steel); color: var(--b-paper); }
.b-cta .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Footer ─── */
.theme-bakkie .footer { background: var(--b-board); border-top: 1px solid var(--b-board-deep); }
.theme-bakkie .foot-brand .fl { font-family: var(--b-font); color: var(--b-ink); letter-spacing: -0.02em; }
.theme-bakkie .foot-brand p, .theme-bakkie .foot-btm { color: var(--b-steel-soft); }
.theme-bakkie .foot-col h5 { color: var(--b-ink); font-family: var(--b-font); }
.theme-bakkie .foot-col a { color: var(--b-steel); }
.theme-bakkie .foot-col a:hover { color: var(--b-ink); }

/* Focus */
.theme-bakkie a:focus-visible, .theme-bakkie button:focus-visible, .theme-bakkie input:focus-visible { outline: 2px solid var(--b-steel); outline-offset: 3px; }

/* ─── Responsive ─── */
@media (max-width: 980px) {
  .b-hero .b-wrap, .costing { grid-template-columns: 1fr; gap: 48px; }
  .demo { order: 2; }
  .sheet-row { grid-template-columns: 1fr; gap: 10px; }
  .sheet-row .who { justify-self: start; }
  .split { grid-template-columns: 1fr; }
  .later { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .theme-bakkie .nav-links { background: var(--b-board); border-bottom-color: var(--b-board-deep); }
}
@media (max-width: 600px) {
  .b-wrap { padding: 0 20px; }
  .b-sec { padding: 72px 0; }
  .b-hero { padding: 40px 0 64px; }
  .phone { width: 300px; height: 620px; border-radius: 36px; }
  .screen { border-radius: 27px; }
  .panel { padding: 26px; }
  .sheet-row { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .view.on, .ln.new { animation: none; }
}
