/* Keen Mind — keenmind.io
   Tokens mirror KMColors in app/lib/core/theme/app_theme.dart, so the site and
   the app read as one product. Do not hardcode new hexes; add a token. */

:root {
  --void: #0F0B1A;
  --ink: #1E1830;
  --ink-glass: rgba(30, 24, 48, 0.7);
  --arcane: #7B5EA7;
  --arcane-light: #A07DD4;
  --arcane-border: rgba(123, 94, 167, 0.2);
  --spell-gold: #D4A843;
  --spell-gold-light: #E5B954;
  --ember: #C0503A;
  --mist: #EDE7F8;
  --mist-dim: #BEB3D4;
  --mist-faint: rgba(237, 231, 248, 0.4);

  --measure: 68ch;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  /* The app's ambient arcane radials, flattened to CSS. */
  background-image:
    radial-gradient(60rem 40rem at 15% -10%, rgba(123, 94, 167, 0.22), transparent 60%),
    radial-gradient(50rem 35rem at 90% 10%, rgba(160, 125, 212, 0.14), transparent 60%);
  background-repeat: no-repeat;
}

h1, h2, h3 {
  font-family: Cinzel, Georgia, serif;
  line-height: 1.25;
  color: var(--mist);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin: 0 0 1rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 600; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 500; margin: 1.75rem 0 0.5rem; }

p, li { color: var(--mist-dim); }
strong { color: var(--mist); font-weight: 600; }

a { color: var(--spell-gold); text-decoration: none; }
a:hover { color: var(--spell-gold-light); text-decoration: underline; }

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.prose { max-width: var(--measure); }

/* ---- header ---- */
header.site {
  border-bottom: 1px solid var(--arcane-border);
  background: var(--ink-glass);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand svg { width: 42px; height: 28px; display: block; }
.brand span {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mist);
}
nav.site a { color: var(--mist-dim); margin-left: 1.25rem; font-size: 0.93rem; }
nav.site a:hover { color: var(--mist); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 1rem; }
.hero p.lede { font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 44ch; color: var(--mist-dim); }

.badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--spell-gold);
  border: 1px solid rgba(212, 168, 67, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 1.25rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn-primary { background: var(--spell-gold); color: var(--void); }
.btn-primary:hover { background: var(--spell-gold-light); color: var(--void); text-decoration: none; }
.btn-outline { border: 1px solid var(--arcane-border); color: var(--mist); }
.btn-outline:hover { border-color: var(--arcane-light); color: var(--mist); text-decoration: none; }

/* ---- cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.card {
  background: var(--ink);
  border: 1px solid var(--arcane-border);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.card h3 { margin-top: 0; color: var(--mist); }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1.1rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.4);
  color: var(--spell-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- pricing ---- */
.price {
  font-family: Cinzel, Georgia, serif;
  font-size: 2.1rem;
  color: var(--spell-gold);
}
.price small { font-size: 0.95rem; color: var(--mist-faint); font-family: Inter, sans-serif; }

/* ---- legal ---- */
.legal { padding: 3rem 0; }
.legal .updated { color: var(--mist-faint); font-size: 0.9rem; }
.legal table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.93rem; }
.legal th, .legal td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--arcane-border);
  vertical-align: top;
}
.legal th { color: var(--mist); font-weight: 600; }
.legal td { color: var(--mist-dim); }
.table-scroll { overflow-x: auto; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--arcane-border);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--mist-faint);
}
footer.site a { color: var(--mist-dim); margin-right: 1.25rem; }
footer.site a:hover { color: var(--mist); }
footer.site .legal-line { margin-top: 1rem; }
