/* ============ Kolo brand tokens ============ */
:root {
  --bg: #F1F3EC;
  --card: #FFFFFF;
  --ink: #22302A;
  --muted: #68766D;
  --accent: #2E6B4F;
  --accent-ink: #FFFFFF;
  --line: #DDE3DA;
  --marigold: #D99A2B;
  --marigold-soft: #F7EAD0;
  --display: "Fraunces", Georgia, serif;
  --body: "Outfit", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --container: 1100px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131C17;
    --card: #1C2820;
    --ink: #E7EFE8;
    --muted: #93A398;
    --accent: #7FC69B;
    --accent-ink: #0F1A14;
    --line: #2C3B32;
    --marigold: #E4B457;
    --marigold-soft: #33301F;
  }
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 24px; text-decoration: none;
}
.brand-mark { width: 34px; height: 34px; display: block; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav { display: none; } .nav-inner { justify-content: space-between; } }

/* ============ Buttons ============ */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  border-radius: 14px; padding: 14px 22px;
  font-weight: 600; font-size: 16px; border: 1px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .85; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ============ Hero ============ */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 14px;
}
h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.06; }
h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; margin: 22px 0 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---- live demo phone ---- */
.hero-demo { position: relative; display: flex; justify-content: center; }
.halo { position: absolute; inset: 50% auto auto 50%; width: min(420px, 108%); transform: translate(-50%, -50%); }
#halo-ring { transform-origin: 160px 160px; transition: transform .55s cubic-bezier(.3,.7,.3,1); }
.phone {
  position: relative; width: 300px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 22px 18px 16px;
  box-shadow: 0 24px 60px rgba(20, 35, 27, .18);
}
.phone-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.phone-title { font-size: 26px; margin-top: 10px; }
.phone-date { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; margin: 2px 0 14px; }
.pill {
  border: 1px solid var(--marigold); background: var(--marigold-soft); color: var(--marigold);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 99px; padding: 2px 9px;
}
.phone-cards { display: flex; flex-direction: column; gap: 8px; min-height: 232px; }
.jcard {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--pc, var(--accent));
  border-radius: 15px; padding: 11px 14px;
}
.jcard .j { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jcard .p { font-family: var(--display); font-size: 21px; margin-top: 1px; }
.jcard.freecard { border-style: dashed; border-left-width: 1px; background: transparent; }
.jcard.freecard .p { color: var(--muted); font-size: 17px; }
.phone-controls { display: grid; grid-template-columns: 40px 1fr 40px 1fr; gap: 6px; margin-top: 12px; }
.ctrl {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 11px; height: 40px; font-size: 15px; font-family: var(--body); font-weight: 500; cursor: pointer;
}
.ctrl:hover { border-color: var(--accent); }
.ctrl-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.phone-foot { text-align: center; color: var(--muted); font-size: 11.5px; margin: 12px 0 0; }

@media (max-width: 880px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-demo { order: 2; }
}

/* ============ Definition strip ============ */
.definition {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--card); padding: 26px 0; margin-top: 40px;
}
.definition p { margin: 0; font-size: 18px; max-width: 46em; }
.definition strong { font-family: var(--display); font-size: 22px; }
.def-pos { color: var(--muted); font-size: 14px; }
.def-also { color: var(--accent); font-weight: 600; }

/* ============ Sections ============ */
.section-title { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 36px; }
.features, .how, .faq { padding: 76px 0; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.f-dot { width: 14px; height: 14px; border-radius: 99px; background: var(--fc); margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* how it works */
.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; counter-reset: k; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { counter-increment: k; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step::before {
  content: counter(k);
  font-family: var(--display); font-size: 15px; font-weight: 700;
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 99px; background: var(--accent); color: var(--accent-ink); margin-bottom: 12px;
}
.step-k { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.formula { margin-top: 28px; text-align: center; }
.formula code {
  display: inline-block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 20px; font-size: 16px; color: var(--accent); font-weight: 600;
}
.formula p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

/* faq */
.faq-inner { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-family: var(--display); font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  color: var(--accent); font-size: 22px; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 60ch; }

/* ============ Get the app ============ */
.get { padding: 84px 0; }
.get-inner {
  background: #2E6B4F; color: #F1F3EC;
  border-radius: 28px; padding: 56px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.get-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; margin: 0 auto 18px;
  background: #F1F3EC; border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.get-logo img { width: 56px; height: 56px; display: block; }
.get h2 { font-size: clamp(30px, 4vw, 42px); color: #FFFFFF; }
.get p { color: rgba(241,243,236,.85); font-size: 18px; margin: 10px 0 26px; }
.store-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: flex; flex-direction: column; align-items: flex-start; text-decoration: none;
  background: #F1F3EC; color: #22302A; border-radius: 13px; padding: 10px 22px; min-width: 172px;
}
.store-btn:hover { transform: translateY(-1px); }
.store-small { font-size: 11px; opacity: .7; }
.store-big { font-family: var(--display); font-size: 21px; }
/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-direction: column; gap: 14px; }
.footer-brand { font-family: var(--display); font-size: 18px; }
.footer-sep { color: var(--muted); margin: 0 6px; }
.footer-brand span:last-child { font-family: var(--body); font-size: 14px; color: var(--muted); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer-note { color: var(--muted); font-size: 13px; margin: 0; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #halo-ring { transition: none; }
  .btn, .ctrl, .store-btn { transition: none; }
}

/* ============ language switcher (dropdown) ============ */
.lang-select {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  margin-left: 8px;
  padding: 5px 6px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.lang-select:hover { color: var(--ink); border-color: var(--muted); }
.lang-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang-select option { color: #22302A; background: #FFFFFF; }

/* No English flash: hide body for non-en until i18n applies (en is the baked default) */
html[data-lang]:not([data-lang="en"]):not(.i18n-ready) body { visibility: hidden; }

@media (max-width: 640px) {
  .lang-select { margin-left: auto; }
}

/* ============ legal pages (privacy) ============ */
.legal { max-width: 720px; padding-top: 56px; padding-bottom: 80px; }
.legal h1 { font-size: 38px; margin: 0 0 12px; }
.legal h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 10px;
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--muted); }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }
.legal-updated { color: var(--muted); font-size: 14px; }
