/* KeptCue site. Palette and type mirror the app ("blueberry & carrot", Nunito). */
:root {
  --bg: #FFF8EC;
  --surface: #FFFFFF;
  --ink: #1E1B3A;
  --muted: #5E5A7A;
  --line: #EFE4CF;
  --hero: #4B3FD6;
  --hero-deep: #3125A3;
  --hero-soft: #ECEAFF;
  --carrot: #E0661A;
  --carrot-soft: #FFE9D6;
  --leaf: #1F7A44;
  --leaf-soft: #DCF5E9;
  --late: #C42A30;
  --radius: 22px;
  --wrap: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15132B;
    --surface: #1F1C3B;
    --ink: #F4F1FF;
    --muted: #B4AFD6;
    --line: #2F2B55;
    --hero: #8B80FF;
    --hero-deep: #5A4EE0;
    --hero-soft: #2B2663;
    --carrot: #FF9F5C;
    --carrot-soft: #3A2618;
    --leaf: #52C878;
    --leaf-soft: #173A31;
    --late: #FF7B7E;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 Nunito, ui-rounded, system-ui, -apple-system, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hero); text-underline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 16px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--hero); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
@media (prefers-color-scheme: dark) { .nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #120F2A; } }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

/* Buttons: chunky press-down, like the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 16px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn-primary { background: var(--hero); color: #fff; box-shadow: 0 5px 0 var(--hero-deep); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--hero-deep); }
.btn-ghost { background: var(--hero-soft); color: var(--hero); }
.btn-sm { padding: 9px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--hero-deep); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #120F2A; } }

/* Type */
h1, h2, h3 { line-height: 1.12; letter-spacing: -.6px; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; letter-spacing: -.2px; font-weight: 800; }
p { margin: 0 0 1em; }
.lead { font-size: 21px; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 1.6px; font-size: 13px; font-weight: 800; color: var(--carrot); margin-bottom: 10px; }
.small { font-size: 15px; color: var(--muted); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.hero-art { position: relative; justify-self: center; }
.hero-art .phone { width: 300px; }
.hero-art .kip { position: absolute; width: 120px; left: -70px; bottom: 30px; filter: drop-shadow(0 8px 14px rgba(30,27,58,.18)); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art .kip { left: -40px; width: 96px; }
}

/* Phone frame (drawn, no device image) */
.phone { border-radius: 44px; padding: 10px; background: #1E1B3A; box-shadow: 0 30px 60px -20px rgba(30,27,58,.45); }
.phone img { border-radius: 34px; }

/* Sections */
section { padding: 64px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .phone { width: 280px; justify-self: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

/* Pain list */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pain .q { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
@media (max-width: 820px) { .pains { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 22px 50px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); border: 4px solid var(--hero); }
.timeline li.free::before { border-color: var(--leaf); background: var(--leaf); }
.timeline .when { font-weight: 800; color: var(--hero); }
.timeline li.free .when { color: var(--leaf); }
.timeline .what { color: var(--muted); }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { font-size: 30px; margin-bottom: 8px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.plan { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; }
.plan.pro { border-color: var(--hero); }
.plan ul { padding-left: 20px; margin: 12px 0 0; }
.plan li { margin-bottom: 6px; }
.price { font-size: 15px; color: var(--muted); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* Kip callout */
.kipnote { display: flex; gap: 18px; align-items: center; background: var(--carrot-soft); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.kipnote img { width: 64px; flex: none; }
.kipnote p { margin: 0; }

/* Articles */
.article { padding: 40px 0 64px; }
.article h1 { font-size: clamp(34px, 5vw, 50px); }
.article h2 { font-size: 28px; margin-top: 1.6em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.answer { background: var(--hero-soft); border-radius: 18px; padding: 18px 22px; margin: 22px 0; font-size: 19px; }
.answer strong:first-child { color: var(--hero); }
table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 16px; background: var(--surface); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--hero-soft); font-weight: 800; }
.tablewrap { overflow-x: auto; }
.cta-box { background: var(--surface); border: 2px solid var(--hero); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
.cta-box h3 { margin-top: 0; }
.related { margin-top: 40px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }

/* Article list on home */
.reads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.reads a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--ink); text-decoration: none; font-weight: 800; }
.reads a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 4px; }
.reads a:hover { border-color: var(--hero); }
@media (max-width: 720px) { .reads { grid-template-columns: 1fr; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; }

/* Legal */
.legal h2 { font-size: 22px; margin-top: 1.8em; }
.legal address { font-style: normal; }

/* Support form */
.form label { display: block; font-weight: 800; margin: 14px 0 6px; }
.form select, .form textarea { width: 100%; font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
