/*
  Kopio Track landing page. The MARKETING surface: playful, colorful, energetic.
  Deliberately unlike the product dashboard, which is calm and monochrome. Here
  color has personality and does the selling.

  Font: Montserrat (the free, close stand-in for Gotham; see CLAUDE.md's license
  note). Loaded in index.html with a geometric system fallback so a blocked
  webfont never silently drops to Times.
*/

:root {
  /* rich, mixed palette with a warm/cool tension */
  --plum:      #241447;   /* deep night-market ground */
  --plum-2:    #180d33;
  --paper:     #fdf4e8;   /* warm paper */
  --paper-2:   #f6e7d3;
  --marigold:  #ffb020;   /* the cash warmth, primary accent */
  --coral:     #ff6b5e;   /* playful pop */
  --teal:      #12b5a5;   /* the "track" / trust side */
  --violet:    #7b61ff;
  --ink:       #241447;
  --ink-soft:  #5b5075;
  --cream-ink: #efe6f7;   /* text on plum */
  --cream-soft:#b8abd6;

  --font: "Montserrat", ui-sans-serif, system-ui, "Segoe UI", -apple-system, sans-serif;
  --maxw: 1140px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* language visibility: JS sets data-lang on <html> */
:root[data-lang="en"] [lang="sw"],
:root[data-lang="sw"] [lang="en"] { display: none; }

a { color: inherit; }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--marigold); color: var(--plum); box-shadow: 0 8px 0 -2px #c97f00; }
.btn.primary:hover { box-shadow: 0 11px 0 -2px #c97f00; }
.btn.ghost { background: transparent; color: var(--cream-ink); border: 2px solid rgba(255,255,255,0.25); }
.btn.ghost:hover { border-color: var(--marigold); color: var(--marigold); }
.btn.dark { background: var(--plum); color: var(--paper); box-shadow: 0 8px 0 -2px #0c0620; }

/* ---- Header ------------------------------------------------------------- */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(36, 20, 71, 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--paper); letter-spacing: -0.02em; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--marigold), var(--coral)); color: var(--plum);
  font-weight: 900; font-size: 18px; transform: rotate(-6deg);
}
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--cream-soft); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--marigold); }
.nav .spacer { flex: 1; }
.lang-toggle { display: inline-flex; border: 2px solid rgba(255,255,255,0.2); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  font-family: inherit; font-weight: 700; font-size: 13px; border: none; cursor: pointer;
  padding: 6px 13px; background: transparent; color: var(--cream-soft);
}
.lang-toggle button.on { background: var(--marigold); color: var(--plum); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---- Hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--plum); color: var(--cream-ink); overflow: hidden; padding: 76px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background:
    radial-gradient(520px 320px at 82% 8%, rgba(123,97,255,0.45), transparent 70%),
    radial-gradient(480px 360px at 12% 92%, rgba(18,181,165,0.4), transparent 70%),
    radial-gradient(400px 300px at 60% 100%, rgba(255,107,94,0.28), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--marigold);
  background: rgba(255,176,32,0.12); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 20px; text-wrap: balance; }
