/* KFX Slides marketing site.
   Same palette as the dashboard so the product doesn't feel like a different company after signup.
   Dark, one accent, generous vertical rhythm — the slide thumbnails are the only bright thing. */

:root {
  --bg:        #0b0b0d;
  --band:      #101014;
  --surface:   #16161b;
  --line:      #24242c;
  --text:      #f4f4f6;
  --dim:       #9d9daa;
  --mute:      #6b6b78;
  --accent:    #ff6b35;
  --accent-dk: #e2551f;
  --r:  12px;
  --r-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.025em; }
em { font-style: normal; color: var(--accent); }

/* ───────── nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 24px;
  background: rgba(11,11,13,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ff9f68);
  display: grid; place-items: center; color: #1a0d06; font-weight: 800; font-size: 14px;
}
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ───────── buttons ───────── */
.btn {
  background: var(--accent); color: #1a0d06;
  border: 0; border-radius: var(--r);
  padding: 10px 18px;
  font: inherit; font-weight: 650; font-size: 14.5px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .13s, transform .08s;
}
.btn:hover { background: var(--accent-dk); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; padding: 13px; margin-top: 8px; }
.btn-ghost {
  background: transparent; color: var(--dim);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 16px; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--mute); }
.link { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* ───────── hero ───────── */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 84px 24px 76px;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 56px; } .hero-art { order: -1; } }

.pill {
  display: inline-block; margin-bottom: 22px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255,107,53,.12); color: var(--accent);
  font-size: 12.5px; font-weight: 650;
}
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); font-weight: 800; }
.lede { color: var(--dim); font-size: 17.5px; margin-top: 22px; max-width: 55ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { color: var(--mute); font-size: 13.5px; }
.hero-ticks { list-style: none; display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-ticks li { color: var(--dim); font-size: 14px; position: relative; padding-left: 20px; }
.hero-ticks li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.phone-row { display: flex; gap: 14px; justify-content: center; }
.phone {
  flex: 1; max-width: 176px; aspect-ratio: 9/16;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--mute); font-weight: 700;
  box-shadow: 0 22px 50px rgba(0,0,0,.45);
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.ph-1, .phone.ph-3 { transform: translateY(16px) scale(.94); opacity: .8; }

/* ───────── sections ───────── */
.band { background: var(--band); border-block: 1px solid var(--line); padding: 76px 0; margin: 76px 0; }
section.wrap { padding-block: 8px; }
.sec-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 750; text-align: center; }
.sec-sub { color: var(--dim); text-align: center; margin-top: 12px; }
.band h2 { font-size: clamp(24px, 3.2vw, 33px); font-weight: 750; }
.band .sub { color: var(--dim); margin-top: 16px; font-size: 17px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 44px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.step-n {
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255,107,53,.14); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-bottom: 14px;
}
.step h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 14.5px; }

/* features */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-top: 44px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.feat h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 10px; }
.feat p { color: var(--dim); font-size: 14.5px; }

/* examples */
.examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 40px; }
.examples img {
  width: 100%; aspect-ratio: 9/16; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--line); display: block;
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; margin-top: 44px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; }
.plan.is-popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #1a0d06;
  padding: 3px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
}
.plan h3 { font-size: 17px; font-weight: 650; }
.plan-blurb { color: var(--mute); font-size: 13.5px; margin-top: 4px; }
.plan-price { font-size: 40px; font-weight: 800; margin: 18px 0 2px; letter-spacing: -0.03em; }
.plan-period { color: var(--mute); font-size: 13.5px; }
.plan ul { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { color: var(--dim); font-size: 14.5px; padding-left: 22px; position: relative; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plans-note { text-align: center; color: var(--mute); font-size: 13px; margin-top: 26px; }

/* faq */
.faq { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--dim); font-size: 14.5px; margin-top: 12px; }

/* cta + footer */
.cta { padding: 90px 0; }
.cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 750; margin-bottom: 26px; }
.foot { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 40px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; color: var(--mute); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--mute); text-decoration: none; }
.foot a:hover { color: var(--text); }

/* ───────── modal ───────── */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.modal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; width: 100%; max-width: 400px; position: relative; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--mute); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.modal-card h3 { font-size: 20px; font-weight: 700; }
.modal-sub { color: var(--mute); font-size: 14px; margin-top: 6px; margin-bottom: 22px; }
.modal-card label { display: block; font-size: 12.5px; font-weight: 600; color: var(--dim); margin-bottom: 6px; margin-top: 14px; }
.modal-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px; color: var(--text); font: inherit;
}
.modal-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,.13); }
.modal-err { color: #ff5f57; font-size: 13.5px; margin-top: 14px; }
.modal-alt { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 18px; }

/* ───────────── legal + pricing pages ─────────────
   Long-form reading, so the measure is capped near 70ch and the type is a step larger than the
   marketing page. These pages exist partly for payment-provider verification, which means a human
   reviewer reads them top to bottom — clarity beats density. */
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.02em; }
.legal .updated { color: var(--dim); font-size: 14px; margin: 0 0 40px; }
.legal h2 {
  font-size: 19px; margin: 40px 0 12px; letter-spacing: -.01em;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 15px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--dim); line-height: 1.7; font-size: 15px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); font-weight: 600; }
.legal td { color: var(--dim); }
/* Wide tables must scroll inside themselves rather than pushing the page sideways on a phone. */
.legal .table-wrap { overflow-x: auto; }

.legal-contact {
  margin-top: 40px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.legal-contact p:last-child { margin-bottom: 0; }
