/* Landing page (templates/landing.html). Layout + a few landing-only tokens;
   colours otherwise come from the --kch-* tokens in style.css. The hero is
   always dark; the sections below follow the light/dark theme. */

.lp {
  --lp-base:    #0b0e26;          /* dark page base: the hero's navy, deepened */
  --lp-card:    rgba(120,140,255,.05);
  --lp-card-bd: rgba(160,175,255,.12);
  --lp-heading: #fff;
  --lp-body:    rgba(222,228,255,.7);
}

/* Dark mode: swap the site's warm brown mesh for a deep navy that continues
   the hero, so there is no seam and the gold accents read as highlights. */
[data-theme="dark"] body.lp {
  background-color: var(--lp-base);
  background-image:
    radial-gradient(ellipse 60% 40% at 90% 55%, rgba(64,95,169,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 5% 85%, rgba(var(--kch-gold-rgb),.07) 0%, transparent 70%);
  background-attachment: scroll;
}
[data-theme="dark"] .lp .kch-navbar {
  background: rgba(14,18,52,.78);
  border-bottom-color: rgba(160,175,255,.1);
  box-shadow: none;
}
[data-theme="dark"] .lp-hero {
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(64,95,169,.5) 0%, transparent 60%),
    linear-gradient(180deg, #1b2461 0%, #182058 55%, var(--lp-base) 100%);
}
[data-theme="dark"] .lp-hero::after { display: none; }
[data-theme="dark"] .lp-feature:hover {
  background: rgba(120,140,255,.08);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
[data-theme="dark"] .lp-cta {
  border: 1px solid rgba(160,175,255,.14);
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(var(--kch-gold-rgb),.22) 0%, transparent 60%),
    linear-gradient(135deg, #1e2872 0%, #141a4a 100%);
}
[data-theme="light"] .lp {
  --lp-card:    #fff;
  --lp-card-bd: #ebe3d4;
  --lp-heading: #1a1a2e;
  --lp-body:    #55536a;
}

.lp-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .lp-wrap { padding: 0 32px; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.35rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn:focus-visible { outline: 3px solid rgba(var(--kch-gold-rgb),.5); outline-offset: 2px; }
.lp-btn-gold {
  background: linear-gradient(135deg, var(--kch-gold) 0%, var(--kch-orange) 100%);
  color: #1a1209;
  box-shadow: 0 6px 24px rgba(var(--kch-gold-rgb),.35);
}
.lp-btn-gold:hover { box-shadow: 0 10px 32px rgba(var(--kch-gold-rgb),.5); }
.lp-btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.lp-btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.lp-btn-block { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(64,95,169,.55) 0%, transparent 60%),
    linear-gradient(160deg, #1b2461 0%, var(--kch-navy) 45%, #121741 100%);
  padding: 40px 0 56px;
}
.lp-hero::after {               /* soft fade into the page below */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.18));
  pointer-events: none;
}
.lp-hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  left: -180px; top: -260px;
  background: radial-gradient(circle, rgba(var(--kch-gold-rgb),.32) 0%, transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.lp-hero-inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .lp-hero { padding: 96px 0 112px; }
  .lp-hero-inner { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}

.lp-hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--kch-gold) 0%, var(--kch-orange) 100%);
  box-shadow: 0 10px 36px rgba(var(--kch-gold-rgb),.4);
  color: #1a1209;
}
.lp-hero-logo svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lp-title {
  margin: 20px 0 8px;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.1;
  padding-bottom: .06em;           /* keep the descender inside the clipped gradient */
  font-weight: 700;
  letter-spacing: -.035em;
  background: linear-gradient(120deg, #fff 30%, var(--kch-gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  max-width: 30ch;
}
.lp-lede {
  margin: 0 0 28px;
  font-size: 1.02rem;
  color: rgba(255,255,255,.72);
  max-width: 52ch;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sign-in card ─────────────────────────────────────────────────────── */
.lp-signin {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  scroll-margin-top: 80px;
}
@media (min-width: 720px) { .lp-signin { padding: 36px 34px; } }
.lp-signin-title { margin: 0; font-size: 1.4rem; font-weight: 700; color: #fff; }
.lp-signin-sub { margin: 4px 0 20px; font-size: .9rem; color: rgba(255,255,255,.62); }

.lp-form label {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
}
.lp-form input {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(8,10,30,.45);
  color: #fff;
  font: inherit;
  font-size: 1rem;              /* ≥16px: no iOS zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-form input:focus {
  outline: none;
  border-color: var(--kch-gold);
  box-shadow: 0 0 0 3px rgba(var(--kch-gold-rgb),.25);
}
.lp-form .lp-btn { margin-top: 4px; }

.lp-alert {
  margin-bottom: 16px;
  padding: .65rem .85rem;
  border-radius: 10px;
  font-size: .88rem;
  background: rgba(233,74,73,.16);
  border: 1px solid rgba(233,74,73,.45);
  color: #ffd9d9;
}
.lp-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.lp-or::before, .lp-or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.lp-signin-link {
  display: block;
  margin-top: 16px;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.62);
  text-decoration: none;
}
.lp-signin-link:hover { color: var(--kch-gold-light); }

.lp-choices { display: grid; gap: 10px; }
.lp-choices form { margin: 0; }
.lp-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lp-choice:hover { border-color: var(--kch-gold); background: rgba(var(--kch-gold-rgb),.1); }
.lp-choice-arrow { color: var(--kch-gold); transition: transform .15s ease; }
.lp-choice:hover .lp-choice-arrow { transform: translateX(3px); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.lp-section { padding-top: 72px; }
@media (min-width: 900px) { .lp-section { padding-top: 104px; } }
.lp-eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kch-gold);
}
[data-theme="light"] .lp-eyebrow { color: var(--kch-gold-deep); }
.lp-h2 {
  margin: 0 0 36px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--lp-heading);
  max-width: 24ch;
}

.lp-features {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.lp-feature {
  padding: 24px;
  border-radius: 16px;
  background: var(--lp-card);
  border: 1px solid var(--lp-card-bd);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lp-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--kch-gold-rgb),.45);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.lp-feature h3 { margin: 16px 0 6px; font-size: 1.08rem; color: var(--lp-heading); }
.lp-feature p  { margin: 0; font-size: .93rem; color: var(--lp-body); }

.lp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(var(--kch-gold-rgb),.22), rgba(243,146,0,.12));
  color: var(--kch-gold);
}
[data-theme="light"] .lp-icon { color: var(--kch-gold-deep); }
.lp-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.lp-steps li {
  position: relative;
  padding: 24px;
  border-radius: 16px;
  background: var(--lp-card);
  border: 1px solid var(--lp-card-bd);
}
.lp-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-weight: 700;
  color: #1a1209;
  background: linear-gradient(135deg, var(--kch-gold), var(--kch-orange));
}
.lp-steps h3 { margin: 14px 0 4px; font-size: 1.08rem; color: var(--lp-heading); }
.lp-steps p  { margin: 0; font-size: .93rem; color: var(--lp-body); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.lp-cta {
  margin: 72px 0 56px;
  padding: 40px 24px;
  border-radius: 24px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(var(--kch-gold-rgb),.28) 0%, transparent 60%),
    linear-gradient(135deg, var(--kch-navy) 0%, #1b2461 100%);
  box-shadow: 0 24px 64px rgba(18,23,65,.35);
}
@media (min-width: 720px) { .lp-cta { margin: 104px 0 72px; padding: 56px 40px; } }
.lp-cta h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -.02em; }
.lp-cta p  { margin: 0 auto 24px; max-width: 48ch; color: rgba(255,255,255,.75); }

/* ── Entrance motion ──────────────────────────────────────────────────── */
@keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lp-rise { animation: lp-rise .6s ease both; }
.lp-signin.lp-rise { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .lp-rise { animation: none; }
  .lp-btn, .lp-feature, .lp-choice-arrow { transition: none; }
  .lp-btn:hover, .lp-feature:hover { transform: none; }
}

/* Phones: get the sign-in card near the fold. */
@media (max-width: 599px) {
  .lp-hero-logo { width: 52px; height: 52px; border-radius: 15px; }
  .lp-hero-logo svg { width: 28px; height: 28px; }
  .lp-title { margin-top: 14px; }
  .lp-lede { margin-bottom: 0; font-size: .95rem; }
  .lp-hide-phone { display: none; }
  .lp-hero-inner { gap: 28px; }
}

/* Dark mode: gold accents stay crisp on navy instead of turning muddy. */
[data-theme="dark"] .lp-icon {
  background: rgba(var(--kch-gold-rgb),.1);
  box-shadow: inset 0 0 0 1px rgba(var(--kch-gold-rgb),.28);
}
[data-theme="dark"] .lp-hero-glow {
  background: radial-gradient(circle, rgba(var(--kch-gold-rgb),.18) 0%, transparent 65%);
}

.lp-signin-foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: .88rem;
  color: rgba(255,255,255,.62);
}
.lp-signin-foot a { color: var(--kch-gold-light); font-weight: 600; text-decoration: none; }
.lp-signin-foot a:hover { text-decoration: underline; }

/* ── Organisation sign-up (templates/register.html) ───────────────────── */
.lp-form select {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: .75rem .9rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(8,10,30,.45);
  color: #fff;
  font: inherit;
  font-size: 1rem;
}
.lp-form select option { color: #1a1a2e; }
.lp-form select:focus {
  outline: none;
  border-color: var(--kch-gold);
  box-shadow: 0 0 0 3px rgba(var(--kch-gold-rgb),.25);
}
.lp-fieldset {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
}
.lp-fieldset legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--kch-gold-light);
}
.lp-row { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .lp-row { grid-template-columns: 1fr 1fr; } }
.lp-hint { margin: -10px 0 16px; font-size: .78rem; color: rgba(255,255,255,.5); }
.lp-signup-inner { align-items: start; }
@media (min-width: 900px) { .lp-signup-inner { grid-template-columns: .9fr 1.1fr; } }
.lp-signup-copy { padding-top: 8px; }
@media (min-width: 900px) { .lp-signup-copy { padding-top: 40px; } }
.lp-signup-copy .lp-title { font-size: clamp(2rem, 5vw, 3rem); }
.lp-checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.lp-checks li {
  position: relative;
  padding-left: 34px;
  color: rgba(255,255,255,.78);
  font-size: .98rem;
}
.lp-checks li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #1a1209;
  background: linear-gradient(135deg, var(--kch-gold), var(--kch-orange));
}
.lp-signup .lp-hero { min-height: calc(100vh - 58px); }

/* Terms acceptance checkbox (base rules in style.css) — undo .lp-form's
   full-width text-input styling for it. */
.lp-form label.kch-terms-check { display: flex; color: rgba(255,255,255,.78); font-weight: 400; margin-bottom: 16px; }
.lp-form .kch-terms-check input { display: inline-block; width: auto; margin: .2rem 0 0; padding: 0; accent-color: var(--kch-gold); }
.lp-form .kch-terms-check a { color: var(--kch-gold-light); }
