/* Kilo & Fork website — same colours and type as the app (mobile/src/theme.ts). */
:root {
  --bg: #0b0f14;
  --surface: #141a22;
  --raised: #1c2430;
  --border: #2a3442;
  --text: #f2f5f8;
  --muted: #93a1b3;
  --faint: #5e6b7c;
  --accent: #c6f432;
  --accent-text: #0b0f14;
  --water: #4fb3ff;
  --warning: #ffc857;
  --success: #5be49b;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .stat { font-family: "Outfit", system-ui, sans-serif; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.04; margin: 0 0 20px; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 1.2rem; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 15, 20, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.2rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.top nav { display: none; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top .cta { margin-left: auto; }
@media (min-width: 820px) { .top nav { display: flex; } .top .cta { margin-left: 0; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; font-size: 0.98rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-small { padding: 8px 14px; font-size: 0.88rem; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(198, 244, 50, 0.35); background: rgba(198, 244, 50, 0.08); color: var(--accent); font-weight: 700; font-size: 0.85rem; }
.label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .hero { padding: 88px 0 64px; } .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); line-height: 1.25; }
.store small { color: var(--muted); font-size: 0.75rem; }
.store strong { font-family: "Outfit", sans-serif; font-size: 1.05rem; }
.hero .note { margin-top: 14px; font-size: 0.9rem; color: var(--faint); }

/* Phone mock-up of the Today screen */
.phone { justify-self: center; width: min(320px, 100%); border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a3442, #141a22); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px #2a3442; }
.screen { border-radius: 34px; background: var(--bg); padding: 22px 16px 18px; display: grid; gap: 12px; }
.screen .hello { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.screen .hello span { display: block; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.mini { display: grid; gap: 10px; }
.mini .row { display: flex; align-items: center; gap: 14px; }
.ring { --p: 62; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #24303d 0); }
.ring div { width: 74px; height: 74px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring b { font-family: "Outfit", sans-serif; font-size: 1.25rem; }
.ring small { color: var(--muted); font-size: 0.65rem; }
.bars { flex: 1; display: grid; gap: 8px; font-size: 0.72rem; color: var(--muted); }
.bar { height: 6px; border-radius: 6px; background: #24303d; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; border-radius: 6px; }
.finish { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid rgba(198, 244, 50, 0.25); background: rgba(198, 244, 50, 0.08); }
.finish b { font-family: "Outfit", sans-serif; display: block; }
.finish small { color: var(--muted); font-size: 0.72rem; }

/* Sections */
section { padding: 64px 0; }
.intro { max-width: 40em; margin-bottom: 32px; }
.intro p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 22px; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(198, 244, 50, 0.12); margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.coach { display: grid; gap: 32px; align-items: center; }
@media (min-width: 920px) { .coach { grid-template-columns: 1fr 1fr; } }
.chat { display: grid; gap: 10px; }
.bubble { max-width: 88%; padding: 12px 14px; border-radius: 16px; font-size: 0.95rem; }
.bubble.me { justify-self: end; background: var(--accent); color: var(--accent-text); border-bottom-right-radius: 4px; }
.bubble.ai { background: var(--raised); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }

.uk { display: grid; gap: 12px; }
@media (min-width: 640px) { .uk { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .uk { grid-template-columns: repeat(4, 1fr); } }
.uk .card b { font-family: "Outfit", sans-serif; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.uk .card span { color: var(--muted); font-size: 0.95rem; }

/* Pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.best { border-color: rgba(198, 244, 50, 0.55); box-shadow: 0 0 0 1px rgba(198, 244, 50, 0.25) inset; }
.plan .price { font-family: "Outfit", sans-serif; font-size: 2.3rem; font-weight: 800; line-height: 1; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .year { color: var(--muted); font-size: 0.92rem; margin-top: -6px; }
.plan .ticks { font-size: 0.95rem; }
.plan .tag { align-self: flex-start; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 12px 0 0; }

.safety { display: flex; gap: 16px; align-items: flex-start; padding: 22px; }
.safety p { color: var(--muted); margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.95rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Legal and help pages */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.doc p, .doc li { color: #c9d2dd; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { color: var(--text); font-weight: 700; }
.doc td { color: #c9d2dd; }
.table-scroll { overflow-x: auto; }
.updated { color: var(--faint); margin-bottom: 28px; }
.todo { background: rgba(255, 200, 87, 0.12); color: var(--warning); border: 1px dashed rgba(255, 200, 87, 0.5); border-radius: 6px; padding: 0 6px; font-weight: 600; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.callout p:last-child { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin: 0 !important; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 800; display: grid; place-items: center; font-size: 0.85rem; }
