/*
  app-landing-kit shared stylesheet.
  Copy this file verbatim into <app>/assets/css/style.css for every generated site.
  The only thing that should normally change is the --accent value (and optionally
  --accent-2) to match the app's brand color.
*/

:root {
  --bg: #0b0b0f;
  --bg-alt: #131319;
  --bg-card: #17171f;
  --text: #f2f2f5;
  --text-dim: #9a9aa7;
  --text-faint: #6b6b76;
  --accent: #2563EB;
  --accent-2: #7EA8FF;
  --border: #24242f;
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
a.link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
a.link:hover { color: var(--accent); }

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

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

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand .meta {
  color: var(--text-faint);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 6px;
}

nav.main-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav.main-nav a:hover { color: var(--text); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0b0f;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.pill-row span { white-space: nowrap; }
.pill-row span::before { content: "\2713"; color: var(--accent-2); margin-right: 6px; }

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

.hero {
  padding: 96px 0 64px;
  text-align: center;
}

.hero .eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.05rem;
}

.hero .cta { margin-bottom: 20px; }

.hero .shot {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}

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

section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }

.section-label {
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  font-weight: 600;
}

section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
  max-width: 640px;
}

section > .container > p.section-intro {
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card .tag {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Stat / trust strip ---------- */

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-top: 36px;
}

.trust-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.6rem;
  margin-bottom: 4px;
}

/* ---------- Legal pages ---------- */

.legal-header {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--border);
}

.legal-header .brand { margin-bottom: 18px; }

.legal-meta {
  color: var(--text-faint);
  font-size: 0.9rem;
}

.legal-body {
  padding: 48px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h1 { font-size: 2rem; margin-bottom: 8px; }

.legal-body h2 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  padding-top: 6px;
}

.legal-body h2:first-of-type { margin-top: 24px; }

.legal-body p, .legal-body li { color: var(--text-dim); }

.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }

table.perms {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

table.perms th, table.perms td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.perms th {
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.perms td { color: var(--text-dim); }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--text-dim);
  margin: 24px 0;
}

/* ---------- FAQ (support page) ---------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--bg-card);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-2);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p { padding-bottom: 16px; margin: 0; color: var(--text-dim); }

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  color: var(--text-faint);
  font-size: 0.9rem;
}

footer.site-footer .foot-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

footer.site-footer .foot-brand .brand { margin-bottom: 10px; }

footer.site-footer .foot-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

footer.site-footer .foot-links h4 {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

footer.site-footer .foot-links a {
  display: block;
  margin-bottom: 8px;
  color: var(--text-faint);
}

footer.site-footer .foot-links a:hover { color: var(--text); }

footer.site-footer .foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 40px; }
  section { padding: 52px 0; }
  footer.site-footer .foot-top { flex-direction: column; }
}
