/* KJ 1Stop marketing site
   Brand colors sampled directly from the app icon (src/resources/kjonestop.png
   in the KJ 1Stop repo), not guessed - so the site and the app match. */

:root {
  --brand-purple: #4E1469;
  --brand-purple-light: #6C2691;
  --brand-magenta: #B0186F;
  --brand-magenta-light: #D6208B;
  --brand-dark: #1E0A28;
  --ink: #241a2b;
  --ink-light: #5c4e66;
  --bg: #ffffff;
  --bg-soft: #F8F3FB;
  --border: #E7DCEF;
  --radius: 14px;
  --max-width: 1080px;
  --gradient: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-magenta) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--brand-magenta); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--brand-magenta); text-decoration: none; }
.main-nav a.active { color: var(--brand-magenta); }

/* ".main-nav a" above (a class + an element) is more specific than
   ".btn-primary" alone (just a class), so without this the nav's dark
   ink color was winning over the button's white text - dark text on
   a purple/magenta gradient, hard to read. Two classes together beats
   ".main-nav a", so this wins instead. */
.main-nav .btn-primary,
.main-nav .btn-primary:hover {
  color: #fff;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: transparent;
  border-color: var(--brand-purple);
  color: var(--brand-purple);
}
.btn-secondary:hover { background: var(--bg-soft); }

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  background: radial-gradient(circle at 15% 20%, rgba(176,24,111,0.10), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(78,20,105,0.10), transparent 40%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-light);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-shot {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px -20px rgba(78,20,105,0.35);
  overflow: hidden;
}

.hero-shot img { width: 100%; }

.hero-shot.placeholder {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--ink-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}

/* ---------- Highlight strip ---------- */

.highlight-strip {
  padding: 8px 0 64px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.highlight-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--brand-purple);
}
.highlight-card p { margin: 0; color: var(--ink-light); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--gradient);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { margin: 0 0 10px; font-size: 1.7rem; }
.cta-band p { margin: 0 0 24px; opacity: 0.92; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--brand-purple); }
.cta-band .btn-secondary { border-color: #fff; color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ---------- Generic section / page header ---------- */

.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }

.page-hero {
  padding: 56px 0 32px;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p { color: var(--ink-light); max-width: 60ch; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Feature list (Features page) ---------- */

.feature-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.feature-block h3 { margin: 0 0 8px; font-size: 1.2rem; }
.feature-block p { margin: 0 0 16px; color: var(--ink-light); }

.feature-shot {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px -16px rgba(78,20,105,0.35);
  overflow: hidden;
  max-width: 420px;
}
.feature-shot img { width: 100%; }

/* ---------- Requirements table ---------- */

.requirements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}
.requirements-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.requirements-card h3 { margin-top: 0; color: var(--brand-purple); }
.requirements-card ul { margin: 0; padding-left: 20px; color: var(--ink-light); }
.badge-beta {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--brand-magenta);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ---------- Download page ---------- */

.download-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.download-card h2 { margin-top: 0; color: var(--brand-purple); }

.trial-list { padding-left: 20px; color: var(--ink-light); }

/* ---------- Contact / forms ---------- */

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

form.card label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
}

form.card input,
form.card textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
}

form.card input:focus,
form.card textarea:focus {
  outline: none;
  border-color: var(--brand-magenta);
}

.flash {
  background: #EAF7EE;
  border: 1px solid #BFE6C8;
  color: #205C33;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.error {
  background: #FBEAEE;
  border: 1px solid #F0BFCB;
  color: #7A1B33;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.contact-info-card {
  margin-bottom: 24px;
}
.contact-info-card p { margin: 0 0 8px; }

/* ---------- Click-to-enlarge screenshots ---------- */

.zoomable {
  cursor: zoom-in;
  border: none;
  padding: 0;
  background: none;
  display: block;
  width: 100%;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 40, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  z-index: 1000;
  cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
  color: var(--ink-light);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: var(--ink-light); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .requirements-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
  /* No JS hamburger menu - keep it simple. The nav row just wraps
     onto its own line below the logo instead of disappearing, so
     every link stays reachable on a phone. */
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 16px; row-gap: 8px; }
  .hero-shot.placeholder { aspect-ratio: 4/3; }
}
