/* =========================================================================
   LITTLEBITOFPERIL AI LLC — site styles
   Plain CSS, no build step, no third-party dependencies.
   Brand gradient: green #22C55E -> blue #2563EB (matches the product mark).
   ========================================================================= */

:root {
  --brand-green: #22c55e;
  --brand-blue: #2563eb;
  --brand-gradient: linear-gradient(135deg, #22c55e 0%, #2563eb 100%);

  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-inset: #eef2f7;
  --text: #0f172a;
  --text-soft: #475569;
  --text-faint: #64748b;
  --border: #e2e8f0;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --focus: #2563eb;

  --maxw: 1080px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --bg-inset: #131c2e;
    --text: #e6edf7;
    --text-soft: #aab7c9;
    --text-faint: #8291a6;
    --border: #1e293b;
    --link: #7da7ff;
    --link-hover: #a9c4ff;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 2.4em 0 .7em; }
h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; }

p { margin: 0 0 1.1em; }

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

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

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

hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--bg-inset);
  padding: .15em .4em;
  border-radius: 5px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--bg);
  padding: .7rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.narrow { max-width: 760px; }
section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
.section-soft { background: var(--bg-soft); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  flex: none;
  background: url("/assets/img/favicon.svg") center / contain no-repeat;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.6rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.nav a {
  color: var(--text-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  padding: .75rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: var(--card-shadow); }
.btn-primary:hover { color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--bg); }
.btn-ghost:hover { color: var(--text); background: var(--bg-inset); }
.btn[aria-disabled="true"] {
  opacity: .55;
  pointer-events: none;
}

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---- Hero ---- */
.hero { padding: clamp(3rem, 9vw, 6.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.hero .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}
.hero .lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-soft);
  max-width: 46ch;
}
.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Cards / grid ---- */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-gradient);
  margin-bottom: 1rem;
  display: grid; place-items: center;
  color: #fff; font-weight: 800;
}

/* ---- Product row ---- */
.product {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.4rem;
  align-items: start;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--card-shadow);
}
.product img { width: 96px; height: 96px; border-radius: 20px; }
.product h3 { margin-top: 0; }
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--bg-inset);
  color: var(--text-faint);
  vertical-align: middle;
  margin-left: .5rem;
}
.badge.live { background: #dcfce7; background: color-mix(in srgb, var(--brand-green) 22%, transparent); color: #15803d; }
@media (prefers-color-scheme: dark) {
  .badge.live { color: #4ade80; }
}

@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
  .product img { width: 72px; height: 72px; }
}

/* ---- Store badge placeholder ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.3rem; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}
.store-badge small { display: block; font-weight: 500; color: var(--text-faint); font-size: .72rem; }
.store-badge.soon { opacity: .6; }
.store-badge:hover { text-decoration: none; background: var(--bg-inset); color: var(--text); }

/* ---- Prose blocks (legal pages) ---- */
.prose h2 { border-top: 1px solid var(--border); padding-top: 2rem; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6rem .7rem; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-inset); }
.meta-line { color: var(--text-faint); font-size: .9rem; }

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-blue);
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 2.5rem 0;
  font-size: .92rem;
  color: var(--text-soft);
}
.site-footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
}
.site-footer h4 {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 .7rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { margin-top: 2rem; color: var(--text-faint); font-size: .85rem; }

/* ---- Utilities ---- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pill-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .85rem;
  color: var(--text-soft);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
