/* ---------------------------------------------------------------
   KinMap prototype site — styles
   Palette: cream / deep navy / brick. Heritage + tech-product feel.
   Body type 18px+ for older readers.
--------------------------------------------------------------- */

:root {
  --cream: #F8F4EC;
  --cream-soft: #F2EBDC;
  --cream-card: #FCFAF5;
  --ink: #1A1612;
  --ink-muted: #5C5547;
  --navy: #1B2A4E;
  --navy-soft: #2C3F66;
  --brick: #A8513F;
  --brick-deep: #863E2F;
  --gold: #C8A95A;
  --border: #E5D9BE;
  --border-soft: #EFE7D2;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --narrow: 760px;

  --shadow-card: 0 1px 2px rgba(26, 22, 18, 0.04), 0 8px 28px rgba(26, 22, 18, 0.06);
  --radius: 6px;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brick);
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 81, 63, 0.25);
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--brick-deep);
  border-color: var(--brick-deep);
}

p {
  margin: 0 0 1.1em;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--brick);
  font-weight: 600;
  margin: 0 0 1.2em;
}

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

em {
  font-style: italic;
  color: var(--brick);
}

/* ---------- layout ---------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap.narrow {
  max-width: var(--narrow);
}

.band {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
}

.band-quiet {
  background: var(--cream-soft);
}

.band-feature {
  background: var(--navy);
  color: var(--cream);
  border-top: 0;
  border-bottom: 0;
  padding: 6.5rem 0;
}

.band-feature h2,
.band-feature .eyebrow {
  color: var(--cream);
}

.band-feature .eyebrow {
  color: var(--gold);
}

.band-feature em {
  color: var(--gold);
  font-style: italic;
}

.band-feature p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(248, 244, 236, 0.92);
}

/* ---------- header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background-color: rgba(248, 244, 236, 0.92);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  border: 0;
  letter-spacing: 0.005em;
}

.brand:hover {
  color: var(--navy-soft);
}

.brand-mark {
  height: 3.2rem;
  width: auto;
  display: inline-block;
  flex-shrink: 0;
  /* SVG ships with navy fill baked in. For a cream-on-dark variant we'd
     either generate a second SVG or switch to a CSS mask-image approach. */
}

/* footer wordmark is slightly smaller than the header — match the mark to it */
.site-footer .brand-mark {
  height: 2.4rem;
}

.brand-name {
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
  font-size: 0.95rem;
}

.nav a {
  color: var(--ink-muted);
  border: 0;
  font-weight: 500;
}

.nav a:hover {
  color: var(--navy);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--navy-soft);
  color: var(--cream) !important;
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-top: 0.4rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.65;
  max-width: 36ch;
  margin-top: 1.2rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream-card);
  padding: 1.2rem 1.2rem 0.9rem;
  box-shadow: var(--shadow-card);
}

.hero-figure img {
  border-radius: 4px;
}

.hero-figure figcaption,
figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-large {
  font-size: 1.05rem;
  padding: 1rem 1.7rem;
}

a.btn {
  border-bottom: 1px solid transparent;
}

a.btn:hover {
  border-bottom-color: transparent;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.card figure {
  margin: 0 -0.4rem 1.2rem;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-soft);
}

.card h3 {
  margin-bottom: 0.3em;
}

.card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1.6rem 0 1.6rem 4.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}

.steps li:last-child {
  border-bottom: 1px solid var(--border);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.7rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brick);
  font-weight: 500;
}

.steps h3 {
  margin: 0 0 0.3em;
}

.steps p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

/* ---------- form ---------- */

.register-form {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1.3rem;
}

.field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.field .optional {
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.02rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
}

.form-note {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin: 1rem 0 0;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--cream-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  margin-top: 0;
}

.site-footer .brand-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.footer-line {
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: 0.95rem;
}

.footer-meta {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.footer-meta a {
  color: var(--ink-muted);
  border-bottom-color: rgba(92, 85, 71, 0.3);
}

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .hero {
    padding: 3.5rem 0;
  }
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .band {
    padding: 4rem 0;
  }
  .band-feature {
    padding: 4.5rem 0;
  }
  .nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .nav a:not(.nav-cta) {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }
  .lede {
    font-size: 1.08rem;
  }
  .register-form {
    padding: 1.4rem;
  }
  /* Header lockup: tighten brand + CTA so the row fits on narrow phones */
  .brand {
    font-size: 1.5rem;
    gap: 0.55rem;
  }
  .brand-mark {
    height: 2.6rem;
  }
  .nav-cta {
    font-size: 0.85rem;
    padding: 0.5rem 0.85rem;
  }
}
