/* KinDox public website — design tokens reuse the exact palette and type
   pairing from the KinDox application (see kindox-app/css/styles.css) so the
   marketing site and the product feel like the same thing, not a re-skin. */
:root {
  --ink-900: #0e1a2b;
  --ink-700: #3a4a5f;
  --ink-500: #5c6b80;
  --ink-300: #8998aa;
  --paper: #f5f7fa;
  --paper-sunken: #eef2f6;
  --white: #ffffff;
  --border: #dce3ec;
  --border-soft: #e8edf3;
  --accent: #0b63c4;
  --accent-dark: #0b1f3b;
  --accent-light: #e7f2ff;
  --overdue: #b45309;
  --overdue-bg: #fef3e2;
  --ok: #15803d;
  --ok-bg: #e6f4ea;
  --focus-ring: #0b63c4;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(11, 31, 59, 0.08), 0 8px 24px rgba(11, 31, 59, 0.07);
  --shadow-lift: 0 20px 48px rgba(11, 31, 59, 0.16);

  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink-900); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: 0; top: -48px; background: var(--accent-dark); color: #fff;
  padding: 12px 18px; border-radius: 0 0 8px 0; z-index: 200; transition: top .15s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

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

section { padding: 88px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

.section-alt { background: var(--paper); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

h2.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
.section-lede { font-size: 17px; color: var(--ink-500); max-width: 640px; margin-top: 16px; line-height: 1.65; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-lede { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  min-height: 48px;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(11,99,196,.28); }
.btn-primary:hover { background: #0954a8; box-shadow: 0 14px 30px rgba(11,99,196,.34); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink-900); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink-300); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }
.btn-block { width: 100%; }

/* ---- nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--accent-dark); letter-spacing: -.01em; }
.brand .wordmark em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--accent-dark); }
.nav-cta-wrap { display: flex; align-items: center; gap: 18px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--ink-900); }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 68px; left: 0; right: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px);
    background: #fff; flex-direction: column; align-items: stretch; overflow-y: auto; z-index: 100;
    padding: 28px 24px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .nav-links a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--border-soft); font-size: 17px; }
  .site-nav.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-cta-wrap .btn-primary-nav-text { display: none; }
}
.nav-icon-close { display: none; }
.site-nav.nav-open .nav-icon-open { display: none; }
.site-nav.nav-open .nav-icon-close { display: block; }

/* ---- hero ---- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: left; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-light); color: var(--accent-dark);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.015em; }
.hero-sub { font-size: 18px; color: var(--ink-500); margin-top: 22px; max-width: 540px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-fineprint { margin-top: 16px; font-size: 13.5px; color: var(--ink-300); }

.hero-visual { position: relative; }
.hero-shot { border-radius: 14px; box-shadow: var(--shadow-lift); border: 1px solid var(--border-soft); overflow: hidden; }
.hero-shot img { width: 100%; height: auto; }
.hero-mobile-shot { position: absolute; width: 34%; right: -6%; bottom: -34px; border-radius: 20px; box-shadow: var(--shadow-lift);
  border: 6px solid #0b1220; overflow: hidden; background: #0b1220; }
.hero-mobile-shot img { width: 100%; height: auto; }
@media (max-width: 980px) { .hero-mobile-shot { display: none; } }
@media (max-width: 640px) { .hero-visual { margin: 0 -24px; } .hero-shot { border-radius: 0; border-left: none; border-right: none; } }

/* ---- problem / record grid ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0; }
.tag-chip { background: var(--white); border: 1px solid var(--border); color: var(--ink-700); font-weight: 600; font-size: 14.5px;
  padding: 10px 16px; border-radius: 999px; }

.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .record-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .record-grid { grid-template-columns: 1fr; } }
.record-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 20px; }
.record-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.record-item .ic svg { width: 20px; height: 20px; }
.record-item b { font-size: 15.5px; color: var(--ink-900); display: block; margin-bottom: 4px; }
.record-item span { font-size: 13.5px; color: var(--ink-500); }

.closing-line { margin-top: 44px; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--accent-dark); }

/* ---- how it works ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-card { display: flex; flex-direction: column; gap: 16px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: .04em; }
.step-card h3 { font-size: 19px; font-weight: 800; }
.step-card p { font-size: 14.5px; color: var(--ink-500); }
.step-shot { border-radius: 12px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-card); overflow: hidden; order: -1; }
.step-shot img { width: 100%; height: auto; }

/* ---- value ---- */
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; gap: 32px; } }
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.value-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-700); }
.value-list svg { width: 20px; height: 20px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.value-note { margin-top: 28px; padding: 16px 18px; background: var(--paper); border-radius: var(--radius); font-size: 14px; color: var(--ink-500); border: 1px solid var(--border-soft); }

/* ---- privacy ---- */
.privacy-panel { background: var(--accent-dark); color: #eaf1fb; border-radius: 24px; padding: 56px; }
@media (max-width: 640px) { .privacy-panel { padding: 32px 24px; border-radius: 18px; } }
.privacy-panel h2 { color: #fff; }
.privacy-panel p { color: #c3d3e8; }
.privacy-points { margin-top: 28px; display: grid; gap: 14px; }
.privacy-points li { display: flex; gap: 12px; font-size: 15px; color: #dbe6f4; list-style: none; }
.privacy-points svg { width: 18px; height: 18px; color: #6fb3ff; flex-shrink: 0; margin-top: 3px; }
.privacy-caveat { margin-top: 26px; font-size: 13.5px; color: #93a8c4; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }

/* ---- who it's for ---- */
.who-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 36px; }
@media (max-width: 860px) { .who-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .who-grid { grid-template-columns: repeat(2, 1fr); } }
.who-chip { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.who-note { margin-top: 24px; font-size: 13.5px; color: var(--ink-300); max-width: 640px; }

/* ---- pricing ---- */
.price-card { max-width: 460px; margin: 0 auto; background: var(--white); border: 1px solid var(--border); border-radius: 24px;
  padding: 44px 40px; box-shadow: var(--shadow-card); text-align: center; }
.price-card .plan-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; }
.price-amount { font-family: var(--font-display); font-size: 56px; font-weight: 800; color: var(--ink-900); margin-top: 10px; }
.price-amount sup { font-size: 22px; top: -.5em; }
.price-period { color: var(--ink-500); font-size: 14.5px; margin-top: 4px; }
.price-includes { list-style: none; margin: 30px 0; padding: 0; text-align: left; display: grid; gap: 13px; }
.price-includes li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-700); }
.price-includes svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.price-fine { margin-top: 18px; font-size: 13px; color: var(--ink-300); }

/* ---- coming soon ---- */
.coming-soon { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 28px 30px; max-width: 720px; margin: 0 auto; }
.coming-soon .badge { flex-shrink: 0; background: var(--overdue-bg); color: var(--overdue); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; }
.coming-soon h3 { font-size: 17px; margin-bottom: 8px; }
.coming-soon p { font-size: 14.5px; color: var(--ink-500); }
@media (max-width: 560px) { .coming-soon { flex-direction: column; } }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 40px auto 0; border-top: 1px solid var(--border-soft); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 22px 4px; font-family: var(--font-body);
  font-size: 16.5px; font-weight: 700; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; }
.faq-q .chev { width: 20px; height: 20px; color: var(--ink-300); flex-shrink: 0; transition: transform .18s; }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.faq-a { padding: 0 4px 22px; font-size: 15px; color: var(--ink-500); max-width: 640px; line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---- disclaimer ---- */
.disclaimer-block { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 36px; font-size: 14px; color: var(--ink-500); line-height: 1.75; }
.disclaimer-block strong { color: var(--ink-700); }

/* ---- final CTA ---- */
.final-cta { background: var(--accent-dark); color: #fff; text-align: center; border-radius: 28px; padding: 64px 32px; }
.final-cta h2 { color: #fff; }
.final-cta .section-lede { color: #c3d3e8; margin-left: auto; margin-right: auto; }
.final-cta .hero-ctas { justify-content: center; }

/* ---- footer ---- */
footer.site-footer { background: var(--ink-900); color: #b7c3d4; padding: 64px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-brand .wordmark { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.footer-brand .wordmark em { font-style: normal; color: #5b9cf2; }
.footer-tagline { font-size: 13.5px; color: #8697ac; margin-top: 8px; }
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: #b7c3d4; text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #6c7c93; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- legal pages ---- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-page h1 { font-size: 32px; margin-bottom: 8px; }
.legal-updated { color: var(--ink-300); font-size: 13.5px; margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; margin-top: 40px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--ink-700); font-size: 15px; line-height: 1.75; }
.legal-page ul { padding-left: 20px; }
.legal-back { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 14.5px; }
.legal-todo { background: var(--overdue-bg); color: var(--overdue); border-radius: 8px; padding: 12px 16px; font-size: 13.5px; margin: 16px 0; }