.hero h1 .hl { position: relative; color: var(--marigold); white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 34%; z-index: -1;
  background: var(--coral); opacity: 0.28; border-radius: 4px; transform: rotate(-1.4deg);
}
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--cream-soft); max-width: 46ch; margin: 0 0 30px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .trust { margin-top: 26px; font-size: 13.5px; color: var(--cream-soft); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .trust b { color: var(--paper); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Hero visual: a stylized "till vs recorded" reconciliation card. */
.reco {
  background: linear-gradient(160deg, #2f1c58, #1b0f3a);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7); transform: rotate(1.4deg);
}
.reco .reco-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.reco .reco-head .day { font-weight: 700; color: var(--paper); font-size: 15px; }
.reco .reco-head .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--teal); font-weight: 700; }
.reco .reco-head .live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .reco .reco-head .live .pulse { animation: none; } }
.reco .big { font-size: 44px; font-weight: 800; color: var(--marigold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.reco .big small { font-size: 18px; color: var(--cream-soft); font-weight: 700; }
.reco .cap { color: var(--cream-soft); font-size: 13px; margin: 2px 0 16px; }
.reco .lines { display: flex; flex-direction: column; gap: 9px; }
.reco .line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.reco .line .tag { font-weight: 700; padding: 3px 9px; border-radius: 8px; font-size: 11.5px; }
.reco .line .tag.movie { background: rgba(123,97,255,0.22); color: #c3b6ff; }
.reco .line .tag.series { background: rgba(255,176,32,0.18); color: var(--marigold); }
.reco .line .name { color: var(--cream-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reco .line .amt { color: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; }
.reco .foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.18); display: flex; justify-content: space-between; font-size: 13px; color: var(--cream-soft); }
.reco .foot b { color: var(--teal); }

/* floating "copy" chips drifting up to the cloud. Confined to the right half and
   the top/bottom margins, so they never drift over the hero copy in the left
   column. pointer-events off so they can never intercept a click. */
.chip {
  position: absolute; z-index: 2; font-size: 12px; font-weight: 700; color: var(--plum);
  background: var(--paper); padding: 6px 11px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0,0,0,0.6);
  animation: drift 7s ease-in-out infinite; pointer-events: none;
}
.chip.c1 { top: 9%;  left: 66%; background: var(--teal);     color: #04231f; animation-delay: 0s; }
.chip.c2 { top: 82%; left: 62%; background: var(--coral);    color: #3a0f0a; animation-delay: 1.6s; }
.chip.c3 { top: 44%; left: 91%; background: var(--marigold);                 animation-delay: 3.1s; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }
/* Once the hero stacks to one column, the chips have nowhere clear to sit. */
@media (max-width: 900px) { .chip { display: none; } }

/* ---- Section scaffolding ------------------------------------------------ */
section { padding: 84px 0; }
.section-plum { background: var(--plum-2); color: var(--cream-ink); }
.section-paper { background: var(--paper); }
.section-cream { background: var(--paper-2); }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin: 0 0 12px; }
.section-plum .kicker { color: var(--marigold); }
h2.title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 60ch; }
.section-plum .section-lead { color: var(--cream-soft); }

/* ---- Problem (the untrusted operator) ----------------------------------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 40px; }
.pcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 26px; }
.pcard .big-emoji { font-size: 30px; }
.pcard h3 { font-size: 19px; margin: 12px 0 8px; color: var(--paper); }
.pcard p { color: var(--cream-soft); font-size: 15px; line-height: 1.55; margin: 0; }
.pcard.solve { background: linear-gradient(160deg, rgba(18,181,165,0.16), rgba(18,181,165,0.04)); border-color: rgba(18,181,165,0.4); }
.pcard.solve h3 { color: var(--teal); }
@media (max-width: 760px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---- How it works ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; counter-reset: step; }
.step { position: relative; background: #fff; border: 2px solid var(--paper-2); border-radius: var(--radius); padding: 28px 24px; }
.step .num {
  position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; font-size: 18px; color: var(--plum);
  background: var(--marigold); transform: rotate(-6deg); box-shadow: 0 6px 0 -1px #c97f00;
}
.step:nth-child(2) .num { background: var(--teal); color: #04231f; box-shadow: 0 6px 0 -1px #0a6b61; }
.step:nth-child(3) .num { background: var(--coral); color: #3a0f0a; box-shadow: 0 6px 0 -1px #c23d33; }
.step h3 { font-size: 19px; margin: 20px 0 9px; letter-spacing: -0.01em; }
.step p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---- Features ----------------------------------------------------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-2); }
.feat .ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }
.feat:nth-child(3n+1) .ficon { background: rgba(123,97,255,0.14); }
.feat:nth-child(3n+2) .ficon { background: rgba(18,181,165,0.14); }
.feat:nth-child(3n) .ficon { background: rgba(255,107,94,0.14); }
.feat h3 { font-size: 17px; margin: 0 0 7px; }
.feat p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* ---- Pricing / trust ---------------------------------------------------- */
.price-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; margin-top: 40px; }
.price-card { background: var(--plum); color: var(--cream-ink); border-radius: 22px; padding: 32px; box-shadow: 0 30px 60px -34px rgba(36,20,71,0.7); }
.price-card .amt { font-size: 40px; font-weight: 800; color: var(--marigold); }
.price-card .amt small { font-size: 16px; color: var(--cream-soft); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 11px; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; color: var(--cream-ink); }
.price-card li::before { content: "✓"; color: var(--teal); font-weight: 900; }
@media (max-width: 760px) { .price-band { grid-template-columns: 1fr; } }

/* ---- CTA ---------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--cream-soft); font-size: 17px; max-width: 50ch; margin: 0 auto 28px; }

/* ---- Footer ------------------------------------------------------------- */
footer { background: var(--plum-2); color: var(--cream-soft); padding: 40px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .logo { color: var(--paper); font-size: 17px; }
footer a { color: var(--cream-soft); text-decoration: none; }
footer a:hover { color: var(--marigold); }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
