/* Same token system and light/dark mechanism as the editor's own
   styles.css (apps/editor/src/styles.css) — a shared visual identity
   across sldkit.com and app.sldkit.com, and a live example of the token
   values for whoever builds the real brand pack from this. Not literally
   shared as a file (this site has no build step to import one), kept in
   sync by hand; if the two ever drift, the editor's file is the source of
   truth. */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, sans-serif;

  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-muted: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-faint: #94a3b8;

  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-accent-text: var(--color-accent);
  --color-accent-secondary: #7c3aed;
  --color-accent-soft: #eef2ff;
  --color-accent-soft-border: #c7d2fe;

  --color-warning-text: #92400e;
  --color-warning-soft: #fffbeb;
  --color-warning-soft-border: #fde68a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --color-bg: #0b0e16;
  --color-surface: #161b26;
  --color-surface-muted: #1c2333;
  --color-border: #2a3244;
  --color-border-strong: #3d4759;

  --color-text: #e6e9f0;
  --color-text-muted: #9aa3b8;
  --color-text-faint: #6b7690;

  --color-accent-text: #a5b4fc;
  --color-accent-secondary: #a78bfa;
  --color-accent-soft: #262a4a;
  --color-accent-soft-border: #3d3f78;

  --color-warning-text: #fcd34d;
  --color-warning-soft: #3a2e13;
  --color-warning-soft-border: #5c4a1c;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #0b0e16;
    --color-surface: #161b26;
    --color-surface-muted: #1c2333;
    --color-border: #2a3244;
    --color-border-strong: #3d4759;

    --color-text: #e6e9f0;
    --color-text-muted: #9aa3b8;
    --color-text-faint: #6b7690;

    --color-accent-text: #a5b4fc;
    --color-accent-secondary: #a78bfa;
    --color-accent-soft: #262a4a;
    --color-accent-soft-border: #3d3f78;

    --color-warning-text: #fcd34d;
    --color-warning-soft: #3a2e13;
    --color-warning-soft-border: #5c4a1c;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
/* Home/About/Pricing are one scrolling page now, linked from the sticky
   nav as #anchors — without this, jumping to a section lands its heading
   right under the sticky nav bar instead of just below it. */
#home,
#about,
#pricing {
  scroll-margin-top: 76px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.55;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
img {
  max-width: 100%;
}
a {
  color: var(--color-accent-text);
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-secondary));
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35);
  flex: 0 0 auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:not(.button) {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 120ms var(--ease), color 120ms var(--ease);
}
.nav-links a:not(.button):hover {
  color: var(--color-text);
  background: var(--color-surface-muted);
}
.nav-links a.current {
  color: var(--color-text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease), opacity 120ms var(--ease), transform 80ms var(--ease);
}
.button:active {
  transform: translateY(0.5px);
}
.button-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.button-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.button-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.button-ghost:hover {
  background: var(--color-surface-muted);
}
.button-lg {
  padding: 13px 26px;
  font-size: 15.5px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}
.theme-toggle:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

/* ---------- hero ---------- */
.hero {
  padding: 96px 24px 72px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  background: var(--color-accent-soft);
  border: 1px solid var(--color-accent-soft-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 780px;
  margin-inline: auto;
}
.hero p.lede {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-faint);
}

/* ---------- generic sections ---------- */
section {
  padding: 64px 24px;
}
section.muted {
  background: var(--color-surface-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 16px;
}

.page-header {
  padding: 64px 24px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.page-header p {
  color: var(--color-text-muted);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- cards / grid ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.card h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14.5px;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
}

/* ---------- pricing ---------- */
.coming-soon-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 48px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--color-warning-soft);
  border: 1px solid var(--color-warning-soft-border);
  color: var(--color-warning-text);
  font-size: 14px;
}
.pricing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 960px;
  margin: 0 auto;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.price-card.featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-card.featured::before {
  content: "Likely most popular";
  position: absolute;
  top: -12px;
  left: 26px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.price-card .price {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 12px 0 2px;
}
.price-card .price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.price-card .price-blurb {
  font-size: 13px;
  color: var(--color-text-faint);
  margin: 0 0 20px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.price-card li svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--color-accent-text);
}

/* ---------- FAQ / support ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.faq-item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14.5px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.contact-card p {
  margin: 0 0 4px;
  color: var(--color-text-muted);
  font-size: 14.5px;
}
.contact-card a {
  font-weight: 600;
  text-decoration: none;
}
.contact-card a:hover {
  text-decoration: underline;
}
.contact-note {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  font-size: 13.5px;
  color: var(--color-text-muted);
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 24px;
  transition: border-color 160ms var(--ease);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 13.5px;
}
.footer-links a:hover {
  color: var(--color-text);
}
.footer-copy {
  font-size: 13px;
  color: var(--color-text-faint);
}

@media (max-width: 720px) {
  /* Logo + theme toggle + Launch app already fill a 375px row on their
     own — rather than hiding Home/About/Pricing/Support/Contact, the nav
     wraps onto a second, centred row instead, so every link (Home/About/
     Pricing especially, now that they're anchors into the one-pager
     rather than separate pages) stays reachable straight from the top
     banner instead of only from the footer. */
  .site-nav {
    flex-wrap: wrap;
    padding: 14px 18px 10px;
    row-gap: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 2px;
  }
  .nav-links a:not(.button) {
    font-size: 13px;
    padding: 6px 9px;
  }
  /* The wrapped nav is two rows here (~110px) instead of one (~76px) —
     without this, a section scrolled to would land partly hidden behind
     the second row instead of just below it. */
  #home,
  #about,
  #pricing {
    scroll-margin-top: 116px;
  }
}
