/* Kempt — kemptdesk.com */
:root {
  --paper: #f7f5fb;
  --paper-2: #efebf7;
  --ink: #1c1530;
  --ink-2: #4b4463;
  --ink-3: #736c8c;
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --rose: #db2777;
  --line: #ddd6ec;
  /* Map colours: each one means one thing, everywhere on the site. */
  --safe: #16a34a;
  --check: #d97706;
  --breaks: #dc2626;
  --yours: #6366f1;
  --locked: #8a8fa8;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --measure: 34rem;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; font-variation-settings: "wdth" 85; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: var(--measure); }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font: 700 1.35rem var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
.top .btn { margin-left: .5rem; }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.25rem; border-radius: 999px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-small { padding: .5rem .95rem; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 1.4rem; }
.hero .lead { margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.alt-link { font-size: .95rem; color: var(--ink-3); margin-top: .9rem; }
.alt-link a { color: var(--ink-2); }
.promise { margin-top: 2.2rem; display: grid; gap: .55rem; color: var(--ink-2); font-size: .98rem; padding: 0; list-style: none; }
.promise li { display: flex; gap: .6rem; align-items: baseline; }
.promise li::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--safe); flex: none; transform: translateY(-1px); }

/* ---------- The safety map (signature element) ---------- */
.map-card {
  background: #1d1830; border-radius: var(--radius-l); padding: 14px;
  box-shadow: 0 40px 80px -40px rgba(76, 29, 149, .55), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.map-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; color: #cfc8e6; font-size: .9rem; }
.map-head strong { color: #fff; font: 700 1.05rem var(--display); }
.map { position: relative; height: clamp(300px, 38vw, 430px); border-radius: 10px; overflow: hidden; }
.tile {
  position: absolute; border-radius: 6px; padding: 7px 9px; overflow: hidden;
  color: #fff; font-size: .78rem; line-height: 1.25; cursor: pointer;
  border: 0; text-align: left; font-family: var(--body);
  transition: filter .12s, box-shadow .12s;
}
.tile b { display: block; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile span { opacity: .82; white-space: nowrap; }
.tile:hover, .tile.active { filter: brightness(1.15); box-shadow: 0 0 0 2px #fff inset; }
.tile.small b, .tile.small span { display: none; }
.t-safe { background: color-mix(in oklab, var(--safe) 78%, #1d1830); }
.t-check { background: color-mix(in oklab, var(--check) 80%, #1d1830); }
.t-breaks { background: color-mix(in oklab, var(--breaks) 78%, #1d1830); }
.t-yours { background: color-mix(in oklab, var(--yours) 80%, #1d1830); }
.t-locked { background: color-mix(in oklab, var(--locked) 60%, #1d1830); }
.map-note {
  margin-top: 12px; min-height: 4.6em; padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,.05); color: #e9e5f5; font-size: .95rem;
}
.map-note .what { font: 700 1rem var(--display); color: #fff; display: flex; gap: .6rem; align-items: center; }
.pill { display: inline-block; padding: .08rem .55rem; border-radius: 999px; font: 700 .74rem var(--body); color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; padding: 12px 6px 2px; color: #cfc8e6; font-size: .85rem; list-style: none; margin: 0; }
.legend li { display: flex; align-items: center; gap: .45rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: 2.8rem; }
.section-head p { margin-top: 1rem; color: var(--ink-2); font-size: 1.12rem; }
.band { background: var(--paper-2); }

/* Meaning of the colours */
.meanings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.meanings div { padding: 1.4rem 1.2rem 0 0; }
.meanings h3 { font-size: 1.08rem; display: flex; align-items: center; gap: .55rem; margin-bottom: .45rem; }
.meanings h3 i { width: 12px; height: 12px; border-radius: 3px; }
.meanings p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) { .meanings { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; } }
@media (max-width: 520px) { .meanings { grid-template-columns: 1fr; } }

/* Feature rows: text + screenshot, alternating */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 6rem); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.feature.flip .shot { order: -1; }
.feature h2 { margin-bottom: 1rem; }
.feature p { color: var(--ink-2); max-width: var(--measure); }
.feature ul { padding-left: 1.1rem; margin: 1.1rem 0 0; color: var(--ink-2); }
.feature li + li { margin-top: .35rem; }
.shot { border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 30px 60px -35px rgba(28, 21, 48, .45), 0 0 0 1px var(--line); background: #15131f; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip .shot { order: 0; } }

/* Also in the app: compact list, no cards */
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 3rem; }
.also h3 { margin-bottom: .4rem; }
.also p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .also { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .also { grid-template-columns: 1fr; } }

/* Rules */
.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; max-width: 60rem; }
.rules li { padding-left: 1.6rem; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--violet); }
.rules strong { display: block; font-family: var(--display); font-size: 1.12rem; margin-bottom: .2rem; }
.rules span { color: var(--ink-2); }
@media (max-width: 720px) { .rules { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 2rem; }
.toggle button { border: 0; background: transparent; padding: .55rem 1.15rem; border-radius: 999px; font: 700 .95rem var(--body); color: var(--ink-2); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 1.8rem; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--violet); position: relative; }
.plan .tag { position: absolute; top: -.8rem; left: 1.6rem; background: var(--violet); color: #fff; font: 700 .8rem var(--body); padding: .2rem .7rem; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan .who { color: var(--ink-3); font-size: .95rem; margin-top: .2rem; }
.price { font: 700 2.9rem/1 var(--display); letter-spacing: -0.03em; margin: 1.3rem 0 .3rem; }
.price small { font: 400 1rem var(--body); color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .5rem; color: var(--ink-2); font-size: .97rem; }
.plan li { display: flex; gap: .55rem; }
.plan li::before { content: "✓"; color: var(--violet); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }
.free-note { margin-top: 1.6rem; color: var(--ink-2); max-width: 46rem; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 30rem; } }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.05rem 0; }
.faq summary { cursor: pointer; font: 700 1.1rem var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-3); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--ink-2); max-width: 44rem; }

/* ---------- Final CTA + footer ---------- */
.final { text-align: left; }
.final .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); padding-top: 3rem; }
footer { padding: 2.5rem 0 3.5rem; color: var(--ink-3); font-size: .93rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Text pages (help, privacy, terms) ---------- */
.doc { padding: 3rem 0 5rem; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.6rem; margin: 2.6rem 0 .8rem; }
.doc h3 { margin: 1.8rem 0 .5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: .9rem; }
.doc ol, .doc ul { padding-left: 1.3rem; }
.doc li + li { margin-top: .35rem; }
.doc code { background: var(--paper-2); padding: .1rem .4rem; border-radius: 4px; font-size: .92em; }
.doc pre { background: var(--ink); color: #fff; padding: 1rem 1.2rem; border-radius: var(--radius-m); overflow-x: auto; }
.doc pre code { background: none; padding: 0; color: inherit; }
.tabs { display: inline-flex; gap: .4rem; margin: 1rem 0 1.5rem; }
.updated { color: var(--ink-3); font-size: .95rem; }

/* Header: one download button at most; none on small screens. */
.top [data-download] .btn + .btn { display: none; }
.top [data-download] .btn { padding: .55rem 1rem; font-size: .93rem; }
@media (max-width: 760px) { .top [data-download] { display: none; } }
.map-note .what { flex-wrap: wrap; row-gap: .25rem; }
.pill { white-space: nowrap; }
