/* Kioo website - the app's own colours (v2/lib/KiooV2.Theme.pas). */
:root {
  --bg: #ECEEE9;
  --card: #FFFFFF;
  --border: #BCC3B8;
  --divider: #DCE3D9;
  --text: #1C201B;
  --muted: #3F463D;
  --accent: #1B5E20;
  --accent-dark: #14451A;
  --accent-light: #E3EFE1;
  --brand: #008000;          /* the app icon's green */
  --amber: #B26A00;
  --amber-light: #FFF1D6;
  --plate: #F6D23B;
  --dot: #F2B705;
  --shadow: 0 1px 2px rgba(20, 40, 20, .06), 0 8px 24px rgba(20, 40, 20, .08);
  --shadow-lg: 0 2px 6px rgba(20, 40, 20, .08), 0 24px 60px rgba(20, 40, 20, .18);
}

* { box-sizing: border-box; }

/* hidden always hides, even on elements whose class sets display (.field). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); font-weight: 600; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1120px; }

/* Header */
header.site {
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
nav.site a { margin-left: 18px; font-size: 15px; text-decoration: none; }

main { padding: 32px 0 48px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 36px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  nav.site a { margin-left: 12px; }
  .logo img { height: 28px; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  text-decoration: none; padding: 14px 22px; border-radius: 12px;
  font-weight: 700; border: 0;
}
.btn.secondary { background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); }
.btn[aria-disabled="true"] { background: var(--divider); color: var(--muted); }

.note {
  background: var(--amber-light); border-radius: 12px; padding: 14px 16px;
  margin: 16px 0; color: var(--text);
}
.good {
  background: var(--accent-light); border-radius: 12px; padding: 14px 16px;
  margin: 16px 0; color: var(--accent-dark);
}

ol.steps { padding-left: 22px; }
ol.steps li { margin: 6px 0; }

footer.site {
  border-top: 1px solid var(--border); background: var(--card);
  padding: 22px 0; font-size: 14px; color: var(--muted);
}
footer.site a { margin-right: 16px; }
/* The app face (kioo-nav.js): no site footer; Terms, Privacy and Delete
   account are in Profile > Settings, as in the app. */
.app-face footer.site { display: none; }

/* A fixer's poster brought this person (kioo-nav.js kiooFixerCodeNote). */
.fixer-note { background: var(--accent-light); color: var(--accent-dark); padding: 10px 16px; text-align: center; font-size: 15px; }

/* ---------- Home page ---------- */

.home main { padding: 0; }
.home section { padding: 72px 0; }
.home h2 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
.eyebrow {
  display: inline-block; font-size: 20px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, #CFE6CB 0%, rgba(207,230,203,0) 60%),
    radial-gradient(800px 400px at -10% 110%, #FFF1D6 0%, rgba(255,241,214,0) 60%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 56px; line-height: 1.04; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero h1, .home h2 { text-wrap: balance; }
.hero .lead { font-size: 21px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 14px; }
.btn.play { background: var(--text); color: #fff; padding: 12px 20px; }
.btn.play svg { width: 22px; height: 22px; flex: none; }
.btn.play span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.btn.play small { font-size: 11px; font-weight: 600; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-light); }
/* On the fixers section's green: a white button, and an outlined one. */
.fixers .fx-cta .btn { background: #fff; color: var(--accent); border: 1.5px solid #fff; }
.fixers .fx-cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn.white { background: #fff; color: var(--accent-dark); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); margin: 18px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.trust li::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9.55 18 3.85 12.3l1.43-1.43 4.27 4.28 9.17-9.18 1.43 1.43Z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Phone mock-up */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,0,.18), rgba(0,128,0,0) 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 300px; border-radius: 42px; padding: 12px;
  background: #1A1D19; box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.phone::after {   /* camera */
  content: ""; position: absolute; top: 22px; left: 50%; width: 10px; height: 10px;
  margin-left: -5px; border-radius: 50%; background: #2E332D;
}
.screen { background: var(--bg); border-radius: 32px; overflow: hidden; padding: 40px 14px 18px; min-height: 560px; }
.app-title { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px; }
.app-title b { font-size: 20px; }
.app-title i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-light); padding: 4px 8px; border-radius: 6px; }
.m-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.m-job { display: flex; gap: 10px; align-items: center; }
.plate {
  font: 800 13px/1 "Arial Narrow", Arial, sans-serif; letter-spacing: .06em;
  background: var(--plate); border: 1.5px solid #1C201B; border-radius: 5px; padding: 5px 7px; white-space: nowrap;
}
.m-job b { display: block; font-size: 14px; line-height: 1.25; }
.m-job span { font-size: 12px; color: var(--muted); }
.m-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 14px 4px 8px; }
.quote { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.quote b { font-size: 14px; display: block; line-height: 1.2; }
.quote small { font-size: 11.5px; color: var(--muted); }
.kind { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); border-radius: 4px; padding: 1px 5px; margin-right: 4px; }
.price { font-weight: 800; font-size: 17px; text-align: right; }
.price small { display: block; font-weight: 600; font-size: 11px; color: var(--muted); }
.m-btn { background: var(--accent); color: #fff; text-align: center; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 11px; margin-top: 12px; }
.q1, .q2, .q3 { opacity: 0; transform: translateY(14px); animation: arrive .6s cubic-bezier(.2,.8,.2,1) forwards; }
.q1 { animation-delay: .6s; } .q2 { animation-delay: 1.5s; } .q3 { animation-delay: 2.4s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
.toast {
  position: absolute; left: -34px; bottom: 120px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; max-width: 220px;
  opacity: 0; animation: arrive .6s cubic-bezier(.2,.8,.2,1) 3.2s forwards; transform: translateY(14px);
}
.toast img { width: 30px; height: 30px; }
.toast b { display: block; font-size: 13px; }

/* Real screenshots in a phone frame */
.phone.small { width: 280px; padding: 10px; border-radius: 38px; transform: none; }
.phone.small img { display: block; width: 100%; height: auto; border-radius: 28px; }
.phone.small::after { display: none; }
.shot-stage { display: flex; justify-content: center; position: relative; }
.shot-stage::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,128,0,.16), rgba(0,128,0,0) 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px;
}
.gallery figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gallery .phone.small { width: 100%; max-width: 240px; }
.gallery figcaption { font-size: 15px; font-weight: 600; color: var(--muted); text-align: center; max-width: 220px; }
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 220px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin-left: -4px; margin-right: -4px;
  }
  .gallery figure { scroll-snap-align: center; }
}

/* Steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px 24px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 36em; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 72px; }
.feature.flip .feature-text { order: 2; }
.feature ul.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.feature ul.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.feature ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231B5E20' d='M9.55 18 3.85 12.3l1.43-1.43 4.27 4.28 9.17-9.18 1.43 1.43Z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.panel { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }
.panel h4 { margin: 0 0 4px; font-size: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.stat { background: var(--bg); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 24px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.chart { height: 90px; border-radius: 12px; background: var(--bg); padding: 10px 12px; margin-bottom: 14px; }
.chart svg { width: 100%; height: 100%; display: block; }
.flag { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 11px 12px; font-size: 14px; margin-top: 8px; }
.flag.amber { background: var(--amber-light); }
.flag.green { background: var(--accent-light); color: var(--accent-dark); }
.flag .pip { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.flag.amber .pip { background: var(--amber); }
.flag.green .pip { background: var(--accent); }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.video {
  aspect-ratio: 9 / 14; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #3d4a3b, #1c201b);
}
.video:nth-child(2) { background: linear-gradient(160deg, #5c4a2a, #231d12); }
.video:nth-child(3) { background: linear-gradient(160deg, #2b4a52, #12201f); }
.video::before {   /* play button */
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92);
}
.video::after {
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--text);
}
.video span { position: absolute; left: 8px; right: 8px; bottom: 8px; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.25; }
.votes { display: flex; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); align-items: center; }
.votes b { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-light); color: var(--accent-dark); border-radius: 8px; padding: 4px 9px; }
.votes svg { width: 15px; height: 15px; }

/* Fixers band */
.fixers { background: linear-gradient(135deg, #14451A, #1B5E20 55%, #1f6e26); color: #fff; }
.fixers h2, .fixers p, .fixers li { color: #fff; }
.fixers .eyebrow { color: #BFE3BA; }
.fixers .lead { color: #DCEFD8; }
.fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 30px; }
.fx { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 22px; }
.fx b { display: block; font-size: 30px; line-height: 1; margin-bottom: 8px; color: #fff; }
.fx p { margin: 0; color: #DCEFD8; font-size: 15.5px; }
.poster {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  background: #fff; color: var(--text); border-radius: 20px; padding: 22px;
}
.poster p { color: var(--muted); margin: 4px 0 0; }
.poster h3 { color: var(--text); margin: 0; }
.qr {
  width: 92px; height: 92px; border-radius: 12px; border: 2px solid var(--text); padding: 8px; background: #fff;
}
.qr svg { width: 100%; height: 100%; display: block; }

/* Mirror */
.mirror { text-align: center; }
.mirror .word { margin: 0; display: flex; flex-direction: column; align-items: center; }
.mirror .word img { height: 80px; width: auto; display: block; }
.mirror .word .reflect {
  transform: scaleY(-1); opacity: .18; margin-top: 4px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 75%); mask-image: linear-gradient(to top, #000, transparent 75%);
}
.mirror p.lead { max-width: 32em; margin: 18px auto 0; }

.disclaimer { padding: 0 0 56px; }

/* Footer, dark on the home page */
.home footer.site { background: #1A1D19; color: #B9C2B6; border-top: 0; padding: 40px 0; }
.home footer.site a { color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot img { height: 30px; display: block; }
.foot p { color: #B9C2B6; margin: 10px 0 0; }

@media (max-width: 900px) {
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .hero h1 { font-size: 42px; }
  .steps3, .fx-grid { grid-template-columns: 1fr; }
  .toast { left: 0; }
}
@media (max-width: 640px) {
  .home section { padding: 52px 0; }
  .hero h1 { font-size: 36px; }
  .home h2 { font-size: 28px; }
  .eyebrow { font-size: 17px; }
  .phone { width: 270px; transform: none; }
  .screen { min-height: 0; }
  .poster { grid-template-columns: 1fr; }
  .mirror .word img { height: 60px; }
  .toast { display: none; }
  nav.site a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .q1, .q2, .q3, .toast { animation: none; opacity: 1; transform: none; }
}

/* Install Kioo (js/kioo-nav.js kiooOfferInstall): a card at the bottom, above the phone's tab bar. */
.install-card {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  max-width: 480px; margin: 0 auto; background: var(--card); color: var(--text);
  border: 1.5px solid var(--accent); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 16px 18px; max-height: 70vh; overflow-y: auto;
}
@media (max-width: 640px) { body.has-tabbar .install-card { bottom: calc(72px + env(safe-area-inset-bottom)); } }
.install-card h3 { margin: 0 0 8px; font-size: 18px; }
.install-card p, .install-card li { margin: 0 0 8px; font-size: 15.5px; }
.install-card ol { margin: 0 0 8px; padding-left: 22px; }
.install-card svg { width: 20px; height: 20px; fill: var(--accent); vertical-align: -4px; }
.install-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.install-btns .btn { flex: 1; min-width: 120px; justify-content: center; cursor: pointer; font-size: 16px; }
