/* kindcoach.app. Colors follow the app (apps/mobile/src/theme.ts): neutral, never alarming. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5f6670;
  --border: #e3e3df;
  --accent: #2f6f73;
  --accent-strong: #245a5d;
  --accent-soft: #ddebec;
  --on-accent: #ffffff;
  --shadow: 0 20px 50px rgb(31 35 40 / 0.12);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181a;
    --surface: #1d2326;
    --text: #e8eaeb;
    --muted: #a3abb2;
    --border: #2e373b;
    --accent: #6fb3b7;
    --accent-strong: #8cc6c9;
    --accent-soft: #23393b;
    --on-accent: #0f1c1d;
    --shadow: 0 20px 50px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap {
    padding: 0 28px;
  }
}

.narrow {
  max-width: 720px;
}

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.1rem;
}

.top-cta {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover {
  background: var(--accent-strong);
}

.button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.button[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* Hero */

.hero {
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 880px) {
  .hero {
    padding: 88px 0 104px;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

/* Phone mockup */

.phone {
  justify-self: center;
  width: min(100%, 340px);
  padding: 12px;
  border-radius: 44px;
  background: var(--text);
  box-shadow: var(--shadow);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 14px 22px;
  border-radius: 34px;
  background: var(--bg);
  font-size: 0.86rem;
  line-height: 1.4;
}

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
}

.bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 6px;
}

.bubble.coach {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.card,
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
}

.card-title {
  font-weight: 650;
  margin-bottom: 6px;
}

.card-row,
.card-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.card-row span:last-child,
.card-total span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-row.muted {
  color: var(--muted);
}

.card-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-weight: 650;
}

.stat {
  display: grid;
  gap: 2px;
}

.stat-label,
.stat-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Sections */

.who,
.features,
.honest,
.join {
  padding: 72px 0;
}

.who {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.who p {
  font-size: 1.1rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.grid article::before {
  content: '';
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 18px;
}

.grid p {
  color: var(--muted);
  margin: 0;
}

.honest {
  background: var(--accent-soft);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.checks li {
  position: relative;
  padding-left: 34px;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

/* Waitlist form */

.join p {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
  margin: 28px 0 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  border: 0;
}

.platforms legend {
  width: 100%;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
}

.platforms label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.platforms input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .status {
  margin: 0;
  min-height: 1.5em;
  color: var(--text);
  font-weight: 600;
}

.form .status:empty {
  display: none;
}

.fine {
  font-size: 0.9rem;
}

/* Footer */

.foot {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot p {
  max-width: 720px;
}

/* Thanks and 404 */

.simple {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 72px 0;
}

.simple p {
  color: var(--muted);
  font-size: 1.1rem;
}
