/* NapKit site styles. No build step: this file is the whole design system. */

:root {
  --brand: #6f5fb8;
  --brand-soft: #a99ee0;
  --brand-wash: #ede9f9;
  --accent: #f08a63;
  --accent-soft: #ffc4a8;

  --bg: #faf9fd;
  --surface: #ffffff;
  --surface-alt: #f3f1fa;
  --text: #23202e;
  --text-muted: #6b6579;
  --border: #e4e0ef;
  --shadow: 0 1px 2px rgba(35, 32, 46, .06), 0 8px 24px rgba(35, 32, 46, .06);

  --maxw: 1080px;
  --readw: 720px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #b3a6ee;
    --brand-soft: #8b7fd0;
    --brand-wash: #241f38;
    --accent: #ff9e7d;
    --accent-soft: #a35f45;

    --bg: #131120;
    --surface: #1b1830;
    --surface-alt: #211d38;
    --text: #eeebf7;
    --text-muted: #a29cba;
    --border: #2e2947;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .28);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.25; font-weight: 650; letter-spacing: -.01em; }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-read { width: 100%; max-width: var(--readw); margin: 0 auto; padding: 0 24px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--text-muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 560px) {
  .site-nav { gap: 16px; font-size: 14px; }
  .site-nav .nav-hide-sm { display: none; }
}

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

.hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(900px 420px at 72% -12%, var(--brand-wash), transparent 70%),
    radial-gradient(620px 320px at 12% 0%, color-mix(in srgb, var(--accent-soft) 34%, transparent), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.15rem);
  margin: 0 0 18px;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-wash);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 20px;
}

.hero-art {
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

@media (max-width: 860px) {
  .hero { padding: 52px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { max-width: 320px; }
}

/* ---------- Buttons ---------- */

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #171430; } }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }

.note { font-size: 14px; color: var(--text-muted); margin: 16px 0 0; }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 40em; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 12px; }
.section-head p { color: var(--text-muted); margin: 0; }

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

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

.card-icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--brand-wash);
  margin-bottom: 14px;
  font-size: 19px;
}

/* ---------- Screenshot gallery ---------- */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.shots figure { margin: 0; scroll-snap-align: start; }

.shots { scrollbar-width: thin; scrollbar-color: var(--brand-soft) transparent; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb {
  background: var(--brand-soft);
  border-radius: 999px;
}

.shots img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 700px) {
  .shots { grid-auto-columns: minmax(190px, 62vw); }
}

/* ---------- Plan columns ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; align-items: start; }

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.plan-featured { border-color: var(--brand-soft); box-shadow: var(--shadow); }

.plan h3 { margin: 0 0 4px; font-size: 1.2rem; }
.plan .plan-sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }

.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 15px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.plan-featured li::before { background: var(--accent); }

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Document pages (privacy, terms, support) ---------- */

.doc { padding: 56px 0 80px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 8px; }
.doc h2 {
  font-size: 1.3rem;
  margin: 40px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}
.doc h3 { font-size: 1.06rem; margin: 26px 0 10px; }
.doc p { margin: 0 0 15px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; }
.doc li { margin-bottom: 7px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.doc .last-updated { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.doc .highlight {
  background: var(--brand-wash);
  border-left: 3px solid var(--brand-soft);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 24px 0;
}

.doc .warning {
  background: color-mix(in srgb, var(--accent-soft) 30%, transparent);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px;
  margin: 24px 0;
}

.doc .contact-info {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 30px;
}
.doc .contact-info p:last-child { margin-bottom: 0; }

/* Support page specifics */
.support-cta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}
.support-cta .card p { font-size: 15px; }
.support-cta .card strong { color: var(--text); }
